forked from Clover-Lindo/lindo-game-base
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
93 lines (85 loc) · 2.92 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
<!DOCTYPE HTML>
<html lang="fr">
<head>
<script>
// Touch fix
window.ontouchstart = function(e) {};
// Init
window.buildVersion = window.top.buildVersion;
window.appVersion = window.top.appVersion;
window.appInfo = {
version: window.top.appVersion
};
window._ = {
appVersion: window.appVersion,
buildVersion: window.buildVersion,
client: "android"
};
window.indexedDB = {};
window.IDBDatabase = {};
window.IDBTransaction = {};
window.IDBCursor = {};
window.IDBKeyRange = {};
window.cordova = {
plugins: {
isemulator: {
assess: function(fct) {
fct(false);
}
},
Keyboard: {
close: function() {},
disableScroll: function() {},
show: function() {},
hideKeyboardAccessoryBar: function() {}
},
notification: {
local: false
},
pushNotification: {
onDeviceReady: function() {},
setUserId: function() {},
registerDevice: function() {}
}
}
};
if (window.top.platform == "darwin") {
(function() {
window.requestAnimationFrame = function(callback) {
var self = requestAnimationFrame;
self.queue.push(callback);
if (!self.timeout) {
self.timeout = setTimeout(function() {
var queue = self.queue;
self.queue = [];
self.timeout = null;
queue.forEach(function(q) {
q();
});
}, 16);
}
};
requestAnimationFrame.queue = [];
requestAnimationFrame.timeout = null;
})();
}
window.initDofus = function(cb) {
var head = document.getElementsByTagName('head')[0];
var scriptScript = document.createElement('script');
scriptScript.addEventListener('load', function() {
var fixesScript = document.createElement('script');
fixesScript.src = 'fixes.js';
head.appendChild(fixesScript);
cb();
});
scriptScript.src = 'build/script.js';
head.appendChild(scriptScript);
};
</script>
<meta charset="UTF-8">
<link rel="stylesheet" href="build/styles-native.css" />
<link rel="stylesheet" href="fixes.css" />
</head>
<body>
</body>
</html>