magnifier-rails 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +8 -8
- data/lib/magnifier/rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGYxMmY3ODM3OGQxM2RmMGYyYzRlY2RiNDc2ZDZlYThlYjY1MDYxYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTRmYzJlNDJlMWEwYTlhNzhlZDg1Y2UwODZhYzAzY2Q3MzlhODM3MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmI1NTNiZjIzNWExMzQ3ZDU1NDYzYzBlYWYzNWUxNjdiMTQ4NzQxNjlkMTc3
|
10
|
+
YWY5NGY2YmZlYTY2Nzc4NzRkZjE2ZWUzODFlMWVlZDA2ZGNiNjAzNDcxZTQ2
|
11
|
+
NmE0ZjZhMmUyNDllZDVhZDBlYWZlMGMwMTI4MTkxMDE1YzEzMDU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWIxMDcxZjRmOWNiODFhNzUxYmY0Y2RlZjhiYzRhYWU1NTk2NDNmNzRhZDVi
|
14
|
+
Njg4OTE2MDg4YjEwNzJkOTdmYzcxODNmZjJjZmIyNjRlMzFhNzBmZWFlYjQ0
|
15
|
+
NmU1Y2E4MjdmN2VjOWQzYzQzN2VmZTM5MTc2YTA2NTg2MmE2NGI=
|
data/README.md
CHANGED
@@ -18,25 +18,25 @@ Or install it yourself as:
|
|
18
18
|
$ gem install magnifier-rails
|
19
19
|
|
20
20
|
|
21
|
-
##
|
21
|
+
## Generator
|
22
22
|
|
23
23
|
This gem adds a single generator "magnifier:install". Running the generator will copy the required jQuery files to the "app/assets/javascripts/" directory
|
24
24
|
|
25
25
|
to invoke the generator , run:
|
26
26
|
|
27
|
-
$ rails g magnifier:install
|
27
|
+
$ rails g magnifier:install
|
28
28
|
|
29
29
|
## Usage
|
30
30
|
|
31
31
|
Example :
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
<script type="text/javascript">
|
34
|
+
('document').ready(function(){
|
35
|
+
('#img').magnifier();
|
36
|
+
});
|
37
|
+
</script>
|
38
38
|
|
39
|
-
|
39
|
+
<img src="img src" id="img" class="magnify" data-magnifyby="5" style="width:200px; height:150px">
|
40
40
|
|
41
41
|
|
42
42
|
|