MediaWiki:FundraiseUp.js: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Created page with "(function(w,d,s,n,a){if(!w[n]){var l='call,catch,on,once,set,then,track' .split(','),i,o=function(n){return'function'==typeof n?o.l.push([arguments])&&o :function(){return o.l.push([n,arguments])&&o}},t=d.getElementsByTagName(s)[0], j=d.createElement(s);j.async=!0;j.src='https://cdn.fundraiseup.com/widget/'+a; t.parentNode.insertBefore(j,t);o.s=Date.now();o.v=4;o.h=w.location.href;o.l=[]; for(i=0;i<7;i++)o[l[i]]=o(l[i]);w[n]=o} })(window,document,'script','FundraiseUp','..."
 
replace with instructions to use "fundraiseupScript=1" instead which loads scripts in the <head>
 
Line 1: Line 1:
alert('This is the old, unsupported method of loading Fundraise Up scripts. You should replace "withJS=MediaWiki:FundraiseUp.js" with "fundraiseupScript=1" in the URL');
(function(w,d,s,n,a){if(!w[n]){var l='call,catch,on,once,set,then,track'
.split(','),i,o=function(n){return'function'==typeof n?o.l.push([arguments])&&o
:function(){return o.l.push([n,arguments])&&o}},t=d.getElementsByTagName(s)[0],
j=d.createElement(s);j.async=!0;j.src='https://cdn.fundraiseup.com/widget/'+a;
t.parentNode.insertBefore(j,t);o.s=Date.now();o.v=4;o.h=w.location.href;o.l=[];
for(i=0;i<7;i++)o[l[i]]=o(l[i]);w[n]=o}
})(window,document,'script','FundraiseUp','AVLMPSRU');

Latest revision as of 17:55, 29 September 2023

alert('This is the old, unsupported method of loading Fundraise Up scripts. You should replace "withJS=MediaWiki:FundraiseUp.js" with "fundraiseupScript=1" in the URL');