X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fdiabook%2Fbottom.tpl;h=0ab7de78e769f45ca3187603b6f84b58f1357e15;hb=3d6c49d5b3d4447ad91a5a4f4123c9fd9d4584cf;hp=2bb651796a3deb6f6149a1bf31e98be874c8a9d9;hpb=0446766f0407b45c78031ad9e5029cc9218b025e;p=friendica.git diff --git a/view/theme/diabook/bottom.tpl b/view/theme/diabook/bottom.tpl index 2bb651796a..0ab7de78e7 100644 --- a/view/theme/diabook/bottom.tpl +++ b/view/theme/diabook/bottom.tpl @@ -14,7 +14,15 @@ $(document).ready(function() { else $(this).attr("src",ifr_source+"?"+wmode); }); - + + $("div#pause").attr("style", "position: fixed;bottom: 43px;left: 5px;"); + $("div#pause").html("pause"); + $(document).keydown(function(event) { + if (!$("div#pause").html()){ + $("div#pause").html("pause"); + }}); + $(".autocomplete").attr("style", "width: 350px;color: black;border: 1px solid #D2D2D2;background: white;cursor: pointer;text-align: left;max-height: 350px;overflow: auto;"); + }); $(document).ready(function(){ @@ -31,12 +39,19 @@ $(document).ready(function() { for (var Sitem=0, m = SavedID.length; Sitem < m; Sitem++) { $("#sortable_boxes").append($("#sortable_boxes").children("#" + SavedID[Sitem])); } + }); + function tautogrow(id){ $("textarea#comment-edit-text-" +id).autogrow(); }; + function open_boxsettings() { + $("div#boxsettings").attr("style","display: block;height:500px;width:300px;"); + $("label").attr("style","width: 150px;"); + }; + function yt_iframe() { $("iframe").load(function() { var ifr_src = $(this).contents().find("body iframe").attr("src"); @@ -66,12 +81,14 @@ $(document).ready(function() { $("a#top").attr("id","down"); $("a#down").attr("onclick","scrolldown()"); $("img#scroll_top_bottom").attr("src","view/theme/diabook/icons/scroll_bottom.png"); + $("img#scroll_top_bottom").attr("title","Scroll to bottom"); } 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"); + $("img#scroll_top_bottom").attr("title","Back to top"); } }); @@ -112,4 +129,17 @@ $(document).ready(function() { function cmtBbClose(id) { $(".comment-edit-bb-" + id).hide(); } + + $(document).ready(function(){ + var doctitle = document.title; + function checkNotify() { + if(document.getElementById("notify-update").innerHTML != "") + document.title = "("+document.getElementById("notify-update").innerHTML+") " + doctitle; + else + document.title = doctitle; + }; + setInterval(function () {checkNotify();}, 10 * 1000); + }) + +