let imgs = ['../0.jpg', '../1.jpg', '../2.jpg', '../3.jpg', '../4.jpg']; // Добавьте свои картинки через запятую
let links = ['link' , 'link' , 'link', 'link' , 'link']; // Добавьте свои ссылки через запятую
let i = Math.floor(Math.random() * imgs.length);
var a = document.createElement('a');
a.href = links[i];
a.target = '_target-blank'
var image = document.getElementById("adsense_box").getElementsByTagName('img')[0];
b = a.appendChild(image);
document.getElementById("adsense_box").appendChild(a);
let image2 = document.getElementById("reklam_img");
image2.src = imgs[i];
.logo_box {
width: 100%;
height: 60%;
display: flex;
justify-content: center;
align-items: center;
}
input[type="checkbox"]:checked~#sidebarMenu {
transform: translateX(0);
}
input[type="checkbox"]:checked~.sidebarIconToggle {
margin-top: -45px;
margin-left: 200px;
transition: 0;
position: fixed;
}
input[type="checkbox"] {
transition: all 0.3s;
box-sizing: border-box;
display: none;
}
.sidebarIconToggle {
transition: all 0.3s;
box-sizing: border-box;
cursor: pointer;
position: absolute;
z-index: 99999999999999;
height: 100%;
width: 100%;
height: 22px;
width: 22px;
}
#menu_toggle .spinner {
transition: all 0.1s;
box-sizing: border-box;
position: absolute;
height: 3px;
width: 100%;
background-color: rgb(0, 0, 0);
}
#menu_toggle .horizontal {
transition: all 0.1s;
box-sizing: border-box;
position: relative;
float: left;
margin-top: 3px;
}
#menu_toggle .diagonal.part-1 {
position: relative;
transition: all 0.1s;
box-sizing: border-box;
float: left;
}
#menu_toggle .diagonal.part-2 {
transition: all 0.1s;
box-sizing: border-box;
position: relative;
float: left;
margin-top: 3px;
}
.horizontal_checked {
transition: all 0.1s;
box-sizing: border-box;
opacity: 0;
}
.part-1_checked {
transition: all 0.1s;
box-sizing: border-box;
transform: rotate(135deg);
margin-top: 8px;
}
.part-2_checked {
transition: all 0.1s;
box-sizing: border-box;
transform: rotate(-135deg);
margin-top: -9px;
}
.sidebar_menu_list {
font-family: futurica-light;
}
.sidebar_img_button_box {
width: 90%;
margin: 30px 0 30px 30px;
display: flex;
}
.sidebar_img_box {
width: 50%;
}
.sidebar_img {
width: 100%;
}
.sidebar_icon_left {
margin-left: 200px;
margin-top: -45px;
}
.sidebar_nav_button {
border: 1px solid black;
border-radius: 10px;
color: black;
padding: 10px 55px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: 0.3s;
}
.sidebar_nav_button:hover {
background-color: black;
color: white;
}
.sidebar_button_box {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
width: 50%;
}
.sidebar_subscribe_button {
border: 1px solid black;
border-radius: 10px;
color: black;
padding: 10px 30px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: 0.3s;
margin-top: 25px;
}
.sidebar_subscribe_button:hover {
background-color: black;
color: white;
}
.sidebar_nav_button {
padding: 10px 40px;
}
.sidebar_subscribe_button {
padding: 10px 14px;
}
.sidebarMenuText {
margin-top: 50px;
}
.display_menu_logo_img {
width: 50%;
height: 50%;
margin-top: 5px;
}
.sidebar_icons_box {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
margin-top: 30px;
margin-bottom: 80px;
}
.sidebar_icon_fix {
position: fixed;
margin-top: -50px;
}
.sidebar_icon {
color: black;
}
#sidebarMenu {
height: 100%;
position: fixed;
left: 0;
width: 350px;
transform: translateX(-400px);
transition: transform 250ms ease-in-out;
background: white;
top: 0;
z-index: 999999999;
overflow: scroll;
}
.sidebarMenuInner {
margin: 0;
padding: 0;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebarMenuInner li {
list-style: none;
color: #fff;
text-transform: uppercase;
padding: 20px;
cursor: pointer;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
font-family: futurica;
}
.sidebarMenuInner li span {
display: block;
font-size: 14px;
color: rgba(255, 255, 255, 0.5);
}
.sidebarMenuInner li a {
color: rgba(0, 0, 0, 0.55);
text-transform: uppercase;
cursor: pointer;
text-decoration: none;
}