Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Stijnmanpam (talk | contribs) (Piwik code toegevoegd) |
|||
Line 1: | Line 1: | ||
+ | |||
+ | <!-- Start Piwik PRO Tag Manager code --> |
||
+ | <script type="text/javascript"> |
||
+ | (function(window, document, dataLayerName, id) { |
||
+ | window[dataLayerName]=window[dataLayerName]||[],window[dataLayerName].push({start:(new Date).getTime(),event:"stg.start"});var scripts=document.getElementsByTagName('script')[0],tags=document.createElement('script'); |
||
+ | function stgCreateCookie(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3),d="; expires="+e.toUTCString()}document.cookie=a+"="+b+d+"; path=/; Secure"} |
||
+ | var isStgDebug=(window.location.href.match("stg_debug")||document.cookie.match("stg_debug"))&&!window.location.href.match("stg_disable_debug");stgCreateCookie("stg_debug",isStgDebug?1:"",isStgDebug?14:-1); |
||
+ | var qP=[];dataLayerName!=="dataLayer"&&qP.push("data_layer_name="+dataLayerName),qP.push("use_secure_cookies"),isStgDebug&&qP.push("stg_debug");var qPString=qP.length>0?("?"+qP.join("&")):""; |
||
+ | tags.async=!0,tags.src="https://tno.containers.piwik.pro/"+id+".js"+qPString,scripts.parentNode.insertBefore(tags,scripts); |
||
+ | !function(a,n,i){a[n]=a[n]||{};for(var c=0;c<i.length;c++)!function(i){a[n][i]=a[n][i]||{},a[n][i].api=a[n][i].api||function(){var a=[].slice.call(arguments,0);"string"==typeof a[0]&&window[dataLayerName].push({event:n+"."+i+":"+a[0],parameters:[].slice.call(arguments,1)})}}(i[c])}(window,"ppms",["tm","cm"]); |
||
+ | })(window, document, 'dataLayer', 'f0d85294-2af1-4e59-8172-abbd41b0a8b8'); |
||
+ | </script> |
||
+ | <!-- End Piwik PRO Tag Manager code --> |
||
+ | |||
+ | |||
/* Any JavaScript here will be loaded for all users on every page load.*/ |
/* Any JavaScript here will be loaded for all users on every page load.*/ |
||
// loads the edittool page |
// loads the edittool page |
Revision as of 11:59, 25 May 2023
<!-- Start Piwik PRO Tag Manager code --> <script type="text/javascript"> (function(window, document, dataLayerName, id) { window[dataLayerName]=window[dataLayerName]||[],window[dataLayerName].push({start:(new Date).getTime(),event:"stg.start"});var scripts=document.getElementsByTagName('script')[0],tags=document.createElement('script'); function stgCreateCookie(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3),d="; expires="+e.toUTCString()}document.cookie=a+"="+b+d+"; path=/; Secure"} var isStgDebug=(window.location.href.match("stg_debug")||document.cookie.match("stg_debug"))&&!window.location.href.match("stg_disable_debug");stgCreateCookie("stg_debug",isStgDebug?1:"",isStgDebug?14:-1); var qP=[];dataLayerName!=="dataLayer"&&qP.push("data_layer_name="+dataLayerName),qP.push("use_secure_cookies"),isStgDebug&&qP.push("stg_debug");var qPString=qP.length>0?("?"+qP.join("&")):""; tags.async=!0,tags.src="https://tno.containers.piwik.pro/"+id+".js"+qPString,scripts.parentNode.insertBefore(tags,scripts); !function(a,n,i){a[n]=a[n]||{};for(var c=0;c<i.length;c++)!function(i){a[n][i]=a[n][i]||{},a[n][i].api=a[n][i].api||function(){var a=[].slice.call(arguments,0);"string"==typeof a[0]&&window[dataLayerName].push({event:n+"."+i+":"+a[0],parameters:[].slice.call(arguments,1)})}}(i[c])}(window,"ppms",["tm","cm"]); })(window, document, 'dataLayer', 'f0d85294-2af1-4e59-8172-abbd41b0a8b8'); </script> <!-- End Piwik PRO Tag Manager code --> /* Any JavaScript here will be loaded for all users on every page load.*/ // loads the edittool page var load_edittools = true; // extra drop down menu on editing for adding special characters //importScript('MediaWiki:SelectCategory.js') importScript('MediaWiki:Edittools.js')