index.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. <!DOCTYPE html>
  2. <script>
  3. window.myurl='http://www.link-meta.cn/link-server';
  4. window.zoneId = 4;
  5. </script>
  6. <script>
  7. // 定义数据库名称和版本
  8. const dbName = 'UE4_assetDatabase_h5_0824';
  9. const dbVersion = 202410252048;
  10. const storeName = 'FILES';
  11. function clearIndexedDB(dbName) {
  12. return new Promise((resolve, reject) => {
  13. const request = window.indexedDB.deleteDatabase(dbName);
  14. request.onsuccess = () => resolve();
  15. request.onerror = event => reject(event.target.errorCode);
  16. });
  17. }
  18. const userAgent = navigator.userAgent || navigator.vendor || window.opera;
  19. if (userAgent.match(/iPhone|iPad|iPod/i)) {
  20. // 打开数据库
  21. let request = indexedDB.open(dbName, dbVersion);
  22. request.onerror = function(event) {
  23. console.error('数据库打开失败');
  24. };
  25. request.onsuccess = function(event) {
  26. const db = request.result;
  27. checkDataInStore(db);
  28. console.log('22222');
  29. };
  30. request.onupgradeneeded = function(event) {
  31. let db = event.target.result;
  32. if (!db.objectStoreNames.contains(storeName)) {
  33. db.createObjectStore(storeName, { keyPath: 'id' });
  34. }
  35. };
  36. }
  37. function checkDataInStore(db) {
  38. // 检查对象存储空间是否有数据
  39. let store = db.transaction(storeName, 'readonly').objectStore(storeName);
  40. let countRequest = store.count();
  41. countRequest.onsuccess = function() {
  42. if (countRequest.result > 0) {
  43. console.log('对象存储空间有数据');
  44. // 使用方法:
  45. clearIndexedDB('UE4_assetDatabase_MXGuide').then(() => {
  46. console.log('IndexedDB22 cleared');
  47. }).catch(error => {
  48. console.error('Error clearing IndexedDB:', error);
  49. });
  50. // 使用方法:
  51. clearIndexedDB('UE4_assetDatabase_h5_0824').then(() => {
  52. console.log('IndexedDB cleared');
  53. location.reload(true);
  54. }).catch(error => {
  55. console.error('Error clearing IndexedDB:', error);
  56. });
  57. } else {
  58. console.log('对象存储空间没有数据');
  59. }
  60. };
  61. countRequest.onerror = function(event) {
  62. console.error('无法计数对象存储空间的数据');
  63. };
  64. }
  65. </script>
  66. <!--
  67. HTML code used with Epic Games HTML5 projects
  68. much of this is for UE4 development purposes.
  69. to create a custom HTML file for your project:
  70. - make a copy of this file - or make one from scratch
  71. - and put it in: "your project folder"/Build/HTML/GameX.html.template
  72. -->
  73. <html lang="en">
  74. <head>
  75. <title>蒙小元宇宙导览</title>
  76. <meta charset="utf-8">
  77. <meta name="viewport" content="width=device-width, initial-scale=1">
  78. <meta name="apple-mobile-web-app-capable" content="yes" />
  79. <meta
  80. name="viewport"
  81. content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
  82. />
  83. <style>
  84. @font-face {
  85. font-family: YouSheBiaoTiHei;
  86. src: url('./fonts/YOUSHEBIAOTIHEI-2.TTF');
  87. }
  88. </style>
  89. <!-- <script src="https://code.jquery.com/jquery-2.1.3.min.js"></script> -->
  90. <!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> -->
  91. <!-- <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"> -->
  92. <script src="jquery-2.1.3.min.js"></script>
  93. <script src="bootstrap.min.js"></script>
  94. <link href="bootstrap.min.css" rel="stylesheet">
  95. <!-- https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/fonts/glyphicons-halflings-regular.woff2 -->
  96. <!-- https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/fonts/glyphicons-halflings-regular.woff -->
  97. <!-- https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/fonts/glyphicons-halflings-regular.ttf -->
  98. <script src="./fonts/circle-progress.js"></script>
  99. <link href="h5_0824-HTML5-Shipping.css" rel="stylesheet">
  100. </head>
  101. <style>
  102. .wrapper .bgimg{
  103. width: 100%;height: 100%;position:absolute;top: 0;left: 0;z-index: 1;
  104. }
  105. #progressBarBox{
  106. z-index: 2;
  107. width: 100px;
  108. height: 100px;
  109. margin-left: 50%;
  110. transform: translateX(-24px);
  111. background-image: url('./img/Rectangle.png');
  112. background-repeat: no-repeat;
  113. background-size: contain;
  114. position: relative;
  115. }
  116. #progressBar{
  117. font-family: YouSheBiaoTiHei;
  118. transform: translateY(-100%);
  119. color: #fff;font-size: 20px;
  120. width: 100px;
  121. height: 100px;
  122. /* background-color: aqua; */
  123. display: flex;
  124. justify-content: center;
  125. align-items: center;
  126. }
  127. #progresstitle{
  128. width: 100%; display: flex;justify-content: center;font-family: YouSheBiaoTiHei;
  129. color: rgba(255, 255, 255, 0.97);
  130. font-size: 30px;
  131. font-weight: 400;
  132. line-height: 52px;
  133. letter-spacing: 4px;
  134. text-align: center;
  135. z-index: 9999;
  136. position: fixed;
  137. bottom: 37%;
  138. }
  139. #progresstitle2{
  140. z-index: 4;
  141. position: fixed;
  142. bottom: 30%;
  143. width: 100%;
  144. font-family: PingFang SC;
  145. font-size: 22px;
  146. font-weight: 400;
  147. letter-spacing: 0px;
  148. text-align: center;
  149. color: #fff;
  150. }
  151. </style>
  152. <body>
  153. <div style=" position: fixed; z-index: -2;" >
  154. <audio controls id="audio_h5" src=""></audio>
  155. </div>
  156. <div id="myVideoBox"
  157. style="width: 40vw;background-color: aqua; margin-left:30vw;transform: translateY(50%);position: fixed;z-index: -1;">
  158. <img onclick="closevideo()" style="width: 30px;position: absolute;right: 0;z-index: 99;"
  159. src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANAAAADQCAYAAAB2pO90AAAACXBIWXMA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iEi5bqPhOkZyqMQdShODyjQaCAqIWuHQ3ypRyXXb/Se8LL/oVCg+iAanZa0ZIIoiDTot8M2MzWgQO1AZJqsxpjYOWKONQ2SAE4aRpqGUCBdEJ0g0vekPG4eS4SCIP8rxsdSisMoowQF8stBKS/Jd1IdFL+RCqJgsQ9JUAWNzc2PhQkAb1Cg7oBYEAoyHZNdqYZFLVy+ASG2q/GkGu7rhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCG6fA3tblDotuDWwwAAAABJRU5ErkJggg=="
  160. alt="">
  161. <video style="width: 100%;height: 100%;" id="myVideo" crossorigin="anonymous" src="" controls></video>
  162. </div>
  163. <!--<button onclick = "CCall()"> CCall </button>-->
  164. <!--移动端浏览器显示控制台--
  165. <script src="https://cdn.jsdelivr.net/npm/eruda"></script>
  166. <script>eruda.init();</script>
  167. <!--移动端浏览器显示控制台-->
  168. <div class="wrapper" id="mainarea">
  169. <div id="inputbox" style="display: flex;align-items: center;justify-content: center;z-index: -1;position: fixed;width: 100%;top: 5vh;">
  170. <input style="border: none; border-radius: 5px; width: 85%; height: 30px; color: #fff; background: #0B0B0BB2;" id="searchinput" type="text">
  171. <button style="height: 30px;width: 15%; background-color: #D48E3B;margin-left: 5px; color: #fff;border: none;" onclick="searchtext()">搜索</button>
  172. </div>
  173. <div class=" alert-warning centered-axis-xy" style="min-height: 20px;width: 100%;height: 100%;margin: 0; display:block;" role="alert" id="compilingmessage">
  174. <img class='bgimg' src="./fonts/bg.png">
  175. <!-- <img src="./fonts/bg.gif" style="width: 100%;height: 100%;" alt="" srcset=""> -->
  176. <div id='loadTasks' style="opacity: 0;width: 0;"> </div>
  177. <div style="height: 100px; position: fixed;z-index: 99;bottom: 50%;left: 50%;transform: translateX(-75px);" >
  178. <div id="progressBarBox" style="display: none;">
  179. <img style="position: absolute; width: 100px;height: 100px;top: 0;left: 0;z-index: -1;" src="./img/Rectangle2.png" alt="">
  180. <div id="progressBar" style="z-index: 3;" >
  181. 0%
  182. </div>
  183. </div>
  184. </div>
  185. <div id="progresstitle" ><img style="width: 200px;margin-bottom: 5px;" src="./img/logo2.png" alt="" srcset=""></div>
  186. <div id="progresstitle2" >加载中...</div>
  187. </div>
  188. <!-- The "tabindex=0" specifier on the canvas is important to allow it to capture keyboard focus when clicking on it with a mouse -->
  189. <canvas tabindex=0 id="canvas" class="emscripten" oncontextmenu="event.preventDefault()" style="display:none;">
  190. </div>
  191. <div class="buttonarea text-center" id="buttonarea" style="display: none;">
  192. <button type="button" class="btn btn-primary"
  193. onclick="try { Module['pauseMainLoop'](); } catch(e) {console.error(e);}" title="Pause">
  194. <span class="glyphicon glyphicon-pause" aria-hidden="true"></span><span class="buttontext"> Pause</span>
  195. </button>
  196. <button type="button" class="btn btn-primary"
  197. onclick="try { Module['resumeMainLoop'](); } catch(e) {console.error(e);}" title="Resume">
  198. <span class="glyphicon glyphicon-play" aria-hidden="true"></span><span class="buttontext"> Resume</span>
  199. </button>
  200. <!--<button type="button" class="btn btn-primary" onclick="var w = document.getElementById('logwindow'); w.style.display = w.style.display ? '' : 'none';">Toggle Log</button></div>-->
  201. <button type="button" class="btn btn-primary" id='clear_indexeddb'
  202. onclick="try { deleteIndexedDBStorage(); } catch(e) {console.error(e);}" title="Clear IndexedDB" >
  203. <span class="glyphicon glyphicon-trash" aria-hidden="true"></span><span class="buttontext"> Clear IndexedDB</span>
  204. </button>
  205. <button type="button" class="btn btn-primary" id="fullscreen_request" title="Fullscreen">
  206. <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span><span class="buttontext"> Fullscreen</span>
  207. </button>
  208. </div>
  209. <div class="texthalf text-normal jumbotron " id="logwindow" style='display:none'></div>
  210. <script>
  211. $('#progressBarBox').circleProgress({
  212. value: 0.01,
  213. size: 100,
  214. thickness:7,
  215. emptyFill:"rgba(0, 0, 0, .1)",
  216. fill: {
  217. gradient: ["#A3F9FF"]
  218. }
  219. });
  220. </script>
  221. <script>
  222. var now = new Date().getTime();
  223. document.write('<script src="h5_0824-HTML5-Shipping.UE4.js?t=' + now + '"><\/script\>');
  224. </script>
  225. <!--
  226. <script src="h5_0824-HTML5-Shipping.UE4.js"></script>
  227. -->
  228. <script>
  229. const forceLandscape = ((id = '#mainarea') => {
  230. const handler = () => {
  231. let width = document.documentElement.clientWidth;
  232. let height = document.documentElement.clientHeight;
  233. let targetDom = document.querySelector(id);
  234. if (!targetDom) return;
  235. // 如果宽度比高度大,则认为处于横屏状态
  236. // 也可以获取 window.orientation 方向来判断屏幕状态
  237. if (width > height) {
  238. targetDom.style.position = 'absolute';
  239. targetDom.style.width = `${width}px`;
  240. targetDom.style.height = `${height}px`;
  241. targetDom.style.left = `${0}px`;
  242. targetDom.style.top = `${0}px`;
  243. targetDom.style.transform = 'none';
  244. targetDom.style.transformOrigin = '50% 50%';
  245. } else {
  246. targetDom.style.position = 'absolute';
  247. targetDom.style.width = `${height}px`;
  248. targetDom.style.height = `${width}px`;
  249. targetDom.style.left = `${0 - (height - width) / 2}px`;
  250. targetDom.style.top = `${(height - width) / 2}px`;
  251. targetDom.style.transform = 'rotate(90deg)';
  252. targetDom.style.transformOrigin = '50% 50%';
  253. }
  254. };
  255. const handleResize = () => {
  256. setTimeout(() => {
  257. handler();
  258. resizeCanvas()
  259. }, 300);
  260. };
  261. window.addEventListener('resize', handleResize);
  262. handler();
  263. })();
  264. </script>
  265. </body>
  266. </html>