jscalc 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcf397a6ec63f0635f74e2a0440ca387415144a9
|
4
|
+
data.tar.gz: a26badee9b61c72e31ab234a6435a2a70067e414
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5a048cc4d4c56e42ca9a747d78a12d6013b268f4e92ae38a21a262e83b4cf2d60a4857024baaf3255989537fb3c55168289cfe5e096d8f33cc898684d09f5b0
|
7
|
+
data.tar.gz: 9a1ec0f1f57a63cd3b3ef2a7f9659f61d4f917d74e54f87e5a6b0e262e704f7adc948650aa77be1225ea28530e22a58105ea1e22e382ca97f33179ab7b1a54e5
|
data/README.md
CHANGED
@@ -24,28 +24,27 @@ Or install it yourself as:
|
|
24
24
|
|
25
25
|
Add the following HTML code to the page where you want the calculator to appear
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
27
|
+
>`<div id = "myCalculator">
|
28
|
+
<div id="panelDiv">
|
29
|
+
<input type ="text" id = "calcPanel" />
|
30
|
+
</div> <!--End panelDiv-->
|
31
|
+
</div><!--End myCalculator Div-->`
|
33
32
|
|
34
33
|
|
35
34
|
Add the following to the bottom of **application.html.erb** (the script file must render in the body
|
36
35
|
section of the HTML page, not in the head section)
|
37
36
|
|
38
|
-
|
37
|
+
> `<%= javascript_include_tag "jscalc.js" %>`
|
39
38
|
|
40
39
|
Add the following line to the head section of **application.html.erb**
|
41
40
|
|
42
|
-
|
41
|
+
> `<%= stylesheet_link_tag "jscalc.css" %>`
|
43
42
|
|
44
43
|
**TO MAKE THE CALCULATOR DRAGGABLE**, ensure that jQuery-ui is installed or add the following files to the head section of **application.html.erb** BEFORE the stylesheet link tag.
|
45
44
|
|
46
|
-
|
45
|
+
`<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>`
|
47
46
|
|
48
|
-
|
47
|
+
`<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>`
|
49
48
|
## Usage
|
50
49
|
|
51
50
|
Math.random()
|