From Dark and Darker Wiki

No edit summary
(topbar testing)
Tag: Replaced
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<templatestyles src="Template:Topbar/styles.css" />


==Rewards==
<div id="topbar" style="position:fixed; top:50px; z-index:7; width:400px; left:50%; transform:translate(-50%); background-color: #007bff; border: 1px solid #ccc; border-radius: 5px; overflow: hidden;">
    <!-- Div acting as a button to toggle visibility -->
    <div id="toggleDiv" style="cursor: pointer; padding: 10px; background-color: #0056b3; color: white; text-align: center;">
        ▼
    </div>
   
    <!-- Content that will be shown/hidden -->
    <div id="topbarContent" style="padding: 10px; background-color: #f8f9fa;">
        <table class="basicsnavtable" style="width: 100%; margin: 0; border-collapse: collapse;">
            <tr>
                <td class="last" style="padding: 5px;">Season End:</td>
            </tr>
            <tr>
                <td class="last" style="color:green; padding: 5px;">{{#widget:Countdown|uniqueId=A|date=2024-08-30 02:00:00}}</td>
            </tr>
            <tr>
                <td class="last" style="padding: 5px;">Wipe Day: [https://media.discordapp.net/attachments/1055538406509264967/1277170341357293568/image.png?ex=66cc3112&is=66cadf92&hm=93ca6dd1100180cbc62b00668ea7be6c4888814d9dd7de844983afa3f52b0ef1 6th of September]</td>
            </tr>
            <tr>
                <td class="last" style="color:red; padding: 5px;">{{#widget:Countdown|uniqueId=B|date=2024-09-06 02:00:00}}</td>
            </tr>
        </table>
    </div>
</div>


<table border="1" cellspacing="0" style="width:80%; color:#eee; background:transparent; text-align:center; vertical-align:middle; table-layout: fixed; text-shadow: 0 0 5px #000;">
<script>
    document.getElementById("toggleDiv").addEventListener("click", function() {
        var content = document.getElementById("topbarContent");
        var toggleDiv = document.getElementById("toggleDiv");
        if (content.style.display === "none") {
            content.style.display = "block";
            toggleDiv.textContent = "▼";
        } else {
            content.style.display = "none";
            toggleDiv.textContent = "▲";
        }
    });


<td style="font-weight:bold; width:10%">
    // Initially show content
<td style="font-weight:bold; background-color:#646464; width:10%">Neophyte</td>
    document.getElementById("topbarContent").style.display = "block";
<td style="font-weight:bold; background-color:#DEDEDE; width:10%">Apprentice</td>
</script>
<td style="font-weight:bold; background-color:#62BE0B; width:10%">Wanderer</td>
<td style="font-weight:bold; background-color:#4A9BD1; width:10%">Pathfinder</td>
<td style="font-weight:bold; background-color:#AD5AFF; width:10%">Voyager</td>
<td style="font-weight:bold; background-color:#F7A22D; width:10%">Exemplar</td>
<td style="font-weight:bold; background-color:#E3D88C; width:10%">Demigod</td>
<tr>
<td style="font-weight:bold; width:10%">Season 1</td>
        <td>[[File:Bandages_And_Potions.png|x64px]]x15<br>
        Bandages and Healing Potions</td>
        <td>[[File:Common_Icon_Gold.png|x64px]]x500<br>
        Gold Coins</td>
        <td>[[File:Gold_Coin_Bag.png|100x100px]]x1<br>
        Gold Coin Bag</td>
        <td>[[File:Nightmare Skeleton Race.png|100x100px]]<br>
        Nightmare Skeleton Race</td>
        <td>[[File:Sleeping Bag Cosmetic.png|100x100px]]<br>
        Sleeping Bag Resting Animation</td>
        <td>[[File:Campfire Moonlight.png|100x100px]]<br>
        Moonlight Campfire Skin</td>
        <td>[[File:Moonlight Mercurial Cloak.png|100x100px]]<br>
        Moonlight Cloak Skins</td>
<tr>
<td style="font-weight:bold; width:10%">Season 2</td>
        <td>[[File:Bandages_And_Potions.png|x64px]]x15<br>
        Bandages and Healing Potions</td>
        <td>[[File:Common_Icon_Gold.png|x64px]]x500<br>
        Gold Coins</td>
        <td>[[File:Gold_Coin_Bag.png|100x100px]]x1<br>
        Gold Coin Bag</td>
        <td>[[File:Skin Character FrostWalker S.png|frameless|100x100px]]<br>
        Frost Walker Race</td>
        <td>[[File:Frozen Torch.png|100x100px]]<br>
        Frozen Torch Skin</td>
        <td>[[File:Skin_Item_Campfire_Frozen.png|100x100px]]<br>
        Frozen Campfire Skin</td>
        <td>[[File:Skin_Item_FrozenPotions.png|100x100px]]<br>
        Frozen Potion Skins</td>
<tr>
<td style="font-weight:bold; width:10%">Season 3</td>
        <td>[[File:Lobby_Icon_RankRewardDummy.png|100x100px]]<br>
        TBA</td>
        <td>[[File:Lobby_Icon_RankRewardDummy.png|100x100px]]<br>
        TBA</td>
        <td>[[File:Lobby_Icon_RankRewardDummy.png|100x100px]]<br>
        TBA</td>
        <td>[[File:Lobby_Icon_RankRewardDummy.png|100x100px]]<br>
        TBA</td>
        <td>[[File:Lobby_Icon_RankRewardDummy.png|100x100px]]<br>
        TBA</td>
        <td>[[File:Lobby_Icon_RankRewardDummy.png|100x100px]]<br>
        TBA</td>
        <td>[[File:Lobby_Icon_RankRewardDummy.png|100x100px]]<br>
        TBA</td>
<tr>
 
</table>

Latest revision as of 19:23, 26 August 2024

Season End:
Wipe Day: 6th of September

<script>

   document.getElementById("toggleDiv").addEventListener("click", function() {
       var content = document.getElementById("topbarContent");
       var toggleDiv = document.getElementById("toggleDiv");
       if (content.style.display === "none") {
           content.style.display = "block";
           toggleDiv.textContent = "▼";
       } else {
           content.style.display = "none";
           toggleDiv.textContent = "▲";
       }
   });
   // Initially show content
   document.getElementById("topbarContent").style.display = "block";

</script>