From Dark and Darker Wiki

mNo edit summary
(topbar testing)
Tag: Replaced
 
(7 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; table-layout: fixed; text-shadow: 0 0 5px #000;">
<script>
<td style="font-weight:bold; width:10%">
    document.getElementById("toggleDiv").addEventListener("click", function() {
<td style="font-weight:bold; background-color:#646464; width:10%">Neophyte</td>
        var content = document.getElementById("topbarContent");
<td style="font-weight:bold; background-color:#DEDEDE; width:10%">Apprentice</td>
        var toggleDiv = document.getElementById("toggleDiv");
<td style="font-weight:bold; background-color:#62BE0B; width:10%">Wanderer</td>
        if (content.style.display === "none") {
<td style="font-weight:bold; background-color:#4A9BD1; width:10%">Pathfinder</td>
            content.style.display = "block";
<td style="font-weight:bold; background-color:#AD5AFF; width:10%">Voyager</td>
            toggleDiv.textContent = "";
<td style="font-weight:bold; background-color:#F7A22D; width:10%">Exemplar</td>
         } else {
<td style="font-weight:bold; background-color:#E3D88C; width:10%">Demigod</td>
            content.style.display = "none";
<tr style="height:150px">
            toggleDiv.textContent = "";
<td style="font-weight:bold; width:10%">Season 1</td>
         }
         <td>[[File:Bandages_And_Potions.png|x35px]]<br>
    });
        Bandages and Healing Potions x15</td>
        <td>[[File:Common_Icon_Gold.png|x35px]]<br>
        Gold Coins x500</td>
        <td>[[File:Gold_Coin_Bag.png|x70px]]<br>
        Gold Coin Bag x1</td>
        <td>[[File:Nightmare Skeleton Race.png|x70px]]<br>
        Nightmare Skeleton Race</td>
        <td>[[File:Sleeping Bag Cosmetic.png|x70px]]<br>
        Sleeping Bag Resting Animation</td>
        <td>[[File:Campfire Moonlight.png|x70px]]<br>
        Moonlight Campfire Skin</td>
        <td>[[File:Moonlight Mercurial Cloak.png|x70px]]<br>
        Moonlight Cloak Skins</td>
<tr style="height:150px">
<td style="font-weight:bold; width:10%">Season 2</td>
        <td>[[File:Bandages_And_Potions.png|x35px]]<br>
        Bandages and Healing Potions x15</td>
        <td>[[File:Common_Icon_Gold.png|x35px]]<br>
        Gold Coins x500</td>
        <td>[[File:Gold_Coin_Bag.png|x70px]]<br>
        Gold Coin Bag x1</td>
        <td>[[File:Skin Character FrostWalker S.png|x70px]]<br>
        Frost Walker Race</td>
        <td>[[File:Frozen Torch.png|x70px]]<br>
        Frozen Torch Skin</td>
        <td>[[File:Skin_Item_Campfire_Frozen.png|x70px]]<br>
        Frozen Campfire Skin</td>
        <td>[[File:Skin_Item_FrozenPotions.png|x70px]]<br>
        Frozen Potion Skins</td>
<tr style="height:150px">
<td style="font-weight:bold; width:10%">Season 3</td>
        <td>[[File:Lobby_Icon_RankRewardDummy.png|x70px]]<br>
         TBA</td>
        <td>[[File:Lobby_Icon_RankRewardDummy.png|x70px]]<br>
        TBA</td>
        <td>[[File:Lobby_Icon_RankRewardDummy.png|x70px]]<br>
        TBA</td>
        <td>[[File:Lobby_Icon_RankRewardDummy.png|x70px]]<br>
        TBA</td>
        <td>[[File:Lobby_Icon_RankRewardDummy.png|x70px]]<br>
        TBA</td>
        <td>[[File:Lobby_Icon_RankRewardDummy.png|x70px]]<br>
        TBA</td>
        <td>[[File:Lobby_Icon_RankRewardDummy.png|x70px]]<br>
        TBA</td>
<tr>


</table>
    // Initially show content
    document.getElementById("topbarContent").style.display = "block";
</script>

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>