Compare commits
4 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e6866964bd | ||
![]() |
e1491a7e6f | ||
![]() |
abe97094e8 | ||
![]() |
5987eb3b78 |
2
Makefile
|
@ -22,6 +22,8 @@ build:
|
|||
@cat fonts/icomoon-toolbar/style.css css/reset.css css/styles.css css/toolbar.css > comicbook/comicbook.css
|
||||
@echo "Copying assets..."
|
||||
@cp -r css/img comicbook/img
|
||||
@cp -r icons/1_Desktop_Icons/icon_128.png comicbook/img
|
||||
@cp -r icons/1_Desktop_Icons/icon_196.png comicbook/img
|
||||
@cp -r fonts/icomoon-toolbar/fonts comicbook
|
||||
@cp -r fonts/icomoon-toolbar/license.txt comicbook/fonts
|
||||
@echo "Updating examples"
|
||||
|
|
21
TODO
Normal file
|
@ -0,0 +1,21 @@
|
|||
Fo sho:
|
||||
- remember reading position / applied effects (per comic)
|
||||
- offline mode via cache manifest
|
||||
- firefox marketplace
|
||||
- create onclose callback, show close button only if set
|
||||
- trigger preload if requesting valid but not loaded images (can happen if network was interupted)
|
||||
- loading and generally hackiness of pointer is buggy, fix.
|
||||
- check for html5 feature support where used: diveintohtml5.org/everything.html or www.modernizr.com
|
||||
|
||||
Nice 2 have:
|
||||
- remove image inhancement lag when navigating by pre-applying enhancements to other pages
|
||||
- jump to page?
|
||||
- make page draggable with the cursor
|
||||
- enable menu items via config, allow for custom items
|
||||
- split out classes into seperate files
|
||||
- thumbnail browser
|
||||
- refactor so we are not using all these loose shared variables and other nastyness
|
||||
- use custom event emitters instead of hacky code
|
||||
- properly bind 'this' so we don't have to keep using 'self'
|
||||
- allow toolbar to be hidden on mobile (maybe show a small translucent button that opens the toolbar when clicked)
|
||||
- enhancement progress bar
|
|
@ -3,14 +3,18 @@
|
|||
<head>
|
||||
<meta charset="utf8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<title>Basic</title>
|
||||
<title>Comic Book Reader</title>
|
||||
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
|
||||
<script src="comicbook/js/comicbook.min.js"></script>
|
||||
<link rel="stylesheet" href="comicbook/comicbook.css">
|
||||
<link rel="shortcut icon" sizes="196x196" href="../icons/1_Desktop_icons/icon_196.png">
|
||||
<link rel="apple-touch-icon" sizes="128x128" href="../icons/1_Desktop_icons/con_128.png">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="128x128" href="../icons/1_Desktop_icons/con_128.png">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
|
@ -3,10 +3,11 @@
|
|||
<head>
|
||||
<meta charset="utf8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<title>Dev</title>
|
||||
<title>Comic Book Reader (Dev)</title>
|
||||
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
|
||||
<script src="../lib/vendor/pixastic/pixastic.js"></script>
|
||||
|
@ -19,6 +20,9 @@
|
|||
<link rel="stylesheet" href="../fonts/icomoon-toolbar/style.css">
|
||||
<link rel="stylesheet" href="../css/styles.css">
|
||||
<link rel="stylesheet" href="../css/toolbar.css">
|
||||
<link rel="shortcut icon" sizes="196x196" href="../icons/1_Desktop_icons/icon_196.png">
|
||||
<link rel="apple-touch-icon" sizes="196x196" href="../icons/1_Desktop_icons/icon_196.png">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="196x196" href="../icons/1_Desktop_icons/icon_196.png">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
|
@ -9,16 +9,20 @@
|
|||
<head>
|
||||
<meta charset="utf8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<title>App</title>
|
||||
<title>Comic Book Reader</title>
|
||||
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
|
||||
<script src="bitjs/io.js"></script>
|
||||
<script src="bitjs/archive.js"></script>
|
||||
<script src="comicbook/js/comicbook.min.js"></script>
|
||||
<link rel="stylesheet" href="comicbook/comicbook.css">
|
||||
<link rel="shortcut icon" sizes="196x196" href="../icons/1_Desktop_icons/icon_196.png">
|
||||
<link rel="apple-touch-icon" sizes="128x128" href="../icons/1_Desktop_icons/con_128.png">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="128x128" href="../icons/1_Desktop_icons/con_128.png">
|
||||
<style>
|
||||
#filepicker {
|
||||
margin: 10px;
|
||||
|
|
BIN
icons/1_Desktop_Icons/icon_016.png
Executable file
After Width: | Height: | Size: 646 B |
BIN
icons/1_Desktop_Icons/icon_032.png
Executable file
After Width: | Height: | Size: 1.3 KiB |
BIN
icons/1_Desktop_Icons/icon_048.png
Executable file
After Width: | Height: | Size: 1.9 KiB |
BIN
icons/1_Desktop_Icons/icon_128.png
Executable file
After Width: | Height: | Size: 4.7 KiB |
BIN
icons/1_Desktop_Icons/icon_196.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
icons/1_Desktop_Icons/icon_512.png
Executable file
After Width: | Height: | Size: 19 KiB |
BIN
icons/2_Android_Icons/icon_036.png
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
icons/2_Android_Icons/icon_048.png
Executable file
After Width: | Height: | Size: 1.9 KiB |
BIN
icons/2_Android_Icons/icon_072.png
Executable file
After Width: | Height: | Size: 4.3 KiB |
BIN
icons/3_iPhone_Icons/icon_029.png
Executable file
After Width: | Height: | Size: 1.7 KiB |
BIN
icons/3_iPhone_Icons/icon_048.png
Executable file
After Width: | Height: | Size: 1.9 KiB |
BIN
icons/3_iPhone_Icons/icon_057.png
Executable file
After Width: | Height: | Size: 3.9 KiB |
BIN
icons/3_iPhone_Icons/icon_072.png
Executable file
After Width: | Height: | Size: 4.3 KiB |
BIN
icons/3_iPhone_Icons/icon_512.png
Executable file
After Width: | Height: | Size: 19 KiB |
|
@ -1,30 +1,5 @@
|
|||
/* exported ComicBook */
|
||||
|
||||
/*
|
||||
TODOs:
|
||||
|
||||
Fo sho:
|
||||
- create onclose callback, show close button only if set
|
||||
- fix progress bar css
|
||||
- trigger preload if requesting valid but not loaded images (can happen if network was interupted)
|
||||
- loading and generally hackiness of pointer is buggy, fix.
|
||||
- check for html5 feature support where used: diveintohtml5.org/everything.html or www.modernizr.com
|
||||
- full browser test - IE9 / FF3.6+ / Chrome / Safari / Opera
|
||||
|
||||
Nice 2 have:
|
||||
- remove image inhancement lag when navigating by pre-applying enhancements to other pages
|
||||
- jump to page?
|
||||
- make page draggable with the cursor
|
||||
- enable menu items via config, allow for custom items
|
||||
- split out classes into seperate files
|
||||
- thumbnail browser
|
||||
- refactor so we are not using all these loose shared variables and other nastyness
|
||||
- use custom event emitters instead of hacky code
|
||||
- properly bind 'this' so we don't have to keep using 'self'
|
||||
- allow toolbar to be hidden on mobile (maybe show a small translucent button that opens the toolbar when clicked)
|
||||
- enhancement progress bar
|
||||
*/
|
||||
|
||||
var ComicBook = (function ($) {
|
||||
|
||||
'use strict';
|
||||
|
@ -92,7 +67,7 @@ var ComicBook = (function ($) {
|
|||
this.isMobile = false;
|
||||
|
||||
// mobile enhancements
|
||||
if (navigator.userAgent.match(/mobile/i)) {
|
||||
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile/i.test(navigator.userAgent)) {
|
||||
this.isMobile = true;
|
||||
document.body.classList.add('mobile');
|
||||
defaults.displayMode = 'single';
|
||||
|
@ -199,6 +174,9 @@ var ComicBook = (function ($) {
|
|||
|
||||
window.addEventListener('touchstart', function (e) {
|
||||
var $el = $(e.target);
|
||||
if ($el.attr('id') === 'comic') {
|
||||
self.toggleToolbar();
|
||||
}
|
||||
if ($el.data('toggle') === 'dropdown' ) {
|
||||
$el.siblings('.dropdown').toggle();
|
||||
}
|
||||
|
@ -873,6 +851,10 @@ var ComicBook = (function ($) {
|
|||
.find('.manga-' + !options.manga).hide();
|
||||
};
|
||||
|
||||
ComicBook.prototype.toggleToolbar = function () {
|
||||
self.toggleControl('toolbar');
|
||||
};
|
||||
|
||||
ComicBook.prototype.destroy = function () {
|
||||
|
||||
$.each(this.controls, function (name, $control) {
|
||||
|
|