diff --git a/.eleventy.js b/.eleventy.js index 7e00e33..5218bd8 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -18,8 +18,7 @@ module.exports = function (eleventyConfig) { brand: 'hippie', titlePrefix: '', titlePostfix: ' - HIPPIE', - debugMode: true, - legacyMode: false + debugMode: true }); eleventyConfig.addPassthroughCopy({"source/art/images": "art"}); diff --git a/source/code/hippie/config.js b/source/code/hippie/config.js new file mode 100644 index 0000000..379a767 --- /dev/null +++ b/source/code/hippie/config.js @@ -0,0 +1,22 @@ +var hippie = { + brand: "|-| | |^ |^ | [- ", + screen: { + w: Math.max(document.documentElement.offsetWidth, document.documentElement.clientWidth, window.innerWidth, 0), + vh: Math.max(document.documentElement.clientHeight, window.innerHeight, 0), + dh: Math.max(document.documentElement.offsetHeight, document.documentElement.clientHeight, 0), + y: Math.min($(document).scrollTop(), document.documentElement.scrollTop) + // hippie.screen.y: document.documentElement.scrollTop + }, + body: { + w: Math.max(document.body.offsetWidth, document.body.clientWidth, window.innerWidth, 0), + h: Math.max(document.body.offsetHeight, document.body.clientHeight, 0), + } +}; + +var viewHover = true; +var basicEase = 600; + +var onerowAlphabet = "/\\ ]3 ( |) [- /= (_, |-| | _T /< |_ |\\/| |\\| () |^ ()_ /? _\\~ ~|~ |_| \\/ \\/\\/ >< `/ ~/_ "; +var onerowDigits = "\'| ^/_ -} +| ;~ (o \"/ {} \"| (\\) "; + +export { hippie }; \ No newline at end of file diff --git a/source/code/hippie/main.js b/source/code/hippie/main.js new file mode 100644 index 0000000..6de9686 --- /dev/null +++ b/source/code/hippie/main.js @@ -0,0 +1,29 @@ +// Setup +// ----------------------------------------------------------------------------- +import { hippie } from './config.js'; + +// This is called everytime +function setup() { + 'use strict'; + + console.group('Document information'); + console.info('\n', config.brand, '\n\n'); + console.info('\n', hippie.brand, '\n\n'); + console.info('HTML:', hippie.screen, '\nBODY:', hippie.body); + console.groupEnd(); + if (debugOn) { + console.group('Debug information'); + console.dir(hippie); + console.groupEnd(); + } + + // WANNABE MODULE Mouse over effect + // With CSS only + if ($('#js_mob').length && viewHover) { + $('#js_mob').addClass('mouse_over'); + } + // if (viewHover) { + // $('body').prepend('
'); + // } + // With JS +} diff --git a/source/templates/demo/_default.njk b/source/templates/demo/_default.njk index 3801125..19f5c0b 100644 --- a/source/templates/demo/_default.njk +++ b/source/templates/demo/_default.njk @@ -8,7 +8,6 @@ {% block links %} {{ super() }} - {# #} {# #} {% endblock %} diff --git a/source/templates/demo/_main.njk b/source/templates/demo/_main.njk index c0d545d..c80afc1 100644 --- a/source/templates/demo/_main.njk +++ b/source/templates/demo/_main.njk @@ -8,15 +8,12 @@ {% block links %} {{ super() }} -{% if hippie.legacyMode %} -{% endif %} - {% endblock %} diff --git a/source/templates/demo/_maintenance.njk b/source/templates/demo/_maintenance.njk index 539b432..0fe1365 100644 --- a/source/templates/demo/_maintenance.njk +++ b/source/templates/demo/_maintenance.njk @@ -8,5 +8,6 @@ {% block links %} {{ super() }} - -{% endblock %} \ No newline at end of file + {# #} + {# #} +{% endblock %} diff --git a/source/templates/hippie/_default.njk b/source/templates/hippie/_default.njk index 77a73ff..bdaf5ed 100644 --- a/source/templates/hippie/_default.njk +++ b/source/templates/hippie/_default.njk @@ -21,6 +21,7 @@ {% block links %} {% include "hippie/partials/_head_links.njk" %} + {% endblock %} {{ log.log('HEAD end :: Links parsed, starting to load.') }} diff --git a/source/templates/hippie/_main.njk b/source/templates/hippie/_main.njk index a8d409e..20ccda5 100644 --- a/source/templates/hippie/_main.njk +++ b/source/templates/hippie/_main.njk @@ -21,6 +21,7 @@ {% block links %} {% include "hippie/partials/_head_links.njk" %} + {% endblock %} {{ log.log('HEAD end :: Links parsed, starting to load.') }} diff --git a/source/templates/hippie/_maintenance.njk b/source/templates/hippie/_maintenance.njk index d8b3087..540b310 100644 --- a/source/templates/hippie/_maintenance.njk +++ b/source/templates/hippie/_maintenance.njk @@ -16,6 +16,7 @@ {% block links %} + {% endblock %} {% endblock %}