diff options
| author | Jesse Morgan <jesse@jesterpm.net> | 2014-02-22 12:48:15 -0800 | 
|---|---|---|
| committer | Jesse Morgan <jesse@jesterpm.net> | 2014-02-22 12:48:15 -0800 | 
| commit | 9526fe75f2343e50f35c436dc0b4a4beb7de7eff (patch) | |
| tree | 9a20a3517d2ba0468ce84fdde073d8dbcff35644 /web/scripts | |
| parent | 379c3fd79c4846b3453c1ad5195ca9b627176f06 (diff) | |
Adding new question and answer question forms.
Diffstat (limited to 'web/scripts')
| -rw-r--r-- | web/scripts/growth.js | 22 | 
1 files changed, 22 insertions, 0 deletions
diff --git a/web/scripts/growth.js b/web/scripts/growth.js index 8cd46b0..86ac21f 100644 --- a/web/scripts/growth.js +++ b/web/scripts/growth.js @@ -87,6 +87,24 @@ $(document).ready(function()          video.removeAttribute("controls");      } +    $('textarea').bind({ +        focus: function () { +            var self = $(this); + +            if (self.val() == self.attr('defaultValue')) { +                self.val('').removeClass('default'); +            }; +        }, +        blur: function () { +            var self = $(this), +                val = jQuery.trim(self.val()); + +            if (val == "" || val == self.attr('defaultValue')) { +              self.val(self.attr('defaultValue')).addClass('default'); +            }; +        } +    }).trigger('blur'); +      $("#banner").slideDown();  }); @@ -281,3 +299,7 @@ function submitClassForm()      return false;  } + +function answerQuestion(id) { +    $("#answer-" + id).slideDown(); +}  | 
