Bruger:Pernall: Forskelle mellem versioner

Fra Wiki The-West DK
Hop til navigation
No edit summary
No edit summary
Linje 1: Linje 1:
=common.js=
/* Any JavaScript here will be loaded for all users on every page load. */
// Old Global.js.
// Rewrite of announcement display.
$ (function () {
    // Changes the announcement to the next announcement in the list.
    function changeAnnouncement () {
        $ (announcementList [currentAnnouncement]).fadeOut ("normal", function () {
            ++currentAnnouncement;
            if (currentAnnouncement >= announcementList.length)
                currentAnnouncement = 0;
            $ (announcementList [currentAnnouncement]).fadeIn ();
        });
    }
    var announcementList = $ (".announcement");
    var currentAnnouncement = 0;
    var announcementVisibilityTime = 10000; // ms
    announcementList.hide ();
    if (announcementList.length > 1) {
        $ (announcementList [0]).fadeIn ();
        setInterval (changeAnnouncement, announcementVisibilityTime);
    } else if (announcementList.length > 0)
        announcementList.fadeIn ();
    // Piwik is undefined -> comment it out.
    /*
    try {
        var piwikTracker = Piwik.getTracker (pkBaseURL + "piwik.php", 2);
        piwikTracker.trackPageView ();
        piwikTracker.enableLinkTracking ();
    } catch (err) {}
    */
});
=common.css=
=common.css=
/*Custom background*/
/*Custom background*/

Versionen fra 15. mar. 2021, 19:13

common.js

/* Any JavaScript here will be loaded for all users on every page load. */ // Old Global.js. // Rewrite of announcement display. $ (function () {

   // Changes the announcement to the next announcement in the list.
   function changeAnnouncement () {
       $ (announcementList [currentAnnouncement]).fadeOut ("normal", function () {
           ++currentAnnouncement;
           if (currentAnnouncement >= announcementList.length)
               currentAnnouncement = 0;
           $ (announcementList [currentAnnouncement]).fadeIn ();
       });
   }

   var announcementList = $ (".announcement");
   var currentAnnouncement = 0;
   var announcementVisibilityTime = 10000; // ms

   announcementList.hide ();
   if (announcementList.length > 1) {
       $ (announcementList [0]).fadeIn ();
       setInterval (changeAnnouncement, announcementVisibilityTime);
   } else if (announcementList.length > 0)
       announcementList.fadeIn ();


   // Piwik is undefined -> comment it out.
   /*
   try {
       var piwikTracker = Piwik.getTracker (pkBaseURL + "piwik.php", 2);
       piwikTracker.trackPageView ();
       piwikTracker.enableLinkTracking ();
   } catch (err) {}
   */

});


common.css

/*Custom background*/

body {

   background-image: url(https://media.innogamescdn.com/com_WEST_TR/Wiki/common/bg-cover-right.png), url(https://media.innogamescdn.com/com_WEST_TR/Wiki/common/bg-cover-left.png), url(https://media.innogamescdn.com/com_WEST_TR/Wiki/common/NewCoverBgBottom.png), url(https://media.innogamescdn.com/com_WEST_TR/Wiki/common/NewMainBg.jpg);

}

  1. document-wrapper {
   padding: 0 225px 0 20px;
   /*Sets a 225px right padding for the right menu*/
   margin: 0 auto;
   max-width: 1250px;
   /*wrapper maximum width*/
   min-width: 880px;

} /*External and internal link color*/ .mw-body a, .mw-body a.external {

   color: #804000;

}

  1. mw-content-text a,
  2. mw-content-text a.external {
   font-weight: bold;

} /*Fix the advanced search form*/

  1. searchText {
   width: 80%;
   z-index: 10;

} div.oo-ui-menuSelectWidget {

   margin-top: 40px;

} input.oo-ui-inputWidget-input {

   width: 65%;

} /*Make the page title selectable*/ div.tbbox-rafter {

   display: none;

} /*Fix the Log in button*/ .tribal-button {

   width: 190px !important;

} .with-button .tbbox-headline {

   width: 100% !important;

} /*Remove the table of contents width limit*/

  1. toc {
   display: inline-block;
   width: auto;

} /*Right menu*/

  1. siteNotice {
   position: absolute;
   left: 0;
   margin-left: 100%;

}

  1. right_menu {
   padding: 0 !important;
   margin: 0 20px 0 30px !important;
   top: -107px;

}

  1. right_menu .innogames-headline {
   border-top: 4px solid transparent !important;
   border-bottom: 4px solid transparent !important;
   border-image-slice: 4 !important;
   border-image-source: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAECAIAAABz8up3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4QsREQkqmSTYtAAAAEZJREFUGNNjtLfQYcAAP37+4mBnY6AlYHz/5gUBFYyMWMX///+PX83///8h4sgq4YDl+OHdxLgP01jcKv8T5WMDLUWGgQAACj4ULl9i6ucAAAAASUVORK5CYII=) !important;

} .innogame {

   height: 32px !important;
   padding-top: 10px !important;

} .innogame a {

   text-decoration: none;
   display: block;
   height: 25px;

} .socialBar {

   background: none !important;

}

  1. localNotice #miniLogo {
   background-image: none;
   margin-top: -9px;

}


Sitenotice