This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="wraper" style="width: 500px; border: 1px solid tomato; margin: 0 auto; text-align: center; padding: 20px; background: rgba(173, 255, 47, 0.2);"> | |
<form name="form_days"> | |
<h3 style="color: skyblue; margin: 20px 0px;">Дни недели</h3> | |
<select name="days" > | |
<option>Понедельник</option> | |
<option>Вторник</option> | |
<option>Среда</option> | |
<option>Четверг</option> | |
<option>Пятница</option> | |
<option>Субота</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function myFunction() { | |
var grn = 'ГРН', | |
number = prompt('Введите количество гривен'), | |
procent = prompt('Введите процент, который нужно узнать от количества гривен'), | |
result = number /100 * procent; | |
number += grn, | |
procent += '%', | |
result = 'от ' +number+ '. ' +procent+ ' составляет = ' +result+ 'ГРН'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function myFunction() { | |
var grn = 'ГРН', | |
number = prompt('Введите количество гривен'), | |
procent = prompt('Введите процент, который нужно узнать от количества гривен'), | |
result = number /100 * procent; | |
number += grn, | |
procent += '%', | |
result = 'от ' +number+ '. ' +procent+ ' составляет = ' +result+ 'ГРН'; |