Browse Source

R2R2RF6JSGS

IrinaBerdnik 1 year ago
commit
982693988c
4 changed files with 31 additions and 0 deletions
  1. 13 0
      HW1/index.html
  2. 7 0
      HW1/script.js
  3. 11 0
      HW2/index.html
  4. 0 0
      HW2/script.js

+ 13 - 0
HW1/index.html

@@ -0,0 +1,13 @@
+<!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>Insta_Mania</title>
+  </head>
+  <body>
+    <h1>Как долго ты висишь в Инсте</h1>
+  </body>
+  <script src="script.js"></script>
+</html>

+ 7 - 0
HW1/script.js

@@ -0,0 +1,7 @@
+var InstagramDayTime = 0.4;
+var InstaTimeSit;
+do {
+  var DaysSit = prompt("Сколько дней уже висишь в инсте?");
+  InstaTimeSit = DaysSit * InstagramDayTime;
+  alert("Часов:" + InstaTimeSit);
+} while (DaysSit !== null);

+ 11 - 0
HW2/index.html

@@ -0,0 +1,11 @@
+<!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 src="script.js"></script>
+</html>

+ 0 - 0
HW2/script.js