index.html 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!doctype html>
  2. <!--[if lt IE 7 ]> <html lang="en" class="ie6"> <![endif]-->
  3. <!--[if IE 7 ]> <html lang="en" class="ie7"> <![endif]-->
  4. <!--[if IE 8 ]> <html lang="en" class="ie8"> <![endif]-->
  5. <!--[if IE 9 ]> <html lang="en" class="ie9"> <![endif]-->
  6. <!--[if !IE]><!--> <html lang="en" class="touch"> <!--<![endif]-->
  7. <head>
  8. <meta charset="utf-8">
  9. <meta name="viewport" content="width = device-width, minimum-scale=1,maximum-scale=1, user-scalable = no" />
  10. <meta name="apple-mobile-web-app-capable" content="yes">
  11. <title>逻辑狗book</title>
  12. <link type="text/css" rel="stylesheet" href="assets/css/flipify-viewer.css"></link>
  13. <link type="text/css" rel="stylesheet" href="assets/css/turn.css"></link>
  14. <link type="text/css" rel="stylesheet" href="assets/css/viewer.css"></link>
  15. <style>
  16. .touch .bar-container{
  17. background-color: #fff !important;
  18. }
  19. .bottom {
  20. display: none;
  21. }
  22. /* .page-wrapper {
  23. width: 375px !important;
  24. height: 520px !important;
  25. }
  26. .inner-page .page {
  27. width: 375px !important;
  28. height: 520px !important;
  29. } */
  30. .bar-container {
  31. display: none;
  32. }
  33. </style>
  34. </head>
  35. <body>
  36. <div id="viewer">
  37. <div class="bar-container">
  38. <div class="bar">
  39. <div class="edges">
  40. <div class="bg"></div>
  41. </div>
  42. <div class="items">
  43. <div class="item"><i class="icon zoom-in"></i></div>
  44. <div class="item"><i class="icon zoom-out"></i></div>
  45. <div class="item"><i class="icon prev-page"></i></div>
  46. <div class="item"><i class="icon next-page"></i></div>
  47. <div class="item"><i class="icon share"></i></div>
  48. <div class="item"><i class="icon clip"></i></div>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="magazine-viewport" style="width:100%; height:100%;">
  53. <div class="magazine turn-magazine" id="magazine">
  54. <div ignore="1" class="control control-previous-page"> <div><i></i></div> </div>
  55. <div ignore="1" class="control control-next-page"> <div><i></i></div> </div>
  56. </div>
  57. </div>
  58. <!-- Thumbnails -->
  59. <div class="bottom">
  60. <div class="edges">
  61. <div class="thumbnails">
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. <script type="text/javascript" src="assets/scripts/all.js"></script>
  67. <script type="text/javascript">
  68. window.onload = function () {
  69. for (let index = 1; index < 42; index++) {
  70. const img = document.createElement('img')
  71. // img.src = `https://cdn.temp.luojigou.vip/turn_temp_${index}.jpg`
  72. const count = index < 10 ? '0' + index : index
  73. img.src = `https://img.luojigou.vip/6.30%E6%B8%B8%E6%88%8F%E5%AE%A4%E6%89%8B%E5%86%8C%E5%91%A8%E5%9B%9B-${count}.jpg`
  74. }
  75. }
  76. //
  77. flipify({
  78. id: 1,
  79. name: '逻辑狗book',
  80. pages: 41,
  81. pageWidth: 922*4,
  82. pageHeight: 2557,
  83. path: 'statics/issue/'
  84. });
  85. </script>
  86. </body>
  87. </html>