Add licenses
This commit is contained in:
@@ -2,78 +2,79 @@
|
||||
/****************************************************************************
|
||||
* It's Eric Woodward's Site
|
||||
*
|
||||
* Copyright 2014-2022 Eric Woodward
|
||||
* Copyright 2014-2023 Eric Woodward
|
||||
* Source released under CC0 Public Domain License v1.0
|
||||
* https://www.itsericwoodward.com/licenses/cc0
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/
|
||||
****************************************************************************/
|
||||
(function () {
|
||||
"use strict";
|
||||
"use strict";
|
||||
|
||||
// Checking if browser "cuts the mustard" - https://gomakethings.com/ditching-jquery/
|
||||
if (!(!!document.querySelector && !!window.addEventListener)) return;
|
||||
// Checking if browser "cuts the mustard" - https://gomakethings.com/ditching-jquery/
|
||||
if (!(!!document.querySelector && !!window.addEventListener)) return;
|
||||
|
||||
if (window.dayjs) dayjs.extend(window.dayjs_plugin_relativeTime);
|
||||
if (window.dayjs) dayjs.extend(window.dayjs_plugin_relativeTime);
|
||||
|
||||
// Indicate JS is loaded
|
||||
document.documentElement.className =
|
||||
document.documentElement.className.replace("no-js", "js");
|
||||
// Indicate JS is loaded
|
||||
document.documentElement.className =
|
||||
document.documentElement.className.replace("no-js", "js");
|
||||
|
||||
// Enable cached fonts ASAP
|
||||
if (window.Cookies && !!Cookies.get("fonts_loaded")) {
|
||||
document.documentElement.className += " js-hasFontsLoaded";
|
||||
}
|
||||
// Enable cached fonts ASAP
|
||||
if (window.Cookies && !!Cookies.get("fonts_loaded")) {
|
||||
document.documentElement.className += " js-hasFontsLoaded";
|
||||
}
|
||||
|
||||
docReady(function () {
|
||||
setTimeout(function () {
|
||||
if (!window.Cookies || !window.FontFaceObserver) return;
|
||||
docReady(function () {
|
||||
setTimeout(function () {
|
||||
if (!window.Cookies || !window.FontFaceObserver) return;
|
||||
|
||||
// Handle Fonts
|
||||
const fontExo2 = new FontFaceObserver("exo_2");
|
||||
fontExo2.load().then(function () {
|
||||
if (
|
||||
document.documentElement.className.indexOf(
|
||||
"js-hasFontsLoaded"
|
||||
) == -1
|
||||
) {
|
||||
document.documentElement.className += " js-hasFontsLoaded";
|
||||
}
|
||||
Cookies.set("fonts_loaded", true);
|
||||
});
|
||||
// Handle Fonts
|
||||
const fontExo2 = new FontFaceObserver("exo_2");
|
||||
fontExo2.load().then(function () {
|
||||
if (
|
||||
document.documentElement.className.indexOf(
|
||||
"js-hasFontsLoaded"
|
||||
) == -1
|
||||
) {
|
||||
document.documentElement.className += " js-hasFontsLoaded";
|
||||
}
|
||||
Cookies.set("fonts_loaded", true);
|
||||
});
|
||||
|
||||
// Lazy-Load Media
|
||||
if (typeof loadMedia === "function") {
|
||||
loadMedia(".js-lazyLoader", null, true);
|
||||
}
|
||||
// Lazy-Load Media
|
||||
if (typeof loadMedia === "function") {
|
||||
loadMedia(".js-lazyLoader", null, true);
|
||||
}
|
||||
|
||||
// Add relative dates via dayjs
|
||||
if (window.dayjs) {
|
||||
const times = document.getElementsByTagName("time");
|
||||
// Add relative dates via dayjs
|
||||
if (window.dayjs) {
|
||||
const times = document.getElementsByTagName("time");
|
||||
|
||||
[].forEach.call(times, function (the_time) {
|
||||
let pub_time = the_time.getAttribute("datetime");
|
||||
if (the_time.className.indexOf("js-noRelativeTime") === -1)
|
||||
the_time.innerHTML +=
|
||||
' <span class="js-momentTime">(' +
|
||||
dayjs(pub_time).from(dayjs()) +
|
||||
")</span>";
|
||||
the_time.classList.add("isDone");
|
||||
});
|
||||
}
|
||||
[].forEach.call(times, function (the_time) {
|
||||
let pub_time = the_time.getAttribute("datetime");
|
||||
if (the_time.className.indexOf("js-noRelativeTime") === -1)
|
||||
the_time.innerHTML +=
|
||||
' <span class="js-momentTime">(' +
|
||||
dayjs(pub_time).from(dayjs()) +
|
||||
")</span>";
|
||||
the_time.classList.add("isDone");
|
||||
});
|
||||
}
|
||||
|
||||
if (document.documentElement.className.indexOf("is404") > -1) {
|
||||
document.getElementById("searchQuery").value =
|
||||
window.location.pathname
|
||||
.replace(/\\.html?$/, "")
|
||||
.replace(/\//g, " ");
|
||||
}
|
||||
if (document.documentElement.className.indexOf("is404") > -1) {
|
||||
document.getElementById("searchQuery").value =
|
||||
window.location.pathname
|
||||
.replace(/\\.html?$/, "")
|
||||
.replace(/\//g, " ");
|
||||
}
|
||||
|
||||
document
|
||||
.getElementById("searchForm")
|
||||
.addEventListener("submit", function (e) {
|
||||
document.getElementById("searchQuery").value +=
|
||||
" site:" + window.location.hostname;
|
||||
});
|
||||
}, 1);
|
||||
});
|
||||
document
|
||||
.getElementById("searchForm")
|
||||
.addEventListener("submit", function (e) {
|
||||
document.getElementById("searchQuery").value +=
|
||||
" site:" + window.location.hostname;
|
||||
});
|
||||
}, 1);
|
||||
});
|
||||
})();
|
||||
// @license-end
|
||||
|
@@ -1,4 +1,13 @@
|
||||
@font-face {
|
||||
/****************************************************************************
|
||||
* It's Eric Woodward (dotcom)
|
||||
*
|
||||
* Copyright 2015-2023 Eric Woodward
|
||||
* Source released under CC0 Public Domain License v1.0
|
||||
* https://www.itsericwoodward.com/licenses/cc0
|
||||
* http://creativecommons.org/publicdomain/zero/1.
|
||||
****************************************************************************/
|
||||
|
||||
@font-face {
|
||||
font-family: 'exo_2';
|
||||
src: url('/fonts/exo2/Exo2-Regular-webfont.eot');
|
||||
src: url('/fonts/exo2/Exo2-Regular-webfont.eot?#iefix') format('embedded-opentype'),
|
||||
|
@@ -1,9 +1,10 @@
|
||||
/****************************************************************************
|
||||
* It's Eric Woodward (dotcom)
|
||||
*
|
||||
* Copyright 2015-2018 Eric Woodward
|
||||
* Copyright 2015-2023 Eric Woodward
|
||||
* Source released under CC0 Public Domain License v1.0
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/
|
||||
* https://www.itsericwoodward.com/licenses/cc0
|
||||
* http://creativecommons.org/publicdomain/zero/1.
|
||||
****************************************************************************/
|
||||
|
||||
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
|
||||
|
@@ -1,9 +1,10 @@
|
||||
/****************************************************************************
|
||||
* It's Eric Woodward (dotcom)
|
||||
*
|
||||
* Copyright 2015-2018 Eric Woodward
|
||||
* Copyright 2015-2023 Eric Woodward
|
||||
* Source released under CC0 Public Domain License v1.0
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/
|
||||
* https://www.itsericwoodward.com/licenses/cc0
|
||||
* http://creativecommons.org/publicdomain/zero/1.
|
||||
****************************************************************************/
|
||||
|
||||
/*
|
||||
@@ -548,6 +549,13 @@ samp {
|
||||
width: 15em;
|
||||
}
|
||||
|
||||
.magnetLink {
|
||||
display: block;
|
||||
font-size: x-small;
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.mainBio-div-img {
|
||||
height: auto;
|
||||
margin: 0;
|
||||
|
Reference in New Issue
Block a user