Skip to content

Commit f622e82

Browse files
committed
Dropdown is now templated
1 parent ce4b47e commit f622e82

File tree

7 files changed

+66
-272
lines changed

7 files changed

+66
-272
lines changed

404.html

Lines changed: 0 additions & 100 deletions
This file was deleted.

attributions/index.html

Lines changed: 4 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -88,51 +88,12 @@
8888

8989
<div class="dropDownContainer closed">
9090
<div class="dropDown">
91-
<div style="margin-top: 8px; margin-left: 15px; line-height: 2; font-size: 16pt; filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.3)); height: 100%;">
92-
<span class="dropDownItems" onclick="window.location.href='/index.html';">
93-
<img src="/img/gui/home.png" alt="Home">Home
94-
<img src="/img/gui/expfull.png" class="expImage" data-full="/img/gui/expfull.png" alt="Expand">
95-
</span>
96-
<img src="/img/gui/exp.png" style="position: absolute;">
97-
<span class="dropDownItems" onclick="window.location.href='/unistore/index.html';">
98-
<img src="/img/gui/unistore.png" style="position: relative; bottom: 1px;">Unistore
99-
<img src="/img/gui/expfull.png" class="expImage" data-full="/img/gui/expfull.png">
100-
</span>
101-
<img src="/img/gui/exp.png" style="position: absolute;">
102-
<span class="dropDownItems" onclick="window.location.href='/mods/index.html';">
103-
<img src="/img/gui/mods.png" style="position: relative; bottom: 1px;">Mods
104-
<img src="/img/gui/expfull.png" class="expImage" data-full="/img/gui/expfull.png">
105-
</span>
106-
<img src="/img/gui/exp.png" style="position: absolute;">
107-
<span class="dropDownItems" onclick="window.location.href='404.html';">
108-
<img src="/img/gui/tools.png">Tools
109-
<img src="/img/gui/expfull.png" class="expImage" data-full="/img/gui/expfull.png">
110-
</span>
111-
<img src="/img/gui/exp.png" style="position: absolute;">
112-
<span class="dropDownItems" onclick="window.location.href='404.html';">
113-
<img src="/img/gui/tutorials.png" style="position: relative; right: 1px;">Tutorials
114-
<img src="/img/gui/expfull.png" class="expImage" data-full="/img/gui/expfull.png">
115-
</span>
116-
<img src="/img/gui/exp.png" style="position: absolute;">
117-
<span class="dropDownItems" onclick="window.location.href='404.html';">
118-
<img src="/img/gui/faqs.png" style="position: relative; bottom: 1px;">FAQs
119-
<img src="/img/gui/expfull.png" class="expImage" data-full="/img/gui/expfull.png">
120-
</span>
121-
<img src="/img/gui/exp.png" style="position: absolute;">
122-
<div class="dropDownLinks">
123-
<img src="/img/links/github.png" style="position: absolute; right: 12px; bottom: 196px; width: 24px;" onclick="window.location.href='https://github.com/Minecraft-3DS-Community';">
124-
<img src="/img/links/speedrun.png" style="position: absolute; right: 10px; bottom: 160px; width: 28px;" onclick="window.location.href='https://www.speedrun.com/mc3ds';">
125-
<img src="/img/links/twitter.png" style="position: absolute; right: 12px; bottom: 130px; width: 23px;" onclick="window.location.href='https://x.com/minecraft3ds_';">
126-
<img src="/img/links/reddit.png" style="position: absolute; right: 13px; bottom: 93px; width: 23px;" onclick="window.location.href='https://www.reddit.com/r/Minecraft3DS/';">
127-
<img src="/img/links/discord.png" style="position: absolute; right: 10px; bottom: 55px; width: 30px;" onclick="window.location.href='https://discord.com/invite/PcfekvmjSw';">
128-
<img src="/img/links/dev.png" style="position: absolute; right: 12px; bottom: 26px; width: 25px;" onclick="window.location.href='/attributions/index.html';">
129-
</div>
130-
</div>
91+
<div id="dropDownContent"></div>
13192
</div>
13293
<div class="dropDownButton" id="dropDownToggle">
13394
<img src="/img/gui/arrow.png" style="width: 32px;" id="dropDownArrow">
13495
</div>
135-
</div>
96+
</div>
13697

13798
<script src="/scripts/main/dropdown.js"></script>
13899
<script src="/scripts/main/vines.js"></script>
@@ -218,6 +179,8 @@
218179

219180
</div>
220181
</div>
182+
183+
<script src="/scripts/main/header.js"></script>
221184

222185
</body>
223186
</html>

index.html

Lines changed: 7 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -47,51 +47,12 @@
4747

4848

4949
<div class="dropDownContainer closed">
50-
<div class="dropDown">
51-
<div style="margin-top: 8px; margin-left: 15px; line-height: 2; font-size: 16pt; filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.3)); height: 100%;">
52-
<span class="dropDownItems" onclick="window.location.href='/index.html';">
53-
<img src="img/gui/home.png" alt="Home">Home
54-
<img src="img/gui/expfull.png" class="expImage" data-full="img/gui/expfull.png" alt="Expand">
55-
</span>
56-
<img src="img/gui/exp.png" style="position: absolute;">
57-
<span class="dropDownItems" onclick="window.location.href='/unistore/index.html';">
58-
<img src="img/gui/unistore.png" style="position: relative; bottom: 1px;">Unistore
59-
<img src="img/gui/expfull.png" class="expImage" data-full="img/gui/expfull.png">
60-
</span>
61-
<img src="img/gui/exp.png" style="position: absolute;">
62-
<span class="dropDownItems" onclick="window.location.href='/mods/index.html';">
63-
<img src="img/gui/mods.png" style="position: relative; bottom: 1px;">Mods
64-
<img src="img/gui/expfull.png" class="expImage" data-full="img/gui/expfull.png">
65-
</span>
66-
<img src="img/gui/exp.png" style="position: absolute;">
67-
<span class="dropDownItems" onclick="window.location.href='404.html';">
68-
<img src="img/gui/tools.png">Tools
69-
<img src="img/gui/expfull.png" class="expImage" data-full="img/gui/expfull.png">
70-
</span>
71-
<img src="img/gui/exp.png" style="position: absolute;">
72-
<span class="dropDownItems" onclick="window.location.href='404.html';">
73-
<img src="img/gui/tutorials.png" style="position: relative; right: 1px;">Tutorials
74-
<img src="img/gui/expfull.png" class="expImage" data-full="img/gui/expfull.png">
75-
</span>
76-
<img src="img/gui/exp.png" style="position: absolute;">
77-
<span class="dropDownItems" onclick="window.location.href='404.html';">
78-
<img src="img/gui/faqs.png" style="position: relative; bottom: 1px;">FAQs
79-
<img src="img/gui/expfull.png" class="expImage" data-full="img/gui/expfull.png">
80-
</span>
81-
<img src="img/gui/exp.png" style="position: absolute;">
82-
<div class="dropDownLinks">
83-
<img src="img/links/github.png" style="position: absolute; right: 12px; bottom: 196px; width: 24px;" onclick="window.location.href='https://github.com/Minecraft-3DS-Community';">
84-
<img src="img/links/speedrun.png" style="position: absolute; right: 10px; bottom: 160px; width: 28px;" onclick="window.location.href='https://www.speedrun.com/mc3ds';">
85-
<img src="img/links/twitter.png" style="position: absolute; right: 12px; bottom: 130px; width: 23px;" onclick="window.location.href='https://x.com/minecraft3ds_';">
86-
<img src="img/links/reddit.png" style="position: absolute; right: 13px; bottom: 93px; width: 23px;" onclick="window.location.href='https://www.reddit.com/r/Minecraft3DS/';">
87-
<img src="img/links/discord.png" style="position: absolute; right: 10px; bottom: 55px; width: 30px;" onclick="window.location.href='https://discord.com/invite/PcfekvmjSw';">
88-
<img src="img/links/dev.png" style="position: absolute; right: 12px; bottom: 26px; width: 25px;" onclick="window.location.href='/attributions/index.html';">
89-
</div>
90-
</div>
91-
</div>
92-
<div class="dropDownButton" id="dropDownToggle">
93-
<img src="img/gui/arrow.png" style="width: 32px;" id="dropDownArrow">
94-
</div>
50+
<div class="dropDown">
51+
<div id="dropDownContent"></div>
52+
</div>
53+
<div class="dropDownButton" id="dropDownToggle">
54+
<img src="/img/gui/arrow.png" style="width: 32px;" id="dropDownArrow">
55+
</div>
9556
</div>
9657

9758
<div class="text-container">
@@ -402,6 +363,7 @@ <h2 id="entry-1-23-10-2024-">Entry 1 (23-10-2024)</h2>
402363
<script src="scripts/main/nodetails.js"></script>
403364
<script src="scripts/main/vines.js"></script>
404365
<script src="scripts/main/sidebarfit.js"></script>
366+
<script src="/scripts/main/header.js"></script>
405367

406368
</body>
407369
<div class="copyrightDiv" style="position: fixed; bottom: 0; background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url(img/bg/dirt.png); background-size: 32px; image-rendering: pixelated; width: 100%; left: 0; text-align: center; z-index: 100; font-family: 'Minecraft Regular'; font-size: 13pt; color: rgba(255, 255, 255, 0.9); height: 25px;">

mods/index.html

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -224,51 +224,12 @@
224224

225225
<div class="dropDownContainer closed">
226226
<div class="dropDown">
227-
<div style="margin-top: 8px; margin-left: 15px; line-height: 2; font-size: 16pt; filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.3)); height: 100%;">
228-
<span class="dropDownItems" onclick="window.location.href='/index.html';">
229-
<img src="/img/gui/home.png" alt="Home">Home
230-
<img src="/img/gui/expfull.png" class="expImage" data-full="/img/gui/expfull.png" alt="Expand">
231-
</span>
232-
<img src="/img/gui/exp.png" style="position: absolute;">
233-
<span class="dropDownItems" onclick="window.location.href='/unistore/index.html';">
234-
<img src="/img/gui/unistore.png" style="position: relative; bottom: 1px;">Unistore
235-
<img src="/img/gui/expfull.png" class="expImage" data-full="/img/gui/expfull.png">
236-
</span>
237-
<img src="/img/gui/exp.png" style="position: absolute;">
238-
<span class="dropDownItems" onclick="window.location.href='/mods/index.html';">
239-
<img src="/img/gui/mods.png" style="position: relative; bottom: 1px;">Mods
240-
<img src="/img/gui/expfull.png" class="expImage" data-full="/img/gui/expfull.png">
241-
</span>
242-
<img src="/img/gui/exp.png" style="position: absolute;">
243-
<span class="dropDownItems" onclick="window.location.href='404.html';">
244-
<img src="/img/gui/tools.png">Tools
245-
<img src="/img/gui/expfull.png" class="expImage" data-full="/img/gui/expfull.png">
246-
</span>
247-
<img src="/img/gui/exp.png" style="position: absolute;">
248-
<span class="dropDownItems" onclick="window.location.href='404.html';">
249-
<img src="/img/gui/tutorials.png" style="position: relative; right: 1px;">Tutorials
250-
<img src="/img/gui/expfull.png" class="expImage" data-full="/img/gui/expfull.png">
251-
</span>
252-
<img src="/img/gui/exp.png" style="position: absolute;">
253-
<span class="dropDownItems" onclick="window.location.href='404.html';">
254-
<img src="/img/gui/faqs.png" style="position: relative; bottom: 1px;">FAQs
255-
<img src="/img/gui/expfull.png" class="expImage" data-full="/img/gui/expfull.png">
256-
</span>
257-
<img src="/img/gui/exp.png" style="position: absolute;">
258-
<div class="dropDownLinks">
259-
<img src="/img/links/github.png" style="position: absolute; right: 12px; bottom: 196px; width: 24px;" onclick="window.location.href='https://github.com/Minecraft-3DS-Community';">
260-
<img src="/img/links/speedrun.png" style="position: absolute; right: 10px; bottom: 160px; width: 28px;" onclick="window.location.href='https://www.speedrun.com/mc3ds';">
261-
<img src="/img/links/twitter.png" style="position: absolute; right: 12px; bottom: 130px; width: 23px;" onclick="window.location.href='https://x.com/minecraft3ds_';">
262-
<img src="/img/links/reddit.png" style="position: absolute; right: 13px; bottom: 93px; width: 23px;" onclick="window.location.href='https://www.reddit.com/r/Minecraft3DS/';">
263-
<img src="/img/links/discord.png" style="position: absolute; right: 10px; bottom: 55px; width: 30px;" onclick="window.location.href='https://discord.com/invite/PcfekvmjSw';">
264-
<img src="/img/links/dev.png" style="position: absolute; right: 12px; bottom: 26px; width: 25px;" onclick="window.location.href='/attributions/index.html';">
265-
</div>
266-
</div>
227+
<div id="dropDownContent"></div>
267228
</div>
268229
<div class="dropDownButton" id="dropDownToggle">
269230
<img src="/img/gui/arrow.png" style="width: 32px;" id="dropDownArrow">
270231
</div>
271-
</div>
232+
</div>
272233

273234
<div style="width: 100%; height: 6.5em; background: linear-gradient(rgba(104, 40, 40, 0.4), rgba(203, 119, 119, 0.1)), url(/img/bg/chiseled_quartz_block_top.png); background-size: 32px; image-rendering: pixelated;">
274235

@@ -1852,6 +1813,7 @@
18521813
<script src="/scripts/webunistore/layoutfix.js"></script>
18531814
<script src="/scripts/webunistore/search.js"></script>
18541815
<script src="/scripts/webunistore/webkitmobile.js"></script>
1816+
<script src="/scripts/main/header.js"></script>
18551817

18561818
</body>
18571819
</html>

0 commit comments

Comments
 (0)