-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-old.html
175 lines (162 loc) · 6.88 KB
/
index-old.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
<html>
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600&subset=cyrillic" rel="stylesheet">
<style>
.button {
border-radius: 5px;
margin: 3px 0;
padding: 2px 6px;
border: thin solid gray;
display: inline-block;
background-color: white;
}
body {
margin: 0;
border: 0;
overflow: hidden;
font-family: 'Source Sans Pro', sans-serif;
font-size: 12px;
font-weight: 400;
}
a:link {
text-decoration: none;
color: inherit;
font-size: inherit;
}
a:visited {
text-decoration: none;
color: inherit;
font-size: inherit;
}
</style>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-122466626-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-122466626-1');
</script> -->
<!-- Yandex.Metrika counter -->
<!-- <script type="text/javascript">
(function (d, w, c) {
(w[c] = w[c] || []).push(function () {
try {
w.yaCounter49535986 = new Ya.Metrika2({
id: 49535986,
clickmap: true,
trackLinks: true,
accurateTrackBounce: 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/tag.js";
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(document, window, "yandex_metrika_callbacks2");
</script>
<noscript>
<div>
<img src="https://mc.yandex.ru/watch/49535986" style="position:absolute; left:-9999px;" alt="" />
</div>
</noscript>-->
<!-- /Yandex.Metrika counter -->
<script language="JavaScript" src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script>
<script type="text/javascript">
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, '\\$&');
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, ' '));
}
function getRandomInt(max) {
return Math.floor(Math.random() * Math.floor(max));
}
function getCookie(name) {
const value = `; ${document.cookie}`;
const parts = value.split(`; ${name}=`);
if (parts.length === 2) return parts.pop().split(';').shift();
}
function getCode(str) {
const regex = /loc=(..$)/m;
return regex.exec(str)[1];
}
function reqListener () {
var mode = getParameterByName("mode", window.location.href);
if(mode != null) {
switch(mode) {
case "0":
/*document.getElementById("iframe").setAttribute("src","index-ni.html");*/
window.location.href = "https://pisarevskiy.me/index-ni.html";
break;
case "1":
/*document.getElementById("iframe").setAttribute("src","index-bs.html");*/
window.location.href = "https://pisarevskiy.me/index-bs.html";
break;
case "2":
/*document.getElementById("iframe").setAttribute("src","index-bs-vert.html");*/
window.location.href = "https://pisarevskiy.me/index-bs-vert.html";
break;
default:
/*document.getElementById("iframe").setAttribute("src","index-ni.html");*/
window.location.href = "https://pisarevskiy.me/index-ni.html";
mode="0";
break;
}
document.cookie = "mode="+mode;
return;
}
if(getCode(this.responseText) == "RU") { /*document.getElementById("iframe").setAttribute("src","index-ni.html");*/
window.location.href = "https://pisarevskiy.me/index-ni.html";
return; }
var moderand = getRandomInt(3);
if(getCookie("mode")!=null) moderand = parseInt(getCookie("mode"));
switch(moderand) {
case 0:
/*document.getElementById("iframe").setAttribute("src","index-ni.html");*/
window.location.href = "https://pisarevskiy.me/index-ni.html";
break;
case 1:
/*document.getElementById("iframe").setAttribute("src","index-bs.html");*/
window.location.href = "https://pisarevskiy.me/index-bs.html";
break;
case 2:
/*document.getElementById("iframe").setAttribute("src","index-bs-vert.html");*/
window.location.href = "https://pisarevskiy.me/index-bs-vert.html";
break;
default:
/*document.getElementById("iframe").setAttribute("src","index-ni.html");*/
window.location.href = "https://pisarevskiy.me/index-ni.html";
mode="0";
break;
}
document.cookie = "mode="+moderand;
}
var oReq = new XMLHttpRequest();
oReq.addEventListener("load", reqListener);
oReq.open("GET", "https://www.cloudflare.com/cdn-cgi/trace");
oReq.send();
</script>
<meta property="og:title" content="Philipp Pisarevskiy">
<meta property="og:description" content="Skilled Product Designer">
<meta property="og:image" content="https://pisarevskiy.me/img/phos-table.jpg">
<meta property="og:url" content="https://pisarevskiy.me/portfolio">
<meta property="og:site_name" content="Philipp Pisarevskiy">
<meta property="og:type" content="website">
<meta name="description" content="Skilled Product Designer">
<title>Philipp Pisarevskiy</title>
</head>
<body>
<iframe id="iframe" src="about:blank" borderWidth="0" style="border: 0;" width="100%" height="100%"></iframe>
</body>
</html>