Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Web-Comic-Reader
Commits
3f9f7790
Commit
3f9f7790
authored
Feb 14, 2020
by
Afif Zafri
Browse files
Add styles to the Tab
parent
1287b819
Changes
3
Hide whitespace changes
Inline
Side-by-side
assets/css/styles.css
View file @
3f9f7790
...
...
@@ -2,6 +2,22 @@ body {
background-color
:
#EEEEEE
;
}
.tab-button
{
background-color
:
#e7e7e7
;
/* Gray */
color
:
black
;
border
:
1px
solid
grey
;
padding
:
15px
32px
;
text-align
:
center
;
text-decoration
:
none
;
display
:
inline-block
;
font-size
:
16px
;
}
.tab-button.active
{
background-color
:
#008CBA
;
/* Blue */
color
:
white
;
}
.se-pre-con
{
position
:
fixed
;
left
:
0px
;
...
...
assets/js/script.js
View file @
3f9f7790
$
(
document
).
ready
(
function
(){
// current year
$
(
'
#currYear
'
).
html
((
new
Date
()).
getFullYear
());
// tab switch
$
(
document
).
on
(
'
click
'
,
'
#tab
'
,
function
()
{
// reset all
$
(
'
#output
'
).
hide
();
$
(
'
.tab-button
'
).
removeClass
(
'
active
'
);
$
(
'
.option
'
).
hide
();
// set active
var
currentID
=
$
(
this
).
attr
(
'
tab
'
);
$
(
this
).
addClass
(
'
active
'
);
$
(
'
#
'
+
currentID
).
show
();
});
// current year
$
(
'
#currYear
'
).
html
((
new
Date
()).
getFullYear
());
// Load all the archive formats
loadArchiveFormats
([
'
rar
'
,
'
zip
'
,
'
tar
'
]);
...
...
index.html
View file @
3f9f7790
...
...
@@ -15,29 +15,36 @@
<center>
<fieldset>
<legend>
Open Comic (Choose file from you computer)
</legend>
<
input
type=
"file"
name=
"fileup"
id=
"fileup"
accept=
".cbr,.cbz,.cbt"
><br
>
<
i>
(cbr,cbz,cbt files only)
</i
>
</fieldset
>
<br>
<br>
<legend>
<
button
class=
"tab-button active"
id=
"tab"
tab=
"upload"
>
Choose file from you computer
</button
>
<
button
class=
"tab-button"
id=
"tab"
tab=
"internal"
>
Open file stored in the server
</button
>
</legend
>
<br>
<fieldset>
<legend>
Open Comic (Open comic file stored in the server)
</legend>
<button
id=
"readNow"
comic_title=
"whizzkids_united.cbz"
>
<img
src=
'./comics/whizzkids_united_thumb.jpg'
class=
'imgUrl'
/>
<br>
Whizzkids United vs HIV
</button>
<button
id=
"readNow"
comic_title=
"zack_and_max.cbz"
>
<img
src=
'./comics/zack_and_max_thumb.jpg'
class=
'imgUrl'
/>
<br>
The Adventures of Zack
&
Max
</button>
<button
id=
"readNow"
comic_title=
"comic_strip.cbz"
>
<img
src=
'./comics/comic_strip_thumb.jpg'
class=
'imgUrl'
/>
<br>
Alien Comic Strip
</button>
<div
id=
"upload"
class=
"option"
>
<input
type=
"file"
name=
"fileup"
id=
"fileup"
accept=
".cbr,.cbz,.cbt"
><br>
<i>
(cbr,cbz,cbt files only)
</i>
</div>
<div
id=
"internal"
class=
"option"
style=
"display:none"
>
<button
id=
"readNow"
comic_title=
"whizzkids_united.cbz"
>
<img
src=
'./comics/whizzkids_united_thumb.jpg'
class=
'imgUrl'
/>
<br>
Whizzkids United vs HIV
</button>
<button
id=
"readNow"
comic_title=
"zack_and_max.cbz"
>
<img
src=
'./comics/zack_and_max_thumb.jpg'
class=
'imgUrl'
/>
<br>
The Adventures of Zack
&
Max
</button>
<button
id=
"readNow"
comic_title=
"comic_strip.cbz"
>
<img
src=
'./comics/comic_strip_thumb.jpg'
class=
'imgUrl'
/>
<br>
Alien Comic Strip
</button>
</div>
<br>
</fieldset>
<br><br>
<!-- output comics images here -->
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment