-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
290 lines (206 loc) · 8.05 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>purax · purax</title>
<meta name="description" content="Demo site for a hugo theme1">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="dragos_plesca" />
<meta name="twitter:title" content="purax · purax">
<meta name="twitter:description" content="Demo site for a hugo theme1">
<meta property="og:type" content="article">
<meta property="og:title" content="purax · purax">
<meta property="og:description" content="Demo site for a hugo theme1">
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css">
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/grids-responsive-min.css">
<link rel="stylesheet" href="/css/nprogress.css">
<link rel="stylesheet" href="/css/blog.css">
<style>
body { background: rgba(152, 251, 152,.5); }
#layout { background: rgba(219, 112, 147,.5); }
.content { background: rgba(175, 238, 238,.5); }
.footer { background: rgb(238, 232, 170); }
</style>
</head>
<body>
<div class="custom-wrapper pure-g" id="menu">
<div class="pure-u-1 pure-u-md-1-2">
<div class="pure-menu">
<a href="/" class="pure-menu-heading custom-brand clickactive">purax</a>
<a href="#" class="custom-toggle" id="toggle"><s class="bar"></s><s class="bar"></s></a>
</div>
</div>
<div class="pure-u-1 pure-u-md-1-2">
<div class="pure-menu pure-menu-horizontal custom-can-transform">
<ul class="pure-menu-list">
<li class="pure-menu-item"><a href="/about/" class="pure-menu-link clickactive">about</a></li>
<li class="pure-menu-item"><a href="/contact/" class="pure-menu-link clickactive">contact</a></li>
<li class="pure-menu-item"><a href="/error/" class="pure-menu-link">error</a></li>
</ul>
</div>
</div>
<div class="pure-u-1 pure-u-md-1-2 hidden">
<div class="pure-menu pure-menu-horizontal custom-menu-3 custom-can-transform">
<ul class="pure-menu-list">
<li class="pure-menu-item"><a href="#" class="pure-menu-link">Yahoo</a></li>
<li class="pure-menu-item"><a href="#" class="pure-menu-link">W3C</a></li>
</ul>
</div>
</div>
</div>
<div id="layout" class="pure-g layout">
<div id="content" class="content pure-u-1">
<div>
<div class="posts">
<section class="post">
<header class="post-header">
<a href="/post/2015/khachian/" class="post-title">Russian way with the mathematical travelling salesman</a>
<h1 class="content-subhead">14 Apr 2015, 16:32</h1>
<p class="post-meta">
</p>
</header>
<div class="post-description">
<p>A young Soviet mathematician, apparently totally unknown to any of the world’s senior practitioners, has found an answer to one of the most baffling problems in computer calculation.</p>
<div class="read-more-link">
<a href="/post/2015/khachian/" class="pure-button">Read More…</a>
</div>
</div>
</section>
<section class="post">
<header class="post-header">
<a href="/post/nitro/" class="post-title">Nitro: A quick and simple profiler for Go</a>
<h1 class="content-subhead">21 Jun 2013, 11:27</h1>
<p class="post-meta">
</p>
</header>
<div class="post-description">
<h1 id="nitro:b128b7694e4de962e0088bcb1bcb254f">Nitro</h1>
<p>Quick and easy performance analyzer library for <a href="http://golang.org/">Go</a>.</p>
<div class="read-more-link">
<a href="/post/nitro/" class="pure-button">Read More…</a>
</div>
</div>
</section>
</div>
</div>
</div>
</div>
<div id="my-awesomepage-progress-bar-wrapper">
<div id="my-awesomepage-progress-bar-element"></div>
</div>
<div class="footer">
<div class="pure-menu pure-menu-horizontal pure-menu-open">
<ul>
<li>Powered by <a class="hugo" href="http://hugo.spf13.com/" target="_blank">hugo</a></li>
</ul>
</div>
</div>
<style>
#my-awesomepage-progress-bar-element {
transition: width 0.5s ease-in-out;
-webkit-transition: max-width .5s ease;
}
</style>
<script src="/js/pjax-standalone.min.js"></script>
<script src="/js/nprogress.js"></script>
<script src="/js/scrollProgress.min.js"></script>
<script src="/js/sweetalert.min.js"></script>
<link href="/css/sweetalert.css" rel="stylesheet">
<script>
pjax.connect({
'container': 'content',
'beforeSend': function(e){
NProgress.start();
},
'error': function(e){
swal("Error", "Broken link, sorry!", "error");
},
'success': function(e) {
},
'complete': function(e){
NProgress.done();
function setActive() {
aObj = document.querySelectorAll(".clickactive");
for(i=0;i<aObj.length;i++) {
if(document.location.href.indexOf(aObj[i].href)>=0) {
aObj[i].parentNode.className='pure-menu-item pure-menu-selected clickactive';
}
}
}
setActive();
}
});
scrollProgress.set({
prefix: 'my-awesome-page-progress-bar',
color: 'rgb(238, 232, 170)',
height: '4px'
});
NProgress.configure({
showSpinner: false,
parent: '.layout'
});
function setActive() {
aObj = document.querySelectorAll(".clickactive");
for(i=0;i<aObj.length;i++) {
if(document.location.href.indexOf(aObj[i].href)>=0) {
aObj[i].parentNode.className='pure-menu-item pure-menu-selected clickactive';
}
}
}
window.onload = setActive;
var navlinks = document.querySelectorAll(".clickactive");
Array.prototype.map.call(navlinks, function(item) {
item.addEventListener("click", function(e) {
var navlinks = document.querySelectorAll(".clickactive");
Array.prototype.map.call(navlinks, function(item) {
if (item.parentNode.className == "pure-menu-item pure-menu-selected clickactive") {
item.parentNode.className = "pure-menu-item clickactive";
}
});
e.currentTarget.parentNode.className = "pure-menu-item pure-menu-selected clickactive";
});
});
(function (window, document) {
var menu = document.getElementById('menu'),
WINDOW_CHANGE_EVENT = ('onorientationchange' in window) ? 'orientationchange':'resize';
function toggleHorizontal() {
[].forEach.call(
document.getElementById('menu').querySelectorAll('.custom-can-transform'),
function(el){
el.classList.toggle('pure-menu-horizontal');
}
);
};
function toggleMenu() {
if (menu.classList.contains('open')) {
setTimeout(toggleHorizontal, 500);
}
else {
toggleHorizontal();
}
menu.classList.toggle('open');
document.getElementById('toggle').classList.toggle('x');
};
function closeMenu() {
if (menu.classList.contains('open')) {
toggleMenu();
}
}
document.getElementById('toggle').addEventListener('click', function (e) {
toggleMenu();
});
window.addEventListener(WINDOW_CHANGE_EVENT, closeMenu);
})(this, this.document);
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-xxxxxx-xx', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>