data_href_highlight 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4dba0a79c58e576c0e6ae092403c15f3d9d536c6
4
- data.tar.gz: 4396a6be4120c7447f4fd7c7d2d1e19140d7aacc
3
+ metadata.gz: f51b083bc292a88f5a84c1c17f569c3f651a329e
4
+ data.tar.gz: 2c37b740553a065d4b09c645054817060817187d
5
5
  SHA512:
6
- metadata.gz: 9ab96e518826480d34334749021ee80355aef71c025b0aa8b5b9af9aecee83d2877f1d284042db67acf0c4ea3e761888f425f449ae10cd8f0b94f9e8efaa9ab1
7
- data.tar.gz: 99183dee7b76a6f467bf82b03397888c0e94f0242b0475856b2bc3bbd00cfd2465ba486834d1dbb2180bdc037f97ecb73f717087d645581d06a784760b145c9c
6
+ metadata.gz: 95755a684026110805e2c5ec656dd648d82d39b8a2c8dc0233c1b79f90e3f3e1045193d7678dd26001584cb694c7b75ac55a62e92920b7f8cfacc57ac37996ed
7
+ data.tar.gz: 93cd381805aa66c5c3eb7d114ed5413a22e2e9d450d646ec7163bead927128624276a5607081f5878e3171557ec7cb06a469640611779f4aea0781b99dae49dd
@@ -0,0 +1 @@
1
+ //= require hrefData
@@ -0,0 +1,7 @@
1
+ //= require hrefData
2
+ *[data-href] {
3
+ cursor:pointer;
4
+ &:hover{
5
+ background-color: rgb(14, 183, 255)!important;
6
+ }
7
+ }
@@ -1,3 +1,3 @@
1
1
  module DataHrefHighlight
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -0,0 +1,7 @@
1
+ $(function(){
2
+ $('body').click(function(e){
3
+ var obj = $(e.target.parentNode);
4
+ if(obj.data('href')) window.document.location = obj.data('href');
5
+ if(obj.data('href-new')) window.open(obj.data('href-new'));
6
+ });
7
+ });
@@ -0,0 +1,6 @@
1
+ *[data-href] {
2
+ cursor:pointer;
3
+ &:hover{
4
+ background-color: rgb(14, 183, 255)!important;
5
+ }
6
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_href_highlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gentry Rolofson
@@ -65,11 +65,15 @@ files:
65
65
  - LICENSE.txt
66
66
  - README.md
67
67
  - Rakefile
68
+ - app/assets/javascripts/hrefData.js
69
+ - app/assets/stylesheets/hrefData.css.scss
68
70
  - bin/console
69
71
  - bin/setup
70
72
  - data_href_highlight.gemspec
71
73
  - lib/data_href_highlight.rb
72
74
  - lib/data_href_highlight/version.rb
75
+ - vendor/assets/javascripts/hrefData.js
76
+ - vendor/assets/stylesheets/hrefData.css.scss
73
77
  homepage: https://github.com/xDarkicex/Data_Href_gem
74
78
  licenses:
75
79
  - MIT