diabook-themes: small fix
This commit is contained in:
parent
5ebc221c28
commit
08b990a314
Binary file not shown.
After Width: | Height: | Size: 444 B |
|
@ -136,7 +136,7 @@
|
|||
</nav>
|
||||
|
||||
|
||||
<div id="scrollup" style="position: fixed; bottom: 5px; right: 10px;"><a href="#top"><img src="view/theme/diabook/icons/scroll_top.png" alt="back to top" title="Back to top"></a></div>
|
||||
<div id="scrollup" style="position: fixed; bottom: 5px; right: 10px;"><a id="down" onclick="scrolldown()" ><img id="scroll_top_bottom" src="view/theme/diabook/icons/scroll_bottom.png" style="display:cursor !important;" alt="back to top" title="Back to top"></a></div>
|
||||
<div style="position: fixed; bottom: 3px; left: 25px;">$langselector</div>
|
||||
<div style="position: fixed; bottom: 23px; left: 5px;"><a href="http://pad.toktan.org/p/diabook" target="blank" ><img src="view/theme/diabook/icons/bluebug.png" title="report bugs for the theme diabook"/></a></div>
|
||||
|
||||
|
|
|
@ -356,19 +356,13 @@ $(document).ready(function() {
|
|||
$(this).attr("src",newString+"?"+wmode+"&"+oldString);
|
||||
}
|
||||
else $(this).attr("src",ifr_source+"?"+wmode);
|
||||
});
|
||||
|
||||
$("a[href=#top]").click(function() {
|
||||
$("html, body").animate({scrollTop:0}, "slow");
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
function yt_iframe() {
|
||||
|
||||
|
||||
$("iframe").load(function() {
|
||||
var ifr_src = $(this).contents().find("body iframe").attr("src");
|
||||
$("iframe").contents().find("body iframe").attr("src", ifr_src+"&wmode=transparent");
|
||||
|
@ -376,6 +370,35 @@ function yt_iframe() {
|
|||
|
||||
};
|
||||
|
||||
function scrolldown(){
|
||||
$("html, body").animate({scrollTop:$(document).height()}, "slow");
|
||||
return false;
|
||||
};
|
||||
|
||||
function scrolltop(){
|
||||
$("html, body").animate({scrollTop:0}, "slow");
|
||||
return false;
|
||||
};
|
||||
|
||||
$(window).scroll(function () {
|
||||
|
||||
|
||||
var scrollInfo = $(window).scrollTop();
|
||||
|
||||
if (scrollInfo <= "900"){
|
||||
$("a#top").attr("id","down");
|
||||
$("a#down").attr("onclick","scrolldown()");
|
||||
$("img#scroll_top_bottom").attr("src","view/theme/diabook/icons/scroll_bottom.png");
|
||||
}
|
||||
|
||||
if (scrollInfo > "900"){
|
||||
$("a#down").attr("id","top");
|
||||
$("a#top").attr("onclick","scrolltop()");
|
||||
$("img#scroll_top_bottom").attr("src","view/theme/diabook/icons/scroll_top.png");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
</script>';
|
||||
|
||||
if($a->argv[0] === "settings" && local_user()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user