+
+
+
+
+
+
+ User configuration: You are a...
+
+ + | + |
+ | + |
+ | + |
+ | + |
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 ++++ ++ | + |
+ | + |
+ | + |
+ | + |