acts_as_content_highlightable 0.2.0 → 0.2.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 +4 -4
- data/README.md +2 -0
- data/changelog.md +5 -0
- data/lib/acts_as_content_highlightable/version.rb +1 -1
- data/vendor/assets/javascripts/content_highlight.js +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ebca7e01dbc89e2559c187846962e5efb577ed0
|
|
4
|
+
data.tar.gz: 0131e87d559ae86b8c9027f361b40e67e196f39e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9a99bcfed158a493fcfa805d2928dfad42c1cea629eb4a87eaa69e51652383f8527d965abbd0ef4f69d9fb61553974f583e29e2068a6f3df293618edf007f722
|
|
7
|
+
data.tar.gz: ee881a1b5224976ac752a964bb2cead7743cdfc66262fcb764e7edb05ef0f866c0c2dbbfa937fbf9774db45f367a1bef32800bdf7b6af41cbc2e45b7b83a2027
|
data/README.md
CHANGED
|
@@ -6,6 +6,8 @@ Highlight Html Text content (inspired by Medium's highlight feature)
|
|
|
6
6
|
* Show highlights based on what users can see
|
|
7
7
|
* Read-only mode
|
|
8
8
|
|
|
9
|
+
Not a ruby application? Take a look at [content_highlight](https://github.com/kbravi/content_highlight) for a basic idea.
|
|
10
|
+
|
|
9
11
|
# Sample
|
|
10
12
|

|
|
11
13
|
|
data/changelog.md
CHANGED
|
@@ -283,7 +283,7 @@ var contentHighlightWorker = function(element, options){
|
|
|
283
283
|
if(self.popTip != undefined){
|
|
284
284
|
self.popTip.style.top = highlightElement.offsetTop + highlightElement.offsetHeight + "px";
|
|
285
285
|
self.popTip.style.left = highlightElement.offsetLeft + 10 + "px";
|
|
286
|
-
self.element.
|
|
286
|
+
self.element.appendChild(self.popTip);
|
|
287
287
|
self.markHighlightAsActive(highlightElement);
|
|
288
288
|
window.addEventListener('resize', self.removePopTip);
|
|
289
289
|
document.addEventListener('click', self.removePopTip);
|
|
@@ -292,7 +292,7 @@ var contentHighlightWorker = function(element, options){
|
|
|
292
292
|
|
|
293
293
|
this.removePopTip = function(){
|
|
294
294
|
if(self.popTip != undefined){
|
|
295
|
-
self.
|
|
295
|
+
self.element.removeChild(self.popTip);
|
|
296
296
|
self.popTip = undefined;
|
|
297
297
|
self.unmarkActiveHighlights();
|
|
298
298
|
window.removeEventListener('resize', self.removePopTip);
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: acts_as_content_highlightable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Karthik Ravichandran
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|