Commit f3881e1e by doszhang

dos

parent dca937d6
......@@ -70,9 +70,26 @@ $(document).ready(function () {
$('.page1 .btn-next').on('click', toPage2);
$('.page2 .btn-next').on('click', toPage3);
$('.scene-1').on('click', {
scene: 1
}, toscene)
$('.scene-2').on('click', {
scene: 2
}, toscene)
$('.scene-3').on('click', {
scene: 3
}, toscene)
});
function toscene(event) {
const scene = event.data.scene;
$('.page').hide()
$(`.page${scene+3}`).show();
}
function toPage2() {
$('.container').css('overflow-x', 'scroll').css('overflow-y', 'hidden');
$('.page1').hide();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment