-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (83 loc) · 3.39 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<style type="text/css">
h1 {
font-family: Arial, Helvetica, sans-serif;
color: #F00;
font-size: x-large;
}
p {
font-family: Arial, Helvetica, sans-serif;
color: #000;
font-size: small;
}
body {
background-color: #FFF;
text-align: center;
margin: 0;
padding: 0;
}
#bloctxt {
border-left-width: 5px;
border-left-style: solid;
border-left-color: #F00;
padding-left: 10px;
position: absolute;
left: 50%;
width: 600px;
margin-left: -260px
}
</style>
<head>
<link rel='icon' href='icon.ico' type='image/x-icon'/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!-- Autorise le plein écran sur les mobiles iOS -->
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="HandheldFriendly" content="true" />
<title>PortInkFolio (ver. Dev)</title>
<script>
// Detection des ancien navigateurs qui ne supportent pas l'element Canvas
// Appelle une page par defaut
if (!document.createElement("canvas").getContext) {
window.open("http://www.clickteam.com/fr/html5-fallback", "_self");
}
</script>
<!-- EXTRASOURCES -->
<!-- Charge le code Javascript...-->
<script src="src/Runtime.js"></script>
<script>
// Detecte si le fichier HTML est lance localement
// Vous pouvez enlever ce code dans la version finale
if (window.location.protocol == "file:") {
document.write('<div id="bloctxt">');
document.write("<h1>Impossible de lancer l'application...</h1>");
document.write("<p>Les navigateurs Internet modernes ne vous permettent pas de lancer des pages Web <br>directement a partir de l'ordinateur.<br>");
document.write("Un glisser-deposer d'un fichier HTML ne fonctionnera pas plus, quelle que soit la machine.<br>");
document.write("Utilisez l'option Construire & Lancer pour tester votre application (elle lance un serveur Web local),<br>")
document.write("ou téléchargez votre application sur un serveur Web...</p>");
document.write('</div>');
throw new error("Cannot run application");
}
</script>
</head>
<body>
<div style="display: inline-block; -webkit-user-select: none; text-align: left;">
<canvas id="MMFCanvas" width="1920" height="1080">Votre navigateur ne supporte pas l'element Canvas.</canvas>
</div>
<script>
// RUNTIMESTART
// Endroit ou l'application est effectivement lancee
window.addEventListener("load", windowLoaded, false);
function windowLoaded()
{
// Appelle le runtime
// Premier parametre : le nom de l'element Canvas
// Second parametre : chemin vers le fichier CCH. Les sons et les images doivent se trouver a cote
new Runtime("MMFCanvas", "resources/PortInkFolio.cch");
}
// RUNTIMESTARTEND
</script>
</body>
</html>