-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
112 lines (90 loc) · 9.54 KB
/
search.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
<!DOCTYPE html><html lang="en-us"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Search - Ad Hoc</title><meta name="robots" content="noindex, follow"><meta name="generator" content="Publii Open-Source CMS for Static Site"><link rel="alternate" type="application/atom+xml" href="https://gadgetboy.org/feed.xml"><link rel="alternate" type="application/json" href="https://gadgetboy.org/feed.json"><meta property="og:title" content="Ad Hoc"><meta property="og:site_name" content="Ad Hoc"><meta property="og:description" content="Because details matter."><meta property="og:url" content="https://gadgetboy.org/"><meta property="og:type" content="website"><meta name="twitter:card" content="summary"><meta name="twitter:site" content="@gadgetboy"><meta name="twitter:title" content="Ad Hoc"><meta name="twitter:description" content="Because details matter."><link rel="shortcut icon" href="https://gadgetboy.org/media/website/favicon-2.png" type="image/png"><style>:root{--body-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--heading-font:var(--body-font);--logo-font:var(--body-font);--menu-font:var(--body-font)}</style><link rel="stylesheet" href="https://gadgetboy.org/assets/css/style.css?v=dae48de861f2eca44647e9428e7ace0c"><script type="application/ld+json">{"@context":"http://schema.org","@type":"Organization","name":"Ad Hoc","url":"https://gadgetboy.org/"}</script><script async src="https://www.googletagmanager.com/gtag/js?id=UA-168747029-1"></script><script>window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-168747029-1');</script></head><body><div class="container"><header class="header" id="js-header"><a href="https://gadgetboy.org/" class="logo">Ad Hoc</a><nav class="navbar js-navbar"><button class="navbar__toggle js-toggle" aria-label="Menu"><span class="navbar__toggle-box"><span class="navbar__toggle-inner">Menu</span></span></button><ul class="navbar__menu"><li><a href="https://gadgetboy.org/about/" target="_self">About</a></li><li><a href="https://gadgetboy.org/podcast/" title="Listen to Ad Hoc" target="_self">Podcast</a></li><li><a href="https://gadgetboy.org/contact/" title="Reach Out" target="_self">Contact</a></li></ul></nav><div class="search"><div class="search__overlay js-search-overlay"><form action="https://gadgetboy.org/search.html" class="search__form"><input class="search__input js-search-input" type="search" name="q" placeholder="search..." aria-label="Search input" autofocus="autofocus"> <button class="search__submit">Search</button></form></div><button class="search__btn js-search-btn" aria-label="Search"><svg role="presentation" focusable="false" height="15" width="15"><use xlink:href="https://gadgetboy.org/assets/svg/svg-map.svg#search"/></svg></button></div></header><main><div class="hero wrapper"><h1>Search</h1></div><div class="wrapper search-page"><form action="https://gadgetboy.org/search.html"><input type="search" name="q" placeholder="search..." class="search-page__input"></form><script>(function () {
var cx = ' 015111683305423513479:lofiu3cno3x ';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();</script><gcse:searchresults-only></gcse:searchresults-only></div></main><footer class="footer"><div class="footer__copyright"><p>Powered by Publii static site generator and <a href="https://pages.github.com/" target="_blank" rel="noopener noreferrer" title="Learn about GitHub Pages">GitHub Pages</a></p></div></footer></div><script defer="defer" src="https://gadgetboy.org/assets/js/scripts.min.js?v=c3bbc0611ea6a5405014eaca34fe1814"></script><script>window.publiiThemeMenuConfig={mobileMenuMode:'sidebar',animationSpeed:300,submenuWidth: 'auto',doubleClickTime:500,mobileMenuExpandableSubmenus:true,relatedContainerForOverlayMenuSelector:'.navbar'};</script><script>/*<![CDATA[*/var images=document.querySelectorAll("img[loading]");for(var i=0;i<images.length;i++){if(images[i].complete){images[i].classList.add("is-loaded")}else{images[i].addEventListener("load",function(){this.classList.add("is-loaded")},false)}};/*]]>*/</script><div class="cookie-popup js-cookie-popup cookie-popup--uses-badge"><h2>My blog uses cookies</h2><p>My blog uses cookies to understand how readers found it, what people find most interesting and, to make sure everything is functioning properly. <a href="https://gadgetboy.org/privacy-policy/">More details...</a></p><form><input id="gdpr-necessary" name="gdpr-necessary" checked="checked" disabled="disabled" type="checkbox"> <label for="gdpr-necessary">Required</label><p class="cookie-popup__save-wrapper"><button type="submit" class="cookie-popup__save">OK</button></p></form><span class="cookie-popup-label">Cookie Policy</span></div><script>(function() {
function addScript (src, inline) {
var newScript = document.createElement('script');
if (src) {
newScript.setAttribute('src', src);
}
if (inline) {
newScript.text = inline;
}
document.body.appendChild(newScript);
}
var popup = document.querySelector('.js-cookie-popup');
var checkboxes = popup.querySelectorAll('input[type="checkbox"]');
var save = popup.querySelector('button');
var currentConfig = localStorage.getItem('publii-gdpr-allowed-cookies');
var blockedScripts = document.querySelectorAll('script[type^="gdpr-blocker/"]');
popup.addEventListener('click', function() {
if (!popup.classList.contains('cookie-popup--is-sticky')) {
popup.classList.add('cookie-popup--is-sticky');
}
});
save.addEventListener('click', function(e) {
e.preventDefault();
e.stopPropagation();
popup.classList.remove('cookie-popup--is-sticky');
var allowedGroups = [];
for (var i = 0; i < checkboxes.length; i++) {
if (checkboxes[i].checked) {
var groupName = checkboxes[i].getAttribute('name').replace('gdpr-', '');
var scripts = document.querySelectorAll('script[type="gdpr-blocker/' + groupName + '"]');
for (var j = 0; j < scripts.length; j++) {
addScript(scripts[j].src, scripts[j].text);
}
allowedGroups.push(groupName);
}
}
localStorage.setItem('publii-gdpr-allowed-cookies', allowedGroups.join(','));
popup.classList.remove('cookie-popup--is-sticky');
setTimeout(function () {
if (currentConfig !== null) {
window.location.reload();
}
}, 250);
});
if (currentConfig === null) {
popup.classList.add('cookie-popup--is-sticky');
var checkedGroups = popup.querySelectorAll('input[type="checkbox"]:checked');
for (var i = 0; i < checkedGroups.length; i++) {
var allowedGroup = checkedGroups[i].name.replace('gdpr-', '');
if (allowedGroup !== '-' && allowedGroup !== '') {
var scripts = document.querySelectorAll('script[type="gdpr-blocker/' + allowedGroup + '"]');
for (var j = 0; j < scripts.length; j++) {
addScript(scripts[j].src, scripts[j].text);
}
}
}
} else {
if (currentConfig !== '') {
var allowedGroups = currentConfig.split(',');
var checkedCheckboxes = popup.querySelectorAll('input[type="checkbox"]:checked');
for (var j = 0; j < checkedCheckboxes.length; j++) {
var name = checkedCheckboxes[j].name.replace('gdpr-', '');
if (allowedGroups.indexOf(name) === -1) {
checkedCheckboxes[j].checked = false;
}
}
for (var i = 0; i < allowedGroups.length; i++) {
var scripts = document.querySelectorAll('script[type="gdpr-blocker/' + allowedGroups[i] + '"]');
var checkbox = popup.querySelector('input[type="checkbox"][name="gdpr-' + allowedGroups[i] + '"]');
if (checkbox) {
checkbox.checked = true;
}
for (var j = 0; j < scripts.length; j++) {
addScript(scripts[j].src, scripts[j].text);
}
}
}
}
})();</script></body></html>