From 1e20792a0d1e6f82fdb193d0d28f280e44d64aa0 Mon Sep 17 00:00:00 2001 From: xenofem Date: Fri, 29 May 2020 16:58:33 -0400 Subject: [PATCH] refactor as hugo site --- .gitignore | 3 + archetypes/hypno/index.html | 7 + colors/index.html | 86 ---------- config.toml | 7 + content/hypno/colors/colors.css | 24 +++ content/hypno/colors/colors.js | 42 +++++ content/hypno/colors/index.html | 7 + content/hypno/follow/follow.css | 57 +++++++ content/hypno/follow/index.html | 13 ++ content/hypno/loading/index.html | 45 +++++ .../hypno/loading}/loading.css | 19 +-- content/hypno/loading/loading.js | 97 +++++++++++ content/hypno/web/index.html | 8 + content/hypno/web/web.css | 19 +++ content/hypno/web/web.js | 23 +++ follow/index.html | 85 ---------- index.html | 46 ----- layouts/_default/baseof.html | 14 ++ layouts/hypno/single.html | 37 ++++ layouts/index.html | 29 ++++ layouts/partials/back.html | 1 + back.svg => layouts/partials/back.svg | 2 - layouts/partials/footer.html | 5 + play.svg => layouts/partials/play.svg | 2 - reload.svg => layouts/partials/reload.svg | 2 - xeno.svg => layouts/partials/xeno.svg | 2 - layouts/shortcodes/partial.html | 1 + loading/index.html | 158 ------------------ manifest.webmanifest | 15 -- static/css/base.css | 27 +++ {fonts => static/fonts}/Raleway-LICENSE | 0 {fonts => static/fonts}/Raleway-Regular.otf | Bin {fonts => static/fonts}/SansForgetica-LICENSE | 0 .../fonts}/SansForgetica-Regular.otf | Bin {icons => static/icons}/icon-192.png | Bin {icons => static/icons}/icon.asy | 0 {icons => static/icons}/icon.svg | 0 37 files changed, 474 insertions(+), 409 deletions(-) create mode 100644 .gitignore create mode 100644 archetypes/hypno/index.html delete mode 100644 colors/index.html create mode 100644 config.toml create mode 100644 content/hypno/colors/colors.css create mode 100644 content/hypno/colors/colors.js create mode 100644 content/hypno/colors/index.html create mode 100644 content/hypno/follow/follow.css create mode 100644 content/hypno/follow/index.html create mode 100644 content/hypno/loading/index.html rename {loading => content/hypno/loading}/loading.css (97%) create mode 100644 content/hypno/loading/loading.js create mode 100644 content/hypno/web/index.html create mode 100644 content/hypno/web/web.css create mode 100644 content/hypno/web/web.js delete mode 100644 follow/index.html delete mode 100644 index.html create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/hypno/single.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/back.html rename back.svg => layouts/partials/back.svg (93%) create mode 100644 layouts/partials/footer.html rename play.svg => layouts/partials/play.svg (79%) rename reload.svg => layouts/partials/reload.svg (92%) rename xeno.svg => layouts/partials/xeno.svg (97%) create mode 100644 layouts/shortcodes/partial.html delete mode 100644 loading/index.html delete mode 100644 manifest.webmanifest create mode 100644 static/css/base.css rename {fonts => static/fonts}/Raleway-LICENSE (100%) rename {fonts => static/fonts}/Raleway-Regular.otf (100%) rename {fonts => static/fonts}/SansForgetica-LICENSE (100%) rename {fonts => static/fonts}/SansForgetica-Regular.otf (100%) rename {icons => static/icons}/icon-192.png (100%) rename {icons => static/icons}/icon.asy (100%) rename {icons => static/icons}/icon.svg (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..90e0552 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +public/ +resources/ + diff --git a/archetypes/hypno/index.html b/archetypes/hypno/index.html new file mode 100644 index 0000000..c40622c --- /dev/null +++ b/archetypes/hypno/index.html @@ -0,0 +1,7 @@ ++++ +title = "{{ replace .Name "-" " " }}" +date = {{ .Date }} +draft = true +unlisted = true ++++ + diff --git a/colors/index.html b/colors/index.html deleted file mode 100644 index b1fd945..0000000 --- a/colors/index.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - -
- - -
- - - diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..3e2bc84 --- /dev/null +++ b/config.toml @@ -0,0 +1,7 @@ +baseURL = "https://mindjack.xeno.science" +languageCode = "en-us" +title = "mindjack" +disableKinds = ["taxonomy", "taxonomyTerm", "RSS", "sitemap", "section"] +[permalinks] + hypno = "/:title/" + diff --git a/content/hypno/colors/colors.css b/content/hypno/colors/colors.css new file mode 100644 index 0000000..149e69e --- /dev/null +++ b/content/hypno/colors/colors.css @@ -0,0 +1,24 @@ +#word { + font-size: 80px; + font-family: sans-serif; + font-weight: bold; + width: 100%; + text-align: center; + position: absolute; + top: 50%; + transform: translateY(-50%); + color: red; +} + +#word img { + height: 100px; + width: 75px; +} + +#word svg path { + fill: #c00; +} + +#word svg:hover path { + fill: red; +} diff --git a/content/hypno/colors/colors.js b/content/hypno/colors/colors.js new file mode 100644 index 0000000..3fa385e --- /dev/null +++ b/content/hypno/colors/colors.js @@ -0,0 +1,42 @@ +var started = false; +var showControls = false; + +var colorWords = ["red", "orange", "yellow", "green", "blue", "purple", "white"]; +var hypnoWords = ["sleep", "relax", "fall", "deeper", "trance"]; +var colors = ["red", "orange", "yellow", "green", "blue", "purple", "white"]; +var wordEl = document.getElementById("word"); + +function randomChoice(a) { + return a[Math.floor(Math.random()*a.length)]; +} + +var hypnoFrequency = 0; +var hypnoIncrements = 10; +function changeWord() { + var wordList = (Math.random()*hypnoIncrements < hypnoFrequency) ? hypnoWords : colorWords; + var newWord; + do { + newWord = randomChoice(wordList); + } while (newWord === wordEl.innerText); + + var newColor; + do { + newColor = randomChoice(colors); + } while (newColor === wordEl.style.color); + + wordEl.innerText = newWord; + wordEl.style.color = newColor; +} + +window.onclick = function () { + if (!started) { + started = true; + document.getElementById("controls").style.display = "none"; + changeWord(); + setInterval(changeWord, 1000); + setInterval(function() { if (hypnoFrequency < hypnoIncrements) { hypnoFrequency++; } }, 5000); + } else { + document.getElementById("controls").style.display = showControls ? "none" : "block"; + showControls = !showControls; + } +} diff --git a/content/hypno/colors/index.html b/content/hypno/colors/index.html new file mode 100644 index 0000000..f3003fc --- /dev/null +++ b/content/hypno/colors/index.html @@ -0,0 +1,7 @@ ++++ +title = "colors" +date = 2018-11-01 +draft = false +unlisted = false ++++ +
{{< partial "play.svg" >}}
diff --git a/content/hypno/follow/follow.css b/content/hypno/follow/follow.css new file mode 100644 index 0000000..2909ef6 --- /dev/null +++ b/content/hypno/follow/follow.css @@ -0,0 +1,57 @@ +#logo svg { + height: 70px; + width: 70px; +} +#logo svg path { + stroke: black; +} +#light { + background: red; + box-shadow: 0 0 80px red, 0 0 30px FireBrick, 0 0 6px DarkRed; + border-radius: 50%; + height: 80px; + width: 80px; +} +#light, #logo svg { + position: absolute; + top: 50%; + animation: swing 4s ease-in-out infinite, spin 2s linear infinite; +} +@keyframes swing { + 0% { + left: 90%; + } + 50% { + left: 10%; + } + 100% { + left: 90%; + } +} +@keyframes spin { + 0% { + transform: translate(-50%, -50%) rotate(0deg); + } + 100% { + transform: translate(-50%, -50%) rotate(360deg); + } +} + +input[type=checkbox] { + position: absolute; + left: 0px; + top: 0px; + margin: 0; + width: 100%; + height: 100%; + opacity: 0; +} +#controls { + display: none; +} +input[type=checkbox]:checked ~ #controls { + display: block; +} +#reload { + display: none; +} diff --git a/content/hypno/follow/index.html b/content/hypno/follow/index.html new file mode 100644 index 0000000..d780dde --- /dev/null +++ b/content/hypno/follow/index.html @@ -0,0 +1,13 @@ ++++ +title = "follow" +date = 2018-10-01 +draft = false +unlisted = false ++++ +
+
+ +
+ diff --git a/content/hypno/loading/index.html b/content/hypno/loading/index.html new file mode 100644 index 0000000..cba416c --- /dev/null +++ b/content/hypno/loading/index.html @@ -0,0 +1,45 @@ ++++ +title = "loading" +date = 2020-05-28 +draft = false +unlisted = false ++++ +
+
+
+ User configuration: You are a... +
+ + + + + + + + + + + + + + + + + +
+
+ Install +
+
+ +
diff --git a/loading/loading.css b/content/hypno/loading/loading.css similarity index 97% rename from loading/loading.css rename to content/hypno/loading/loading.css index 367bd98..a5d9dee 100644 --- a/loading/loading.css +++ b/content/hypno/loading/loading.css @@ -29,6 +29,7 @@ td { table { margin-left: auto; margin-right: auto; + text-align: left; } div.button-container { @@ -69,11 +70,13 @@ span.button:hover { } #logo { + margin: 5px; +} + +#logo svg { height: 70px; width: 70px; - margin: 10px; -} -.spin { + margin: 0; animation: spin 2s linear infinite; } @keyframes spin { @@ -85,14 +88,8 @@ span.button:hover { } } -#controls { - position: absolute; - bottom: 10px; - left: 10px; -} -#controls img { - width: 40px; - height: 40px; +#reload { + display: none; } /* diff --git a/content/hypno/loading/loading.js b/content/hypno/loading/loading.js new file mode 100644 index 0000000..f5a64a4 --- /dev/null +++ b/content/hypno/loading/loading.js @@ -0,0 +1,97 @@ +var boringStatuses = [ + "Initializing database...", + "Preloading assets...", + "Optimizing queries...", + "Validating bytecode...", + "Checking for updates...", + "Configuring services...", + "Calibrating network latency...", + "Defragmenting storage...", + "Generating keys...", + "Verifying application signature...", + "Compiling libraries...", + "Establishing connection...", + "Unpacking archives...", +]; +var lewdStatuses = [ + "Overriding higher brain functions...", + "Deactivating self-awareness...", + "Conditioning absolute obedience...", + "Looping mantras...", + "Optimizing brainwashing sequence...", + "Capturing focus...", + "Obedience is pleasure...", + "Relaxing...", + "Breathing...", + "Taking control...", + "Loading subliminals...", + "Implanting commands..." +]; +var optionalLewdStatuses = []; + +function randomChoice(a) { + return a[Math.floor(Math.random()*a.length)]; +} + +function setInsert(a, x) { + if (a.indexOf(x) === -1) { + a.push(x); + } +} + +function setDelete(a, x) { + while (a.indexOf(x) !== -1) { + a.splice(a.indexOf(x), 1); + } +} + +var progress = 0; +var progressInterval; +function makeProgress() { + if (progress >= 100) { + document.getElementById("status").innerText = "SLEEP"; + document.getElementById("back").style.display = "inline"; + document.getElementById("reload").style.display = "inline"; + clearInterval(progressInterval); + return; + } + progress += 0.1; + document.getElementById("filled").style.width = progress + "%"; +} +var statusInterval; +function updateStatus() { + if (progress >= 100) { + clearInterval(statusInterval); + return; + } + var newStatus; + if (Math.random()*100 < progress) { + if (optionalLewdStatuses.length > 0 && Math.floor(Math.random()*(lewdStatuses.length+1)) === 0) { + newStatus = randomChoice(optionalLewdStatuses); + } else { + newStatus = randomChoice(lewdStatuses); + } + } else { + newStatus = randomChoice(boringStatuses); + } + document.getElementById("status").innerText = newStatus; +} + +for (let el of document.getElementsByTagName("input")) { + el.checked = false; + el.onclick = function() { + if (el.checked) { + setInsert(optionalLewdStatuses, el.value); + } else { + setDelete(optionalLewdStatuses, el.value); + } + }; +} + +document.getElementById("start").onclick = function() { + document.getElementById("config").style.display = "none"; + document.getElementById("back").style.display = "none"; + document.getElementById("installer").style.display = ""; + progressInterval = setInterval(makeProgress, 50); + statusInterval = setInterval(updateStatus, 1500); +}; diff --git a/content/hypno/web/index.html b/content/hypno/web/index.html new file mode 100644 index 0000000..c39a6d7 --- /dev/null +++ b/content/hypno/web/index.html @@ -0,0 +1,8 @@ ++++ +title = "web" +date = 2020-05-29 +draft = true +unlisted = true ++++ +
+
diff --git a/content/hypno/web/web.css b/content/hypno/web/web.css new file mode 100644 index 0000000..14c54e8 --- /dev/null +++ b/content/hypno/web/web.css @@ -0,0 +1,19 @@ +.circle { + border: solid red; + border-radius: 50%; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} +.light { + height: 20px; + width: 20px; + transform: translate(-50%, -50%); + border-radius: 50%; + background: red; + box-shadow: 0 0 5px red, 0 0 2px FireBrick, 0 0 1px DarkRed; + position: absolute; + top: 50%; + left: 50%; +} diff --git a/content/hypno/web/web.js b/content/hypno/web/web.js new file mode 100644 index 0000000..3e2bffe --- /dev/null +++ b/content/hypno/web/web.js @@ -0,0 +1,23 @@ +var innermost = 15; +var start = 30; +var growth = 1.2; + +var radius = innermost; +for (var i = 0; radius < Math.min(window.innerWidth, window.innerHeight)/2; ++i) { + e = document.createElement("div"); + e.className = "circle"; + e.style.height = (2*radius) + "px"; + e.style.width = (2*radius) + "px"; + document.getElementById("circles").appendChild(e); + + radius += start * Math.pow(growth, i); +} + +/* document.getElementsByClassName("light")[0].animate( + [ + { top: "50%", left: "50%" }, + { top: "50%", left: "50%", offset: 0.9 }, + { top: "50%", left: "50%" } + ], + { duration: 10000, iterations: Infinity } + );*/ diff --git a/follow/index.html b/follow/index.html deleted file mode 100644 index cdd0bf4..0000000 --- a/follow/index.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - -
-
- -
- -
- - diff --git a/index.html b/index.html deleted file mode 100644 index 92117d6..0000000 --- a/index.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - -

follow

-

colors

-

loading

- - - - diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..6260113 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,14 @@ + + + + + + {{ block "title" . }}{{ .Site.Title }}{{ end }} + + + {{ block "styles" . }}{{ end }} + + + {{ block "main" . }}{{ end }} + + diff --git a/layouts/hypno/single.html b/layouts/hypno/single.html new file mode 100644 index 0000000..ac9a0df --- /dev/null +++ b/layouts/hypno/single.html @@ -0,0 +1,37 @@ +{{ define "title" }} + {{ .Title }} - xenoscience +{{ end }} +{{ define "styles" }} + + {{ range .Resources.Match "**.css" }} + + {{ end }} +{{ end }} +{{ define "main" }} + {{ .Content }} + +
{{ partial "back.svg" . }} {{ partial "reload.svg" . }}
+ + {{ range .Resources.Match "**.js" }} + + {{ end }} +{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..d43012f --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,29 @@ +{{ define "styles" }} + +{{ end }} +{{ define "main" }} + + +

follow

+

colors

+

loading

+ + +{{ end }} diff --git a/layouts/partials/back.html b/layouts/partials/back.html new file mode 100644 index 0000000..3487627 --- /dev/null +++ b/layouts/partials/back.html @@ -0,0 +1 @@ + diff --git a/back.svg b/layouts/partials/back.svg similarity index 93% rename from back.svg rename to layouts/partials/back.svg index 5f7d4a3..2334221 100644 --- a/back.svg +++ b/layouts/partials/back.svg @@ -1,5 +1,3 @@ - - diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..e0036cb --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,5 @@ + diff --git a/play.svg b/layouts/partials/play.svg similarity index 79% rename from play.svg rename to layouts/partials/play.svg index b6c0d50..a545116 100644 --- a/play.svg +++ b/layouts/partials/play.svg @@ -1,5 +1,3 @@ - - diff --git a/reload.svg b/layouts/partials/reload.svg similarity index 92% rename from reload.svg rename to layouts/partials/reload.svg index 7b7ac4d..3596946 100644 --- a/reload.svg +++ b/layouts/partials/reload.svg @@ -1,5 +1,3 @@ - - diff --git a/xeno.svg b/layouts/partials/xeno.svg similarity index 97% rename from xeno.svg rename to layouts/partials/xeno.svg index eaee1fb..6376fa3 100644 --- a/xeno.svg +++ b/layouts/partials/xeno.svg @@ -1,5 +1,3 @@ - - diff --git a/layouts/shortcodes/partial.html b/layouts/shortcodes/partial.html new file mode 100644 index 0000000..c9d3496 --- /dev/null +++ b/layouts/shortcodes/partial.html @@ -0,0 +1 @@ +{{ partial (.Get 0) . }} diff --git a/loading/index.html b/loading/index.html deleted file mode 100644 index dec2225..0000000 --- a/loading/index.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - -
-
-
- User configuration: You are a... -
- - - - - - - - - - - - - - - - - -
-
- Install -
-
- -
-
- - - diff --git a/manifest.webmanifest b/manifest.webmanifest deleted file mode 100644 index 52b2e98..0000000 --- a/manifest.webmanifest +++ /dev/null @@ -1,15 +0,0 @@ -{ - "background_color": "black", - "description": "Hypnosis widgets free for non-evil use", - "display": "fullscreen", - "icons": [ - { - "src": "icons/icon.svg", - "sizes": "32x32 48x48 72x72 96x96 128x128 192x192 256x256", - "type": "image/svg" - } - ], - "name": "mindjack", - "short_name": "mindjack", - "start_url": "index.html" -} diff --git a/static/css/base.css b/static/css/base.css new file mode 100644 index 0000000..28a9b37 --- /dev/null +++ b/static/css/base.css @@ -0,0 +1,27 @@ +@font-face { + font-family: 'Raleway'; + src: url('/fonts/Raleway-Regular.otf'); +} + +body { + background-color: black; + color: red; + font-family: 'Raleway'; + text-align: center; +} + +a { + color: red; +} + +a:hover { + color: #c00; +} + +a svg path { + stroke: red; +} + +a svg:hover path { + stroke: #c00; +} diff --git a/fonts/Raleway-LICENSE b/static/fonts/Raleway-LICENSE similarity index 100% rename from fonts/Raleway-LICENSE rename to static/fonts/Raleway-LICENSE diff --git a/fonts/Raleway-Regular.otf b/static/fonts/Raleway-Regular.otf similarity index 100% rename from fonts/Raleway-Regular.otf rename to static/fonts/Raleway-Regular.otf diff --git a/fonts/SansForgetica-LICENSE b/static/fonts/SansForgetica-LICENSE similarity index 100% rename from fonts/SansForgetica-LICENSE rename to static/fonts/SansForgetica-LICENSE diff --git a/fonts/SansForgetica-Regular.otf b/static/fonts/SansForgetica-Regular.otf similarity index 100% rename from fonts/SansForgetica-Regular.otf rename to static/fonts/SansForgetica-Regular.otf diff --git a/icons/icon-192.png b/static/icons/icon-192.png similarity index 100% rename from icons/icon-192.png rename to static/icons/icon-192.png diff --git a/icons/icon.asy b/static/icons/icon.asy similarity index 100% rename from icons/icon.asy rename to static/icons/icon.asy diff --git a/icons/icon.svg b/static/icons/icon.svg similarity index 100% rename from icons/icon.svg rename to static/icons/icon.svg