<p class="ellipsis" onclick="RevealEllipsis(this)">I consent to receive calls and/or text messages* by a university representative with information for educational opportunities at the number(s) provided above. I understand calls may be initiated by an automated telephone dialing system. I need not grant this consent to receive information or to be eligible to enroll with WCU. I also understand that if I no longer wish to receive text messages from WCU, I can text back "Stop" at any time to unsubscribe from the service. *Standard rates may apply.</p>
/* FORCE LINE LIMIT WITH ELLIPSIS */
/*function listLimit(elm, line) {
var maxHeight = parseInt(elm.css('line-Height')) * line;
while (elm.height() > maxHeight) {
var text = elm.text();
elm.text(text.substring(0, text.length - 10)).text(elm.text() + '...');
}
}
$('.ellipsis').each(function(){
listLimit ($(this), 4) // How many lines to show
});
*/
function RevealEllipsis(d) {
d.classList.toggle("ellipsis")
}
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.