iOS webapp enhancements
This commit is contained in:
parent
b677d1ba76
commit
587e2135f3
5 changed files with 22 additions and 0 deletions
|
@ -91,10 +91,16 @@ var ComicBook = (function ($) {
|
|||
|
||||
this.isMobile = false;
|
||||
|
||||
// mobile enhancements
|
||||
if (navigator.userAgent.match(/mobile/i)) {
|
||||
this.isMobile = true;
|
||||
document.body.classList.add('mobile');
|
||||
defaults.displayMode = 'single';
|
||||
window.addEventListener('load', function () {
|
||||
setTimeout(function () {
|
||||
window.scrollTo(0, 1);
|
||||
}, 0);
|
||||
});
|
||||
}
|
||||
|
||||
var options = merge(defaults, opts); // options array for internal use
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue