-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
91 lines (85 loc) · 3.61 KB
/
index.php
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
<!doctype html>
<html class="no-js" lang="fr">
<head>
<meta charset="UTF-8">
<title>Toodle - Interactive game</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="apple-mobile-web-app-title" content="Full Screen">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="stylesheets/index.css" media="all">
<link rel="apple-touch-icon" sizes="125x125" href="img/iconewebclip.png"> <!-- Icon webclip -->
<link rel="icon" type="image/png" href="img/iconewebclip.png" />
<meta name="apple-mobile-web-app-title" content="Toddle"> <!-- Name webclip -->
</head>
<body class="lock">
<?php
include 'credits.php';
?>
<div class="container">
<div class="cs-loader-inner">
<label> ●</label>
<label> ●</label>
<label> ●</label>
<label> ●</label>
<label> ●</label>
<label> ●</label>
</div>
<div class="content">
<img src="img/logo_toddle.png" alt="toddle" class="logo_toddle" />
<div class="blocBtn">
<div class="btnChoice">
<button type="button" class="lang selected" value="french">FRANÇAIS</button>
<button type="button" class="lang" value="english">ENGLISH</button>
</div>
<button type="button" class="launch" id="startFrench">COMMENCER L'EXPÉRIENCE</button>
</div>
<button id="validLang" class="valide">
<span class="fa-stack ">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-check fa-stack-1x fa-inverse" aria-hidden="true"></i>
</span>
</button>
</div>
<?php
include 'footer.php';
?>
</div>
<script src="js/jquery-3.1.1.min.js"></script>
<script src="js/global.js"></script>
<script type="text/javascript">
$(document).ready(function () {
// Active animation loader
$("label",".cs-loader-inner").addClass("anim");
$(".lang",".blocBtn").on(""+touchOrClick()+"", function() {
if(!$(this).hasClass("selected")){
$(".lang").toggleClass("selected");
}
});
$(".launch", ".content").on(""+touchOrClick()+"", function() {
$(this).animate({
left: "100%",
opacity: 0
}, 700, "linear", function() {
$(this).css("display","none");
$(".btnChoice",".content").css("display","flex");
$(".valide",".content").css("display","inline-block");
$(".btnChoice",".content").animate({
right: "0%",
opacity: 1
});
$(".valide",".content").addClass("active");
});
});
// button launch experience
$("#validLang .fa", ".container").on(""+touchOrClick()+"", function() {
if($(".selected").attr("value") === "french"){
location.href = "fr/name.php";
} else if($(".selected").attr("value") === "english") {
location.href = "en/name.php";
}
});
});
</script>
</body>
</html>