Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
// adds in the newsletter signup | // adds in the newsletter signup | ||
− | var newsletterForm = document.createElement("script"); | + | /* var newsletterForm = document.createElement("script"); |
− | newsletterForm.type = "text/javascript"; | + | newsletterForm.type = "text/javascript"; |
− | newsletterForm.src = "https://app.sender.net/webforms/346/9a4f61b6.js?v=10"; | + | newsletterForm.src = "https://app.sender.net/webforms/346/9a4f61b6.js?v=10"; |
− | var nav = document.getElementById("p-navigation"); | + | var nav = document.getElementById("p-navigation"); |
− | var rent = nav.parentNode; | + | var rent = nav.parentNode; |
− | rent.insertBefore(newsletterForm, nav); | + | rent.insertBefore(newsletterForm, nav); |
+ | */ |
Latest revision as of 15:17, 16 July 2017
/* Any JavaScript here will be loaded for all users on every page load. */ var _paq = _paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(["setCookieDomain", "*.cowleyroad.org"]); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//piwik.charlieharvey.org.uk/"; _paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setSiteId', '10']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); })(); // adds in the newsletter signup /* var newsletterForm = document.createElement("script"); newsletterForm.type = "text/javascript"; newsletterForm.src = "https://app.sender.net/webforms/346/9a4f61b6.js?v=10"; var nav = document.getElementById("p-navigation"); var rent = nav.parentNode; rent.insertBefore(newsletterForm, nav); */