-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.html
More file actions
71 lines (67 loc) · 2.52 KB
/
game.html
File metadata and controls
71 lines (67 loc) · 2.52 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Game</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src = "helperFunction.js"></script>
<script type="text/javascript" src = "Db.js"></script>
<script type="text/javascript" src = "main.js"></script>
</head>
<body>
<div class="continer">
<div class="header">
<div class="player1">
<div class="compTxt">
<label id="player1Name">Mohammad</label>
</div>
<div class="compTxt">
<label id="player1Score">Score 1</label>
</div>
</div>
<div class="timer compTxt">
<label>30 s</label>
</div>
<div class="player2">
<div class="compTxt">
<label id="player2Name">Mohammad</label>
</div>
<div class="compTxt">
<label id="player2Score">Score 1</label>
</div>
</div>
</div>
<div class="questions">
<div class="questionTitle">
<h1 id="questionTitle">Questions 1</h1>
</div>
<div class="questionDesc">
<p id="questionDesc">dsajdfdslfkds fdsfolsdhfsd;phsdfsp; dshfsd;fhdsf ;sdfdhsf;sdf dsfbhsdfjsdf sl;fhsdf;shfds;pf shdf;dsfh sd;fsdhfs;dfh sfsdhfsd;fhdf;sdf hsd;fsdhfsdjfhs fsd;fhs;fsh f;shfs;fhs;shf;shfsl;fhfh;fh. fh hfhfhfhsfh hf</p>
</div>
<div class="answers">
<div id="answer1" class="answer1">
<div><input type="radio" id="A" name="player1"><label for="A"> A. mohammad</label></div>
<div><input type="radio" id="A" name="player1"><label for="A"> B. mohammad</label></div>
<div><input type="radio" id="A" name="player1"><label for="A"> C. mohammad</label></div>
<div><input type="radio" id="A" name="player1"><label for="A"> D. mohammad</label></div>
</div>
<div id="answer2" class="answer2">
<div><input type="radio" id="A" name="player2"><label for="A"> A. mohammad</label></div>
<div><input type="radio" id="A" name="player1"><label for="A"> B. mohammad</label></div>
<div><input type="radio" id="A" name="player1"><label for="A"> C. mohammad</label></div>
<div><input type="radio" id="A" name="player1"><label for="A"> D. mohammad</label></div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var player1Name = $('label#player1Name');
var player2Name = $('label#player2Name');
var player1Score = $('label#player1Score');
var player2Score = $('label#player2Score');
console.log(competitorsDb);
// player1Name.text(competitorsDb.competitor1.info.firstName);
// player2Name.text(competitorsDb.competitor2.info.firstName);
</script>
</body>
</html>