-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
176 lines (153 loc) · 9.87 KB
/
index.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Загадать желание онлайн</title>
<meta name="keywords" content="мечта, исполнение желаний, загадай желание, исполнить желания,
беслатное желание, желания онлайн бесплатно, как исполнять желания, письмо вселенной,
написать желание, мечта сайт, бесплатно мечта, сайт желаний, визуализация желаний">
<meta name="description" content="Как сделать так, чтобы заветное желание исполнилось? Попросить об этом Космос!
Для этого нужно четко сформулировать мечту и отправить в письме Вселенной">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css" media="all">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,300&subset=latin,cyrillic">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Yandex.Metrika counter -->
<script type="text/javascript">(function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter33316388 = new Ya.Metrika({ id:33316388, clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true }); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = "https://mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks");</script>
<noscript><div><img src="https://mc.yandex.ru/watch/33316388" style="position:absolute; left:-9999px;" alt=""></div></noscript>
<!-- /Yandex.Metrika counter -->
<script type="text/javascript" src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js" charset="utf-8"></script>
<script type="text/javascript" src="//yastatic.net/share2/share.js" async="async" charset="utf-8"></script>
<div class="container">
<h1 class="container-header" id="header">Хочу, чтобы...</h1>
<div class="container-done-msg hide" id="done-msg"><p>Запрос ушел Космосу,
теперь осталось расслабиться и перестань об этом думать.
Все будет хорошо!</p>
<a href="#" class="link hide" id="again">Но лучше загадать еще одно желание</a>
</div>
<form class="container-form" id="spaceForm">
<input class="container-form-input" id="request" type="text" placeholder="... формулируй, космос ждет">
<button class="container-form-button" id="submit">
<svg class="container-form-button-icon" id="submitIcon" height="32" viewBox="0 0 64 64"
width="32" xmlns="http://www.w3.org/2000/svg">
<path d="M47.964 8.127H16.036c-4.4 0-8 3.6-8 8v20.977c0 4.4 3.6 8 8
8h7.397v10.768l13.333-10.768h11.197c4.4 0 8-3.6 8-8V16.127c0-4.4-3.6-8-8-8zm3
28.977c0 1.626-1.374 3-3 3H35l-1.375 1.11-5.19 4.193v-5.303H16.036c-1.626
0-3-1.374-3-3V16.127c0-1.626 1.374-3 3-3h31.928c1.626 0 3 1.374 3 3v20.977z">
<circle cx="21.743" cy="26.617" r="2.913">
<circle cx="32" cy="26.617" r="2.913">
<circle cx="42.256" cy="26.617" r="2.913">
</svg>
</button>
</form>
<div class="container-counter" id="counter">
<p>Вселенная позаботилась уже о <strong id="counterValue">0</strong> запросах</p>
<p>Если рассказать об этом друзьям, счастливых людей станет больше</p>
<p><div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,moimir,twitter,lj,viber,whatsapp"></div></p>
</div>
</div>
<div class="accordion">
<div class="accordion-section">
<a href="#tip" class="accordion-section-title">Что здесь происходит?</a>
<div id="tip" class="accordion-section-content">"Хочу, хочу, хочу!". Мы постоянно загадываем желания.
Трем носы и пальцы городским достопримечательностям, портим праздничное шампанское, ловим "22:22"
на часах. А они, заветные, все не сбываются. Что делать и как с этим бороться? Очень просто.
Перестать на них фокусироваться. Отправить запрос и заниматься своими делами.
Он обязательно дойдет куда надо и запишется на исполнение. Для этого всего лишь нужно
сформулировать его очень-очень конкретно, в позитивной формулировке (без всяких "не"),
записать в окошко сверху, нажать кнопку
<svg height="16" viewBox="0 0 64 64" width="16" xmlns="http://www.w3.org/2000/svg">
<path d="M47.964 8.127H16.036c-4.4 0-8 3.6-8 8v20.977c0
4.4 3.6 8 8 8h7.397v10.768l13.333-10.768h11.197c4.4 0 8-3.6 8-8V16.127c0-4.4-3.6-8-8-8zm3
28.977c0 1.626-1.374 3-3 3H35l-1.375 1.11-5.19
4.193v-5.303H16.036c-1.626 0-3-1.374-3-3V16.127c0-1.626 1.374-3
3-3h31.928c1.626 0 3 1.374 3 3v20.977z">
<circle cx="21.743" cy="26.617" r="2.913">
<circle cx="32" cy="26.617" r="2.913">
<circle cx="42.256" cy="26.617" r="2.913">
</svg> и <em>забыть</em>. Космос позаботится о Ваших желаниях. <span>Он уже начал.</span></div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>
var $header, $accordion_section, $accordion_title,
$counterValue, $request_input, $submit_button,
$counter, $form, $done;
$(document).ready(function() {
$header = $('#header');
$accordion_section = $('.accordion-section');
$accordion_title = $('.accordion-section-title');
$counterValue = $('#counterValue');
$request_input = $('#request');
$submit_button = $('#submit');
$counter = $('#counter');
$form = $('#spaceForm');
$done = $('#done-msg');
$accordion_title.click(function(event) {
var value = $(this).attr('href'),
el = $('.accordion').find(value);
if ($(el).is('.active'))
$(el).removeClass('active');
else {
$(el).addClass('active');
yaCounter33316388.reachGoal('TIP');
}
event.preventDefault();
});
update_counter($counterValue);
$request_input.on('focus', function(event) {
$header.addClass('input-focus');
$submit_button.addClass('focused');
$counter.addClass('hide');
$accordion_section.addClass('hide');
$accordion_title.addClass('hide');
yaCounter33316388.reachGoal('INPUT_FOCUS');
});
$request_input.on('blur', function(event) {
$header.removeClass('input-focus');
$submit_button.removeClass('focused');
$counter.removeClass('hide');
$accordion_section.removeClass('hide');
$accordion_title.removeClass('hide');
});
$form.on('submit', function(event) {
event.preventDefault();
var request_text = $request_input.val();
$request_input.val('');
$header.addClass('done');
$header.text('Готово');
$form.addClass('hide');
$done.removeClass('hide');
$done.children().removeClass('hide');
yaCounter33316388.reachGoal('WISH');
$counterValue.text(parseInt($counterValue.text(), 10) + 1);
send_wish(request_text, $counterValue);
});
$done.on('click', function(event) {
event.preventDefault();
$done.children().addClass('hide');
$done.addClass('hide');
$form.removeClass('hide');
$header.removeClass('done');
$header.text('Хочу, чтобы...');
});
});
function update_counter(counterElement) {
$.getJSON("https://hello.wishbox.space/v1/wishes/", function(data) {
var counter = data['count'];
if (counter < 832)
counter += 832;
counterElement.text(counter);
});
}
function send_wish(text, counterElement) {
$.post("https://hello.wishbox.space/v1/wishes/", {text: text}, function(data) {
update_counter(counterElement);
}, "json");
}
</script>
</body>
</html>