(function () {
var SVG = '';
var BRAND = 'Zektyc';
var SUN = '';
var MOON = '';
var THEME_BTN = '';
function path() { return location.pathname; }
function lang() { return /^\/en(\/|$)/.test(path()) ? 'en' : 'fr'; }
function isHome() { var p = path(); return p === '/' || p === '/index.html' || p === '/fr/' || p === '/fr/index.html' || p === '/en/' || p === '/en/index.html'; }
function buildHeader() {
var h = lang();
var l = h === 'fr' ? '/fr' : '/en';
var skip = h === 'fr' ? 'Aller au contenu' : 'Skip to content';
var html = '' + skip + '';
html += '' + BRAND + '';
html += '';
html += '';
html += '';
return '
Zektyc \u00b7 France
'; html += ''; html += ''; return ''; } function inject() { var hs = document.getElementById('h'); var fs = document.getElementById('f'); if (hs) hs.outerHTML = buildHeader(); if (fs) fs.outerHTML = buildFooter(); var nav = document.getElementById('nav-toggle'); if (nav) { document.addEventListener('click', function (e) { if (e.target.closest && e.target.closest('.site-nav')) nav.checked = false; }); } } function isTorBrowser() { if (isOnion()) return true; if (window.TorSensor) return true; if (/TorBrowser|Tor\/|Tor Project/i.test(navigator.userAgent)) return true; var gmt = new Date().getTimezoneOffset() === 0; var letterboxed = !!(window.screen && window.screen.width === window.innerWidth && window.screen.height === window.innerHeight); var noPlugins = !navigator.plugins || navigator.plugins.length === 0; var vendor = navigator.vendor; if (gmt && letterboxed) return true; if (vendor === '' && gmt && noPlugins) return true; return false; } function isOnion() { return location.hostname.indexOf('.onion') !== -1; } function showTorToast() { if (!isTorBrowser() || isOnion()) return; var onionBase = 'http://l5cbkqmok4rnkhbtpltmtlf3pa5i5rfw23z2mtj5tugpo3quta3b5hqd.onion'; var path = location.pathname + location.search + location.hash; var onionUrl = onionBase + path; var toast = document.createElement('div'); toast.className = 'tor-toast'; toast.setAttribute('role', 'alert'); var h = lang(); var msg = h === 'fr' ? 'Vous utilisez Tor. Acc\u00e9dez \u00e0 la version .onion pour plus de s\u00e9curit\u00e9.' : 'You are using Tor. Access the .onion version for better security.'; toast.innerHTML = '' + msg + '
' + '' + (h === 'fr' ? 'Ouvrir en .onion' : 'Open .onion') + '' + ''; document.body.appendChild(toast); toast.querySelector('.tor-toast-close').addEventListener('click', function () { toast.remove(); }); setTimeout(function () { toast.remove(); }, 30000); } function boot() { inject(); showTorToast(); } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', boot); } else { boot(); } })();