Skip to content

Instantly share code, notes, and snippets.

View mknepprath's full-sized avatar
🏠
Working from home

Michael Knepprath mknepprath

🏠
Working from home
View GitHub Profile
// init cookie on first visit
if (!(Cookies.get('position'))) {
var position = "start";
Cookies.set('position', 'start');
$( ".command" ).prepend( "<li class='list-group-item list-group-item-warning'>&quot;Start&quot; to play.</li>" );
}
else {
var position = Cookies.get('position');
$( ".command" ).prepend( "<li class='list-group-item list-group-item-warning'>Continue your game or &quot;Reset&quot;. Current position: " + Cookies.get('position') + "</li>" );
};
var position = "start";
var response = "";
$( "#tweet" ).click(function() {
var tweet = $('#move').val();
var move = $('#move').val().toLowerCase().replace(/[.,-\/#!$%\^&\*;:{}=\-_`~()]/g,"");
if (position === "start") {
@mknepprath
mknepprath / lilt-test-1.html
Created January 10, 2016 05:05
First attempt at figuring out a good system for building Lilt.
<ul>Tweet "start" to begin.
<li>start
<ul>You are resting in a glade. There is a waterfall to your right and a pathway to your left. What will you do?
<li>walk down the path | walk down the pathway | take the path | walk the path
<ul>You walk down the path but soon realize your way is blocked by a large felled tree. You walk back.
</ul>
<li>pick up the ladle | pick up the #ladle | pick up ladle | pick the #ladle
<ul>You now have a <b>#ladle</b>.
</ul>
</li>