neerajdotname-javascript_lab 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +8 -0
- data/lib/javascript_lab.rb +1 -1
- data/views/index.erb +5 -4
- data/views/style.sass +9 -2
- metadata +1 -1
data/History.txt
CHANGED
data/lib/javascript_lab.rb
CHANGED
data/views/index.erb
CHANGED
@@ -30,12 +30,13 @@
|
|
30
30
|
<% unless params[:j].nil? %>
|
31
31
|
<p>
|
32
32
|
<label class='label'>
|
33
|
-
javascript code
|
33
|
+
Your javascript code in this box
|
34
34
|
</label>
|
35
|
-
<input class='submit' type='submit' value='Evaluate' onclick='processForm();return false;' />
|
36
|
-
<
|
35
|
+
<input class='submit' style='float:right;' type='submit' value='Evaluate' onclick='processForm();return false;' />
|
36
|
+
<p>
|
37
37
|
<span class='light'>Use log('hello world') to show log in the log output</span>
|
38
|
-
|
38
|
+
</p>
|
39
|
+
<textarea name='javascript_code' rows='25' cols='60'></textarea>
|
39
40
|
</p>
|
40
41
|
<p>
|
41
42
|
<input class='submit' type='submit' value='Evaluate' onclick='processForm();return false;' />
|
data/views/style.sass
CHANGED
@@ -78,7 +78,8 @@ form
|
|
78
78
|
:padding 2px
|
79
79
|
:font-size 16px
|
80
80
|
label
|
81
|
-
:margin
|
81
|
+
:margin 6px 0 6px 0
|
82
|
+
:font-size 20px
|
82
83
|
span
|
83
84
|
:color gray
|
84
85
|
|
@@ -93,4 +94,10 @@ form
|
|
93
94
|
.tag_line
|
94
95
|
:font-size 14px
|
95
96
|
:color gray
|
96
|
-
|
97
|
+
|
98
|
+
.submit
|
99
|
+
:font-size 18px
|
100
|
+
:color red
|
101
|
+
|
102
|
+
.light
|
103
|
+
:font-size 18px
|