-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
33 lines (27 loc) · 1.09 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
document.querySelector( "#plus1" ).addEventListener( "click", myfunction );
function myfunction() {
let x = document.querySelector( "#l1" ).style.display
if ( x = "none" ) {
document.querySelector( "#l1" ).style.display = "block";
} else if ( x = "block" ) {
document.querySelector( "#l1" ).style.display = "none";
}
}
document.querySelector( "#plus2" ).addEventListener( "click", newfunction );
function newfunction() {
document.querySelector( "#l2" ).style.display = "block";
}
// <!-- ad images --> js
document.querySelector( "#main_image" ).addEventListener( "click", displaybar );
function displaybar() {
document.querySelector( ".adimages" ).style.display = "inline-block";
document.querySelector( "#navbar" ).style.width = "97%"
document.querySelector( "*" ).style.overflow = "hidden";
let open = document.querySelector( ".adimages" );
window.onclick = function ( event ) {
if ( event.target == open ) {
document.querySelector( ".adimages" ).style.display = "none";
document.location.reload();
}
}
}