mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
add page flip
This commit is contained in:
parent
0adf5ed2c7
commit
5a50c6f789
@ -36,13 +36,7 @@ function initialize() {
|
|||||||
router();
|
router();
|
||||||
$(window).on('hashchange', router);
|
$(window).on('hashchange', router);
|
||||||
var flip = document.querySelector('#flip');
|
var flip = document.querySelector('#flip');
|
||||||
var hasTouch = 'ontouchstart' in window;
|
Veil(flip, {prop: 'bottom'});
|
||||||
|
|
||||||
if (!hasTouch) {
|
|
||||||
Veil(flip, {
|
|
||||||
prop: 'bottom'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function init_sidebar_section() {
|
function init_sidebar_section() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user