Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (36 sloc) 1.18 KB
<title>jquery.dynamic_truncate.js test page</title>
<style type="text/css">
margin: 30px;
.dtc {
background: #f1f1f1;
margin: 10px;
padding: 10px;
border: 3px #999 solid;
.dtc_perserve {
<script src="" type="text/javascript"></script>
<script src="jquery.dynamic_truncate.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
<h3>Test 1 - Basic Truncate Text</h3>
<div class="dtc" id="test1">
<span class="dtc_text">This a truncate test. If it works - Good for you and the rest of the world. Potatoes is the real enemy here, you just don't see it yet</div>
<h3>Test 2 - Truncate but preserve "Preserve Me"</h3>
<div class="dtc" id="test2">
<span class="dtc_text">Cut me like the summer of yesterday afternoon after supper</span>
<span class="dtc_perserve">Preserve Me</span>
Something went wrong with that request. Please try again.