-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.html
99 lines (96 loc) · 5.68 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
<html>
<head>
<title>Huy's Blog</title>
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html;"><meta name=viewport content="initial-scale=1.0 maximum-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=Inconsolata:400,700&subset=latin-ext,vietnamese" rel="stylesheet">
<link href="css/theme.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="emoji/css/messenger.min.css">
<link rel="stylesheet" href="css/highlight/tomorrow-night.css">
<link rel="stylesheet" href="css/fontello.css">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#ffffff">
</head>
<body>
<header id="user_top" class="cf ">
<figure id="user_logo" class="active"><a href="https://thefullsnack.com">The Full Snack Developer</a></figure>
<h2><a href="https://thefullsnack.com">The Full Snack Developer</a></h2>
<h4><span class="name_head">by</span> Huy Tran</h4>
<h3>Tôi xuất thân con nhà <a href="/posts/sketches">vẽ</a>, nhưng thích đi <a href="https://github.com/huytd">code</a>. Hiện tôi đang làm kĩ sư mặt tiền cho một tập đoàn tài chính ở thung lũng túi nâng silicon.</h3>
<div class="header-top">
<a href="http://eepurl.com/cN5YDv" rel="noopener noreferrer" target="blank">Theo dõi blog này</a> |
<a href="/posts/friend-sites.html">Một số blog hay nên đọc</a> |
<a href="https://www.goodreads.com/review/list/53058368?shelf=read">Sách mình đang đọc</a>
</div>
<div class="searchbox">
<div class="search">
<form action="https://www.google.com/search" method="get">
<input type="text" name="q" placeholder="Bạn muốn tìm gì?" />
<input type="hidden" name="as_sitesearch" value="thefullsnack.com">
</form>
</div>
</div>
</header>
<div class="container">
<div class="main">
<div class='home-list-item'><span class='home-date-indicator'>12-05-2018</span><span class='guest-post'>Guest Post</span>random<br/><a href='/posts/life-with-robot.html'>Lái xe với robot</a></div>
<div class='home-list-item'><span class='home-date-indicator'>10-10-2017</span>opinion, random, math, algorithm<br/><a href='/posts/lap-trinh-va-toan-hoc.html'>Lập trình và Toán học</a></div>
<div class='home-list-item'><span class='home-date-indicator'>04-01-2017</span>math, algorithm<br/><a href='/posts/john-pin-problem.html'>Thuật toán phục hồi số hữu tỉ và bài toán John's PIN</a></div>
</div>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.9&appId=462066520669072";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
</div>
<div class="footer">
<p><a href="http://creativecommons.org/licenses/by-nc-nd/4.0/"><img src="https://thefullsnack.com/img/by-nc-nd.png" height="15" /></a></p>
<p>Created with <i class="em em-coffee"></i> <a href="http://github.com/huytd/ristretto-rs">ristretto.rs</a></p>
<div class="social">
<a target="_blank" href="http://facebook.com/thefullsnackblog"><i class="icon-facebook-squared"></i></a>
<a target="_blank" href="http://twitter.com/huydotnet"><i class="icon-twitter-squared"></i></a>
<a target="_blank" href="http://github.com/huytd"><i class="icon-github-squared"></i></a>
<a target="_blank" href="https://thefullsnack.com/en"><i class="icon-star"></i></a>
</div>
</div>
<script>
// Tracking
let serialize = function(obj) {
var str = [];
for(var p in obj)
if (obj.hasOwnProperty(p)) {
str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
}
return str.join("&");
};
let store = localStorage;
if (store && btoa) {
let tracker = JSON.parse(store.getItem('huyBlogTracker') || "{}");
let today = btoa((new Date()).toDateString());
let currentURL = window.location.href;
let urlTrackingKey = btoa(currentURL);
if (!tracker[urlTrackingKey] || tracker[urlTrackingKey] !== today) {
tracker[urlTrackingKey] = today;
// Do tracking here
let trackData = {
userAgent: navigator.userAgent,
language: navigator.language,
url: currentURL,
refer: document.referrer
};
let trackParams = serialize(trackData);
let trackURL = "https://us-central1-huys-blog-comment.cloudfunctions.net/sayHello?" + trackParams;
fetch(trackURL).then(function(response) { });
}
store.setItem('huyBlogTracker', JSON.stringify(tracker));
}
</script>
</body>
</html>