diff --git a/css/index.css b/css/index.css new file mode 100644 index 0000000..7f7661f --- /dev/null +++ b/css/index.css @@ -0,0 +1,11 @@ +body { + background-color: rgba(49, 61, 55, 0.87); +} + +h1 { + text-align: center; + margin: 150px; + font-size: 130px; + text-shadow: 2px -4px 19px #ba5df0; +} +/*# sourceMappingURL=index.css.map */ \ No newline at end of file diff --git a/css/index.css.map b/css/index.css.map new file mode 100644 index 0000000..70a11e2 --- /dev/null +++ b/css/index.css.map @@ -0,0 +1,9 @@ +{ + "version": 3, + "mappings": "AAAA,AAAA,IAAI,CAAC;EACJ,gBAAgB,EAAE,sBAAsB;CACxC;;AACD,AAAA,EAAE,CAAC;EACF,UAAU,EAAE,MAAM;EAClB,MAAM,EAAE,KAAK;EACb,SAAS,EAAE,KAAK;EAChB,WAAW,EAAE,GAAG,CAAE,IAAG,CAAC,IAAI,CAAC,OAAiB;CAC5C", + "sources": [ + "index.scss" + ], + "names": [], + "file": "index.css" +} \ No newline at end of file diff --git a/css/index.scss b/css/index.scss new file mode 100644 index 0000000..55b8f12 --- /dev/null +++ b/css/index.scss @@ -0,0 +1,9 @@ +body { + background-color: rgba(49, 61, 55, 0.87); +} +h1 { + text-align: center; + margin: 150px; + font-size: 140px; + text-shadow: 2px -4px 16px rgb(186, 93, 240); +} diff --git a/js/index.js b/js/index.js new file mode 100644 index 0000000..97b6ff3 --- /dev/null +++ b/js/index.js @@ -0,0 +1,54 @@ +// 1. Задание +alert("What is the radius of the circle?"); +prompt(" Your version? "); +alert("Correct answer: " + "R = P : 2 * π"); + +// 2. Задание + +let distance = prompt( + "What is the distance in kilometers between the two cities ?" +); +let time = prompt("How many hours he wants to get there ?"); + +alert( + " If you want to get there in " + + time + + " hours, we need to go an average of " + + distance / time + + " km per hour " +); + +// 3. Задание + +let exDollar = 28.4; +``; +let exEuro = 32.1; +let myPrice = prompt("Введите суму в долларах"); + +alert( + " Если ты хочешь поменять " + + myPrice + + ", ты получишь " + + (exDollar * myPrice) / exEuro + + " евро " +); + +// 4. Задание +let result; //выплаченные проценты, +let moneyCount; //первоначальная сумма вложений, +let betYear = 5; //годовая ставка +let betDays = 60; //количество дней вклада, +let year = 365; //количество дней в году +let perCent = 100; + +moneyCount = prompt(`amount of money : `); +result = (moneyCount * betYear * betDays) / year / perCent; +alert(`You will receive this cash: ${result.toFixed(1)}`); + +// 5. Задание +let num = 2 && 0 && 3; +let num2 = 2 || 0 || 3; +let num3 = (2 && 0) || 3; +console.log(num); +console.log(num2); +console.log(num3);