pavlovm503 4 years ago
parent
commit
a31820049b
4 changed files with 93 additions and 0 deletions
  1. 1 0
      Pavlov_hm7/inddex.html
  2. 19 0
      Pavlov_hm9/css/style.css
  3. 21 0
      Pavlov_hm9/inddex.html
  4. 52 0
      Pavlov_hm9/script/script.js

+ 1 - 0
Pavlov_hm7/inddex.html

@@ -7,6 +7,7 @@
 </head>
 <body>
     <main>
+        <h1 style = color:white>hellow World</h1>
         <div class="block">
             <input type="number" id="afooter" placeholder="first namber">
             <input type="number" id="bfooter" placeholder="second namber">

+ 19 - 0
Pavlov_hm9/css/style.css

@@ -0,0 +1,19 @@
+.water{width: 400px;height: 120px;margin: 43vh auto;font-family: 'Kodchasan', sans-serif;}
+.dc{display: inline-block;position: relative;font-weight:500;font-size:32px;pointer-events: none;margin:0}
+.p1c{left:0;opacity:0;animation: blink1 5s step-end infinite;}
+.p2c{bottom:125px;opacity:0;animation: blink2 5s step-end infinite;}
+.p3c{bottom:250px;opacity:0;animation: blink3 5s step-end infinite;}
+@keyframes  blink1{
+    0%{opacity: 1;}
+    18%{opacity: 0;}
+}
+@keyframes  blink2{
+    0%{opacity: 0;}
+    18%{opacity: 1;}
+    50%{opacity: 0;}
+}
+@keyframes  blink3{
+    0%{opacity: 0;}
+    50%{opacity: 1;}
+    100%{opacity: 0;}
+}

+ 21 - 0
Pavlov_hm9/inddex.html

@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+	<meta charset="utf-8">
+	<title>Pavlov_Maik_FSA3</title>
+    <link rel="stylesheet" href="css/style.css">
+</head>
+<body>
+    <div class="water">
+        <!--fonts-->
+        <link href="https://fonts.googleapis.com/css2?family=Kodchasan:wght@500&display=swap" rel="stylesheet">
+        <!--Push me-->
+        <span class ="p1c dc">&nbsp(•0•)</br><)&nbsp&nbsp&nbsp)&#126&nbsp &nbsp &nbsp &nbsp Push me</br>/&nbsp&nbsp&nbsp&nbsp\</br></span>
+        <!--And then just touch me-->
+        <span class="p2c dc">&nbsp&nbsp(•0•)</br>&#126(&nbsp&nbsp&nbsp(>&nbsp&nbsp&nbsp&nbsp&nbsp And then just</br>&nbsp/&nbsp&nbsp&nbsp&nbsp&nbsp\ &nbsp &nbsp &nbsp &nbsp &nbsp  touch me</br></span>
+        <!--Do I cen't get my statisfaction-->
+        <span class="p3c dc">&nbsp(•0•)</br>&#126|&nbsp&nbsp&nbsp|&#126&nbsp&nbsp&nbsp Do I cen't get my</br>&nbsp/&nbsp&nbsp&nbsp\&nbsp &nbsp &nbsp&nbsp&nbsp&nbsp statisfaction</br></span>
+    </div>
+	<script src="script/script.js"></script>
+</body>
+</html> 

+ 52 - 0
Pavlov_hm9/script/script.js

@@ -0,0 +1,52 @@
+//makeProfileTimer
+function makeProfileTimer (a){
+    let startTime, endTime;
+    startTime = performance.now();
+    a
+    endTime = performance.now();
+    let time = (endTime - startTime)
+    alert(`${time}`);
+}
+//makeSaver
+function makeServer(ser){
+    let rRun
+    let save
+    return function sever(){
+        if(!rRun){
+            save = ser;
+            rRun=true;
+        }
+        return save
+    }
+}
+let saifer = makeServer(Math.random())
+value1 = saifer();
+console.log("first numb "+value1)
+value2 = saifer();
+console.log("second numb "+value2)
+value1===value2
+console.log("result "+ (value1+value2))
+//myBind
+function myBind(metod,globalObject,tXt){
+    function desk(){
+        let argum = Object.assign(tXt,arguments);
+        return metod.apply(globalObject,argum);
+    }
+    return desk;
+}
+let pow5 = myBind(Math.pow, Math, [undefined, 5]);
+console.log(pow5(2));
+let cube = myBind(Math.pow, Math, [undefined, 3]);
+console.log(cube(3));
+let zeroPrompt = myBind(prompt, window, [undefined, "0"]);
+let someNumber = zeroPrompt("Введите число");
+console.log("твой номер ---> "+someNumber);7
+//timer ciler
+function timeCiller (a){
+    for (step = 0; step < 1; step++){ 
+        console.log(a)
+        let timerId = setInterval(() => console.log(--a), 1000);
+        setTimeout(() => { clearInterval(timerId); console.log('run'); }, (a*1000))
+    }78
+}
+timeCiller(prompt("введите число обратного отсчёта","5"))