MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
No edit summary
(added google analytics)
Tag: Reverted
Line 9: Line 9:
     'floating-chat.donateButton.text-color': '#fff'
     'floating-chat.donateButton.text-color': '#fff'
   });
   });
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-44N0FGBNJR"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-44N0FGBNJR');
</script>

Revision as of 19:59, 15 December 2024

/* Any JavaScript here will be loaded for all users on every page load. */

src='https://storage.ko-fi.com/cdn/scripts/overlay-widget.js'></script>

  kofiWidgetOverlay.draw('infrawiki', {
    'type': 'floating-chat',
    'floating-chat.donateButton.text': 'Support me',
    'floating-chat.donateButton.background-color': '#d9534f',
    'floating-chat.donateButton.text-color': '#fff'
  });


<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-44N0FGBNJR"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-44N0FGBNJR');
</script>