-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
179 lines (156 loc) · 7.14 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500&display=swap"
rel="stylesheet" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="assets/style.css" type="text/css" />
<link rel="icon" href="assets/logo.png" type="image/icon type">
<link rel="stylesheet" href="assets/loading.css">
<title>Form time ideas</title>
</head>
<body>
<div class="bg"></div>
<div class="bg bg2"></div>
<div class="bg bg3"></div>
<div class="main" style="display: none;">
<h1 id="title">Form time ideas</h1>
<!-- <div class="content">
<h1>Sliding Diagonals Background Effect</h1>
</div> -->
<div class="main-flex-container">
<div class="left-container flex-container">
<div class="wrapper w-small" id="WordOfDay" data-loaded="false">
<h2>Word of the day</h2>
<p><span id="word-of-day" style="font-size: 1.9rem"></span>
</p>
<div id="def" style="font-size: 1.4rem;"></div>
<div id="def-button-div">
<button id="show-def" onclick="getDef()">Show
definition</button>
</div>
</div>
<div class="wrapper w-small" id="BrainTeaser"
data-loaded="fales">
<h2>Brainteaser</h2>
<p><span id="brainteaser-question"></span></p>
<p><span id="brainteaser-awser"></span></p>
<button id="brainteaser-button" onclick="showAwnser()">Show
awnser</button>
</div>
<!-- ___________________ -->
<div class="wrapper w-small" id="News" data-loaded="fales">
<h2>Top news</h2>
<p><span id="news"></span></p>
</div>
<!-- ___________________ -->
<div class="wrapper w-small" id="NameElement"
data-loaded="fales">
<h2>Name the element</h2>
<p><span id="element-symbol"
style="font-size: 4rem;"></span></p>
<div id="element-awnser" style="font-size: 2rem;"></div>
<button id="element-button" onclick="showElement()">Show
element</button>
</div>
</div>
<div class="middle-container flex-container">
<div class="wrapper w-large" id="ThisDayInHistory"
data-loaded="fales">
<h2>This day in history</h2>
<h3>On this day in: <span id="history-date"></span></h3>
<p><span id="history"></span></p>
</div>
<div class="wrapper w-large" id="WhereInTheWorld"
data-loaded="fales">
<h2>Where in the world</h2>
<p>Can you guess the country (or state)?</p>
<div id="country"></div>
<div id="countryShow">
</div>
<button id="country-button" onclick="showCountry()">Show
countey</button>
</div>
<div class="wrapper w-large" id="RandomQuote"
data-loaded="fales">
<h2>Random Quote</h2>
<p>Quote: <span id="quote"></span></p>
<button onclick="newQuote()">New quote</button>
</div>
<div class="wrapper w-large" id="GuessTheFilm">
<h2>Guess the film</h2>
<p>Can you guess the film?</p>
<div id="film"></div>
<div id="filmShow"></div>
<button id="film-button" onclick="showFilm()">Show
film</button>
</div>
</div>
<div class="right-container flex-container">
<div class="wrapper w-small" id="JokeOfDay" data-loaded="false">
<h2>Joke of the day</h2>
<p><span id="joke"></span></p>
<div id="joke-awnser"></div>
<div id="joke-button-div"></div>
</div>
<div class="wrapper w-small" id="DidYouKnow"
data-loaded="false">
<h2>Did you know?</h2>
<p id="did-you-know"></p>
<button id="DYK-button" onclick="newFact()">New
fact</button>
</div>
<div class="wrapper w-small" id="MentalMaths"
data-loaded="false">
<h2>Mental Maths</h2>
<p>Question: <span id="maths-question"></span></p>
<div id="answer">
</div>
<button id="maths-button"
onclick="showAnswer()">Awnser</button>
</div>
<div class="wrapper w-small" id="WordScramble"
data-loaded="false">
<h2>Word scramble</h2>
<p>Unscramble the word: <span id="scramble-word"></span></p>
<span id="scramble-awnser"></span>
<button id="scramble-button" onclick="showScramble()">Show
awnser</button>
</div>
</div>
</div>
</div>
<div class="loader" style="display: block;">
<div id="readyLoader" style="font-size: 2rem;">
</div>
</div>
<script type="module">
// Import the functions you need from the SDKs you need
import {initializeApp} from "https://www.gstatic.com/firebasejs/10.7.0/firebase-app.js";
import {getAnalytics} from "https://www.gstatic.com/firebasejs/10.7.0/firebase-analytics.js";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyCA_s47XuJ48c3ZYcuQw7MiLuC_LcqdI84",
authDomain: "formtime-577f3.firebaseapp.com",
projectId: "formtime-577f3",
storageBucket: "formtime-577f3.appspot.com",
messagingSenderId: "492950906925",
appId: "1:492950906925:web:c092da17705a5eedb030a4",
measurementId: "G-5GDKKGWK5J"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);
</script>
<script src="assets/script.js"></script>
<script src="assets/loading.js"></script>
</body>
</html>