reader.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title data-bind="text: documentTitle">Pow! Comics Reader</title>
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <link href="lib/bootstrap/v3/css/bootstrap.min.css" rel="stylesheet" media="screen">
  7. <link href="lib/bootstrap/v3/css/bootstrap-theme.min.css" rel="stylesheet" media="screen">
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  9. <script src="lib/bootstrap/v3/js/jquery.js"></script>
  10. <script src="lib/bootstrap/v3/js/bootstrap.min.js"></script>
  11. <script src="lib/localforage.min.js"></script>
  12. <script src="lib/knockout.js"></script>
  13. <link rel="stylesheet" type="text/css" href="reader.css"/>
  14. <script type="text/javascript" src="reader.js"></script>
  15. </head>
  16. <body data-bind="css: themeName">
  17. <div class="modal fade" id="settings-modal" tabindex="-1" role="dialog">
  18. <div class="modal-dialog" role="document">
  19. <div class="modal-content">
  20. <div class="modal-header">
  21. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
  22. </button>
  23. <h4 class="modal-title">Options</h4>
  24. </div>
  25. <div class="modal-body">
  26. <form name="settings-form" onsubmit="return false" class="form-horizontal">
  27. <div class="form-group">
  28. <label class="col-sm-3 control-label">Theme:</label>
  29. <div class="col-sm-9">
  30. <select class="theme-select form-control" data-bind="value: themeName">
  31. <option value="default">Default</option>
  32. <option value="dark">Dark</option>
  33. </select>
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="col-sm-3 control-label">Reading:</label>
  38. <div class="col-sm-9">
  39. <div class="checkbox">
  40. <label><input class="fit-to-width-cb" type="checkbox" data-bind="attr: { checked: fitToWidth }"> Fit to width</label>
  41. </div>
  42. <div class="checkbox">
  43. <label title="Applies for active file"><input class="single-column-cb" type="checkbox" data-bind="attr: { checked: singleColumn }">
  44. Single column</label>
  45. </div>
  46. <div class="checkbox">
  47. <label title="Applies for active file"><input class="flip-columns-cb" type="checkbox" data-bind="attr: { checked: flipColumns }">
  48. Mirror (manga mode)</label>
  49. </div>
  50. </div>
  51. </div>
  52. <hr/>
  53. <div class="form-group">
  54. <label class="col-sm-3 control-label">Sync account:</label>
  55. <div class="col-sm-9">
  56. <input type="email" class="form-control sync-account" placeholder="Not set, sync disabled" data-bind="value: syncAccount">
  57. </div>
  58. </div>
  59. </form>
  60. </div>
  61. <div class="modal-footer">
  62. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. <div class="container">
  68. <div id="splash" class="splash text-muted" data-bind="visible: !fileName(), html: errorMessage"></div>
  69. <div id="loading" class="splash text-muted" data-bind="visible: isLoading()"><img src="img/spinning-circles.svg"></div>
  70. <div id="left">
  71. <div class="top">
  72. <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
  73. </div>
  74. <div class="separator">
  75. </div>
  76. <div class="bottom">
  77. <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
  78. </div>
  79. </div>
  80. <div id="right">
  81. <div class="top">
  82. <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
  83. </div>
  84. <div class="separator">
  85. </div>
  86. <div class="bottom">
  87. <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
  88. </div>
  89. </div>
  90. <div id="reader" data-bind="css: { 'fit-width': fitToWidth, 'fit-size': fitSize, 'flip-columns': flipColumns, 'single-column': singleColumn }">
  91. <img class="left-page" data-bind="attr: { src: getLeftPage }">
  92. <img style="display : none" data-bind="attr: { src: getRightPage }" class="right-page hidden-xs hidden-sm hidden-md hidden-portrait">
  93. </div>
  94. </div>
  95. </body>
  96. </html>