Skip to content

Instantly share code, notes, and snippets.

Created Sep 30, 2014
What would you like to do?
<!DOCTYPE html>
<html lang="en">
.hidden {display: none;}
<div class="text">
<div class="summary">
<p>Short summary here</p>
<div class="full-text hidden" id="article-45456123">
<p>Long text....</p>
<script src="lib/jquery.js"></script>
<script src="src/read-more.js"></script>
var textElement = document.querySelector(".text");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment