-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
135 lines (121 loc) · 4.09 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
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
<!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.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() {}
}
}
};
// window.cordova.plugins.isemulator.assess(
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" />
<style>
body,html{
background: black;
}
/* Turn on custom 8px wide scrollbar */
::-webkit-scrollbar {
width: 10px; /* 1px wider than Lion. */
/* This is more usable for users trying to click it. */
background-color: rgba(0,0,0,0);
-webkit-border-radius: 100px;
}
/* hover effect for both scrollbar area, and scrollbar 'thumb' */
::-webkit-scrollbar:hover {
background-color: rgba(0, 0, 0, 0.09);
}
/* The scrollbar 'thumb' ...that marque oval shape in a scrollbar */
::-webkit-scrollbar-thumb:vertical {
/* This is the EXACT color of Mac OS scrollbars.
Yes, I pulled out digital color meter */
background: rgba(0,0,0,0.5);
-webkit-border-radius: 100px;
background-clip: padding-box;
border: 2px solid rgba(0, 0, 0, 0);
min-height: 10px; /*Prevent it from getting too small */
}
::-webkit-scrollbar-thumb:vertical:active {
background: rgba(0,0,0,0.61); /* Some darker color when you click it */
-webkit-border-radius: 100px;
}
</style>
</head>
<body>
</body>
</html>
<!-- Dependencies -->
<script src="keymaster.js"></script>
<!-- Game -->
<script>
window._ = {
appVersion: window.appVersion,
buildVersion: window.buildVersion,
client: "android"
};
</script>