1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
var app = (function() {
var app = {}
app.init = function() {
app.bind()
app.build()
app.ready()
app.iscroll_options = {
mouseWheel: true,
scrollbars: true,
click: is_android,
}
}
app.bind = function() {
if (is_mobile) {
document.addEventListener('touchmove', function(e) {
e.preventDefault()
})
FastClick.attach(document.body)
}
}
app.build = function(data) {
app.nav = new NavView()
}
app.ready = function() {
setTimeout(function(){
$("body").removeClass("loading")
}, 20)
app.view = null
app.router = new SiteRouter()
app.router.launch()
console.log("launched")
}
return app
})()
app.init()
$('.top').flickity({
cellAlign: 'left',
contain: true,
pageDots: false,
wrapAround: true,
arrowShape: {
x0: 10,
x1: 35, y1: 25,
x2: 40, y2: 25,
x3: 15
}
});
$('.index').click( function(){
$('body').toggleClass('navopen');
});
$('.item').click( function(){
$('body').removeClass('navopen');
});
|