[SPIP] +2.1.12
[velocampus/web/www.git] / www / plugins / auto / couteau_suisse / couteau_suisse / outils / jcorner.js.html
diff --git a/www/plugins/auto/couteau_suisse/couteau_suisse/outils/jcorner.js.html b/www/plugins/auto/couteau_suisse/couteau_suisse/outils/jcorner.js.html
new file mode 100644 (file)
index 0000000..ce3c7a1
--- /dev/null
@@ -0,0 +1,6 @@
+if (window.jQuery) jQuery.fn.jc_ajouter_parent = function(color, padding, margin) {\r
+       color = ((typeof color=='undefined') || (color==''))?'':(' background-color:'+color+';');\r
+       if ((typeof padding=='undefined') || (padding=='')) padding = '4px';\r
+       if ((typeof margin=='undefined') || (margin=='')) margin = '4px 0';\r
+       return this.wrap('<div class="jc_parent" style="padding:'+padding+';'+color+' margin:'+margin+';"><\/div>');\r
+};
\ No newline at end of file