-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
134 lines (121 loc) · 6.39 KB
/
index.html
File metadata and controls
134 lines (121 loc) · 6.39 KB
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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<title>Для тех, кто в tech @sfninja</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Телеграм канал: Для тех, кто в tech @sfninja">
<meta property="og:title" content="Для тех, кто в tech @sfninja">
<meta property="og:image" content="./images/logo.jpg">
<meta property="og:site_name" content="Telegram">
<meta property="og:description" content="Телеграм канал о жизни в Кремниевой долине глазами инженера работавшего в Google и Netflix.">
<meta property="twitter:title" content="Для тех, кто в tech @sfninja">
<meta property="twitter:image" content="./images/logo.jpg">
<meta property="twitter:site" content="@Telegram">
<meta property="al:ios:app_store_id" content="686449807">
<meta property="al:ios:app_name" content="Telegram Messenger">
<meta property="al:ios:url" content="tg://resolve?domain=sfninja">
<meta property="al:android:url" content="tg://resolve?domain=sfninja">
<meta property="al:android:app_name" content="Telegram">
<meta property="al:android:package" content="org.telegram.messenger">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@Telegram">
<meta name="twitter:description" content="Телеграм канал о жизни в Кремниевой долине глазами инженера работавшего в Google и Netflix.">
<meta name="twitter:app:name:iphone" content="Telegram Messenger">
<meta name="twitter:app:id:iphone" content="686449807">
<meta name="twitter:app:url:iphone" content="tg://resolve?domain=sfninja">
<meta name="twitter:app:name:ipad" content="Telegram Messenger">
<meta name="twitter:app:id:ipad" content="686449807">
<meta name="twitter:app:url:ipad" content="tg://resolve?domain=sfninja">
<meta name="twitter:app:name:googleplay" content="Telegram">
<meta name="twitter:app:id:googleplay" content="org.telegram.messenger">
<meta name="twitter:app:url:googleplay" content="https://t.me/sfninja">
<meta name="apple-itunes-app" content="app-id=686449807, app-argument: tg://resolve?domain=sfninja">
<link rel="shortcut icon" href="./images/favicon.ico" type="image/x-icon" />
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet" type="text/css">
<link href="./css/index.css?190" rel="stylesheet" media="screen">
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(62880430, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/62880430" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<script type="text/javascript">!function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://vk.com/js/api/openapi.js?168",t.onload=function(){VK.Retargeting.Init("VK-RTRG-486799-e0OWi"),VK.Retargeting.Hit()},document.head.appendChild(t)}();</script><noscript><img src="https://vk.com/rtrg?p=VK-RTRG-486799-e0OWi" style="position:fixed; left:-999px;" alt=""/></noscript>
<script>
const VALUE_TO_ID = {
web: 1,
app: 2,
forceOpen: 3
};
function conversion(value) {
VK.Goal('conversion', VALUE_TO_ID[value]);
ym(62880430,'reachGoal','subscribe');
return true;
}
function openApp() {
conversion('app');
window.location.replace('tg://resolve?domain=sfninja');
setTimeout(function() {
window.location.replace('https://web.telegram.org/#/im?p=@sfninja');
}, 2000);
}
/**
* Determine the mobile operating system.
* This function returns one of 'iOS', 'Android', 'Windows Phone', or 'unknown'.
*
* @returns {String}
*/
function getMobileOperatingSystem() {
var userAgent = navigator.userAgent || navigator.vendor || window.opera;
// Windows Phone must come first because its UA also contains "Android"
if (/windows phone/i.test(userAgent))
return "Windows Phone";
if (/android/i.test(userAgent))
return "Android";
// iOS detection from: http://stackoverflow.com/a/9039885/177710
if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream)
return "iOS";
return null;
}
function tryToOpenInTelegram() {
var os = getMobileOperatingSystem();
if (os) {
conversion('forceOpen');
window.location.replace('tg://resolve?domain=sfninja');
}
}
</script>
</head>
<body onload="tryToOpenInTelegram()">
<div class="tgme_page_wrap">
<div class="tgme_head_wrap">
<div class="tgme_head">
<a href="//telegram.org/" class="tgme_head_brand" aria-label="Link to Telegram website">
<i class="tgme_logo"></i>
</a>
</div>
</div>
<div class="tgme_page tgme_page_post">
<div class="tgme_page_photo">
<a onclick="return gtag_report_conversion('tg://resolve?domain=sfninja');"><img class="tgme_page_photo_image" src="./images/logo.jpg" alt="Channel logo"></a>
</div>
<div class="tgme_page_title" dir="auto">
<span dir="auto">Для тех, кто в tech</span>
</div>
<div class="tgme_page_description" dir="auto">Телеграм канал о жизни в Кремниевой долине глазами инженера работавшего в Google и Netflix.</div>
<main id="main">
<div class="tgme_page_action">
<a onclick="return openApp();" href="#" class="tgme_action_button_new">Подписаться в Telegram</a>
</div>
</main>
</div>
</div>
</body>
</html>