Permalink
Browse files

Add links for Persona, Rhino. Add Popcorn and PHP. Add links to buttons.

  • Loading branch information...
1 parent 28c7f5f commit 801d58d64604c4908429df7d2430adb39a91729e @jdm committed Aug 9, 2012
Showing with 32 additions and 4 deletions.
  1. +6 −2 foopy.js
  2. +26 −2 index.html
View
@@ -5,8 +5,11 @@ var stack = [];
function updateCurrentChoice() {
var content = $('#content')[0];
- content.innerHTML = $('.choices li', groupNode)[choices[choices.length - 1][choiceIndex[choiceIndex.length - 1]]].innerHTML;
+ var choice = $('.choices li', groupNode)[choices[choices.length - 1][choiceIndex[choiceIndex.length - 1]]];
+ content.innerHTML = choice.innerHTML;
$('#next')[0].firstChild.textContent = chooseNegativeResponse();
+ $('#ok')[0].firstChild.href = choice.hasAttribute('next-group') ?
+ '' : choice.getAttribute('target');
}
function nextChoice() {
@@ -45,7 +48,8 @@ function switchGroup(group) {
updateCurrentChoice();
}
-function investigate() {
+function investigate(ev) {
+ ev.preventDefault();
var choice = $('.choices li', groupNode)[choices[choices.length - 1][choiceIndex[choiceIndex.length - 1]]];
if (choice.hasAttribute('next-group')) {
switchGroup(choice.getAttribute('next-group'));
View
@@ -14,11 +14,13 @@
<li next-group="js">Javascript</li>
<li next-group="java">Java</li>
<li next-group="py">Python</li>
+ <li next-group="php">PHP</li>
<li target="http://www.rust-lang.org">Rust
<div class="extra">the new systems programming language created by Mozilla.</div>
</li>
</ul>
</div>
+
<div class="group" id="cpp">
<span class="question">So you like long compile times and incomprehensible error messages? That's cool, we do too.
You could work on</span>
@@ -43,6 +45,7 @@
</li>
</ul>
</div>
+
<div class="group" id="js">
<span class="question">So you're a dynamic individual who thinks that, underneath, everything is an object? That's cool,
we like to dream as well. You could work on</span>
@@ -74,20 +77,28 @@
<li target="http://www.seamonkey-project.org">Seamonkey
<div class="extra">the open source web productivity suite</div>
</li>
+ <li target="https://blog.mozilla.com/webdev/get-involved/">Web development
+ <div class="extra">we have many large, complicated projects that use Javascript</div>
+ </li>
+ <li target="http://www.benmoskowitz.com/?p=527">Popcorn
+ <div class="extra">create interactive media pages that seamlessly integrate video, audio, and traditional web technologies</div>
+ </li>
</ul>
</div>
+
<div class="group" id="java">
<span class="question">So you're a believer in <strong><code>AbstractMethodFactoryBean</code></strong>s? That's cool, we all have our vices.
You could work on</span>
<ul class="choices">
<li target="https://wiki.mozilla.org/Mobile/Get_Involved">Mobile Firefox
<div class="extra">it's the Gecko engine, with an Android-specific UI. No Android device required.</div>
</li>
- <li>Rhino
+ <li target="https://developer.mozilla.org/en-US/docs/Rhino">Rhino
<div class="extra">it's Spidermonkey in Java. Is this actually still a thing?</div>
</li>
</ul>
</div>
+
<div class="group" id="py">
<span class="question">So you enjoy the paradigm of backtrace-driven development? That's cool, everyone gets a bit tired of
static typing once in a while. You can work on</span>
@@ -106,6 +117,18 @@
</li>
</ul>
</div>
+
+ <div class="group" id="php">
+ <span class="question">So you like your variable names to include dollar signs? That's cool, everyone misses Perl once
+ in a while. You can work on</span>
+ <ul class="choices">
+ <li target="https://wiki.mozilla.org/Socorro">Soccorro
+ <div class="extra">the code that runs our <a href="http://crash-stats.mozilla.org">crash analysis website</a></div>
+ </li>
+ </li>
+ </ul>
+ </div>
+
<div class="group" id="ff-cpp">
<span class="question">That's cool, but not very specific. You could work on</span>
<ul class="choices">
@@ -126,6 +149,7 @@
</li>
</ul>
</div>
+
<div class="group" id="ff-js">
<span class="question">Good choice - there are a lot of different areas if you'd like to specialize. You could work on</span>
<ul class="choices">
@@ -136,7 +160,7 @@
<li target="https://wiki.mozilla.org/Services/Sync#Get_Involved">Sync
<div class="extra">help users take their personal browsing data on the road</div>
</li>
- <li>Persona
+ <li target="https://wiki.mozilla.org/Persona">Persona
<div class="extra">implement a single-sign-on mechanism that integrates with Firefox</div>
</li>
</ul>

0 comments on commit 801d58d

Please sign in to comment.