<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://fonts.googleapis.com/css?family=Montserrat:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic" rel="stylesheet" />
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Document</title>
</head>
<body>
<div class="block">
<img src="triangle.svg" alt="" style="position: absolute; width: 40px; height: 40px; z-index: 2;transform: rotate(180deg);opacity: 0.9; ">
<img src="wheel.png" alt="" class="wheel">
</div>
<div style="display: flex; width: 100%; justify-content: center;">
<p style=" position: absolute; border-radius: 40px; filter: drop-shadow(1px 0px 3px aqua); z-index: 20; margin-top: 30px; font-family: Montserrat; padding: 14px 25px 14px 25px;user-select: none; background-color: aqua;" class="btn">Крутить</p></div>
</body>
<style>
.block{
width: 100%; height: 100%; display: flex; justify-content: center; margin-top: 100px;
}
.wheel{
filter: brightness(106%); transform: rotate(366.6deg);
transition-duration: 3s;
transition-timing-function: cubic-bezier(.36,.48,0,1);
}
</style><!--rotate(26deg) rotate(52.5deg) rotate(81deg) rotate(110deg) rotate(133.4deg) rotate(163deg) rotate(193deg) rotate(218deg) rotate(244deg) rotate(266deg)
rotate(291.8deg) rotate(320deg) rotate(346.4deg) rotate(366.6deg)-->
<script>
let wheel = document.querySelector('.wheel')
let btn = document.querySelector('.btn')
btn.onclick = function(){
let rotate_item = Math.floor(Math.random()*366.6)
wheel.style.transform = "rotate(" + rotate_item + "deg)"
}
</script>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="page">
<img src="btn-img.png" class="logo-in">
</div>
<p>текст</p>
</body>
<style>
*{
margin: 0;
padding: 0;
}
.page{
width: 100%;
height: 100%;
background-color: black;
display: flex;
position: absolute;
justify-content: center;
align-items: center;
}
.logo-in{
width: 100px;
height: 100px;
transition-duration: 1s;
}
.logo-in.bigger{
transform: scale(1.4);
transition-duration: 1s;
}
</style>
<script>
$(document).ready(function () {
$('.logo-in').addClass('bigger')
setTimeout(() => {
$('.page').fadeOut(100)
}, 800);
});
</script>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<p class="text">Текст</p>
</body>
<style>
.class{
color: red;
}
</style>
<script>
let text = document.querySelector('.text')
if(document.documentElement.clientWidth < 1000){
text.classList.add('class')
}
</script>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
</body>
<script>
if(document.documentElement.clientWidth <= 1300){
alert("меньше 1300px")
}
</script>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<a href="ссылка" class="link" style="display: none;"></a>
<button class="btn">Услуги</button>
</body>
<script>
let link = document.querySelector('.link')
let uslugi = document.querySelector('.btn')
uslugi.onclick = function(){
link.click()
}
</script>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="message">Message</div>
</body>
<style>
.message{
margin-top: 2300px;
margin-bottom: 1000px;
}
</style>
<script>
let message = document.querySelector('.message')
function onEntry(entry) {
entry.forEach(change => {
if (change.isIntersecting) {
alert('Простотрено')
}
});
}
let options = {
threshold: [0.5] };
let observer = new IntersectionObserver(onEntry, options);
let elements = document.querySelectorAll('.message');
for (let elm of elements) {
observer.observe(elm);
}
</script>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="block">
<div class="inner"></div>
</div>
</body>
<style>
.block{
width: 450px;
height: 650px;
margin-left: 20px;
overflow-x: hidden;
}
.inner{ background-color: rgb(23, 81, 132);
border-radius: 35px;
transform: skew(8deg);
width: 500px;
margin-left: -100px;
height: 650px;
}
</style>
</html>