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