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
74ba5f30
Commit
74ba5f30
authored
Apr 21, 2017
by
afzafri
Browse files
hide output box first, show only when comic is loaded
parent
b9431e63
Changes
1
Hide whitespace changes
Inline
Side-by-side
assets/js/script.js
View file @
74ba5f30
$
(
document
).
ready
(
function
(){
// hide the output box first
$
(
'
#output
'
).
hide
();
// Load all the archive formats
loadArchiveFormats
([
'
rar
'
,
'
zip
'
,
'
tar
'
]);
$
(
"
#fileup
"
).
change
(
function
(){
$
(
'
#output
'
).
hide
();
// init the gallery plugin, when there is a first click on a image
// re-bind this function when opening new comic
$
(
document
).
one
(
'
click
'
,
'
#comicImg
'
,
function
(){
...
...
@@ -45,6 +50,9 @@ $(document).ready(function(){
// hide loading
$
(
'
.se-pre-con
'
).
fadeOut
(
'
slow
'
);
// show output box
$
(
'
#output
'
).
fadeIn
(
'
slow
'
);
}
else
{
...
...
@@ -52,6 +60,9 @@ $(document).ready(function(){
// hide loading
$
(
'
.se-pre-con
'
).
fadeOut
(
'
slow
'
);
// show output box
$
(
'
#output
'
).
fadeIn
(
'
slow
'
);
}
});
});
...
...
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