Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <head>
    <title>WoW-Tools Your WoW Source for everything important!</title>
    <link rel = "stylesheet"
   type = "text/css"
   href = "style.css" />

   <style>
       body{
    background-color: white;
}
header{
    /* text-align: center; */
    background-color: grey;
}

#logo{
    /* top: 20px; */
    text-align: left;
}

#crbuttons{
    /* position: absolute; */
    /* top: 50%; */
    text-align: center;
    padding-bottom: 20px;
    
}
#menu{
    background-color: blue;
    float: left;
    width: 20%;
}

#pickcorruption{
    background-color: greenyellow;
    float: left;
    width: 50%;
}
#currentcorruption{
    background-color: rgb(38, 184, 45);
    float: right;
    width: 50%;
}

#info{
    display: flex;
    flex-flow: column wrap;
    margin: auto;
    background-color: green;
    float: right;
    width: 80%;
}

#info > #rotation1 { order: 1;}
#info > #rotation2 { order: 2;}
#info > #rotation3 { order: 3;}
#info > #rotation4 { order: 4;}
#info > #rotation5 { order: 5;}
#info > #rotation6 { order: 6;}
#info > #rotation7 { order: 7;}
#info > #rotation8 { order: 8;}
   </style>
</head>


<body>
<header>
<img id="logo" src="" alt="WoW Tools Logo">
<div id="crbuttons">
<button id="retailbutton">Retail</button>
<button id="classicbutton">Classic</button>
</div>


</header>


<div id="menu">
    <p id="CVR">
        Corruption Vendor Rotation
    </p>
    <button id="test">Testbutton</button>
    
</div>
<div id="info">
    <p id="pickcorruption">Pick the corruption you are looking for</p>
    
    <p id="currentcorruption">Show mothers available corruptions today</p>
    <div id="corruptionbuttons">
        <button id="avoidant">Avoidant</button>
        <button id="deadlyMomentum">Deadly Momentum</button>
        <button id="echoingVoid">Echoing Void</button>
        <button id="expedient">Expedient</button>
        <button id="glimpseOfClarity">Glimpse of Clarity</button>
        <button id="gushingWound">Gushing Wound</button>
        <button id="honedMind">Honed Mind</button>
        <button id="ineffableTruth">Ineffable Truth</button>
        <button id="infiniteStars">Infinite Stars</button>
        <button id="masterful">Masterful</button>
        <button id="racingPulse">Racing Pulse</button>
        <button id="severe">Severe</button>
        <button id="siphoner">Siphoner</button>
        <button id="strikethrough">Strikethrough</button>
        <button id="surgingVitality">Surging Vitality</button>
        <button id="twilightDevastation">Twilight Devastation</button>
        <button id="twistedAppendage">Twisted Appendage</button>
        <button id="versatile">Versatile</button>
        <button id="voidRitual">Void Ritual</button>
    </div>

    <div id="rotation1" class="element">
        <p>Rotation 1</p>
        <p id="rotation1Date" class="year"></p>
        <ul>
            <li id="ineffableTruth1">Ineffable Truth 1</li>
            <li id="honedMind1">Honed Mind 1</li>
            <li id="strikethrough2">Strikethrough 2</li>
            <li id="masterful2">Masterful 2</li>
            <li id="expedient3">Expedient 3</li>
            <li id="twistedAppendage3">Twisted Appendage 3</li>
        </ul>
    </div>
    <div id="rotation2" class="element">
        <p>Rotation 2</p>
        <p id="rotation2Date" class="year"></p>
        <ul>
            <li id="masterful1">Masterful 1</li>
            <li id="voidRitual1">Void Ritual 1</li>
            <li id="deadlyMomentum2">Deadly Momentum 2</li>
            <li id="siphoner2">Siphoner 2</li>
            <li id="ineffableTruth2">Ineffable Truth 2</li>
            <li id="versatile3">Versatile 3</li>
            <li id="avoidant2">Avoidant 2</li>
        </ul>
    </div>
    <div id="rotation3" class="element">
        <p>Rotation 3</p>
        <p id="rotation3Date" class="year"></p>
        <ul>
            <li id="infiniteStars1">Infinite Stars</li>
            <li id="surgingVitality1">Surging Vitality 1</li>
            <li id="glimpseOfClarity">Glimpse of Clarity</li>
            <li id="severe2">Severe 2</li>
            <li id="racingPulse3">Racing Pulse</li>
            <li id="siphoner3">Siphoner 3</li>
            <li id="avoidant3">Avoidant 3</li>
        </ul>
    </div>
    <div id="rotation4" class="element">
        <p>Rotation 4</p>
        <p id="rotation4Date" class="year"></p>
        <ul>
            <li id="severe1">Severe 1</li>
            <li id="siphoner1">Siphoner 1</li>
            <li id="expedient2">Expedient 2</li>
            <li id="twilightDevastation2">Twilight Devastation 2</li>
            <li id="honedMind3">Honed Mind 3</li>
            <li id="strikethrough3">Strikethrough 3</li>
        </ul>
    </div>
    <div id="rotation5" class="element">
        <p>Rotation 5</p>
        <p id="rotation5Date" class="year"></p>
        <ul>
            <li id="expedient1">Expedient 1</li>
            <li id="twistedAppendage1">Twisted Appendage 1</li>
            <li id="racingPulse2">Racing Pulse 2</li>
            <li id="echoingVoid2">Echoing Void 2</li>
            <li id="infiniteStars3">Infinite Stars 3</li>
            <li id="severe3">Severe 3</li>
        </ul>
    </div>
    <div id="rotation6" class="element">
        <p>Rotation 6</p>
        <p id="rotation6Date" class="year"></p>
        <ul>
            <li id="racingPulse1">Racing Pulse 1</li>
            <li id="strikethrough1">Strikethrough 1</li>
            <li id="surgingVitality2">Surging Vitality 2</li>
            <li id="voidRitual2">Void Ritual 2</li>
            <li id="masterful3">Masterful 3</li>
            <li id="twilightDevastation3">Twilight Devastation 3</li>
            <li id="avoidant1">Avoidant 1</li>
        </ul>
    </div>
    <div id="rotation7" class="element">
        <p>Rotation 7</p>
        <p id="rotation7Date" class="year"></p>
        <ul>
            <li id="echoingVoid1">Echoing Void 1</li>
            <li id="versatile1">Versatile 1</li>
            <li id="honedMind2">Honed Mind 2</li>
            <li id="infiniteStars2">Infinite Stars 2</li>
            <li id="deadlyMomentum3">Deadly Momentum 3</li>
            <li id="voidRitual3">Void Ritual 3</li>
            <li id="gushingWound">Gushing Wound</li>
        </ul>
    </div>
    <div id="rotation8" class="element">
        <p>Rotation 8</p>
        <p id="rotation8Date" class="year"></p>
        <ul>
            <li id="twilightDevastation1">Twilight Devastation 1</li>
            <li id="versatile2">Versatile 2</li>
            <li id="surgingVitality3">Surging Vitality 3</li>
            <li id="twistedAppendage2">Twisted Appendage 2</li>
            <li id="deadlyMomentum1">Deadly Momentum 1</li>
            <li id="echoingVoid3">Echoing Void 3</li>
        </ul>
    </div>
</div>

<script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script>
    const DAYS = 24 * 3600 * 1000;
    
    const countdowns = [{
        id: "rotation1Date",
        helper: "rotation1",
        timestamp: new Date("May 20, 2020 02:00:00 GMT -5:00").getTime(),
        interval: 28 * DAYS,
        
      },
      {
        id: "rotation2Date",
        helper: "rotation2",
        timestamp: new Date("May 23, 2020 14:00:00 GMT-05:00").getTime(),
        interval: 28 * DAYS
      },
            {
        id: "rotation3Date",
        helper: "rotation3",
        timestamp: new Date("May 27, 2020 02:00:00 GMT-5:00").getTime(),
        interval: 28 * DAYS
        },
        {
        id: "rotation4Date",
        helper: "rotation4",
        timestamp: new Date("May 30, 2020 14:00:00 GMT-05:00").getTime(),
        interval: 28 * DAYS
      },
        {
        id: "rotation5Date",
        helper: "rotation5",
        timestamp: new Date("June 3, 2020 02:00:00 GMT-05:00").getTime(),
        interval: 28 * DAYS
      },
        {
        id: "rotation6Date",
        helper: "rotation6",
        timestamp: new Date("June 6, 2020 14:00:00 GMT-05:00").getTime(),
        interval: 28 * DAYS
      },
      {
        id: "rotation7Date",
        helper: "rotation7",
        timestamp: new Date("June 10, 2020 14:00:00 GMT-05:00").getTime(),
        interval: 28 * DAYS
      },
      {
        id: "rotation8Date",
        helper: "rotation8",
        timestamp: new Date("June 13, 2020 14:00:00 GMT-05:00").getTime(),
        interval: 28 * DAYS
      },
    ];
    
    setInterval(() => {
      const now = new Date().getTime();
      countdowns.forEach(c => {
        while (c.timestamp + (3.5 * DAYS) < now) c.timestamp += c.interval;
        const tSecs = Math.floor((c.timestamp - now) / 1000);
        const secs = tSecs % 60;
        const tMins = (tSecs - secs) / 60;
        const mins = tMins % 60;
        const tHours = (tMins - mins) / 60;
        const hours = tHours % 24;
        const days = (tHours - hours) / 24;
        const reset = new Date(c.timestamp);
        
        document.getElementById(c.id).textContent= `${reset}`;
   
      });
    }, 1000);
   </script>
</body>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console