-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.html
150 lines (122 loc) · 5.68 KB
/
main.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
<html>
<head>
<link rel="shortcut icon" type="image/x-icon" href="icon.ico" />
<title>Lyrics Game</title>
<link rel="stylesheet" href="static/styles.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap" rel="stylesheet">
<script src="scripts/app.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
</head>
<!--<body style="background-image: linear-gradient(to top, #181717 0%, black 100%);;">-->
<body style="background-color: #d0ac8c;">
<script>
$(document).ready(function(){
$.getJSON("lyrics.json", function(data){
lyrics=data;
}).fail(function(){
console.log("An error has occurred.");
});
});
</script>
<div class="sidenav">
<div>
<b style="font-size: 30;color:aliceblue ;" >Lyrics Game</b>
<br>
<br>
<span style="font-family:'Lato', sans-serif;font-size: 25; color: aliceblue;" >Choose your Artist</span>
<center>
<br>
<select name="Artists" id="artists" onchange="newGame()">
<option value="Choose" selected>Select</option>
<option value="All Artists" >All Artists</option>
<option value="Justin Bieber">Justin Bieber</option>
<option value="Adele">Adele</option>
<option value="Drake">Drake</option>
<option value="The Weeknd">The Weeknd</option>
<option value="Ariana Grande">Ariana Grande</option>
<option value="Ed Sheeran">Ed Sheeran</option>
<option value="Coldplay">Coldplay</option>
<option value="Miley Cyrus">Miley Cyrus</option>
<option value="Backstreet Boys">Backstreet Boys</option>
<option value="Eminem">Eminem</option>
<option value="21 Savage">21 Savage</option>
<option value="Linkin Park">Linkin Park</option>
<option value="21 Pilots">21 Pilots</option>
<option value="Kanye West">Kanye West</option>
<option value="Taylor Swift">Taylor Swift</option>
</select>
<p style="font-family:'Lato', sans-serif;font-size: 25; color: aliceblue;" id="alert"></p>
<div class="social">
<a target="_blank" href="https://github.com/karynaur/lyrics-game">
<img style="padding-right: 30px;" width="30px" height="30px" src="images/git.png" alt="github">
</a>
<a target="_blank" href="https://www.linkedin.com/in/adityasrinivasmenon/">
<img style="padding-right: 30px;" width="30px" height="30px" src="images/linkedin.png" alt="linkedin">
</a>
<a target="_blank" href="https://twitter.com/MenonSrinivas">
<img width="30px" height="30px" src="images/twitter.png" alt="twitter">
</a>
</div>
</center>
</div>
</div>
<!-- Page content -->
<div class="main">
<div class="flex-ccontainer">
<b style="font-size: 30;" >Distinguish Real song lyrics from fake ones generated by a fine tuned GPT-2</b>
<label class="label">
<div class="label-text">toggle dark mode</div>
<div class="toggle">
<input class="toggle-state" type="checkbox" id="check" onclick="mode()"/>
<div class="indicator"></div>
</div></label>
<br><br>
</div>
<div class="flex-container">
<div class="flex-child magenta">
<b><font size="5">Lyrics:</font></b>
<p id="lyrics"></p>
</div>
<div class="flex-child green">
<b><font size="5">Your Choice:</font></b>
<br><br><br><br>
<center>
<button id="button" value="real" onclick="scoreReal()">Real</button>
<br><br>
<button id="button" value="fake" onclick="scoreFake()">Fake</button>
<br><br>
</center>
</div>
<div class="flex-child fuschia">
<div class="flex-child-border">
<b><font size="5">Score</font></b><br>
<center>
<p style="font-size: 40;" id="score">0</p>
</center></div>
<div class="flex-child-noborder">
<b><font size="5">Attempted</font></b><br>
<center>
<p style="font-size: 40;" id="attempt">0</p>
</center></div>
</div>
</div>
<br>
<div class="flex-container">
<center>
<button id="button" onclick="newGame()">New Game</button>
</center>
</div>
<div class="flex-container">
<p style="font-size: 20;font-weight: bold;" id="text">
The text consists of both real lyrics and fake ones generated by a fine-tuned GPT-2. You have to guess if the one displayed is Real
or fake.
</p><br>
</div>
<div class="flex-container">
<p style="font-size: 20;font-weight: bold;" id="accuracy"></p>
</div>
</div>
<script src="scripts/app.js"></script>
</body>
</html>