-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.js
44 lines (34 loc) · 1007 Bytes
/
app.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
//manual changing//
var slideIndex = 1;
showDivs(slideIndex);
function plusDivs(n) {
showDivs(slideIndex += n);
}
function showDivs(n) {
var i;
var x = document.getElementsByClassName("coverpic");
if (n > x.length) {slideIndex = 1}
if (n < 1) {slideIndex = x.length} ;
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
x[slideIndex-1].style.display = "block";
}
var form_container = document.getElementById("form-container");
window.onclick = function(close) {
if (close.target == form_container) {
form_container.style.display = "none";
}
}
function opensidebar(){
const sidebar = document.querySelector('.sidebar');
sidebar.style.display = 'flex'
}
function closesidebar(){
const sidebar = document.querySelector('.sidebar');
sidebar.style.display = 'none'
}
function openSignInPage(){
const signinPage = document.getElementById('form-container');
signinPage.style.display = 'block'
}