read-more-text
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "read-more-text", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Add a read more link to text.", | ||
@@ -5,0 +5,0 @@ "main": "read-more-text.js", |
@@ -18,9 +18,9 @@ (function(root, factory) { | ||
var link, moreText, height | ||
link = document.createElement('a'), | ||
moreText = document.querySelector(el), | ||
height = moreText.clientHeight | ||
link = document.createElement('a') | ||
moreText = document.querySelector(el) | ||
moreText.style.maxHeight = 0 | ||
moreText.style.overflow = 'hidden' | ||
moreText.style.cssText = 'max-height:0; overflow:hidden; border:1px solid transparent;' | ||
height = moreText.scrollHeight | ||
this.options = { | ||
@@ -27,0 +27,0 @@ openText: 'Read more...', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5946
54