index.ejs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <link rel="icon" href="https://portal.telgather.com/h/imgs/icon_tog.png" />
  6. <title>Telgather Portal</title>
  7. <meta
  8. name="viewport"
  9. content="width=device-width,user-scalable=no,initial-scale=1,minimum-scale=1,maximum-scale=1,minimal-ui=true"
  10. />
  11. <meta name="apple-mobile-web-app-capable" content="yes" />
  12. <meta name="mobile-web-app-capable" content="yes" />
  13. <meta name="full-screen" content="yes" />
  14. <meta name="screen-orientation" content="portrait" />
  15. <meta name="x5-fullscreen" content="true" />
  16. <meta name="360-fullscreen" content="true" />
  17. <meta name="renderer" content="webkit" />
  18. <meta name="force-rendering" content="webkit" />
  19. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  20. <link rel="stylesheet" type="text/css" href="./index.css" />
  21. <script src="./libs/ethers.umd.min.js"></script>
  22. <script type="module" crossorigin src="./libs/pog.js"></script>
  23. <script type="text/javascript" src="./libs/vconsole.min.js"></script>
  24. <script src="https://www.googletagservices.com/tag/js/gpt.js"></script>
  25. </head>
  26. <body style="overflow: hidden">
  27. <div style="display: none">
  28. <%- include(cocosToolBar, {config: config}) %>
  29. </div>
  30. <div id="content" class="content" style="overflow: hidden">
  31. <div class="contentWrap">
  32. <div id="GameDiv" class="wrapper">
  33. <div id="Cocos3dGameContainer">
  34. <canvas
  35. id="GameCanvas"
  36. tabindex="-1"
  37. style="background-color: ''"
  38. ></canvas>
  39. </div>
  40. <div id="splash">
  41. <div class="progress-bar stripes"><span></span></div>
  42. </div>
  43. <div id="bulletin">
  44. <div id="sceneIsEmpty" class="inner"><%=tip_sceneIsEmpty%></div>
  45. </div>
  46. <div class="error" id="error">
  47. <div class="title">
  48. Error <i>(Please open the console to see detailed errors)</i>
  49. </div>
  50. <div class="error-main"></div>
  51. <div class="error-stack"></div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. <%- include(cocosTemplate, {}) %>
  57. <script type="text/javascript">
  58. const ads_init = function () {
  59. window.openAdNative = {
  60. adInfo: {
  61. zoneId: 429, // please check your parameter zoneId
  62. publisherId: 15, // please check your parameter publisherId
  63. eventId: 0, // Reserved Parameter
  64. },
  65. interAdInfo: {
  66. zoneId: 430, // please check your parameter zoneId
  67. publisherId: 15, // please check your parameter publisherId
  68. eventId: 0, // Reserved Parameter
  69. },
  70. adParams: {
  71. line: {
  72. type: "LMA", // LMA, LWA
  73. liffId: "2007001592-ozOgMXpb", // when type = LMA / LWA, liffId is required
  74. prototype: window.liff, // when type = LMA / LWA, prototype is required. line.prototype must contain two methods: getProfile and openWindow, whether you are using liff SDK js or npm installation package;
  75. },
  76. wallet: {
  77. // If you have a web3 wallet components, Optional
  78. type: "eth", // eth: eth wallet, kaia: line wallet, ton: ton wallet;
  79. provider: null, // here is a provider object after wallet initialization.
  80. components: "", // web3 wallet components name
  81. },
  82. },
  83. wallet: {
  84. // 当line.type === 'web'时,wallet对象必填
  85. type: "kaia", // 类型,eth: eth wallet, kaia: line wallet, ton: ton wallet
  86. provider: null, // 已经初始化的web3钱包的组件provider
  87. components: "", // web3钱包组件的名称
  88. },
  89. // userInfo object
  90. // please add reasonable user IDs for your end users.
  91. // otherwise, OpenAD statistics may be inaccurate,
  92. // which may affect your incentives
  93. userInfo: {
  94. userId: "1", // user ID , If there is no data, please leave it blank
  95. firstName: "11", // firstName or userId , If there is no data, please leave it blank
  96. lastName: "", // lastName or userId , If there is no data, please leave it blank
  97. username: "1", // userName or userId , If there is no data, please leave it blank
  98. displayName: "1", // userName or userId , If there is no data, please leave it blank
  99. },
  100. // If the user is already logged in, initialize user data
  101. initUserInfo: function (data) {
  102. this.userInfo.userId = data.userId;
  103. this.userInfo.firstName = data.firstName;
  104. this.userInfo.lastName = data.lastName;
  105. this.userInfo.username = data.username;
  106. this.userInfo.displayName = data.username;
  107. },
  108. // Close AD
  109. destroy: function (adInfo) {
  110. console.log("window.destroy:");
  111. document.querySelector(`.openADJsSDKBanner`).innerHTML = "";
  112. },
  113. };
  114. console.log("window.openADJsSDK:", window.OpenADLineJsSDK);
  115. console.log("window.openAdNative:", window.openAdNative);
  116. };
  117. window.addEventListener("DOMContentLoaded", ads_init);
  118. </script>
  119. <!-- /23296944437/rewarded -->
  120. <div id="div-gpt-ad-1747208248493-0">
  121. <script></script>
  122. </div>
  123. </body>
  124. </html>