index.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. <!DOCTYPE html>
  2. <html lang="en" style="font-size: 50px;">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
  6. <link rel="shortcut icon" href="./img/favicon.ico">
  7. <title>喵视网 海量高清影片、更佳观影体验</title>
  8. <style>
  9. * {
  10. margin: 0;
  11. padding: 0;
  12. }
  13. body {
  14. color: #eaeaea;
  15. background-color: #121212;
  16. transition: color 0.5s, background-color 0.5s;
  17. line-height: 1.6;
  18. }
  19. .content {
  20. width: 100vw;
  21. height: 100vh;
  22. display: flex;
  23. flex-direction: column;
  24. align-items: center;
  25. justify-content: center;
  26. }
  27. .guide_title {
  28. display: flex;
  29. justify-content: center;
  30. align-items: center;
  31. position: relative;
  32. bottom: -0.18rem;
  33. }
  34. .guide_img {
  35. height: 0.52rem;
  36. }
  37. .guide_title_text {
  38. margin-left: 0.12rem;
  39. color: #dd2e07;
  40. font-size: .48rem;
  41. font-weight: 600;
  42. }
  43. .guide_des {
  44. border-radius: 0.06rem;
  45. padding: 0.26rem 0;
  46. text-align: center;
  47. color: #FFF;
  48. font-size: 0.32rem;
  49. font-weight: 600;
  50. }
  51. .address {
  52. font-weight: 600;
  53. font-size: 14px;
  54. width: 300px;
  55. height: 0.96rem;
  56. color: #dfdfdf;
  57. display: flex;
  58. gap: 0.26rem;
  59. align-items: center;
  60. border-radius: 0.16rem;
  61. background: rgba(0, 0, 0, 0.5);
  62. border: 1px solid #333;
  63. overflow: hidden;
  64. }
  65. .address_title {
  66. height: 0.96rem;
  67. line-height: 0.96rem;
  68. text-align: center;
  69. width: 2rem;
  70. background-color: #dd2e07;
  71. }
  72. .address_value {
  73. font-size: 16px;
  74. }
  75. .downText {
  76. color: #FFF;
  77. text-align: center;
  78. font-size: .32rem;
  79. font-weight: 600;
  80. margin: .2rem 0;
  81. }
  82. .downloadLine {
  83. margin-top: 0.26rem;
  84. width: 6.2rem;
  85. font-size: 16px;
  86. font-weight: bold;
  87. color: #494949;
  88. border-radius: 4px;
  89. padding: 15px 0;
  90. text-align: center;
  91. display: flex;
  92. align-items: center;
  93. justify-content: center;
  94. }
  95. #iosdownload-cn {
  96. background-color: #ffffff;
  97. }
  98. #androiddownload-cn {
  99. color: #ffffff;
  100. background-color: #dd2e07;
  101. }
  102. #iosdownload-en {
  103. background-color: #ffffff;
  104. }
  105. #androiddownload-en {
  106. color: #ffffff;
  107. background-color: #dd2e07;
  108. }
  109. .downloadLine img {
  110. width: 20px;
  111. margin-right: 8px;
  112. margin-top: -2px;
  113. }
  114. .addressTxt {
  115. color: #FFF;
  116. text-align: center;
  117. font-size: .28rem;
  118. font-weight: 600;
  119. margin-top: .26rem;
  120. }
  121. .email_address {
  122. text-align: center;
  123. margin-top: .26rem;
  124. color: #dfdfdf;
  125. font-size: 0.28rem;
  126. }
  127. .top-right-img {
  128. position: absolute;
  129. top: 0;
  130. right: 25px;
  131. }
  132. .switch {
  133. display: none;
  134. }
  135. .switch-label {
  136. position: relative;
  137. display: inline-block;
  138. width: 60px;
  139. height: 34px;
  140. background-color: #ccc;
  141. border-radius: 34px;
  142. cursor: pointer;
  143. transition: background-color 0.4s;
  144. -webkit-tap-highlight-color: transparent;
  145. outline: none;
  146. user-select: none;
  147. }
  148. .switch-label::before {
  149. content: '';
  150. position: absolute;
  151. width: 26px;
  152. height: 26px;
  153. left: 4px;
  154. bottom: 4px;
  155. background-color: white;
  156. border-radius: 50%;
  157. transition: transform 0.4s;
  158. }
  159. .switch:checked+.switch-label {
  160. background-color: #dd2e07;
  161. }
  162. .switch:checked+.switch-label::before {
  163. transform: translateX(26px);
  164. }
  165. .switch-text {
  166. position: absolute;
  167. top: 50%;
  168. transform: translateY(-50%);
  169. font-size: 12px;
  170. color: white;
  171. font-weight: bold;
  172. }
  173. .switch-text:first-child {
  174. left: 8px;
  175. }
  176. .switch-text:last-child {
  177. right: 8px;
  178. color: black;
  179. }
  180. .guide_image {
  181. text-align: center;
  182. }
  183. #zn {
  184. display: none;
  185. }
  186. </style>
  187. </head>
  188. <body>
  189. <div class="content">
  190. <div class="top-right-img">
  191. <input type="checkbox" id="language-switch" class="switch">
  192. <label for="language-switch" class="switch-label">
  193. <span class="switch-text" id="switchEN">中</span>
  194. <span class="switch-text" id="switchZH">EN</span>
  195. </label>
  196. </div>
  197. <!-- 中文 -->
  198. <div id="en">
  199. <div class="guide_image">
  200. <img src="./img/logoHome.png">
  201. </div>
  202. <div class="guide_title">
  203. <p class="guide_title_text">-喵视网 APP-</p>
  204. </div>
  205. <div class="guide_des">海量高清影片、更佳观影体验</div>
  206. <div class="address">
  207. <div class="address_title">点我观看</div>
  208. <div class="address_value">https://c1.ys789.tv</div>
  209. </div>
  210. <div class="downText">—— 永久有效客户端,请务必下载 ——</div>
  211. <div id="iosdownload-cn" class="downloadLine">
  212. <img src="./img/iosp.png">苹果端-99.9%的人选择下载
  213. </div>
  214. <div id="androiddownload-cn" class="downloadLine">
  215. <img src="./img/andp.png">安卓端-99.9%的人选择下载
  216. </div>
  217. <div class="addressTxt">请下载客户端进行看片<br>当前可用!请尽快下载!<br>如客户端失效,24小时内会补充新的<br>iOS端下载后,请在意见反馈中输入666进行解锁</div>
  218. <p class="email_address">联系邮箱:alexsqe9@gmail.com</p>
  219. </div>
  220. <!-- 英文 -->
  221. <div id="zn">
  222. <div class="guide_image">
  223. <img src="./img/logoHome.png">
  224. </div>
  225. <div class="guide_title">
  226. <p class="guide_title_text">-喵视网 APP-</p>
  227. </div>
  228. <div class="guide_des">Vast HD films, superior experience</div>
  229. <div class="address">
  230. <div class="address_title">Watch</div>
  231. <div class="address_value">https://c1.ys789.tv</div>
  232. </div>
  233. <div class="downText">—— Lifetime app, download now. ——</div>
  234. <div id="iosdownload-en" class="downloadLine">
  235. <img src="./img/iosp.png">99% iOS Download
  236. </div>
  237. <div id="androiddownload-en" class="downloadLine">
  238. <img src="./img/andp.png">99% android Download
  239. </div>
  240. <div class="addressTxt">Download the app to watch<br>Available now! Hurry!<br>New version in 24h if needed<br>iOS: Enter 666 in feedback to unlock
  241. </div>
  242. <p class="email_address">Email:alexsqe9@gmail.com</p>
  243. </div>
  244. </div>
  245. <script>
  246. let IosURL = '';
  247. let AndURL = '';
  248. let isDataLoaded = false;
  249. const iosDomCN = document.querySelector('#iosdownload-cn');
  250. const androidDomCN = document.querySelector('#androiddownload-cn');
  251. const iosDomEN = document.querySelector('#iosdownload-en');
  252. const androidDomEN = document.querySelector('#androiddownload-en');
  253. const languageSwitch = document.querySelector('#language-switch');
  254. const enDiv = document.querySelector('#en');
  255. const znDiv = document.querySelector('#zn');
  256. function handleClick(url, isEnglish = false) {
  257. if (!isDataLoaded) {
  258. return alert(isEnglish ? 'Still loading, please try later.' : '资源正在加载中,请稍候。');
  259. }
  260. if (!url) {
  261. return alert(isEnglish ? 'No resource available, we will update soon.' : '暂无资源,我们将尽快更新');
  262. }
  263. window.open(url);
  264. }
  265. iosDomCN.addEventListener('click', () => handleClick(IosURL));
  266. androidDomCN.addEventListener('click', () => handleClick(AndURL));
  267. iosDomEN.addEventListener('click', () => handleClick(IosURL, true));
  268. androidDomEN.addEventListener('click', () => handleClick(AndURL, true));
  269. languageSwitch.addEventListener('change', function () {
  270. if (!this.checked) {
  271. enDiv.style.display = 'block';
  272. znDiv.style.display = 'none';
  273. } else {
  274. enDiv.style.display = 'none';
  275. znDiv.style.display = 'block';
  276. }
  277. });
  278. document.addEventListener("DOMContentLoaded", function () {
  279. fetch("https://ys.co5pct5zio5zci6k6h6icd5ou1.app/Admin/Taskorder/sel_ys_download_url")
  280. .then(response => response.json())
  281. .then(res => {
  282. let data = res.data[0];
  283. IosURL = data.ios;
  284. AndURL = data.android;
  285. isDataLoaded = true;
  286. console.log("Download URLs loaded:", IosURL, AndURL);
  287. })
  288. .catch(error => {
  289. console.error('Error loading URLs:', error);
  290. alert('加载资源失败,请稍后再试');
  291. });
  292. document.querySelectorAll('.address').forEach(item => {
  293. item.addEventListener('click', function () {
  294. window.open('https://c1.ys789.tv');
  295. });
  296. });
  297. });
  298. </script>
  299. </body>
  300. </html>