Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

read-more-text

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

read-more-text - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"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...',

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc