e7f00a900ca599acb24fc38f314a6a9566ccd4ad.svn-base 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title></title>
  8. <style>
  9. html,body,header,section,footer,div,ul,ol,li,img,a,span,input,textarea,h1,h2,h3,h4,h5,h6,p{
  10. margin:0;
  11. border:0;
  12. padding:0;
  13. font-style:normal;
  14. }
  15. .mainBox{
  16. padding: 15px;
  17. }
  18. .first_p{
  19. font-size: 16px;
  20. text-indent: 2em;
  21. line-height: 32px;
  22. }
  23. .second_p,.third_p{
  24. margin-top: 20px;
  25. }
  26. .fourth_p{
  27. margin:15px;
  28. }
  29. .sure{
  30. display: inline-block;
  31. width: 100%;
  32. margin-top: 30px;
  33. text-align: center;
  34. width: 100%;
  35. height: 2rem;
  36. border-radius: 4px;
  37. border: 2px solid #3699FF;
  38. line-height: 2rem;
  39. color: #ffffff;
  40. background-color: #3699FF;
  41. font-size: 1em;
  42. }
  43. .cancel{
  44. margin-top: 20px;
  45. display: inline-block;
  46. text-align: center;
  47. width: 100%;
  48. height: 2rem;
  49. line-height: 2rem;
  50. color: #999999;
  51. font-size: 1em;
  52. }
  53. .aui-radio {
  54. outline: none;
  55. width: 1.2rem;
  56. height: 1.2rem;
  57. background-color: #ffffff;
  58. border: solid 1px #dddddd;
  59. -webkit-border-radius: 0.6rem;
  60. border-radius: 0.6rem;
  61. font-size: 0.8rem;
  62. margin: 0;
  63. padding: 0;
  64. position: relative;
  65. display: inline-block;
  66. vertical-align: top;
  67. cursor: default;
  68. -webkit-appearance: none;
  69. -webkit-user-select: none;
  70. user-select: none;
  71. -webkit-transition: background-color ease 0.1s;
  72. transition: background-color ease 0.1s;
  73. }
  74. .aui-radio:checked,
  75. .aui-radio.aui-checked{
  76. background-color: #3699FF;
  77. border: solid 1px #3699FF;
  78. text-align: center;
  79. background-clip: padding-box;
  80. }
  81. .aui-radio:checked:before,
  82. .aui-radio.aui-checked:before,
  83. .aui-radio:checked:after,
  84. .aui-radio.aui-checked:after{
  85. content: '';
  86. width: 0.5rem;
  87. height: 0.3rem;
  88. position: absolute;
  89. top: 50%;
  90. left: 50%;
  91. margin-left: -0.25rem;
  92. margin-top: -0.25rem;
  93. background: transparent;
  94. border: 1px solid #ffffff;
  95. border-top: none;
  96. border-right: none;
  97. z-index: 2;
  98. -webkit-border-radius: 0;
  99. border-radius: 0;
  100. -webkit-transform: rotate(-45deg);
  101. transform: rotate(-45deg);
  102. }
  103. </style>
  104. </head>
  105. <body>
  106. <div class="mainBox">
  107. <h4>
  108. 尊敬的<span id="name">xxx</span>专家:
  109. </h4>
  110. <p class="first_p">
  111. 您好!因工作需要,水利部建设质量与管理安全中心(建安中心)诚邀您参加<span id="year">2019</span>年度第<span id="pici">xx</span>批次稽察工作。您所要稽察的地点是:<span>北京市、天津市</span>,本次稽察工作开始时间为:<span>2019年10月21日</span>。请您根据自身情况,在限制时间内选择是否参加本次稽察工作,谢谢!
  112. </p>
  113. <p class="second_p">
  114. <div id="countdown"></div>
  115. </p>
  116. <p class="third_p">
  117. 请选择是否参加:
  118. </p>
  119. <p class="fourth_p aui-content-padded">
  120. <label style="margin-right: 30px;"><input class="aui-radio" type="radio" name="demo" checked="" > 参加</label>
  121. <label><input class="aui-radio" type="radio" name="demo"> 不参加</label>
  122. </p>
  123. <div class="btnBox">
  124. <span class="sure">确定</span>
  125. <span class="cancel">返回登录</span>
  126. </div>
  127. </div>
  128. <script>
  129. function ShowCountDown(year,month,day,divname)
  130. {
  131. var now = new Date();
  132. var endDate = new Date(year, month, day);
  133. var leftTime=endDate.getTime()-now.getTime();
  134. var dd = parseInt(leftTime / 1000 / 60 / 60 / 24, 10);//计算剩余的天数
  135. var hh = parseInt(leftTime / 1000 / 60 / 60 % 24, 10);//计算剩余的小时数
  136. var mm = parseInt(leftTime / 1000 / 60 % 60, 10);//计算剩余的分钟数
  137. var ss = parseInt(leftTime / 1000 % 60, 10);//计算剩余的秒数
  138. dd = checkTime(dd);
  139. hh = checkTime(hh);
  140. mm = checkTime(mm);
  141. ss = checkTime(ss);//小于10的话加0
  142. var cc = document.getElementById(divname);
  143. cc.innerHTML = "距离" + year + "年" + month + "月" + day + "日还有:<br/><p style='margin-top:20px;text-align:center;'>" + dd + "天" + hh + "小时" + mm + "分" + ss+ "秒</p>";
  144. }
  145. function checkTime(i)
  146. {
  147. if (i < 10) {
  148. i = "0" + i;
  149. }
  150. return i;
  151. }
  152. window.setInterval(function(){ShowCountDown(2019,11,11,'countdown');}, 1000);
  153. </script>
  154. </body>
  155. </html>