-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
29 lines (19 loc) · 826 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
var elements = document.getElementsByClassName("divclick");
for (var i = 0; i < elements.length; i++) {
elements[i].addEventListener('click',function(e){
window.location.href = 'FlexContainers/' + e.currentTarget.classList[1] + '.html';
})
}
var elements = document.getElementsByClassName("c2");
for (var i = 0; i < elements.length; i++) {
elements[i].addEventListener('click',function(e){
window.location.href = 'FlexItems/' + e.currentTarget.classList[2] + '.html';
})
}
var elements = document.getElementsByClassName("c3");
for (var i = 0; i < elements.length; i++) {
elements[i].addEventListener('click',function(e){
console.log(e.currentTarget.classList[2])
window.location.href = 'FlexboxAwesomeness/' + e.currentTarget.classList[2] + '.html';
})
}