index.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. <!DOCTYPE html>
  2. <script>
  3. window.myurl='https://campus.ahau.edu.cn/cmccr-server';
  4. </script>
  5. <script>
  6. var pcUrl = 'https://campus.ahau.edu.cn/';
  7. var anUrl = 'https://campus.ahau.edu.cn/ahnyh5';
  8. var iosUrl = 'https://campus.ahau.edu.cn/ahny_ios';
  9. function redirectToHttps(url) {
  10. if (url.startsWith('http://')) {
  11. url = url.replace('http://', 'https://');
  12. }
  13. location.href = url;
  14. } function detectDevice() {
  15. var u = navigator.userAgent;
  16. var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;
  17. //android终端
  18. var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
  19. //ios终端
  20. var origin = location.origin;
  21. if (isIOS) {
  22. //redirectToHttps(iosUrl);
  23. }
  24. if (isAndroid) {
  25. redirectToHttps(anUrl);
  26. }
  27. if (!isIOS && !isAndroid) {
  28. redirectToHttps(pcUrl);
  29. }
  30. }
  31. detectDevice()
  32. </script>
  33. <script>
  34. // 定义数据库名称和版本
  35. const dbName = 'UE4_assetDatabase_AHND';
  36. const dbVersion = 202410311443;
  37. const storeName = 'FILES';
  38. function clearIndexedDB(dbName) {
  39. return new Promise((resolve, reject) => {
  40. const request = window.indexedDB.deleteDatabase(dbName);
  41. request.onsuccess = () => resolve();
  42. request.onerror = event => reject(event.target.errorCode);
  43. });
  44. }
  45. const userAgent = navigator.userAgent || navigator.vendor || window.opera;
  46. if (userAgent.match(/iPhone|iPad|iPod/i)) {
  47. // 打开数据库
  48. let request = indexedDB.open(dbName, dbVersion);
  49. request.onerror = function(event) {
  50. console.error('数据库打开失败');
  51. };
  52. request.onsuccess = function(event) {
  53. const db = request.result;
  54. checkDataInStore(db);
  55. console.log('22222');
  56. };
  57. request.onupgradeneeded = function(event) {
  58. let db = event.target.result;
  59. if (!db.objectStoreNames.contains(storeName)) {
  60. db.createObjectStore(storeName, { keyPath: 'id' });
  61. }
  62. };
  63. }
  64. function checkDataInStore(db) {
  65. // 检查对象存储空间是否有数据
  66. let store = db.transaction(storeName, 'readonly').objectStore(storeName);
  67. let countRequest = store.count();
  68. countRequest.onsuccess = function() {
  69. if (countRequest.result > 0) {
  70. console.log('对象存储空间有数据');
  71. // 使用方法:
  72. clearIndexedDB('UE4_assetDatabase_AHND').then(() => {
  73. console.log('IndexedDB22 cleared');
  74. }).catch(error => {
  75. console.error('Error clearing IndexedDB:', error);
  76. });
  77. // 使用方法:
  78. clearIndexedDB('UE4_assetDatabase_AHND').then(() => {
  79. console.log('IndexedDB cleared');
  80. location.reload(true);
  81. }).catch(error => {
  82. console.error('Error clearing IndexedDB:', error);
  83. });
  84. } else {
  85. console.log('对象存储空间没有数据');
  86. }
  87. };
  88. countRequest.onerror = function(event) {
  89. console.error('无法计数对象存储空间的数据');
  90. };
  91. }
  92. </script>
  93. <!--
  94. HTML code used with Epic Games HTML5 projects
  95. much of this is for UE4 development purposes.
  96. to create a custom HTML file for your project:
  97. - make a copy of this file - or make one from scratch
  98. - and put it in: "your project folder"/Build/HTML/GameX.html.template
  99. -->
  100. <html lang="en">
  101. <head>
  102. <title>安徽农业大学虚拟校园</title>
  103. <meta charset="utf-8">
  104. <meta name="viewport" content="width=device-width, initial-scale=1">
  105. <!--允许全屏浏览 只对iphone手机生效-->
  106. <meta name="apple-mobile-web-app-capable" content="yes" />
  107. <meta
  108. name="viewport"
  109. content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
  110. />
  111. <!--允许全屏浏览 只对iphone手机生效-->
  112. <style>
  113. @font-face {
  114. font-family: YouSheBiaoTiHei;
  115. src: url('./fonts/YOUSHEBIAOTIHEI-2.TTF');
  116. }
  117. </style>
  118. <!-- <script src="https://code.jquery.com/jquery-2.1.3.min.js"></script> -->
  119. <!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> -->
  120. <!-- <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"> -->
  121. <script src="jquery-2.1.3.min.js"></script>
  122. <script src="bootstrap.min.js"></script>
  123. <link href="bootstrap.min.css" rel="stylesheet">
  124. <!-- https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/fonts/glyphicons-halflings-regular.woff2 -->
  125. <!-- https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/fonts/glyphicons-halflings-regular.woff -->
  126. <!-- https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/fonts/glyphicons-halflings-regular.ttf -->
  127. <script src="./fonts/circle-progress.js"></script>
  128. <link href="AHND-HTML5-Shipping.css" rel="stylesheet">
  129. </head>
  130. <style>
  131. .wrapper .bgimg{
  132. width: 100%;height: 100%;position:absolute;top: 0;left: 0;z-index: 1;
  133. }
  134. #progressBarBox {
  135. z-index: 2;
  136. width: 150px;
  137. height: 150px;
  138. margin-left: 50%;
  139. transform: translateX(-75px);
  140. background-image: url('./img/Rectangle.png');
  141. background-repeat: no-repeat;
  142. background-size: contain;
  143. position: relative;
  144. }
  145. #progressBar {
  146. font-family: YouSheBiaoTiHei;
  147. transform: translateY(-100%);
  148. color: #fff;
  149. font-size: 35px;
  150. width: 150px;
  151. height: 150px;
  152. /* background-color: aqua; */
  153. display: flex;
  154. justify-content: center;
  155. align-items: center;
  156. }
  157. @font-face {
  158. font-family: YouSheBiaoTiHei;
  159. src: url('./fonts/YOUSHEBIAOTIHEI-2.TTF');
  160. }
  161. #progresstitle {
  162. width: 100%;
  163. display: flex;
  164. justify-content: center;
  165. font-family: YouSheBiaoTiHei;
  166. color: rgba(255, 255, 255, 0.97);
  167. font-size: 55px;
  168. font-weight: 400;
  169. line-height: 52px;
  170. letter-spacing: 4px;
  171. text-align: center;
  172. z-index: 99999;
  173. position: fixed;
  174. bottom: 200px;
  175. }
  176. #buttomjindu22 {
  177. width: 100%;
  178. display: flex;
  179. justify-content: center;
  180. flex-wrap: wrap;
  181. font-family: YouSheBiaoTiHei;
  182. position: fixed;
  183. bottom: 3vh;
  184. }
  185. #progressBar2 {
  186. display: none;
  187. z-index: 3;
  188. width: 51px;
  189. line-height: 28px;
  190. height: 31.48px;
  191. font-family: 'Courier New', Courier, monospace;
  192. font-size: 14px;
  193. color: #fff;
  194. background-image: url('./img/Union.png');
  195. background-repeat: no-repeat;
  196. background-size: 100% 100%;
  197. }
  198. #newjindubox {
  199. display: none;
  200. width: 400px;
  201. height: 24px;
  202. background-color: rgba(255, 255, 255, 0.26);
  203. border-bottom-left-radius: 15px;
  204. border-bottom-right-radius: 15px;
  205. border-top-left-radius: 15px;
  206. border-top-right-radius: 15px;
  207. }
  208. #newjindu {
  209. width: 0;
  210. height: 100%;
  211. border-bottom-left-radius: 15px;
  212. border-bottom-right-radius: 15px;
  213. border-top-left-radius: 15px;
  214. border-top-right-radius: 15px;
  215. /* background: linear-gradient(to right, #4E75FF, #43A5FF); */
  216. background: linear-gradient(90deg, #74C44A 0%, #A1E76E 50%, #FFE824 100%);
  217. transition: width 0.1s;
  218. position: relative;
  219. }
  220. </style>
  221. <body>
  222. <div style=" position: fixed; z-index: -2;" >
  223. <audio controls id="audio_h5" src=""></audio>
  224. </div>
  225. <!--<button onclick = "CCall()"> CCall </button>-->
  226. <div class="wrapper" id="mainarea">
  227. <div id="inputbox" style="display: flex;align-items: center;justify-content: center;z-index: -1;position: fixed;width: 100%;top: 5vh;">
  228. <input style="border: none; border-radius: 5px; width: 50vw; height: 30px; color: #fff; background: #0B0B0BB2;" id="searchinput" type="text">
  229. <button style="height: 30px;background-color: #D48E3B;margin-left: 5px; color: #fff;border: none;" onclick="searchtext()">搜索</button>
  230. </div>
  231. <div id="myVideoBox"
  232. style="width: 100%;height: 100%; background-color: rgb(0 0 0 / 63%); position: fixed;z-index: -1;">
  233. <img onclick="closevideo()" style="width: 30px;position: absolute;right: 0;z-index: 99;"
  234. src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANAAAADQCAYAAAB2pO90AAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0rSURBVHgB7Z1Nb1bHFcdPynsgxm5acBujFLdy2yRqKrVRHanqhgVdeAV7JD6BV2ziTVdsWPkrsOcToGabumoTVVVqY6ugFkQhTWLjFkPixMn9596JjXne7r1n5s6Z+f+k0QOWF9jc3z0zZ87MESGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIy4AUhXXCoGseqcbgYB/d8fRBb1ecXxXhcfW4XY1NIcCiQXyDDd4txvBhjxXip+tqL4gfI9EhKoT6t/rxZ/Z14gALp8nIxTkopDYTxJUpdnkgpk5PqEyEqUKB2QJDJYpyWUpyDYgMXqR4W44HsTgtJTShQfRBlnDSxRJi2IEI9qAajUw0o0GhAlKlqpCJNP5xMd4SRaSgUqD9Y7J+RMtK8LHmCaHSvGHeF9IQCPQ/EOVuMabGzpvENohJkWhVGpWegQLsgCQBxpoQMAhGJIlVQoHJ6NiP5TtOaQpEkb4GQDIA4jDjtyFqkHAXiGscPdyTDzF1uAkEaRB2K4wckGxCNssna5SIQEgSvCdc5oYBI70kG0SgHgWaqQcKzWo1kSVkgRJ03pSzqJN2Rd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QCFCifDAjD7AiEKBE6WNKHmBJIECJ0sWcPMCaQIASpcejYvxZjMkDLAoEIBHOwL8k3Gy1Dl6GKCSONlU9CKsCAewT3a/+zGPhNsE9bjhQGeUm6ShYFsiBc0QsQLUHCkPXxDghOtSF4lgx3hbDTY0zAckCTNmSuAsjhQjkcMkFdNPmuihOMFswl2kbREoCAUjEdVF8YIq9ImVFtdn1Ti9SmsLth1O6OECKGomCJK8vSy0C7QXRyF02zmjUDTgE94HsXqKZHClHoL0wGoUFax1k2ZK/NDMXgRxTxZgRiuQLrHUQdbJpKp2bQADRaLoYZ4VoAXEgDTZGs7plNkeBHBAJ0eiMkDagJymiTjKp6TrkLJCDIjUD65xVyfxGWQq0C0UaDUQcTNfYVUMoUC+cSEh9M9lQku0aZxgUaDDI2iEi5bqPhOkZyqMQdShODyjQaCAqIWuHQ3ypRyXXb/Se8LL/oVCg+iAanZa0ZIIoiDTot8M2MzWgQO1AZJqsxpjYOWKONQ2SAE4aRpqGUCBdEJ0g0vekPG4eS4SCIP8rxsdSisMoowQF8stBKS/Jd1IdFL+RCqJgsQ9JUAWNzc2PhQkAb1Cg7oBYEAoyHZNdqYZFLVy+ASG2q/GkGu7rhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCG6fA3tblDotuDWwwAAAABJRU5ErkJggg=="
  235. alt="">
  236. <video style="width: 500px;height: auto;margin-left: 24%; margin-top: 50px;z-index: 99999;" id="myVideo" crossorigin="anonymous" src="" controls></video>
  237. </div>
  238. <div class="alert alert-warning centered-axis-xy"
  239. style="min-height: 20px;width: 100%;height: 100%;margin: 0; display:block;" role="alert"
  240. id="compilingmessage">
  241. <img class="bgimg" src="./fonts/bg.png">
  242. <div id='loadTasks' style="opacity: 0;width: 0;"> </div>
  243. <div
  244. style="position: fixed; top: 0; left: 0;width: 100%;height: 100vh;background-color: #00000071;; z-index: 999;">
  245. <img style="position: absolute;left: 40px;top: 40px;" src="./img/logo2.png" alt="">
  246. <div id="progresstitle">
  247. <img style="width: 350px;" src="./img/logotitle.png" alt="" srcset="">
  248. </div>
  249. <div id="buttomjindu22">
  250. <div id="newjindubox">
  251. <div id="newjindu">
  252. <div style=" position: absolute ;top: -55px; right: -20px;display: flex;justify-content: right;margin-bottom: 10px;">
  253. <div id="progressBar2">
  254. 0%
  255. </div>
  256. </div>
  257. <img style="position: absolute; top: -25px;right: -20px; " src="./img/jinduicon2.png" alt="">
  258. </div>
  259. </div>
  260. <div id="progressBar3"
  261. style="width: 100%;color: #FFFFFF;font-size: 18px;margin-top: 15px; font-family: 'Courier New', Courier, monospace;">
  262. 下载资源中
  263. </div>
  264. </div>
  265. <!-- <div style="z-index: 9999; height: 150px; position: fixed;z-index: 99;bottom: 53vh;left: 50vw;transform: translateX(-75px);" >
  266. <div id="progressBarBox" style="display: none;">
  267. <img style="position: absolute; width: 150px;height: 150px;top: 0;left: 0;z-index: -1;" src="./img/Rectangle2.png" alt="">
  268. <div id="progressBar" style="z-index: 3;" >
  269. 0%
  270. </div>
  271. </div>
  272. </div> -->
  273. </div>
  274. </div>
  275. <!-- The "tabindex=0" specifier on the canvas is important to allow it to capture keyboard focus when clicking on it with a mouse -->
  276. <canvas tabindex=0 id="canvas" class="emscripten" oncontextmenu="event.preventDefault()" style="display:none;">
  277. </div>
  278. <div class="buttonarea text-center" id="buttonarea" style="display: none;">
  279. <button type="button" class="btn btn-primary"
  280. onclick="try { Module['pauseMainLoop'](); } catch(e) {console.error(e);}" title="Pause">
  281. <span class="glyphicon glyphicon-pause" aria-hidden="true"></span><span class="buttontext"> Pause</span>
  282. </button>
  283. <button type="button" class="btn btn-primary"
  284. onclick="try { Module['resumeMainLoop'](); } catch(e) {console.error(e);}" title="Resume">
  285. <span class="glyphicon glyphicon-play" aria-hidden="true"></span><span class="buttontext"> Resume</span>
  286. </button>
  287. <!--<button type="button" class="btn btn-primary" onclick="var w = document.getElementById('logwindow'); w.style.display = w.style.display ? '' : 'none';">Toggle Log</button></div>-->
  288. <button type="button" class="btn btn-primary" id='clear_indexeddb'
  289. onclick="try { deleteIndexedDBStorage(); } catch(e) {console.error(e);}" title="Clear IndexedDB">
  290. <span class="glyphicon glyphicon-trash" aria-hidden="true"></span><span class="buttontext"> Clear
  291. IndexedDB</span>
  292. </button>
  293. <button type="button" class="btn btn-primary" id="fullscreen_request" title="Fullscreen">
  294. <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span><span class="buttontext">
  295. Fullscreen</span>
  296. </button>
  297. </div>
  298. <div class="texthalf text-normal jumbotron " id="logwindow" style='display:none'></div>
  299. <script>
  300. // $('#progressBarBox').circleProgress({
  301. // value: 0.01,
  302. // size: 150,
  303. // thickness:7,
  304. // emptyFill:"rgba(0, 0, 0, .1)",
  305. // fill: {
  306. // gradient: ["#A3F9FF"]
  307. // }
  308. // });
  309. </script>
  310. <script>
  311. var now = new Date().getTime();
  312. document.write('<script src="AHND-HTML5-Shipping.UE4.js?t=' + now + '"><\/script\>');
  313. </script>
  314. </body>
  315. <script>
  316. const forceLandscape = ((id = '#mainarea') => {
  317. const handler = () => {
  318. let width = document.documentElement.clientWidth;
  319. let height = document.documentElement.clientHeight;
  320. let targetDom = document.querySelector(id);
  321. if (!targetDom) return;
  322. // 如果宽度比高度大,则认为处于横屏状态
  323. // 也可以获取 window.orientation 方向来判断屏幕状态
  324. if (width > height) {
  325. targetDom.style.position = 'absolute';
  326. targetDom.style.width = `${width}px`;
  327. targetDom.style.height = `${height}px`;
  328. targetDom.style.left = `${0}px`;
  329. targetDom.style.top = `${0}px`;
  330. targetDom.style.transform = 'none';
  331. targetDom.style.transformOrigin = '50% 50%';
  332. } else {
  333. targetDom.style.position = 'absolute';
  334. targetDom.style.width = `${height}px`;
  335. targetDom.style.height = `${width}px`;
  336. targetDom.style.left = `${0 - (height - width) / 2}px`;
  337. targetDom.style.top = `${(height - width) / 2}px`;
  338. targetDom.style.transform = 'rotate(90deg)';
  339. targetDom.style.transformOrigin = '50% 50%';
  340. }
  341. };
  342. const handleResize = () => {
  343. setTimeout(() => {
  344. handler();
  345. resizeCanvas()
  346. }, 300);
  347. };
  348. window.addEventListener('resize', handleResize);
  349. handler();
  350. })();
  351. </script>
  352. <!--移动端浏览器显示控制台--
  353. <script src="https://cdn.jsdelivr.net/npm/eruda"></script>
  354. <script>eruda.init();</script>
  355. <!--移动端浏览器显示控制台-->
  356. </html>