大空间消毒机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.7 KiB

2 years ago
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <title>烟雨江南客户端下载</title>
  8. <style>
  9. * {
  10. padding: 0;
  11. margin: 0;
  12. }
  13. .main {
  14. background: url('http://image.gyyxcdn.cn/upload/wd/p/wallpaper/2018bz6_1920.jpg')
  15. no-repeat;
  16. background-size: 100% 100%;
  17. width: 100vw;
  18. height: 100vh;
  19. box-sizing: border-box;
  20. display: flex;
  21. align-items: center;
  22. justify-content: flex-end;
  23. padding-right: 140px;
  24. }
  25. .btn {
  26. border: solid 1px #ddd;
  27. padding: 60px 80px;
  28. cursor: pointer;
  29. border-radius: 16px;
  30. color: #fff;
  31. font-size: 30px;
  32. background: linear-gradient(to bottom, #000000, #ffffff);
  33. }
  34. </style>
  35. </head>
  36. <body>
  37. <div class="main">
  38. <div class="btn" onclick="download()">下载烟雨江南客户端</div>
  39. </div>
  40. </body>
  41. <script>
  42. const download = () => {
  43. fetch(
  44. 'https://lz.qaiu.top/json/parser?url=https://www.123pan.com/s/PK2tVv-1RxsA.html',
  45. )
  46. .then(res => res.json())
  47. .then(res => {
  48. if (res.code == 200) {
  49. let a = document.createElement('a') //创建一个a标签元素
  50. a.style.display = 'none' //设置元素不可见
  51. a.href = res.data //设置下载地址
  52. document.body.appendChild(a) //加入
  53. a.click() //触发点击,下载
  54. document.body.removeChild(a) / 释放
  55. }
  56. })
  57. .catch(err => console.log(err))
  58. }
  59. </script>
  60. </html>