index.ejs 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. <!--http://www.html5rocks.com/en/mobile/mobifying/-->
  8. <meta
  9. name="viewport"
  10. content="width=device-width,user-scalable=no,initial-scale=1,minimum-scale=1,maximum-scale=1,minimal-ui=true"
  11. />
  12. <!--https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html-->
  13. <meta name="apple-mobile-web-app-capable" content="yes" />
  14. <meta
  15. name="apple-mobile-web-app-status-bar-style"
  16. content="black-translucent"
  17. />
  18. <meta name="format-detection" content="telephone=no" />
  19. <!-- force webkit on 360 -->
  20. <meta name="renderer" content="webkit" />
  21. <meta name="force-rendering" content="webkit" />
  22. <!-- force edge on IE -->
  23. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  24. <meta name="msapplication-tap-highlight" content="no" />
  25. <!-- force full screen on some browser -->
  26. <meta name="full-screen" content="yes" />
  27. <meta name="x5-fullscreen" content="true" />
  28. <meta name="360-fullscreen" content="true" />
  29. <!--fix fireball/issues/3568 -->
  30. <!--<meta name="browsermode" content="application">-->
  31. <meta name="x5-page-mode" content="app" />
  32. <!--<link rel="apple-touch-icon" href=".png" />-->
  33. <!--<link rel="apple-touch-icon-precomposed" href=".png" />-->
  34. <link rel="stylesheet" type="text/css" href="<%= cssUrl %>" />
  35. <script src="./libs/ethers.umd.min.js"></script>
  36. <script type="module" crossorigin src="./libs/pog.js"></script>
  37. <script type="text/javascript" src="./libs/vconsole.min.js"></script>
  38. <script
  39. name="OpenADLineJsSDK"
  40. version="1.0"
  41. type="text/javascript"
  42. src="https://protocol.openad.network/line/sdk.loader.js?v=1.0"
  43. ></script>
  44. <script src="//www.googletagservices.com/tag/js/gpt.js"></script>
  45. </head>
  46. <body>
  47. <div id="GameDiv" cc_exact_fit_screen="true">
  48. <div id="Cocos3dGameContainer">
  49. <canvas
  50. id="GameCanvas"
  51. oncontextmenu="event.preventDefault()"
  52. tabindex="99"
  53. ></canvas>
  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. <script>
  124. const PogVersionText = "PogVersionTextInIndexHtml";
  125. window["pog_init_data"] = {
  126. version: PogVersionText,
  127. };
  128. </script>
  129. </body>
  130. </html>