Skip to content

Commit 91461a6

Browse files
committed
Removing more unlocking features
1 parent 8427dc3 commit 91461a6

6 files changed

Lines changed: 12 additions & 15 deletions

File tree

_layouts/post.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434

3535
<div id="next">
3636
{% if page.next %}
37-
<div class="stop">
38-
Please complete the lab before continuing.
39-
</div>
4037
<div class="continue">
4138
<a href="{{ page.next.url }}">
4239
<!-- Please don't just skip through these, actually do the labs! -->

_posts/2012-11-1-repl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,4 +233,4 @@ To instruct the Node.js process to exit:
233233

234234
## Completing This Lab
235235

236-
Once you're satisfied with the Node.js REPL and your understanding of JavaScript, <a href="#" class="unlock">unlock the next lab</a>. If you have questions about JavaScript or the REPL, feel free to raise your hand or get the attention of one of the instructors in a Node Labs t-shirt.
236+
If you have questions about JavaScript or the REPL, feel free to raise your hand or get the attention of one of the instructors in a Node Labs t-shirt.

css/post.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ pre code { border: 0 none; padding: 0; }
4040
#header img { height: 150px; }
4141

4242
#next { margin-top: 50px; }
43-
#next .continue { display: none; }
4443

45-
#next .stop, #next .completed {
44+
#next .completed {
4645
text-align: center;
4746
background-color: #c6c6c6;
4847
border-radius: 5px;

index.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ $ npm --version
1717
{% endhighlight %}
1818

1919
<div id="next">
20-
<div class="userprompt">
21-
<a href="#">Let's get started!</a>
22-
</div>
23-
<div class="continue">
20+
<div class="userprompt continue">
2421
<!-- Please don't just skip through these, actually do the labs! -->
2522
<a href="{{ site.posts.last.url }}">Awesome, let's get started!<span>{{ site.posts.last.title }}</span></a>
2623
</div>

js/unlock.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
var promptForUsername = function (e) {
3838
e.preventDefault();
3939

40-
var username = prompt("Pick a username!");
40+
var username = prompt("Whats your name? This helps us track your progress.");
41+
4142
if (!username) return;
43+
4244
$.cookie("username", username);
4345

44-
$("#next .stop").show();
45-
$("#next .userprompt").hide();
4646
socket.emit("username", whoami());
4747
};
4848

@@ -73,8 +73,12 @@
7373
};
7474

7575
$(document).ready(function () {
76-
$("#next .userprompt a").click(promptForUsername);
77-
$("a.unlock").click(unlockNextLab);
76+
if (!$.cookie("username")) {
77+
$("#next .userprompt a").click(promptForUsername);
78+
}
79+
80+
$("#next .continue a").click(unlockNextLab);
81+
7882
$("code").each(injectYourUsername);
7983
});
8084

test.tx

Whitespace-only changes.

0 commit comments

Comments
 (0)