<<set $secondBottle = "loss">>"I left my toy at the park once. My dad couldn't find it."\n\nWe want someone to feel our loss and cry with us.\n\nWe squish the paper into a bottle before sending it away.\n\n[[We are bored.|Day4]]
It <<if $thirdBottle eq "punishment">>rained<<elseif $thirdBottle eq "redemption">>was too hot<<else>>was too cold<<endif>> today.\n\nSo we decided to stay inside and play with our dinosaurs.\n\nWe played with our blocks.\n\nWe played with our dolls.\n\nWe played with our toes.\n\n[[We played with our dreams|Day7]]\n<<fadeoutsound $ocean>>
<<firstBottle>>\n\n<<secondBottle>>\n\n<<thirdBottle>>\n\n[[I think it's time to wake up|Day1]]
Today we decided to enjoy some <<if $secondBottle eq "love">>apple<<elseif $secondBottle eq "loss">>orange<<endif>> juice.\n\nIt went well with the cicadas trying to find a friend.\n\n[[Tomorrow|Day5]] will be a good day for a bottle.\n\n<<fadeoutsound $ocean>>\n<<loopsound $cicadas>>
We were right. Today is another good day for bottles.\n\nThe one time we committed a [[crime|CrimeMessage]].\n\nWhen we decided to [[apologise|RedemptionMessage]].\n\nor when we got [[caught|PunishmentMessage]].\n\n<<fadeoutsound $cicadas>>\n<<loopsound $ocean>>
Today, we caught some bugs in the park by the beach.\n\nThey were buzzing and flying and making strange patterns in the air.\n<<if $firstBottle eq "power">>\n[[We let them go after we caught them.|Day3]]\n<<elseif $firstBottle eq "courage">>\n[[We finally caught a bee!|Day3]]\n<<elseif $firstBottle eq "wisdom">>\n[[We read them a story to help them become smarter.|Day3]]\n<<endif>>\n\n<<fadeoutsound $ocean>>\n<<loopsound $cicadas>>
Today is another good day for us to send out a message.\n\nWhat will we send out?\n\n[[A Letter of Love|LoveMessage]] or [[A Letter of Loss|LossMessage]]\n\n<<fadeoutsound $cicadas>>\n<<loopsound $ocean>>
<html><h3>Today is a good day to send a bottle out to sea.</h3></html>\n\nWhat will we send out?\n\nA Story of [[Power|PowerMessage]]?\n\nA Message of [[Wisdom|WisdomMessage]]?\n\nor A Word of [[Courage|CourageMessage]]?\n\n<<silently>>\n<<set $firstBottle = "">>\n<<set $secondBottle = "">>\n<<set $thirdBottle = "">>\n<<endsilently>>\n\n<<loopsound $ocean>>
var powerMessage = "We dreamt of a Hungry Lion. Its coat a poor imitation of its former glory. Despite being a great hunter, The Lion had no one to share its food with. So it did not hunt.",\n\tcourageMessage = "We dreamt of a Meek Lion with no ability to hunt. Being on its own, it was forced to scavenge. Others would flee when they saw it approaching and leave The Lion to eat by its lonesome.",\n\twisdomMessage = "We dreamt of an Old Lion. Silver and skinny, it had seen a more active time years prior. Now, The Lion drifted. Wandering in search of anything.";\n\nmacros["firstBottle"] = {\n\thandler: function(place) {\n\t\tvar firstBottle = state.history[0].variables.firstBottle;\n\t\tif(firstBottle == "power") {\n\t\t\tinsertText(place, powerMessage);\n\t\t} else if(firstBottle == "courage") {\n\t\t\tinsertText(place, courageMessage);\n\t\t} else {\n\t\t\tinsertText(place, wisdomMessage);\n\t\t}\n\t}\n}\n\nvar loveMessage = "Needing food is biological, but the Lion's desire for a pride was a necessity.",\n\tlossMessage = "And The Lion could have found what it was looking for. Had it not been a forgetful creature.";\n\nmacros["secondBottle"] = {\n\thandler: function(place) {\n\t\tvar secondBottle = state.history[0].variables.secondBottle;\n\t\tif(secondBottle == "love") {\n\t\t\tinsertText(place, loveMessage);\n\t\t} else {\n\t\t\tinsertText(place, lossMessage);\n\t\t}\n\t}\n}\n\nvar punishmentMessage = "But The Lion could never return to its former glory. It had taken the feelings of others and now must spend the remainder of its life feeling them. Each emotion has a memory and The Lion must go through them all. One by one.",\n\tredemptionMessage = "In the end, The Lion found its pride. But they did not want The Lion back. For The Lion had given up on them and now they have given up on The Lion.",\n\tcrimeMessage = "The Lion slowly found itself no longer needing. Gradually, The Lion faded away until it ceased to exist at all.";\n\nmacros["thirdBottle"] = {\n\thandler: function(place) {\n\t\tvar thirdBottle = state.history[0].variables.thirdBottle;\n\t\tif(thirdBottle == "punishment") {\n\t\t\tinsertText(place, punishmentMessage);\n\t\t} else if(thirdBottle == "redemption") {\n\t\t\tinsertText(place, redemptionMessage);\n\t\t} else {\n\t\t\tinsertText(place, crimeMessage);\n\t\t}\n\t}\n}
<<set $thirdBottle = "crime">>"One time, I took 5 candies instead of 4! Nobody knew. Except my tum tum."\n\nWe make sure no one notices us when we put the confession into the bottle.\n\nWe hope that someone is shocked by our sneakiness.\n\n[[Let's rest|Day6]]
/**\n * Shamelessly stolen from:\n * http://www.glorioustrainwrecks.com/node/5061\n*/\n\n(function () {\n "use strict";\n version.extensions['soundMacros'] = {\n major: 1,\n minor: 1,\n revision: 2\n };\n var p = macros['playsound'] = {\n soundtracks: {},\n handler: function (a, b, c, d) {\n var loop = function (m) {\n if (m.loop == undefined) {\n m.loopfn = function () {\n this.play();\n };\n m.addEventListener('ended', m.loopfn, 0);\n } else m.loop = true;\n m.play();\n };\n var s = eval(d.fullArgs());\n if (s) {\n s = s.toString();\n var m = this.soundtracks[s.slice(0, s.lastIndexOf("."))];\n if (m) {\n if (b == "playsound") {\n m.play();\n } else if (b == "loopsound") {\n loop(m);\n } else if (b == "pausesound") {\n m.pause();\n } else if (b == "unloopsound") {\n if (m.loop != undefined) {\n m.loop = false;\n } else if (m.loopfn) {\n m.removeEventListener('ended', m.loopfn);\n delete m.loopfn;\n }\n } else if (b == "stopsound") {\n m.pause();\n m.currentTime = 0;\n } else if (b == "fadeoutsound" || b == "fadeinsound") {\n if (m.interval) clearInterval(m.interval);\n if (b == "fadeinsound") {\n if (m.currentTime>0) return;\n m.volume = 0;\n loop(m);\n } else {\n if (!m.currentTime) return;\n m.play();\n }\n var v = m.volume;\n m.interval = setInterval(function () {\n v = Math.min(1, Math.max(0, v + 0.002 * (b == "fadeinsound" ? 1 : -1)));\n m.volume = Math.easeInOut(v);\n if (v == 0 || v == 1) clearInterval(m.interval);\n if (v == 0) {\n m.pause();\n m.currentTime = 0;\n m.volume = 1;\n }\n }, 10);\n }\n }\n }\n }\n }\n macros['fadeinsound'] = p;\n macros['fadeoutsound'] = p;\n macros['unloopsound'] = p;\n macros['loopsound'] = p;\n macros['pausesound'] = p;\n macros['stopsound'] = p;\n macros['stopallsound'] = {\n handler: function () {\n var s = macros.playsound.soundtracks;\n for (var j in s) {\n\t\tif (s.hasOwnProperty(j)) {\n s[j].pause();\n if (s[j].currentTime) {\n\t\t s[j].currentTime = 0;\n\t\t }\n\t\t}\n }\n }\n }\n var div = document.getElementById("storeArea").firstChild;\n var fe = ["ogg", "mp3", "wav", "webm"];\n while (div) {\n var b = String.fromCharCode(92);\n var q = '"';\n var re = "['" + q + "]([^" + q + "']*?)" + b + ".(ogg|mp3|wav|webm)['" + q + "]";\n k(new RegExp(re, "gi"));\n div = div.nextSibling;\n }\n\n function k(c, e) {\n do {\n var d = c.exec(div.innerHTML);\n if (d) {\n var a = new Audio();\n if (a.canPlayType) {\n for (var i = -1; i < fe.length; i += 1) {\n if (i >= 0) d[2] = fe[i];\n if (a.canPlayType("audio/" + d[2])) break;\n }\n if (i < fe.length) {\n a.setAttribute("src", d[1] + "." + d[2]);\n a.interval = null;\n macros.playsound.soundtracks[d[1]] = a;\n } else console.log("Browser can't play '" + d[1] + "'");\n }\n }\n } while (d);\n }\n}());
<<set $secondBottle = "love">>"Apple crumble is my favourite dessert. My mom makes it when my other mom is upset."\n\nWe fold our letter twice this time and send it off gently.\n\nWe wish for love to spread with our message.\n\n[[We are sleepy.|Day4]]
jquery:on\nhash:off\nbookmark:on\nmodernizr:off\nundo:on\nobfuscate:off\nexitprompt:off\nblankcss:on\n
/* Resetting some stuff */\n#sidebar { display: none; }\n#passages {\n\tmargin-left: 0;\n}\n\n\n/* Main Styles */\nbody {\n\tfont-family: 'Verdana', Helvetica, sans-serif;\n\twidth: 80%;\n\tmargin: auto;\n\ttext-align: center;\n\tpadding-top: 1em;\n\ttransition: background 3.5s linear;\n}\n\n.passage a {\n\tcolor: #8e44ad;\n}\n\n/* Body background styles to co-ordinate with tags and passage section */\n\nbody[data-tags="beach"] {\n\tbackground: #f1c40f;\n}\n\nbody[data-tags="sleep"] {\n\tbackground: #e67e22;\n}\n\nbody[data-tags="sleep"] a, body[data-tags="dream"] a {\n\ttransition: all 2s linear;\n}\n\nbody[data-tags="sleep"] a:hover, body[data-tags="dream"] a:hover {\n\ttext-shadow: 0 13px 10px #8e44ad;\n\tfont-size: 12px;\n}\n\nbody[data-tags="bugs"] {\n\tbackground: #27ae60;\n}\n\nbody[data-tags="home"] {\n\tbackground: #e74c3c;\n}\n\nbody[data-tags="dream"] {\n\tbackground: #ecf0f1;\n}\n\nh3 {\n\tfont-size: 20px;\n\tmargin: 0;\n}
<<set $firstBottle = "wisdom">>"Sometimes, it's best to eat vegetables instead of meat".\n\nWe put our wise words inside a small glass bottle, cork it, and send the bottle on its merry way.\n\nWe hope the receiver appreciates our wise words.\n\n[[We are tired.|Day2]]
<<set $thirdBottle = "punishment">>"I'm not allowed to eat peanut butter anymore."\n\nWe rip up our woes and throw them into the bottle.\n\nWe hope that the receiver will try to understand.\n\n[[Let's rest|Day6]]
Bottles
<<set $thirdBottle = "redemption">>"I drank all of the pop in the fridge but it was ok because we wont more pop from the contest."\n\nWe throw our story into the air and let it fall into the bottle.\n\nWe are not sure how that worked. But we hope that the receiver will say "Lucky!".\n\n[[Let's rest|Day6]]
<<set $firstBottle = "courage">>"I told my mom that I didn't want to go to bed yet!"\n\nWe fold up our story and slide it into a bottle. We then cork it and throw it as far as we can into the sea.\n\nWe hope the receiver will be inspired by our courage.\n\n[[We are tired.|Day2]]
<<set $firstBottle = "power">>"I once ate an entire jar of peanut butter before my brother could try some!"\n\nWe coil up our story and slip it into a large bottle before sending it off on a journey.\n\nWe hope the receiver will be impressed with our power.\n\n[[We are tired.|Day2]]
<html><h3>Bottles</h3></html>\n\n[[Start (please turn on your sound)|Day1]]\n\nBy: Jonathan Levstein\n\n<<silently>>\n<<set $ocean = "http://jlevstein.com/games/bottles/ocean.wav">>\n<<set $cicadas = "http://jlevstein.com/games/bottles/cicadas.wav">>\n<<endsilently>>
Jonathan Levstein