-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·84 lines (78 loc) · 4.17 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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>ApostleEditor</title>
<meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<style>
html, body {
-ms-touch-action: none;
background: #888888;
padding: 0;
border: 0;
margin: 0;
height: 100%;
}
</style>
<!--这个标签为通过egret提供的第三方库的方式生成的 javascript 文件。删除 modules_files 标签后,库文件加载列表将不会变化,请谨慎操作!-->
<!--modules_files_start-->
<script egret="lib" src="libs/modules/egret/egret.min.js"></script>
<script egret="lib" src="libs/modules/egret/egret.web.min.js"></script>
<script egret="lib" src="libs/modules/res/res.min.js"></script>
<script egret="lib" src="libs/modules/eui/eui.min.js"></script>
<script egret="lib" src="libs/modules/tween/tween.min.js"></script>
<script egret="lib" src="libs/BigInteger/BigInteger.min.js"></script>
<!--modules_files_end-->
<!--这个标签为不通过egret提供的第三方库的方式使用的 javascript 文件,请将这些文件放在libs下,但不要放在modules下面。-->
<!--other_libs_files_start-->
<script egret="lib" src="polyfill/promise.min.js"></script>
<!--other_libs_files_end-->
<!--这个标签会被替换为项目中所有的 javascript 文件。删除 game_files 标签后,项目文件加载列表将不会变化,请谨慎操作!-->
<!--game_files_start-->
<script src="main.min.js"></script>
<!--game_files_end-->
</head>
<body>
<!--私有 使徒呈现-->
<div id="div" style="background:#fff;position:relative; left:0px; top:0px;width: 30%;height: 99%;float: left;border:2px solid #4AB6FD;">
<div style="position:relative; left:0px; top:0px;width: 85%;height: 49%;float: left;">
<div id="colorDiv" style="position:relative; left:0px; top:0px;width: 100%;height: 100%;float: left;">
</div>
<!--<img id="geneImage" src="" alt="我是基因,你看不见我。。。你看不见我。。。你看不见我。。。" style="width: 100%;height: 100%">-->
</div>
<div style="position:relative; left:0px; top:0px;width: 100%;height: 1px;float: left;border:1px solid #4AB6FD;">
</div>
<div id="angelDiv" style="position:relative; left:0px; top:0px;width: 100%;height: 49%;float: left;">
<img id="angelImage" src="" alt="我是使徒,你看不见我。。。你看不见我。。。你看不见我。。。" style="width: 100%;height: 100%">
</div>
</div>
<div style="position:relative; left:0px; top:0px;width: 69%;height: 99%;float: left;float: left;border:2px solid #4AB6FD;" class="egret-player" data-entry-class="Main" data-orientation="auto" data-scale-mode="showAll" data-frame-rate="30" data-content-width="1395"
data-content-height="1016" data-show-paint-rect="false" data-multi-fingered="2" data-show-fps="false" data-show-log="false"
data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
</div>
<input type="file" id="fileSelector" style="display:none" accept=".json"/>
<script>
var sHref = window.location.href;
var str = sHref.split("http://")[1];
var url = str.split("/")[0];
var arr = url.split(":");
var ip = arr[0];
var port = arr[1];
egret["baseParams"] = { ip: ip, port: port, };
/**
* {
* "renderMode":, //引擎渲染模式,"canvas" 或者 "webgl"
* "audioType": 0 //使用的音频类型,0:默认,1:qq audio,2:web audio,3:audio
* "antialias": //WebGL模式下是否开启抗锯齿,true:开启,false:关闭,默认为false
* "retina": //是否基于devicePixelRatio缩放画布
* }
**/
egret.runEgret({ renderMode: "webgl", audioType: 0 });
</script>
</body>
</html>