Readmore.js | lightweight jQuery plugin | Plugin library

 by   jedfoster HTML Version: 2.0.4 License: MIT

kandi X-RAY | Readmore.js Summary

kandi X-RAY | Readmore.js Summary

Readmore.js is a HTML library typically used in Plugin, jQuery applications. Readmore.js has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub, GitLab.

A smooth, responsive jQuery plugin for collapsing and expanding long blocks of text with "Read more" and "Close" links. The markup Readmore.js requires is so simple, you can probably use it with your existing HTML—there's no need for complicated sets of div's or hardcoded classes, just call .readmore() on the element containing your block of text and Readmore.js takes care of the rest. Readmore.js plays well in a responsive environment, too. Readmore.js is tested with—and supported on—all versions of jQuery greater than 1.9.1. All the "good" browsers are supported, as well as IE10+; IE8 & 9 should work, but are not supported and the experience will not be ideal.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              Readmore.js has a medium active ecosystem.
              It has 1494 star(s) with 742 fork(s). There are 61 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 11 open issues and 195 have been closed. On average issues are closed in 208 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of Readmore.js is 2.0.4

            kandi-Quality Quality

              Readmore.js has no bugs reported.

            kandi-Security Security

              Readmore.js has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              Readmore.js is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              Readmore.js releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Readmore.js
            Get all kandi verified functions for this library.

            Readmore.js Key Features

            No Key Features are available at this moment for Readmore.js.

            Readmore.js Examples and Code Snippets

            No Code Snippets are available at this moment for Readmore.js.

            Community Discussions

            QUESTION

            JavaScript - Readmore.js - Method is not a function
            Asked 2020-Aug-28 at 01:12

            I am attempting to implement readmore.js into my code but I am continuously running into readmore.js is not a function error. I've read over the documentation multiple times and I am unable to figure out what I am doing wrong. When implemented correctly should include a "READ MORE" button to expand the text in its entirety.

            1. I've included the HTML script tag that is presented in the github

            2. I've made sure I included a jquery cdn before the readmore.js

            3. I've included a class name of article

            4. I've attempted to wrap the .readmore in a function such as :

              $(function () { $('.article').readmore({speed: 75, lessLink: 'Read less'});});

            Here is a snippet of code that I am working with:

            ...

            ANSWER

            Answered 2020-Aug-28 at 01:12

            You will have to download the readmore.min.js file from the repo. The file is located here.

            https://github.com/jedfoster/Readmore.js/blob/master/readmore.min.js

            Then you can include it in your project by putting it in the same directory as your index.html file and add a script tag like this

            Source https://stackoverflow.com/questions/63625936

            QUESTION

            Problem wrapping a binded function that makes an XMLHttpRequest in a Promise
            Asked 2019-Sep-04 at 03:22

            Here I'm attempting to reuse a function (load_content) that does an XMLHttpRequest,

            ...

            ANSWER

            Answered 2019-Sep-04 at 03:22

            As Jaromanda X mentioned, you have to return a Promise for .then() to work.

            Here's the example:

            Source https://stackoverflow.com/questions/57780945

            QUESTION

            ReadmoreJS - CodePen does not output anything
            Asked 2019-Feb-08 at 06:55

            I was reading upon ReadmoreJS and I was thrilled to give it a try on CodePen. However, when I read the instructions on the website and implemented some code on CodePen, it doesn't work at all. Here is a link to my CodePen to view the code. In the JS tab, I made sure to include jQuery as the first script and ReadmoreJS as a dependency.

            Here is some code snippets from my CodePen:

            HTML

            ...

            ANSWER

            Answered 2019-Feb-08 at 06:55

            The issue is because the default collapsed height set by the plugin is 200px: and in your CodePen example, the height of the

            does not exceed that, so you do not see the readmore plugin kicking into action.

            You can either set the collapsedHeight to something shorter than 200px, use a longer piece of text, or narrow the width of the

            element to see the plugin work.

            Also, you might want to add article { overflow: hidden; } to your stylesheet to make sure the excess content gets nicely tucked out of the way.

            Source https://stackoverflow.com/questions/54587246

            QUESTION

            jquery scrolltop only works with jquery < 3.0.0
            Asked 2018-Nov-16 at 13:13

            i'm using the newest version (2.2.1) of readmore.js from http://jedfoster.com and the scrollTop function in my affterToggle only works if i'm using jquery smaller then version 3.0.0. So jquery 2.. and 1.. works fine.

            I googled but i dont find anything special about scrollTop and jquery 3.

            ...

            ANSWER

            Answered 2018-Nov-16 at 13:13

            jQuery scrollTop works fine with all jQuery versions (You can test scrollTop with different jQuery versions here: http://jsfiddle.net/rdayptu8/3/ )

            According to your code, the afterToggle method in readmore.js does not gets called/involved in the latest version of jQuery. It will definitely be the readmore.js library being not supported by the latest jQuery versions.

            Source https://stackoverflow.com/questions/53337669

            QUESTION

            Using FMPP with Gradle
            Asked 2018-Oct-11 at 20:43

            I am attempting to convert an ant task which uses fmpp over to gradle. I am unable to get my project to build. I have the following in my build.xml file:

            ...

            ANSWER

            Answered 2018-Oct-11 at 18:16

            The problem lies in the fact that both properties read from gradle.properties and data properties are named exactly the same. To fix it you need to refer to value hidden under property with project instance, e.g.:

            Source https://stackoverflow.com/questions/52762913

            QUESTION

            Add more than one "Read More" link in a paragraph (readmore.js)
            Asked 2018-Jul-30 at 10:49

            I am using readmore.js and I would like to expand my paragraph twice.

            For now I am using one expand link with a value of 'More information' that shows all the text when clicked.

            There is another link in the bottom with a value of 'Less information' that hides the text when clicked:

            ...

            ANSWER

            Answered 2018-Jul-19 at 13:44

            Just add
            tag at the end of texts for a blank.

            Source https://stackoverflow.com/questions/51424175

            QUESTION

            Uncaught TypeError: jQuery is not a function
            Asked 2018-May-18 at 05:36

            Yes, I did my research and as far as I can find so far I am unable to figure out why seemingly out of nowhere the product tabs are no longer functioning as expected. In the Console, I see:

            ...

            ANSWER

            Answered 2018-May-18 at 05:36

            EDIT post comment from Kevin...

            Change

            jQuery(...)

            To

            $j(...)

            Source https://stackoverflow.com/questions/50403263

            QUESTION

            Readmore.js doesn't works
            Asked 2018-Mar-17 at 14:31

            I try to use Readmore.js, a jQuery plugin for collapsing and expanding long blocks of text with "Read more" and "Close" links, for the first time and can't really understand the reason why nothing changes.

            I try to get article contents collapsed and Read more button to appear.

            I checked twice if the source files are there for both jQuery and readmore.

            ...

            ANSWER

            Answered 2018-Mar-17 at 14:21

            Readmore doesn't initiate on a block unless its height is larger than the collapsedHeight plus heightMargin. Using no options this works out to be 216px.

            Source https://stackoverflow.com/questions/49337832

            QUESTION

            To show full text without truncating with more less feature
            Asked 2017-Jul-13 at 07:57

            We are working on Angular js application, in our application we have to implement read more and less functionality with text showing in table or div. To achieve this we have used READMORE.js, this working fine with normal text.

            But we have to show some text in red color, so we have added span in the text :

            ...

            ANSWER

            Answered 2017-Jul-13 at 07:57

            I was also facing the same issue while working with readmore.js.

            I have done following changes in readmore.min.js :

            In methods : m() and l(). I have checked for html tags as follows and changed the limit of text :

            Source https://stackoverflow.com/questions/45050308

            QUESTION

            How do I align "Read more" to the right?
            Asked 2017-Apr-25 at 10:33

            I am using ReadMore.js on my website, it is a plugin that creates a "readmore/close" button that toggles the visibility of content.

            Currently the 'read more' button is aligned to the left under the article it collapses. An example of this code is on http://jedfoster.com/Readmore.js/. I would like the button to align to the right.

            I have looked through the documentation, there doesn't seem to be any configuration that allows me to change the alignment. The code that is produced by the script doesn't have a class attached:

            ...

            ANSWER

            Answered 2017-Apr-24 at 16:01

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install Readmore.js

            Install Readmore.js with npm:.

            Support

            Pull requests are always welcome, but not all suggested features will get merged. Feel free to contact me if you have an idea for a feature. Pull requests should include the minified script and this readme and the demo HTML should be updated with descriptions of your new feature.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i readmore.js

          • CLONE
          • HTTPS

            https://github.com/jedfoster/Readmore.js.git

          • CLI

            gh repo clone jedfoster/Readmore.js

          • sshUrl

            git@github.com:jedfoster/Readmore.js.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link