Forked from quitequinn/gist:ae76170904fb3797f68f
Last active
August 29, 2015 14:16
-
-
Save yyolk/315db4b46ba53aa6e147 to your computer and use it in GitHub Desktop.
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 compiled, exFunc; | |
exFunc = (function() { | |
function exFunc() {} | |
constructor(function(path) { | |
this.url = path.replace(/[]/g, '/'); | |
this.index = path; | |
if (path === home) { | |
this.url = ''; | |
return this.index = "intro"; | |
} | |
}); | |
stuff(function() { | |
var stuff; | |
stuff = "#!/" + this.url; | |
return $(".ex").attr("cur-slide", index); | |
}); | |
$('.ex a[href$="#!/' + url + '"]').addClass('view-on'); | |
return exFunc; | |
})(); | |
compiled = new exFunc("intro_1"); | |
compiled.stuff(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment