-
Notifications
You must be signed in to change notification settings - Fork 0
/
calcul.html
151 lines (130 loc) · 5.6 KB
/
calcul.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Calcul Mental - French International School Hong Kong</title>
<!-- Favicons -->
<link rel="icon" type="image/png" href="img/favicon.png" />
<script type="text/javascript" src="js/library/object.js"></script>
<script type="text/javascript" src="js/config/user-settings.js"></script>
<script type="text/javascript" src="js/config/system-settings.js"></script>
<script type="text/javascript" src="js/jquery/jquery-1.js"></script>
<script type="text/javascript" src="js/jquery/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="css/layout.css">
<!-- Bootstrap -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
$(document).ready(function()
{
var IsLoadMaths; var IsLoadInput; var IsLoadLayout; var IsLoadTimer; var IsLoadDictionnary; var IsLoadAction;
IsLoadMaths = IsLoadInput = IsLoadLayout = IsLoadTimer = IsLoadDictionnary = IsLoadAction = false;
function StartGameOnceLoad()
{
if(IsLoadMaths && IsLoadInput && IsLoadLayout && IsLoadTimer && IsLoadDictionnary && IsLoadAction)
{
Run({'mode':'step1'});
}else
{
$('#box-message').html('loading');
}
}
//loading library that are using jquery
$.getScript('js/library/maths.lib.js?' + new Date().getTime(), function() { IsLoadMaths=true; StartGameOnceLoad(); });
$.getScript('js/library/input.lib.js?' + new Date().getTime(), function() { IsLoadInput=true; StartGameOnceLoad(); });
$.getScript('js/library/layout.lib.js?' + new Date().getTime(), function() { IsLoadLayout=true; StartGameOnceLoad(); });
$.getScript('js/config/timer-settings.js?' + new Date().getTime(), function() { IsLoadTimer=true;StartGameOnceLoad(); });
$.getScript('js/translation/dictionnary.fr.js?' + new Date().getTime(), function() { IsLoadDictionnary=true; StartGameOnceLoad(); });
$.getScript('js/library/action.lib.js?' + new Date().getTime(), function() {IsLoadAction=true; StartGameOnceLoad(); });
});
/*
@ todo check french characteer ok
add key ok
first letter capital ok (done for name, to be done in step 2)
close answer window button ok
name player too long? ok
check 2 player same name ok
multiplayer: reset score after game? yes
improve design and + window answer
add comment to object lib and input lib
add button instead of drop down for level
success game approx
option editer score pour mode multi partie
bouton nouvelle partie tout le temps
selection du joeur seul par defaut dans fenetre reponse ok
reply for division worng
*/
</script>
</head>
<body>
<div id="menu"></div>
<div class="container">
<div class="row">
<div class="col-md-4"><img src="http://www.fis.edu.hk/images/web2/logoflower.png" height="80px"></div>
<div class="col-md-4 text-center">
<br />
<img src="img/logo_mccmt.png">
</div>
<div class="col-md-4 text-right"><img src="img/logo-aefe.jpg" width="90px"></div>
</div>
<div id="box-message" class="error"></div>
<div id="header" class="title1"></div>
<div class="row">
<div id="body"></div>
</div>
<div class="row">
<div id="footer"></div>
</div>
<div style="display: none;" id="flag-langage">
<button onClick="LT_ChangeLangage('fr');" class="language-flag">
<img src="img/fr.jpg"></button><button onClick="LT_ChangeLangage('en');" class="language-flag"><img src="img/us-en.jpg">
</button>
</div>
</div>
<!-- Popup window for answering -->
<div id="box-popup"></div>
<!-- System data - these inputs are not used anymore, changed to variable -->
<div id="div-system">
<!-- current level played -->
<input id="system_level" type="hidden">
<!-- number of player of current game -->
<input id="system_number_player" type="hidden">
<!-- current question index in level question array -->
<input id="system_round" type="hidden">
<!-- current question answer -->
<input id="system_result" type="hidden">
<!-- flag telling if a question is currently active and open for answer -->
<input id="system_active_question" value="1" type="hidden">
<!-- flag telling if game is win -->
<input id="system_game_win" type="hidden">
<input id="system_game_mode" type="hidden">
</div>
<div style="display: none;" id="box-win"></div>
<div id="log"></div>
<script type="text/javascript">
function saisie(val){
document.forms["virtual"]["text"].value += val;
$(document).one(Run({'mode':'answer'}));
}
function back(){
value = document.forms["virtual"]["text"].value;
newvalue = value.substring(0, value.length - 1);
document.forms["virtual"]["text"].value = newvalue;
}
function reset(){
document.forms["virtual"]["text"].value = "";
}
</script>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>-->
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="bootstrap/js/bootstrap.min.js"></script>
</body>
</html>