This repository has been archived by the owner on May 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
144 lines (118 loc) · 5.03 KB
/
index.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
<!DOCTYPE html>
<html lang="en-GB">
<head>
<link rel="preload" href="https://fhpwa.github.io/fonts/FiraSansNF.woff2" as="font" type="font/woff2">
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="https://fhpwa.github.io/css/main.css">
<script>
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("/happyshibe/sw.js", { scope: "/happyshibe/" });
}
/* read data from local storage and set css vars*/
let settingData = JSON.parse(localStorage.getItem('com.fredhappyface'));
const rootStyles = document.styleSheets[0].cssRules[0].style;
const darkStyles = document.styleSheets[0].cssRules[1].cssRules[0].style;
rootStyles.setProperty("--text-mod", (settingData.textSize.size ? settingData.textSize.size : "1"))
if (settingData.theme.name !== "auto"){
rootStyles.setProperty("--var-c-primary", (settingData.theme.cPrimary ? settingData.theme.cPrimary : "#FAFAFA"))
rootStyles.setProperty("--var-c-secondary", (settingData.theme.cSecondary ? settingData.theme.cSecondary : "#EAEAEB"))
rootStyles.setProperty("--var-c-text", (settingData.theme.cText ? settingData.theme.cText : "#383A42"))
darkStyles.setProperty("--var-c-primary", (settingData.theme.cPrimary ? settingData.theme.cPrimary : "#181A1F"))
darkStyles.setProperty("--var-c-secondary", (settingData.theme.cSecondary ? settingData.theme.cSecondary : "#282C34"))
darkStyles.setProperty("--var-c-text", (settingData.theme.cText ? settingData.theme.cText : "#ABB2BF"))
rootStyles.setProperty("--var-c-black", (settingData.theme.cBlack ? settingData.theme.cBlack : "0"))
}
</script>
<meta name="Description" content="Author: FredHappyface; Cost: Free">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!--Android app icon-->
<link rel="manifest" href="/happyshibe/manifest.json">
<meta name="theme-color" content="#cda780" />
<!--iOS touch icon-->
<link rel="apple-touch-icon" sizes="180x180" href="images/appicons/square-180.png">
<!--Bookmark, Browser favicon-->
<link rel="icon" type="image/png" sizes="256x256" href="images/appicons/squircle-256.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/appicons/squircle-256.png">
<!--Windows 8, 10 tile -->
<meta name="msapplication-TileColor" content="#cda780">
<meta name="msapplication-TileImage" sizes="150x150" content="images/appicons/square-180.png">
<meta name="msapplication-starturl" content="/happyshibe/">
<!--Title-->
<title>Happy Shibe</title>
</head>
<body>
<div class="section--nav-bar c-app-bar--shibe">
<div class="app-bar">
<div class="section__content">
<div class="left">
<h1>HappyShibe</h1>
</div>
<div class="pair right">
<a href="https://fhpwa.github.io/home/info.html">
<h1></h1>
</a>
<a href="https://fhpwa.github.io/home/settings.html">
<h1></h1>
</a>
</div>
</div>
</div>
</div>
<div class="buffer--app-bar">
</div>
<div id="js-toast" >
<div><p id="js-toast__text" class="c-toast"></p></div>
</div>
<div class="section c-secondary">
<div class="section__content">
<div class="img img--scale left" style="width: 8em;">
<img src="images/page/shiba-inu-wide.jpg" alt="Happy Shibe">
</div>
<h1>Select a doggo</h1>
</div>
</div>
<div class="section c-primary">
<div class="section__content">
<div class="row ">
<div class="icon icon--grid">
<img src="images/page/happyshibe/thumbnails/shibe-0.jpg" onclick="showShibe(0)" alt="Show Shibe 01">
</div>
<div class="icon icon--grid">
<img src="images/page/happyshibe/thumbnails/shibe-1.jpg" onclick="showShibe(1)" alt="Show Shibe 02">
</div>
<div class="icon icon--grid">
<img src="images/page/happyshibe/thumbnails/shibe-2.jpg" onclick="showShibe(2)" alt="Show Shibe 03">
</div>
<div class="icon icon--grid">
<img src="images/page/happyshibe/thumbnails/shibe-3.jpg" onclick="showShibe(3)" alt="Show Shibe 04">
</div>
<div class="icon icon--grid">
<img src="images/page/happyshibe/thumbnails/shibe-4.jpg" onclick="showShibe(4)" alt="Show Shibe 05">
</div>
<div class="icon icon--grid">
<img src="images/page/happyshibe/thumbnails/shibe-5.jpg" onclick="showShibe(5)" alt="Show Shibe 06">
</div>
<div class="icon icon--grid">
<img src="images/page/happyshibe/thumbnails/shibe-6.jpg" onclick="showShibe(6)" alt="Show Shibe 07">
</div>
<div class="icon icon--grid">
<img src="images/page/happyshibe/thumbnails/shibe-7.jpg" onclick="showShibe(7)" alt="Show Shibe 08">
</div>
<div class="icon icon--grid">
<img src="images/page/happyshibe/thumbnails/shibe-8.jpg" onclick="showShibe(8)" alt="Show Shibe 09">
</div>
<div class="icon icon--grid">
<img src="images/page/happyshibe/thumbnails/shibe-9.jpg" onclick="showShibe(9)" alt="Show Shibe 10">
</div>
</div>
</div>
</div>
<div class="section c-secondary">
<div class="section__content">
<div id="js-card" style="width: 100%;"></div>
</div>
</div>
<script src="scripts/happyshibe.js"></script>
<script src="https://fhpwa.github.io/scripts/script.js"></script>
</body>
</html>