-
Notifications
You must be signed in to change notification settings - Fork 0
/
configr-ribbon.min.js
8 lines (8 loc) · 1.05 KB
/
configr-ribbon.min.js
1
2
3
4
5
6
7
8
/*!
* jQuery Configr Ribbons Plugin 1.0
* https://github.com/configr/configr-ribbons
*
* Copyright 2013 Arthur Furlan <[email protected]>
* Copyright 2013 Amilton Paglia <[email protected]>
*/
(function(d){var g=function(h){var o={},n,k,m,j;n=h.split("&");for(m=0,j=n.length;m<j;m++){k=n[m].split("=");o[k[0]]=k[1]}return o};var c=function(i,h){d("script").each(function(){var l=this.src.split("?");var m=l[0].split("/");var k=m[m.length-1];if(k.match(/^configr-ribbon(\.min)?\.js$/)&&l.length>1){var j=g(l[1]);h=j[i]||h}});return h};var b=c("t","purple");var a=c("r","");var f="http://media.configr.com/ribbon/"+b+".png";var e="http://configr.com/?r="+a;d("body").prepend('<div id="configr-ribbon" style="position:absolute;top:0;right:0;background:transparent;width:119px;height:119px;text-indent:-9999px;cursor:hand;cursor:pointer;outline:0;border:none;"><a href="'+e+'" title="Managed via Configr"><img src="'+f+'" style="position:absolute;top:-1px;right:0px;width:119px;height:119px;text-indent:-9999px;z-index:2;outline:0;border:none;"/></a></div>')})(jQuery);