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
134 lines (105 loc) · 4.57 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
<!DOCTYPE html>
<html lang="en-GB">
<head>
<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("/home/sw.js", { scope: "/home/" });
}
/* 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"))
}
// set icon shape
rootStyles.setProperty("--var-icon-top-left", (settingData.iconShape.iconTopLeft ? settingData.iconShape.iconTopLeft : "50%"))
rootStyles.setProperty("--var-icon-top-right", (settingData.iconShape.iconTopRight ? settingData.iconShape.iconTopRight : "50%"))
rootStyles.setProperty("--var-icon-bottom-left", (settingData.iconShape.iconBottomLeft ? settingData.iconShape.iconBottomLeft : "50%"))
rootStyles.setProperty("--var-icon-bottom-right", (settingData.iconShape.iconBottomRight ? settingData.iconShape.iconBottomRight : "50%"))
</script>
<meta name="Description" content="Author: FredHappyface; Category: Cryptography,
Proof of concept; Cost: Free">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!--Android app icon-->
<link rel="manifest" href="/home/manifest.json">
<meta name="theme-color" content="#5270ff" />
<!--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="#5270ff">
<meta name="msapplication-TileImage" sizes="150x150" content="images/appicons/square-180.png">
<meta name="msapplication-starturl" content="/home/">
<!--Title-->
<title>FredHappyface App Launcher </title>
</head>
<body>
<div class="section--app-bar c-app-bar--home">
<div class="app-bar">
<div class="section__content">
<div class="left">
<h1>FredHappyface</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: 4.5em;">
<img src="images/appicons/squircle-256.png" alt="App Launcher">
</div>
<h1>App Launcher</h1>
</div>
</div>
<div class="section c-primary">
<div class="section__content">
<div class="row ">
<div class="icon icon--pwa">
<a href="https://fhpwa.github.io/blackc4t/"><img src="images/page/blackc4t.png"
alt="BlackC4t"></a>
</div>
<div class="icon icon--pwa">
<a href="https://fhpwa.github.io/happyshibe/"><img src="images/page/happyshibe.png"
alt="Happy Shibe"></a>
</div>
<div class="icon icon--pwa">
<a href="https://fhpwa.github.io/brainf/"><img src="images/page/brainf.png"
alt="Brainf"></a>
</div>
<div class="icon icon--pwa">
<a href="https://fhpwa.github.io/passwordgen/"><img src="images/page/passwordgen.png"
alt="Password Gen"></a>
</div>
</div>
</div>
</div>
<script src="https://fhpwa.github.io/scripts/script.js"></script>
</body>
</html>