forked from devcon2017/devcon2017.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
start.html
231 lines (207 loc) · 6.63 KB
/
start.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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>WordDuniya Game</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-store" />
<meta http-equiv="pragma" content="no-cache" />
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<title>Speak 2 Word-Dhuniya</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">
<style type="text/css">
.parti{font-family:arial, helvetica; text-align:center;display:block;position:absolute; color:white!important; font-size: 1.25em !important; position: relative; font-weight: 600;}
.textalignData{
padding-top: : 10px !important;
}
.bodyGradient{
background: #1c92d2; /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #f2fcfe, #1c92d2); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #f2fcfe, #1c92d2); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
height:100vh;
}
.c0 {
background:#5649dc!important;
opacity: 0.7
}
.c1 {
background:#18a799 !important;
opacity: 0.7
}
.c2{
background:#f32323 !important;
opacity: 0.7
}
.c3{
opacity: 0.7
}
.g0{
height:66px !important;
width:66px !important;
border-radius: 33px !important;
}
.g1{
height:78px !important;
width:78px !important;
border-radius: 39px !important;
}
.g2{
height:88px !important;
width:88px !important;
border-radius: 44px !important;
}
.g3{
height:98px !important;
width:98px !important;
border-radius: 49px !important;
}
.g4{
height:108px !important;
width:108px !important;
border-radius: 54px !important;
}
.w3-container{
z-index:9999!important;
position: absolute;
}
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
max-width: 300px;
margin: auto;
text-align: center;
font-family: arial;
}
.test{
position: absolute;
z-index: 99999 !important;
}
.title {
color: grey;
font-size: 18px;
}
.margin-top-10 {
margin-top: 10px !important;
}
.margin-top-30 {
margin-top: 30vh !important;
}
.cardLeftmargin-34 {
left: 15% !important;
}
.cardHeadingTxt{
font-size: 16px;
color: #ffffff;
font-weight: bold !important;
}
.card-panel {
background-color: rgba(0,0,0,0.1) !important;
}
.btn, .btn-large {
font-size: 16px !important;
text-decoration: none;
color: #fff;
background-color: #7cd7ce !important;
text-align: center;
letter-spacing: .5px;
-webkit-transition: .2s ease-out;
transition: .2s ease-out;
cursor: pointer;
font-weight: bold !important;
}
</style>
<script src="./js/jquery-1.7.2.min.js"></script>
<script src="./js/jquery.moving-bubble.js"></script>
<script type="text/javascript">
var hel = Array('अ','उ','ई','ऋ','ಅ','ಐ','ಈ','ಋ','అ','ఐ','ఈ','ఓ');
localStorage.removeItem("language_code");
$(document).ready(function (e) {
//Add random divs as sample....
//Change numberOfDivs if you want
var numberOfDivs = 60;
// add x number of divs to page.
for (var i = 0; i < numberOfDivs; i++) {
var g = Math.floor(Math.random() * 5);
var c = Math.floor(Math.random() * 4);
//Create div with class c0/c3 (color) and g0/g4 (size)
var p = $('<div/>').addClass('c' + c).addClass('g' + g).addClass('parti');
var r = Math.floor(Math.random() * 12);
$(p).html("<p class='textalignData'>"+hel[r]+"</p>");
//Add object to body
$('body').append(p);
}
//This is where the magic happends!!!
//Add css set to none because I added display:block;position:absolute; to the css.
$('.parti').movingBubble({ addCss: true });
});
var activity = 1;
function selectActivity(choice) {
if (choice == 1)
activity = 1;
else
activity = 2;
$('#langSelectionDiv').show();
}
function next(language_code, language_name) {
console.log("language: "+language_code);
localStorage["language_code"] = language_code;
$("#language").text(language_name);
}
function goToComplexityMeasures() {
var form = document.createElement("form");
$(document.body).append(form);
form.setAttribute("id", "myForm");
form.setAttribute('method',"get");
form.setAttribute('action',"final.html");
form.submit();
}
function goToWordGame() {
var form = document.createElement("form");
$(document.body).append(form);
form.setAttribute("id", "myForm");
form.setAttribute('method',"get");
form.setAttribute('action',"wordGame/final.html");
form.submit();
}
</script>
</head>
<body class="bodyGradient">
<div class="row card-panel margin-top-30 test cardLeftmargin-34">
<div id="langSelectionDiv" class="col s12" >
<div class="" style="text-align: center;">
<div class="row">
<div class="col s10 offset-s1" >
<span class="cardHeadingTxt">Select a language
</span>
<ul id = "dropdown" class = "dropdown-content">
<li><a href = "#" onclick="next('kn-IN','Kannada')">Kannada</a></li>
<li><a href = "#!" onclick="next('te-IN','Telugu')">Telugu</a></li>
<li><a href = "#" onclick="next('hi-IN','हिन्दी - Hindi')">हिन्दी - Hindi</a></li>
</ul>
</div>
</div>
<div class="row margin-top-10">
<div class="col s10 offset-s1" >
<a id='language' class = "btn dropdown-button" href = "#" data-activates = "dropdown">Languages
<i class = "mdi-navigation-arrow-drop-down right"></i>
</a>
</div>
</div>
</div>
</div>
<div class="col s12">
<div class="row">
<div class="col s6" style="text-align: center;">
<a class = "btn dropdown-button" href="#" onclick="goToComplexityMeasures()">Check Text Complexity</a>
</div>
<div class="col s6" style="text-align: center;">
<a class = "btn dropdown-button" href="#" onclick="goToWordGame()">Take Language Test</a>
</div>
</div>
</div>
</div>
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
</body>
</html>