Skip to content
Browse files

initial new poll page styling

  • Loading branch information...
1 parent 3092068 commit 7b62f735a1be2e5155680b8667f90a3d58f0f639 etcet committed Mar 16, 2013
Showing with 9 additions and 1 deletion.
  1. +7 −0 js/hn.js
  2. +2 −1 style.css
View
7 js/hn.js
@@ -478,13 +478,20 @@ var HN = {
else if ((pathname == '/submit') && HN.isLoginPage()) {
HN.doLogin(); // submit when not logged in
}
+ else if (pathname == '/newpoll') {
+ HN.doPoll();
+ }
else {
//make sure More link is in correct place
$('.title:contains(More)').prev().attr('colspan', '1');
}
//console.log(pathname);
},
+ doPoll: function() {
+ $('body').attr('id', 'poll-body');
+ },
+
isLoginPage: function() {
return ($("b:contains('Login')").length > 0);
},
View
3 style.css
@@ -668,7 +668,8 @@ div.postlist-arrow {
}
#user-profile td:first-child,
-#login-body tr#content form td:first-child {
+body#poll-body form td:first-child,
+body#login-body tr#content form td:first-child {
color: #444;
padding-right: 1em;
}

0 comments on commit 7b62f73

Please sign in to comment.
Something went wrong with that request. Please try again.