2018-11-12 12:48:24 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
{% include head.html %}
|
|
|
|
<body onload="typing_shell()" style="background-color:#000;">
|
|
|
|
<header class="spec-header">
|
2018-11-16 12:09:20 +00:00
|
|
|
<div class="menuDesktop" style="background-color:#000;">
|
2018-11-12 13:26:10 +00:00
|
|
|
<div class="logo">
|
|
|
|
<div><h1 id="title-home" style="display:inline-block;"></h1><span id="blikli"></span></div>
|
|
|
|
</div>
|
|
|
|
<div class="fill-space"></div>
|
|
|
|
<div class="search-box">
|
|
|
|
<input type="text" id="search-bar"><label for="search-bar"><img src="/assets/style/search_icon.png"></label>
|
|
|
|
<ul id="search-results"></ul>
|
|
|
|
</div>
|
|
|
|
<nav class="nav-menu">
|
|
|
|
<div>Learn
|
|
|
|
<ul>
|
|
|
|
<li><a href="{{ site.baseurl }}/pages/topic/cmd/basic.html">Basic commands</a></li>
|
|
|
|
<li><a href="{{ site.baseurl }}/pages/topic/cmd/interm.html">Intermediate commands</a></li>
|
|
|
|
<li><a href="{{ site.baseurl }}/pages/topic/cmd/advanced.html">Advanced commands</a></li>
|
|
|
|
<li><a href="{{ site.baseurl }}/pages/topic/fs.html">Filesystem</a></li>
|
|
|
|
<li><a href="{{ site.baseurl }}/pages/topic/scripts.html">Scripting</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<code>|</code>
|
|
|
|
<div>About
|
|
|
|
<ul>
|
|
|
|
<li><a href="{{ site.baseurl }}/pages/info/project.html">The project</a></li>
|
|
|
|
<li><a href="{{ site.baseurl }}/pages/info/people.html">The people</a></li>
|
|
|
|
<li><a href="{{ site.baseurl }}/pages/topic/about.html">More...</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
|
2018-11-12 12:48:24 +00:00
|
|
|
</header>
|
|
|
|
<main class="container">
|
|
|
|
{{ content }}
|
|
|
|
</main>
|
|
|
|
{% include footer.html %}
|
2018-11-15 20:54:09 +00:00
|
|
|
<script src="https://cdn.rawgit.com/christian-fei/Simple-Jekyll-Search/master/dest/simple-jekyll-search.min.js"></script>
|
|
|
|
<script>
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
var searchBar = document.getElementById('search-bar');
|
|
|
|
var results = document.getElementById('search-results');
|
2018-11-12 12:48:24 +00:00
|
|
|
|
2018-11-15 20:54:09 +00:00
|
|
|
var sjs = SimpleJekyllSearch({
|
|
|
|
searchInput: searchBar,
|
|
|
|
resultsContainer: results,
|
|
|
|
json: '/search.json',
|
|
|
|
searchResultTemplate:
|
|
|
|
'<li><a href="{url}"><h3>{title}</h3><h4>{category}</h4></a></li>',
|
|
|
|
success: function(sr) {
|
|
|
|
results.setAttribute("class", sr.length <= 1 ? "" : "show");
|
|
|
|
}
|
|
|
|
});
|
2018-11-12 12:48:24 +00:00
|
|
|
|
2018-11-15 20:54:09 +00:00
|
|
|
searchBar.addEventListener('keypress', function () {
|
|
|
|
sjs.search();
|
|
|
|
});
|
|
|
|
});
|
2018-11-12 12:48:24 +00:00
|
|
|
|
2018-11-15 20:54:09 +00:00
|
|
|
// Animated logo
|
|
|
|
var sentence = ["<span class='NotoSansLight'>t", "h", "e</span>",
|
|
|
|
"<span class='NotoSansBold'>s", "h", "e", "l", "l</span>"];
|
|
|
|
var shell = "";
|
|
|
|
var counter = 0;
|
2018-11-12 12:48:24 +00:00
|
|
|
|
2018-11-15 20:54:09 +00:00
|
|
|
function typing_shell() {
|
|
|
|
if (counter < 8){
|
|
|
|
write(counter);
|
|
|
|
counter++;
|
|
|
|
} else {
|
|
|
|
document.getElementById("blikli").classList.add("bli");
|
|
|
|
}
|
|
|
|
}
|
2018-11-12 12:48:24 +00:00
|
|
|
|
2018-11-15 20:54:09 +00:00
|
|
|
setInterval(typing_shell, 200);
|
2018-11-14 13:28:12 +00:00
|
|
|
|
2018-11-15 20:54:09 +00:00
|
|
|
function write(position){
|
|
|
|
shell = shell + sentence[position];
|
|
|
|
document.getElementById("title-home").innerHTML = shell;
|
|
|
|
}
|
2018-11-14 13:28:12 +00:00
|
|
|
|
2018-11-15 20:54:09 +00:00
|
|
|
var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
|
2018-11-16 12:47:48 +00:00
|
|
|
|
2018-11-17 14:00:32 +00:00
|
|
|
if (isChrome) {
|
2018-11-15 20:54:09 +00:00
|
|
|
document.getElementById('foolChrome').remove();
|
2018-11-14 13:28:12 +00:00
|
|
|
|
2018-11-17 14:00:32 +00:00
|
|
|
var homeVideo = document.getElementById('videoHome');
|
2018-11-16 12:47:48 +00:00
|
|
|
homeVideo.muted = true;
|
|
|
|
homeVideo.play();
|
2018-11-15 20:54:09 +00:00
|
|
|
}
|
2018-11-14 13:28:12 +00:00
|
|
|
|
2018-11-15 20:54:09 +00:00
|
|
|
</script>
|
2018-11-12 13:26:10 +00:00
|
|
|
</body>
|