1
0
mirror of https://github.com/gamaio/lobli.git synced 2024-12-22 19:52:40 +00:00

Add placeholder top 5 links table to stats

This commit is contained in:
alopexc0de 2014-06-22 00:18:41 -04:00
parent b0b74ec2cf
commit b2ded2184e

View File

@ -26,7 +26,54 @@
<div class="col-md-3"></div>
<div class="col-md-6">
<h2 class="form-shorten-heading">Lob.li Link Statistics</h2>
<table class="table table-condensed">
<thead>
<tr class="success">
<th></th>
<th>LinkID</th>
<th>Resolved Link</th>
<th>Total Clicks</th>
<th>Date Added</th>
</tr>
</thead>
<tbody>
<tr class="success">
<td></td>
<td class="centertab"><a href="#">1</a></td>
<td><a href="#" title="Resolved website title" class="res">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</a></td>
<td class="centertab">44444</td>
<td>00/00/0000</td>
</tr>
<tr class="success">
<td></td>
<td class="centertab"><a href="#">6</a></td>
<td><a href="#" title="Resolved website title" class="res">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</a></td>
<td class="centertab">44444</td>
<td>00/00/0000</td>
</tr>
<tr class="success">
<td></td>
<td class="centertab"><a href="#">236</a></td>
<td><a href="#" title="Resolved website title" class="res">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</a></td>
<td class="centertab">44444</td>
<td>00/00/0000</td>
</tr>
<tr class="success">
<td></td>
<td class="centertab"><a href="#">f42</a></td>
<td><a href="#" title="Resolved website title" class="res">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</a></td>
<td class="centertab">44444</td>
<td>00/00/0000</td>
</tr>
<tr class="success">
<td></td>
<td class="centertab"><a href="#">tg54<a></td>
<td><a href="#" title="Resolved website title" class="res">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</a></td>
<td class="centertab">44444</td>
<td>00/00/0000</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-3"></div>
</div>
@ -47,6 +94,15 @@
jQuery(document).ready(function(){
$('#statlink').addClass('active');
});
$(function(){
$(".res").each(function(i){
len=$(this).text().length;
if(len > 35){
$(this).text($(this).text().substr(0, 35) + '...');
}
});
});
</script>
</body>
</html>