mirror of
https://github.com/aljazceru/cryptoanarchywiki.github.io.git
synced 2025-12-17 05:04:21 +01:00
Update path to static
This commit is contained in:
7
static/css/bootstrap.min.css
vendored
Executable file
7
static/css/bootstrap.min.css
vendored
Executable file
File diff suppressed because one or more lines are too long
195
static/css/main.css
Executable file
195
static/css/main.css
Executable file
@@ -0,0 +1,195 @@
|
||||
/**
|
||||
* //////////////
|
||||
* Master styling
|
||||
* //////////////
|
||||
*/
|
||||
body {
|
||||
font-family: "Roboto Condensed", Arial, sans-serif;
|
||||
background-color: #fff;
|
||||
font-size: 16px;
|
||||
line-height: 1.5em;
|
||||
color: #666;
|
||||
font-weight: 300;
|
||||
}
|
||||
hr {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
border: 0;
|
||||
border-top: 1px solid #F7F1F1;
|
||||
border-bottom: 1px solid #fff;
|
||||
}
|
||||
/*
|
||||
@media (min-width: 768px) {
|
||||
.container {
|
||||
max-width: 780px;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* //////////////////////////
|
||||
* Font and link declarations
|
||||
* //////////////////////////
|
||||
*/
|
||||
span.time, span.categories {
|
||||
color: #ADADAD;
|
||||
margin-bottom: 5px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-weight: normal;
|
||||
color: #696969;
|
||||
margin-bottom: 10px;
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-weight: normal;
|
||||
margin-bottom: 5px;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-weight: normal;
|
||||
margin-bottom: 5px;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
a, a:link, a:active {
|
||||
text-decoration: none;
|
||||
color: #8C8C8C;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #B3B3B3;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/**
|
||||
* /////////////////
|
||||
* Container element
|
||||
* /////////////////
|
||||
*/
|
||||
div#container {
|
||||
width: 700px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* //////////////////////////////////
|
||||
* Right aka content column formatting
|
||||
* //////////////////////////////////
|
||||
*/
|
||||
div.right {
|
||||
width: 500px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
div.content {
|
||||
border-top: 1px solid #E6E6E6;
|
||||
margin-top: 5px;
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
div.content pre {
|
||||
background: #333333;
|
||||
padding: 10px;
|
||||
color: #FFF;
|
||||
overflow-x: auto;
|
||||
font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
|
||||
font-size: 12px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
div.content .highlight {
|
||||
background: #333333;
|
||||
}
|
||||
|
||||
footer {
|
||||
border-top: 1px solid #F7F1F1;
|
||||
width: 100%;
|
||||
height: 10px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 3em;
|
||||
padding-top: 10px;
|
||||
color: #C2C2C2;
|
||||
font-size: 11px;
|
||||
bottom: 0;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
footer div#github {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
div.right h1 {
|
||||
margin-bottom: -2px;
|
||||
}
|
||||
|
||||
div.right ul {
|
||||
list-style: none;
|
||||
margin-left: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div.right ul li {
|
||||
margin-top: 5px;
|
||||
margin-left: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div.right .post ul {
|
||||
list-style: square;
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
/**
|
||||
* ///////////////////////////////////
|
||||
* Left column aka nav bar formatting
|
||||
* ///////////////////////////////////
|
||||
*/
|
||||
div.col-sm-3 {
|
||||
margin-top: 100px;
|
||||
font-size: 11px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
div.col-sm-3 strong {
|
||||
font-size: 16px;
|
||||
color: #4A4A4A;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
div.col-sm-3 div#about {
|
||||
margin-top: 10px;
|
||||
color: #8C8C8C;
|
||||
}
|
||||
|
||||
div.col-sm-3 img#about {
|
||||
-webkit-border-radius: 150px;
|
||||
margin-bottom: 10px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.PageNavigation {
|
||||
font-size: 14px;
|
||||
display: block;
|
||||
width: auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.PageNavigation a {
|
||||
display: block;
|
||||
width: 50%;
|
||||
float: left;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.PageNavigation .next {
|
||||
text-align: right;
|
||||
}
|
||||
.PageNavigation .prev {
|
||||
text-align: left;
|
||||
}
|
||||
40
static/css/super-search.css
Normal file
40
static/css/super-search.css
Normal file
@@ -0,0 +1,40 @@
|
||||
/* Super Search
|
||||
Author: Kushagra Gour (http://kushagragour.in)
|
||||
MIT Licensed
|
||||
*/
|
||||
|
||||
input#js-search__input {
|
||||
font-size: 12px;
|
||||
font-family: "Roboto Condensed", Arial, sans-serif;
|
||||
}
|
||||
.is-active .search__input {
|
||||
transform: translateY(0);
|
||||
}
|
||||
.search__results {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
overflow-x: hidden;
|
||||
height: calc(100% - 110px);
|
||||
transition: 0.2s ease;
|
||||
}
|
||||
.search__results.is-hidden {
|
||||
opacity: 0;
|
||||
transform: translateY(-1vh);
|
||||
display: none;
|
||||
}
|
||||
.search__results > li {
|
||||
border-top: 1px solid #f0f0f0;
|
||||
}
|
||||
.search__results > li > a {
|
||||
display: block;
|
||||
padding: 10px;
|
||||
}
|
||||
.search__result-date {
|
||||
color: #BBB;
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
}
|
||||
.search.is-active {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
59
static/css/syntax.css
Normal file
59
static/css/syntax.css
Normal file
@@ -0,0 +1,59 @@
|
||||
.highlight .hll { background-color: #49483e }
|
||||
.highlight .c { color: #75715e } /* Comment */
|
||||
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
|
||||
.highlight .k { color: #66d9ef } /* Keyword */
|
||||
.highlight .l { color: #ae81ff } /* Literal */
|
||||
.highlight .n { color: #f8f8f2 } /* Name */
|
||||
.highlight .o { color: #f92672 } /* Operator */
|
||||
.highlight .p { color: #f8f8f2 } /* Punctuation */
|
||||
.highlight .cm { color: #75715e } /* Comment.Multiline */
|
||||
.highlight .cp { color: #75715e } /* Comment.Preproc */
|
||||
.highlight .c1 { color: #75715e } /* Comment.Single */
|
||||
.highlight .cs { color: #75715e } /* Comment.Special */
|
||||
.highlight .ge { font-style: italic } /* Generic.Emph */
|
||||
.highlight .gs { font-weight: bold } /* Generic.Strong */
|
||||
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
|
||||
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
|
||||
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
|
||||
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
|
||||
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
|
||||
.highlight .kt { color: #66d9ef } /* Keyword.Type */
|
||||
.highlight .ld { color: #e6db74 } /* Literal.Date */
|
||||
.highlight .m { color: #ae81ff } /* Literal.Number */
|
||||
.highlight .s { color: #e6db74 } /* Literal.String */
|
||||
.highlight .na { color: #a6e22e } /* Name.Attribute */
|
||||
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
|
||||
.highlight .nc { color: #a6e22e } /* Name.Class */
|
||||
.highlight .no { color: #66d9ef } /* Name.Constant */
|
||||
.highlight .nd { color: #a6e22e } /* Name.Decorator */
|
||||
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
|
||||
.highlight .ne { color: #a6e22e } /* Name.Exception */
|
||||
.highlight .nf { color: #a6e22e } /* Name.Function */
|
||||
.highlight .nl { color: #f8f8f2 } /* Name.Label */
|
||||
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
|
||||
.highlight .nx { color: #a6e22e } /* Name.Other */
|
||||
.highlight .py { color: #f8f8f2 } /* Name.Property */
|
||||
.highlight .nt { color: #f92672 } /* Name.Tag */
|
||||
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
|
||||
.highlight .ow { color: #f92672 } /* Operator.Word */
|
||||
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
|
||||
.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
|
||||
.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
|
||||
.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
|
||||
.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
|
||||
.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
|
||||
.highlight .sc { color: #e6db74 } /* Literal.String.Char */
|
||||
.highlight .sd { color: #e6db74 } /* Literal.String.Doc */
|
||||
.highlight .s2 { color: #e6db74 } /* Literal.String.Double */
|
||||
.highlight .se { color: #ae81ff } /* Literal.String.Escape */
|
||||
.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
|
||||
.highlight .si { color: #e6db74 } /* Literal.String.Interpol */
|
||||
.highlight .sx { color: #e6db74 } /* Literal.String.Other */
|
||||
.highlight .sr { color: #e6db74 } /* Literal.String.Regex */
|
||||
.highlight .s1 { color: #e6db74 } /* Literal.String.Single */
|
||||
.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
|
||||
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
|
||||
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
|
||||
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
|
||||
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
|
||||
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */
|
||||
BIN
static/img/_posts/Broadcast_Mail.png
Normal file
BIN
static/img/_posts/Broadcast_Mail.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
BIN
static/img/avatar.jpg
Normal file
BIN
static/img/avatar.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
BIN
static/img/favicon.ico
Normal file
BIN
static/img/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
BIN
static/img/screenshot-post-page.png
Normal file
BIN
static/img/screenshot-post-page.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 61 KiB |
6
static/js/bootstrap.min.js
vendored
Executable file
6
static/js/bootstrap.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
132
static/js/super-search.js
Normal file
132
static/js/super-search.js
Normal file
@@ -0,0 +1,132 @@
|
||||
/* Super Search
|
||||
Author: Kushagra Gour (http://kushagragour.in)
|
||||
MIT Licensed
|
||||
*/
|
||||
|
||||
(function () {
|
||||
var isSearchOpen = false,
|
||||
searchEl = document.querySelector('#js-search'),
|
||||
searchInputEl = document.querySelector('#js-search__input'),
|
||||
searchResultsEl = document.querySelector('#js-search__results'),
|
||||
currentInputValue = '',
|
||||
lastSearchResultHash,
|
||||
posts = [];
|
||||
|
||||
// Changes XML to JSON
|
||||
// Modified version from here: http://davidwalsh.name/convert-xml-json
|
||||
function xmlToJson(xml) {
|
||||
|
||||
// Create the return object
|
||||
var obj = {};
|
||||
|
||||
if (xml.nodeType == 1) { // element
|
||||
// do attributes
|
||||
if (xml.attributes.length > 0) {
|
||||
obj["@attributes"] = {};
|
||||
for (var j = 0; j < xml.attributes.length; j++) {
|
||||
var attribute = xml.attributes.item(j);
|
||||
obj["@attributes"][attribute.nodeName] = attribute.nodeValue;
|
||||
}
|
||||
}
|
||||
} else if (xml.nodeType == 3) { // text
|
||||
obj = xml.nodeValue;
|
||||
}
|
||||
|
||||
// do children
|
||||
// If all text nodes inside, get concatenated text from them.
|
||||
var textNodes = [].slice.call(xml.childNodes).filter(function (node) { return node.nodeType === 3; });
|
||||
if (xml.hasChildNodes() && xml.childNodes.length === textNodes.length) {
|
||||
obj = [].slice.call(xml.childNodes).reduce(function (text, node) { return text + node.nodeValue; }, '');
|
||||
}
|
||||
else if (xml.hasChildNodes()) {
|
||||
for(var i = 0; i < xml.childNodes.length; i++) {
|
||||
var item = xml.childNodes.item(i);
|
||||
var nodeName = item.nodeName;
|
||||
if (typeof(obj[nodeName]) == "undefined") {
|
||||
obj[nodeName] = xmlToJson(item);
|
||||
} else {
|
||||
if (typeof(obj[nodeName].push) == "undefined") {
|
||||
var old = obj[nodeName];
|
||||
obj[nodeName] = [];
|
||||
obj[nodeName].push(old);
|
||||
}
|
||||
obj[nodeName].push(xmlToJson(item));
|
||||
}
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
function getPostsFromXml(xml) {
|
||||
var json = xmlToJson(xml);
|
||||
return json.channel.item;
|
||||
}
|
||||
|
||||
var xmlhttp=new XMLHttpRequest();
|
||||
xmlhttp.open("GET","/sitemap.xml");
|
||||
xmlhttp.onreadystatechange = function () {
|
||||
if (xmlhttp.readyState != 4) return;
|
||||
if (xmlhttp.status != 200 && xmlhttp.status != 304) { return; }
|
||||
var node = (new DOMParser).parseFromString(xmlhttp.responseText, 'text/xml');
|
||||
node = node.children[0];
|
||||
posts = getPostsFromXml(node);
|
||||
}
|
||||
xmlhttp.send();
|
||||
|
||||
window.toggleSearch = function toggleSearch() {
|
||||
_gaq.push(['_trackEvent', 'supersearch', searchEl.classList.contains('is-active')]);
|
||||
searchEl.classList.toggle('is-active');
|
||||
if (searchEl.classList.contains('is-active')) {
|
||||
// while opening
|
||||
searchInputEl.value = '';
|
||||
} else {
|
||||
// while closing
|
||||
searchResultsEl.classList.add('is-hidden');
|
||||
}
|
||||
setTimeout(function () {
|
||||
searchInputEl.focus();
|
||||
}, 210);
|
||||
}
|
||||
|
||||
window.addEventListener('keyup', function onKeyPress(e) {
|
||||
if (e.which === 27) {
|
||||
toggleSearch();
|
||||
}
|
||||
});
|
||||
window.addEventListener('keypress', function onKeyPress(e) {
|
||||
if (e.which === 47 && !searchEl.classList.contains('is-active')) {
|
||||
toggleSearch();
|
||||
}
|
||||
});
|
||||
|
||||
searchInputEl.addEventListener('input', function onInputChange() {
|
||||
var currentResultHash, d;
|
||||
|
||||
currentInputValue = searchInputEl.value;
|
||||
if (!currentInputValue || currentInputValue.length < 3) {
|
||||
lastSearchResultHash = '';
|
||||
searchResultsEl.classList.add('is-hidden');
|
||||
return;
|
||||
}
|
||||
searchResultsEl.style.offsetWidth;
|
||||
|
||||
var matchingPosts = posts.filter(function (post) {
|
||||
if (post.title.indexOf(currentInputValue) !== -1 || post.description.indexOf(currentInputValue) !== -1) {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
if (!matchingPosts.length) {
|
||||
searchResultsEl.classList.add('is-hidden');
|
||||
}
|
||||
currentResultHash = matchingPosts.reduce(function(hash, post) { return post.title + hash; }, '');
|
||||
if (matchingPosts.length && currentResultHash !== lastSearchResultHash) {
|
||||
searchResultsEl.classList.remove('is-hidden');
|
||||
searchResultsEl.innerHTML = matchingPosts.map(function (post) {
|
||||
d = new Date(post.pubDate);
|
||||
return '<li><a href="' + post.link + '">' + post.title + '<span class="search__result-date">' + d.toUTCString().replace(/.*(\d{2})\s+(\w{3})\s+(\d{4}).*/,'$2 $1, $3') + '</span></a></li>';
|
||||
}).join('');
|
||||
}
|
||||
lastSearchResultHash = currentResultHash;
|
||||
});
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user