This is a test project to learn GIT Behaviour
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Shashank Duhan 2017 | CC.0 | |
//You gonna need reflex.js for this : | |
// https://gist.github.com/shashankduhan/673a4e1223afe550ca69958bcb73181c | |
window.router = (()=>{ | |
"use strict" | |
return { | |
state: 0, | |
init: function(user){ | |
router.routes = router.state; | |
window.addEventListener("hashchange", router.router); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.load = (function(){ | |
"use strict"; | |
//This is sample module for loading a module using require() function in webpack. | |
//Simply put load.init(); in window.onload callback. | |
return { | |
init: function(){ | |
//************************************* | |
//Initialize some global functions.. | |
//If you want to load a library, write codes in here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Our finite state machine | |
window.reflexes = (()=>{ | |
"use strict" | |
return { | |
dispatcher: e => | |
{ | |
//Add some suffix to our packet before dispatching | |
window.router = window.router ? window.router : {state: "yo"}; | |
e.origin = !window.router.state ? "alien_request" : window.router.state; | |
e.hash = window.router.routes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div><span>Project</span> WAVES</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mymodule = (function(){ | |
"use strict"; | |
//This is sample module for loading a module using require() function in webpack. | |
return { | |
init: function(){ | |
//************************************* | |
//Initialize some global functions.. | |
//If you want to load a library, write codes in here. |