Revision 5892d600
Added by Stephen Beaver almost 10 years ago
src/usr/local/www/foot.inc | ||
---|---|---|
12 | 12 |
<footer class="footer"> |
13 | 13 |
<div class="container"> |
14 | 14 |
<p class="text-muted"> |
15 |
<a href="#" title="<?=gettext('Top of page')?>"><i class="icon icon-arrow-up pull-left"></i></a> |
|
15 |
<a id="tpl" style="display: none;" href="#" title="<?=gettext('Top of page')?>"><i class="icon icon-arrow-up pull-left"></i></a>
|
|
16 | 16 |
<a target="_blank" href="<?=$g['product_website_footer']?>"><?=$g['product_name']?></a> is © |
17 | 17 |
<?=$g['product_copyright_years']?> by <a href="<?=$g['product_copyright_url']?>" class="tblnk"><?=$g['product_copyright']?></a>. All Rights Reserved. |
18 | 18 |
[<a href="/license.php" class="tblnk">view license</a>] |
19 |
<a href="#" title="<?=gettext('Top of page')?>"><i class="icon icon-arrow-up pull-right"></i></a>
|
|
19 |
<a id="tpr" style="display: none;" href="#" title="<?=gettext('Top of page')?>"><i class="icon icon-arrow-up pull-right"></i></a></span>
|
|
20 | 20 |
</p> |
21 | 21 |
</div> |
22 | 22 |
</footer> |
... | ... | |
27 | 27 |
<script src="/jquery/pfSense.js"></script> |
28 | 28 |
<script src="/jquery/pfSenseHelpers.js"></script> |
29 | 29 |
|
30 |
<script> |
|
31 |
// Un-hide the "Top of page" icons if the page is larger than the window |
|
32 |
if ($(document).height() > $(window).height()) { |
|
33 |
$('[id^=tp]').show(); |
|
34 |
} |
|
35 |
</script> |
|
30 | 36 |
</body> |
31 | 37 |
</html> |
Also available in: Unified diff
Show "Top of page" arrows only when required (page > window)