-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwishList.html
executable file
·162 lines (132 loc) · 6.21 KB
/
wishList.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="google-site-verification" content="S5miEUSow9wX4fls-vk0Zw6bFLHfwxbYNOIk3omz6JU" />
<meta charset="utf-8">
<meta name="viewport">
<meta name="og:url" content="coffandro.github.io">
<title>Wish List</title>
<meta property="og:title" content="Wish List">
<meta name="description"
content="this is a gift list primarily for my family, I'll update it along the way when I find things">
<meta property="og:description"
content="this is a gift list primarily for my family, I'll update it along the way when I find things">
<link rel="icon" type="image/x-icon" href="/Images/Xicon.svg">
<meta property="og:image" content="/Images/Xicon.svg">
<link rel="stylesheet" href="/css/stylesheet.css">
<link id="nav" rel="stylesheet" href="/css/navbar.css" disabled>
<link id="mnav" rel="stylesheet" href="/css/mnavbar.css" disabled>
<script src="jquery-3.7.1.min.js"></script>
<script id="Font-Awesome" src="https://kit.fontawesome.com/5c072ddc8a.js" crossorigin="anonymous"></script>
<script id="Feather-Icons" src="https://unpkg.com/feather-icons"></script>
</head>
<body>
<!--Navigation bar-->
<div id="nav-placeholder">
</div>
<script>
LoadNavBar = function () {
// loading a different nav bar depending on phone type
if (
navigator.userAgent.match(/Android/i) ||
navigator.userAgent.match(/webOS/i) ||
navigator.userAgent.match(/iPhone/i) ||
navigator.userAgent.match(/iPad/i) ||
navigator.userAgent.match(/iPod/i) ||
navigator.userAgent.match(/BlackBerry/i) ||
navigator.userAgent.match(/Windows Phone/i) ||
window.innerWidth <= 800) {
document.documentElement.classList.toggle("mobile", true);
document.getElementById('mnav').removeAttribute('disabled');
$(function () {
$("#nav-placeholder").load("/mobile-navbar.html");
});
}
// nav bar for touch-screen (mobile) devices
else {
document.documentElement.classList.toggle("mobile", false);
document.getElementById('nav').removeAttribute('disabled');
$(function () {
$("#nav-placeholder").load("/navbar.html");
});
}
};
window.onresize = function () {
LoadNavBar()
};
LoadNavBar()
// nav bar for everything else (desktop)
</script>
<!--end of Navigation bar-->
<div class="content">
<h1 class="en">Wish List</h1>
<h1 class="da">Ønske liste</h1>
<p class="en">this is a gift list, primarily for my family. I'll update it along the way when I find things.</p>
<p class="da">det her er en ønske liste, primært for min familie. jeg opdaterer den hen af vejen imens jeg
finder ting.</p>
</div>
<div id="WishlistHolder" class="content">
<script>
$.getJSON("wishlist.json", function (json) {
Container = document.getElementById("WishlistHolder");
json["wishlist"].forEach(a => {
Details = document.createElement("details");
Details.className = "content";
Summary = document.createElement("summary");
ENTitle = document.createElement("h1");
ENTitle.className = "en";
ENTitle.innerHTML = a["enTitle"];
DATitle = document.createElement("h1");
DATitle.className = "da";
DATitle.innerHTML = a["daTitle"];
Caret = document.createElement("i");
Caret.className = "icon fa fa-caret-down";
Summary.appendChild(ENTitle);
Summary.appendChild(DATitle);
Summary.appendChild(Caret)
Details.appendChild(Summary);
Grid = document.createElement("div");
Grid.className = "grid";
Details.appendChild(Grid);
a["content"].forEach(b => {
link = document.createElement("a");
link.href = b["link"];
Img = document.createElement("img");
Img.width = "50%"
Img.src = b["img"]
link.appendChild(Img)
ENName = document.createElement("p");
ENName.className = "en";
ENNameBold = document.createElement("b");
ENNameBold.innerHTML = b["enName"];
ENNameBold.className = "en";
ENName.appendChild(ENNameBold)
DAName = document.createElement("p");
DAName.className = "da";
DANameBold = document.createElement("b");
DANameBold.innerHTML = b["daName"];
DANameBold.className = "da";
DAName.appendChild(DANameBold);
link.appendChild(ENName);
link.appendChild(DAName);
ENDesc = document.createElement("p");
ENDesc.className = "en";
ENDesc.innerHTML = b["enDesc"];
link.appendChild(ENDesc);
DADesc = document.createElement("p");
DADesc.className = "da";
DADesc.innerHTML = b["daDesc"];
link.appendChild(DADesc);
Grid.appendChild(link);
});
Container.prepend(Details);
});
});
</script>
<p class="en">Other than all of that you are welcome to give me money if you would like or nothing at all, up to
you</p>
<p class="da">Andet end det er i velkommende til at bare give mig penge hvis i har lyst eller ikke noget, up til
jer</p>
</div>
</body>
</html>