Mercurial > open-web-challenges
changeset 7:5b049b310795
Made hint button hit area smaller.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Mon, 30 Mar 2009 21:29:35 -0700 |
parents | 5a5d167e54ce |
children | fd9bfd93c4da |
files | open-web-challenges.js |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/open-web-challenges.js Mon Mar 30 17:10:40 2009 -0700 +++ b/open-web-challenges.js Mon Mar 30 21:29:35 2009 -0700 @@ -1,6 +1,7 @@ var OWC = { _makeHintButton: function makeHintButton(hints) { - var hintButton = $('<div class="hint-button"></div>'); + var hintButtonContainer = $('<div class="hint-button"></div>'); + var hintButton = $('<span></span>'); hintButton.text($('#msg-show-first-hint').text()); hintButton.click( function() { @@ -10,7 +11,8 @@ else $(this).text($('#msg-no-more-hints').text()); }); - return hintButton; + hintButtonContainer.append(hintButton); + return hintButtonContainer; }, load: function load(id) {