]> git.parisson.com Git - teleforma.git/commitdiff
fix rainbow
authoryomguy <yomguy@parisson.com>
Sat, 15 Dec 2012 23:21:58 +0000 (00:21 +0100)
committeryomguy <yomguy@parisson.com>
Sat, 15 Dec 2012 23:21:58 +0000 (00:21 +0100)
teleforma/static/teleforma/css/teleforma.css
teleforma/templates/teleforma/answer_form.html

index 5213cc2c9af6c437f3eb0ef8e60e32bd00081891..2ca17c7bf0236a2653623c37c3fd1f014b068cfc 100644 (file)
@@ -1688,7 +1688,7 @@ input,textarea{
     color-stop(0.00, blue),
     color-stop(25%, green),
     color-stop(50%, yellow),
-    color-stop(66%, orange),
+    color-stop(75%, orange),
     color-stop(1.00, red)
     );
 
index 9b9d5ee4eb0eb4cf9ceab8a0dac9a6e5ff017ab8..35a4991e41533604a9ac9c9ddc99ff5fe437b5aa 100644 (file)
@@ -5,6 +5,7 @@
 {% block extra_javascript %}
 <script src="{{ STATIC_URL }}teleforma/js/charCount.js" type="text/javascript"></script>
 <script type="text/javascript">
+
 $(document).ready(function(){
   $('#id_answer').live("paste",function(e) {
       e.preventDefault();
@@ -13,27 +14,26 @@ $(document).ready(function(){
 });
 
 $(document).ready(function(){   
-        //default usage
-        $("#id_answer").charCount({
-                        necessary: {{question.min_nchar}},            
-                        counterText: gettext('Characters')+' : ',
-                });
-});
-
+    //default usage
+    $("#id_answer").charCount({
+        necessary: {{question.min_nchar}},            
+        counterText: gettext('Characters')+' : ',
+        });
+    });
 
 $(document).ready(function(){
-        var b = $('#submit_button');
-        var c = $('#counter')
-        b.unbind('click').click(function() {
-            if (c.hasClass('deceed')){
-              new Messi(gettext('You must reach the required number of characters.'), {buttons: [{id: 0, label: gettext('OK'), val: 'X'}], modal: true});
-            }
-            if (c.hasClass('exceed')){
-                $('#id_status').value=3; 
-                $('#_AnswerForm').submit(); 
-            }
-          });
-        });
+    var b = $('#submit_button');
+    var c = $('#counter')
+    b.unbind('click').click(function() {
+        if (c.hasClass('deceed')){
+          new Messi(gettext('You must reach the required number of characters.'), {buttons: [{id: 0, label: gettext('OK'), val: 'X'}], modal: true});
+        }
+        if (c.hasClass('exceed')){
+            $('#id_status').value=3; 
+            $('#_AnswerForm').submit(); 
+        }
+      });
+    });
 
 </script>
 {% endblock extra_javascript %}
@@ -64,4 +64,3 @@ $(document).ready(function(){
 
 {% endblock course_content %}
 
-