Jump to content

MediaWiki:Common.js

From ATRONIA Wiki
Revision as of 15:36, 23 February 2026 by WikiManagement (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Any JavaScript here will be loaded for all users on every page load. */
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MX174P23PW"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

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




/*************************/
/* ATRONIA Language Menu */
/*************************/

.atr-lang-menu {
    position: relative;
    list-style: none;
    cursor: pointer;
    color: white;
    font-size: 14px;
    padding: 10px 15px;
}

.atr-lang-current {
    font-weight: 500;
}

.atr-lang-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    color: #202122;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    display: none;
    min-width: 120px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 6px;
    z-index: 9999;
}

.atr-lang-dropdown li {
    padding: 8px 16px;
}

.atr-lang-dropdown li:hover {
    background: #f2f2f2;
}

.atr-lang-menu:hover .atr-lang-dropdown {
    display: block;
}

/* Hide Google default UI */
.goog-te-banner-frame {
    display: none !important;
}
body {
    top: 0px !important;
}