-
Notifications
You must be signed in to change notification settings - Fork 0
/
Crowdfunding.js
108 lines (87 loc) · 2.6 KB
/
Crowdfunding.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
let card = document.getElementById('cardText');
card.innerHTML = 'Mastercraft Bamboo Monitor Riser';
let cards = document.getElementById('Cardtext');
cards.innerHTML = 'A beutiful & hardcrafted monitor stand to reduce neck and eye strain.';
let button = document.querySelector('.firstButton');
button.innerHTML = 'Back this project';
button.style.borderRadius = '50px'
button.style.border = 'none'
button.style.outline = 'none'
function move() {
var elem = document.querySelector(".bar");
var width = 1;
var id = setInterval(frame, 80);
function frame() {
if (width >= 75) {
endInterval(id);
} else {
width++;
elem.style.width = width + '%';
}
}
}
var modal = document.getElementById('firstModal');
var btn = document.querySelector(".radios");
var butter = document.querySelector(".radioss");
var butters = document.querySelector(".radia");
var butterer = document.querySelector(".radion");
var span = document.getElementsByClassName("close")[0];
btn.onclick = function() {
modal.style.display = "block";
}
butter.onclick = function() {
modal.style.display = "block";
}
butters.onclick = function() {
modal.style.display = "block";
}
butterer.onclick = function() {
modal.style.display = "block";
}
span.onclick = function() {
modal.style.display = "none";
}
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
var modals = document.getElementById('secondModal');
var btns = document.querySelector(".firstButton");
var spans = document.getElementsByClassName("back")[0];
btns.onclick = function() {
modals.style.display = "block";
}
spans.onclick = function() {
modals.style.display = "none";
}
window.onclick = function(event) {
if (event.target == modals) {
modals.style.display = "none";
}
}
var drop = document.querySelector('.closingBar');
var learn = document.querySelector('.menu');
var why = document.querySelector('.menu1');
var green = document.querySelector('.auto');
var done = document.querySelector('.closingBar');
why.onclick = function() {
green.style.display = "block";
}
learn.onclick = function() {
drop.style.display ="block";
why.style.display = "none";
}
window.onclick = function(event) {
if (event.target == green) {
green.style.display = "none";
}
}
done.onclick = function() {
green.style.display = "none";
done.style.display ="none";
why.style.display = "block";
}
// let buttons = document.querySelector('.secondButton');
// buttons.innerHTML = 'Bookmark';
// buttons.style.borderRadius = '50px'