-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGenerator.html
111 lines (95 loc) · 4.03 KB
/
Generator.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
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Paper Generator</title>
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
<!--<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">-->
<script src="//cdnjs.cloudflare.com/ajax/libs/mobile-detect/1.4.1/mobile-detect.min.js"></script>
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-118781709-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-118781709-1');
</script>
<script type="text/javascript">
if ( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
window.alert("Currently, this site only works on desktop :(")
}
</script>
</head>
<body>
<div class="container-fluid" id="lead">
<div class="row">
<h1 class="display-3" id="leadText">Paper Generator</h1>
<p id="leadDescription">by <img src="logo.png" alt="Enlite" id="leadImage"></p>
</div>
</div>
<div class="container-fluid" id="options">
<div class="row" id="generation-line">
<h2 class="top-text text-before-button">Generate a</h2>
<div class="select-style text-before-button">
<select name="subject" id="selectSubject">
<option value="Biology">Biology</option>
<option value="Chemistry">Chemistry</option>
<option value="Physics">Physics</option>
<option value="Economics">Economics</option>
</select>
</div>
<h2 class="top-text text-before-button">paper, with</h2>
<div class="select-style text-before-button" id="number-select">
<select name="number" id="selectNumber" >
<option value="5">5</option>
<option value="10">10</option>
<option value="15">15</option>
<option value="20">20</option>
<option value="25">25</option>
<option value="30">30</option>
</select>
</div>
<h2 class="top-text text-before-button">questions</h2>
<button onClick="randomiseQuestion()" class="button" id="generate-button">Generate</button>
<ul id="answers-list">
<li><button onClick="toggleAnswers();" id="toggle-button" class="button answer-buttons">Show Answers</button></li>
<!-- <li>Rounded switch <h3>Show Answers</h3>
<label class="switch">
<input type="checkbox">
<span class="slider round"></span>
</label></li>-->
</ul>
</div>
</div>
<div id="loader" style="display: none;"></div>
<div class="container" id="questions">
<div class="row">
<table width="80%" id="table" style="border-collapse:separate;">
</table>
<div id="placeholder-text">
<h3>Generate some questions</h3>
</div>
</div>
</div>
<script src="https://www.gstatic.com/firebasejs/4.13.0/firebase.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.13.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.13.0/firebase-storage.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.13.0/firebase-database.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyDUonM4xeVpbV2nWSV3RzMCdXtA8eeiDls",
authDomain: "igcse-topic-selector.firebaseapp.com",
databaseURL: "https://igcse-topic-selector.firebaseio.com",
projectId: "igcse-topic-selector",
storageBucket: "igcse-topic-selector.appspot.com",
messagingSenderId: "977671931749"
};
firebase.initializeApp(config);
</script>
<script type="text/javascript" src="question-generator.js"></script>
</body>
</html>