index.ejs 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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
  25. name="OpenADLineJsSDK"
  26. version="1.0"
  27. type="text/javascript"
  28. src="https://protocol.openad.network/line/sdk.loader.js?v=1.0"
  29. ></script>
  30. <script src="//www.googletagservices.com/tag/js/gpt.js"></script>
  31. </head>
  32. <body style="overflow: hidden">
  33. <%- include(cocosToolBar, {config: config}) %>
  34. <div id="content" class="content" style="overflow: hidden">
  35. <div class="contentWrap">
  36. <div id="GameDiv" class="wrapper">
  37. <div id="Cocos3dGameContainer">
  38. <canvas
  39. id="GameCanvas"
  40. tabindex="-1"
  41. style="background-color: ''"
  42. ></canvas>
  43. </div>
  44. <div id="splash">
  45. <div class="progress-bar stripes"><span></span></div>
  46. </div>
  47. <div id="bulletin">
  48. <div id="sceneIsEmpty" class="inner"><%=tip_sceneIsEmpty%></div>
  49. </div>
  50. <div class="error" id="error">
  51. <div class="title">
  52. Error <i>(Please open the console to see detailed errors)</i>
  53. </div>
  54. <div class="error-main"></div>
  55. <div class="error-stack"></div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. <%- include(cocosTemplate, {}) %>
  61. <script type="text/javascript">
  62. const ads_init = function () {
  63. window.openAdNative = {
  64. adInfo: {
  65. zoneId: 429, // please check your parameter zoneId
  66. publisherId: 15, // please check your parameter publisherId
  67. eventId: 0, // Reserved Parameter
  68. },
  69. interAdInfo: {
  70. zoneId: 430, // please check your parameter zoneId
  71. publisherId: 15, // please check your parameter publisherId
  72. eventId: 0, // Reserved Parameter
  73. },
  74. adParams: {
  75. line: {
  76. type: "LMA", // LMA, LWA
  77. liffId: "2007001592-ozOgMXpb", // when type = LMA / LWA, liffId is required
  78. 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;
  79. },
  80. wallet: {
  81. // If you have a web3 wallet components, Optional
  82. type: "eth", // eth: eth wallet, kaia: line wallet, ton: ton wallet;
  83. provider: null, // here is a provider object after wallet initialization.
  84. components: "", // web3 wallet components name
  85. },
  86. },
  87. wallet: {
  88. // 当line.type === 'web'时,wallet对象必填
  89. type: "kaia", // 类型,eth: eth wallet, kaia: line wallet, ton: ton wallet
  90. provider: null, // 已经初始化的web3钱包的组件provider
  91. components: "", // web3钱包组件的名称
  92. },
  93. // userInfo object
  94. // please add reasonable user IDs for your end users.
  95. // otherwise, OpenAD statistics may be inaccurate,
  96. // which may affect your incentives
  97. userInfo: {
  98. userId: "1", // user ID , If there is no data, please leave it blank
  99. firstName: "11", // firstName or userId , If there is no data, please leave it blank
  100. lastName: "", // lastName or userId , If there is no data, please leave it blank
  101. username: "1", // userName or userId , If there is no data, please leave it blank
  102. displayName: "1", // userName or userId , If there is no data, please leave it blank
  103. },
  104. // If the user is already logged in, initialize user data
  105. initUserInfo: function (data) {
  106. this.userInfo.userId = data.userId;
  107. this.userInfo.firstName = data.firstName;
  108. this.userInfo.lastName = data.lastName;
  109. this.userInfo.username = data.username;
  110. this.userInfo.displayName = data.username;
  111. },
  112. // Close AD
  113. destroy: function (adInfo) {
  114. console.log("window.destroy:");
  115. document.querySelector(`.openADJsSDKBanner`).innerHTML = "";
  116. },
  117. };
  118. console.log("window.openADJsSDK:", window.OpenADLineJsSDK);
  119. console.log("window.openAdNative:", window.openAdNative);
  120. };
  121. window.addEventListener("DOMContentLoaded", ads_init);
  122. </script>
  123. <!-- /23296944437/rewarded -->
  124. <div id="div-gpt-ad-1747208248493-0">
  125. <script></script>
  126. </div>
  127. </body>
  128. </html>