-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
56 lines (52 loc) · 1.12 KB
/
index.js
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
const http = require('http');
const https = require('https');
const fs = require('fs');
const remote = require('electron').remote;
const app = remote.app;
$(document).ready(function(){
$('.photos-slider').slick({
dots: true,
infinite: true,
speed: 500,
fade: true,
autoplay: true,
autoplaySpeed: 2000
});
$('.photos').slick({
dots: true,
autoplay: true,
centerMode: true,
slidesToShow: 3,
slidesToScroll: 3,
responsive: [
{
breakpoint: 768,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 3
}
},
{
breakpoint: 480,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 1
}
}
]
});
$(this).keydown((e) => {
if (e.which === 123) {
waitSync();
setTimeout(() => {
suscribe();
sync();
}, 2000);
} else if (e.which === 116) location.reload();
else if (e.which === 120) remote.getCurrentWindow().toggleDevTools();
});
});