-
Notifications
You must be signed in to change notification settings - Fork 0
/
info.html
88 lines (85 loc) · 4.53 KB
/
info.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>How much is my time</title>
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
<div class="jumbotron jumbotron-fluid text-center header">
<h1 class="display-4">Инфографика</h1>
</div>
<div class="container text-center">
<div class="row">
<div class="col-12">
<p class="info-heading">Процентное соотношение ценовых диапазонов, грн/час.</p>
<iframe width="268" height="269" src="https://docs.google.com/spreadsheets/d/e/2PACX-1vTS5wtYeE4TzzxzK1w2WlQgF4VEcSD2pbpMoszu6P7oxxAQYBZOTq48f0U0w09NizklbarHWA2cNmef/pubchart?oid=703820260&format=interactive" style="margin-bottom: 1rem; border: none; overflow: hidden;"></iframe>
<p class="info-text">Фотограф в среднем снимает:<span class="display-4 average" id="hours"></span><span id="hoursMonth"></span>/месяц за<span class="display-4 average" id="price"></span>грн/час.</p>
</div>
</div>
<div class="row buttons-row">
<div class="col-sm-6 text-right">
<a class="btn btn-lg btn-success button" href="form.html" role="button">ПОСЧИТАТЬ</a>
</div>
<div class="col-sm-6 text-left">
<a class="btn btn-lg btn-outline-secondary button" href="index.html" role="button">Главная страница</a>
</div>
</div>
<div class="row">
<div class="col-12 ad">
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-2611572557979793"
data-ad-slot="6740154784"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
</div>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style-min.css">
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)};
gtag('js', new Date());
gtag('config', 'UA-106582034-1');
</script>
<script>
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var myObj = JSON.parse(this.responseText);
document.getElementById("hours").innerHTML = ' ' + myObj.hours + ' ';
document.getElementById("price").innerHTML = ' ' + myObj.price + ' ';
if (myObj.hours == 1 || myObj.hours == 21 || myObj.hours == 31 || myObj.hours == 41) {
document.getElementById("hoursMonth").innerHTML = 'час';
} else if ((myObj.hours > 1 && myObj.hours < 5) ||
(myObj.hours > 21 && myObj.hours < 25) ||
(myObj.hours > 31 && myObj.hours < 35) ||
(myObj.hours > 41 && myObj.hours < 45)) {
document.getElementById("hoursMonth").innerHTML = 'часа';
} else if ((myObj.hours >= 5 && myObj.hours <= 20) ||
(myObj.hours >= 25 && myObj.hours <= 30) ||
(myObj.hours >= 35 && myObj.hours <= 40) ||
(myObj.hours >= 45 && myObj.hours <= 50)) {
document.getElementById("hoursMonth").innerHTML = 'часов';
} else document.getElementById("hoursMonth").innerHTML = 'час';
}
};
xmlhttp.open("GET", "numbers.txt", true);
xmlhttp.send();
</script>
<!-- uSocial -->
<script async src="https://usocial.pro/usocial/usocial.js?v=6.1.4" data-script="usocial" charset="utf-8"></script>
<div class="uSocial-Share" data-pid="24517066b38f083ecc0a5e20bf1f3a24" data-type="share" data-options="rect,style4,default,bottom,slide-down,size32,eachCounter0,counter1,counter-after,nomobile" data-social="fb,twi,gPlus"></div>
<!-- /uSocial -->
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Global Site Tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-106582034-1"></script>
</body>
</html>