Permalink
Browse files

Use semantic class names.

  • Loading branch information...
1 parent 09094c3 commit d61ccb7298ef31af705caed8cfb2ba7f9398eaed @moll moll committed May 22, 2012
Showing with 4 additions and 13 deletions.
  1. +2 −4 public/hackersays.js
  2. +2 −9 public/themes/base.scss
@@ -14,7 +14,6 @@ $(function() {
});
$(function() {
-
var readingTimer, fetchingTimer, reloadTimer,
quotesEl = $("#quotes");
@@ -57,8 +56,8 @@ $(function() {
History.replaceState(null, "Hacker Says - quote by " + slide.find("cite").text(), slide.data("id"));
_gaq.push(['_trackPageview']);
$("#toolbar")
- .toggleClass("hide-prev", index == 0)
- .toggleClass("hide-next", index == total);
+ .toggleClass("first-quote", index == 0)
+ .toggleClass("last-quote", index == total);
if ($("#toolbar .play").hasClass("paused")) return;
@@ -109,6 +108,5 @@ $(function() {
if (time < 5) time = 5;
return time * 1000;
}
-
});
@@ -76,18 +76,11 @@ strong { font-weight: bolder; }
background-image: inline-image("control-prev.png");
}
- &.hide-prev {
- .bx-prev { visibility: hidden; }
- }
-
.bx-next {
float: right; margin-top: 5px;
background-image: inline-image("control-next.png");
}
- &.hide-next {
- .bx-next { visibility: hidden; }
- }
-
+ &.first-quote .bx-prev,
+ &.last-quote .bx-next { visibility: hidden; }
}
-

0 comments on commit d61ccb7

Please sign in to comment.