share2.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>走馬短劇</title>
  7. <link href="./css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous" />
  8. <style>
  9. * {
  10. margin: 0;
  11. padding: 0;
  12. }
  13. #app {
  14. width: 100vw;
  15. height: 100vh;
  16. background-image: url(./assets/bg-2.png);
  17. background-position: center;
  18. background-size: cover;
  19. }
  20. #btn {
  21. width: 253px;
  22. height: 51px;
  23. background-image: url(./assets/btn2.png);
  24. background-position: center;
  25. background-size: cover;
  26. position: absolute;
  27. bottom: calc(env(safe-area-inset-bottom) + 30px);
  28. bottom: calc(constant(safe-area-inset-bottom) + 30px);
  29. left: 50%;
  30. transform: translateX(-50%);
  31. z-index: 20;
  32. border-radius: 50px;
  33. }
  34. .video {
  35. position: absolute;
  36. top: 50%;
  37. left: 50%;
  38. transform: translate(-50%, -50%);
  39. border: 2px solid #fff;
  40. }
  41. .video::after {
  42. content: '';
  43. position: absolute;
  44. top: 0;
  45. left: 0;
  46. right: 0;
  47. bottom: 0;
  48. z-index: 1;
  49. background-color: rgba(0, 0, 0, 0.3);
  50. }
  51. #title {
  52. position: absolute;
  53. top: 10px;
  54. font-size: 12px;
  55. color: #ffffff;
  56. line-height: 24px;
  57. text-align: center;
  58. width: 100%;
  59. z-index: 20;
  60. }
  61. #video-cover {
  62. width: 70vw;
  63. display: block;
  64. }
  65. .label-img {
  66. width: 24px;
  67. height: 24px;
  68. }
  69. :root {
  70. --bs-tertiary-bg: #f5f7fa;
  71. --bs-form-control-bg: #f5f7fa;
  72. --bs-border-color: #f5f7fa;
  73. --bs-modal-margin: 28px;
  74. }
  75. .input-group-text {
  76. border-radius: 50px;
  77. }
  78. .form-control {
  79. border-radius: 50px;
  80. }
  81. .modal-dialog {
  82. margin: 28px;
  83. }
  84. .modal-title {
  85. font-size: 20px;
  86. font-family: AlimamaShuHeiTi;
  87. color: #000000;
  88. line-height: 20px;
  89. text-align: center;
  90. margin: 0 auto 22px;
  91. }
  92. .modal-body {
  93. padding: 18px 20px 26px;
  94. }
  95. .submit-btn {
  96. background: linear-gradient(180deg, #ff7340 0%, #ff3e3e 100%);
  97. height: 42px;
  98. font-size: 16px;
  99. font-family: AlimamaShuHeiTi;
  100. color: #ffffff;
  101. line-height: 24px;
  102. text-shadow: 0px 2px 0px #e71d0d;
  103. border-radius: 42px;
  104. margin-top: 10px;
  105. }
  106. .form-check-input:checked {
  107. background-color: #ff7340;
  108. border-color: #ff7340;
  109. }
  110. .form-check-label {
  111. font-size: 12px;
  112. font-weight: 400;
  113. color: #61657a;
  114. line-height: 24px;
  115. }
  116. </style>
  117. </head>
  118. <body>
  119. <div id="app">
  120. <div id="btn" data-bs-toggle="modal" data-bs-target="#exampleModal"></div>
  121. <div
  122. class="modal fade"
  123. id="exampleModal"
  124. tabindex="-1"
  125. aria-labelledby="exampleModalLabel"
  126. aria-hidden="true"
  127. >
  128. <div class="modal-dialog modal-dialog-centered">
  129. <div class="modal-content">
  130. <div class="modal-body">
  131. <div class="modal-title">立即下载</div>
  132. <form class="row g-3 needs-validation" novalidate>
  133. <div class="col-md-4">
  134. <div class="input-group has-validation">
  135. <span class="input-group-text" id="inputEmail">
  136. <img
  137. class="label-img"
  138. src="./assets/email.png"
  139. alt=""
  140. />
  141. </span>
  142. <input
  143. type="email"
  144. class="form-control"
  145. id="email"
  146. aria-describedby="inputEmail"
  147. required
  148. placeholder="請輸入您的郵箱"
  149. />
  150. <div class="invalid-feedback">郵箱不能为空或格式错误</div>
  151. </div>
  152. </div>
  153. <div class="col-12 d-grid gap-2">
  154. <button class="btn submit-btn" type="submit">下载</button>
  155. </div>
  156. </form>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. </div>
  162. <script src="./js/bootstrap.min.js" crossorigin="anonymous"></script>
  163. <script src="./js/form.js" crossorigin="anonymous"></script>
  164. <script>
  165. function GetQueryString(name) {
  166. var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i')
  167. var r = window.location.search.substr(1).match(reg) //获取url中"?"符后的字符串并正则匹配
  168. var context = ''
  169. if (r != null) context = decodeURIComponent(r[2])
  170. reg = null
  171. r = null
  172. return context == null || context == '' || context == 'undefined' ? '' : context
  173. }
  174. </script>
  175. </body>
  176. </html>