X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=templates%2Fde%2Fhtml%2Fjs%2Fjs_surfbar_frame_top.tpl;h=c0fa23faf7c9b6da5102352a9286b78477cd2305;hb=61621983cc6d7195fcc7eab29b5f6080ff283b34;hp=1126345eb555696e95f26846169f708fc9d6e022;hpb=dc25bd7a76750f02e2d617c9db9eb0aae53270f5;p=mailer.git diff --git a/templates/de/html/js/js_surfbar_frame_top.tpl b/templates/de/html/js/js_surfbar_frame_top.tpl index 1126345eb5..c0fa23faf7 100644 --- a/templates/de/html/js/js_surfbar_frame_top.tpl +++ b/templates/de/html/js/js_surfbar_frame_top.tpl @@ -1,18 +1,41 @@ -var currCounter = "{%pipe,SURFBAR_GET_RELOAD_TIME=$content[url_id]%}"; -var maxCounter = "{%pipe,SURFBAR_GET_RELOAD_TIME=$content[url_id]%}"; -var counter = document.getElementById("surfbar_counter"); -var points = document.getElementById("surfbar_points"); -var reload = document.getElementById("surfbar_reload"); -var max = document.getElementById("surfbar_max"); +/** + * JavaScript for ext-surfbar - top frame + * -------------------------------------------------------------------- + * Copyright (c) 2003 - 2009 by Roland Haeder + * Copyright (c) 2009 - 2016 by Mailer Developer Team + * For more information visit: http://mxchange.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301 USA + */ + +var currCounter = '{%pipe,getSurfbarWaitingTime=$content[url_id]%}'; +var maxCounter = '{%pipe,getSurfbarWaitingTime=$content[url_id]%}'; +var counter = document.getElementById('surfbar_counter'); +var points = document.getElementById('surfbar_points'); +var reload = document.getElementById('surfbar_reload'); +var max = document.getElementById('surfbar_max'); var countDown = null; function startStopCounter () { - if (countDown == null) { + if (countDown === null) { // Start counter - document.getElementById("start").innerHTML = "{--MEMBER_SURFBAR_ACTION_PAUSE_SUBMIT--}"; - countDown = window.setInterval("startCounter()", 1000); + document.getElementById('start').innerHTML = '{--MEMBER_SURFBAR_ACTION_PAUSE_SUBMIT--}'; + countDown = window.setInterval('startCounter()', 1000); } else { - document.getElementById("start").innerHTML = "{--MEMBER_SURFBAR_ACTION_UNPAUSE_SUBMIT--}"; + document.getElementById('start').innerHTML = '{--MEMBER_SURFBAR_ACTION_UNPAUSE_SUBMIT--}'; window.clearInterval(countDown); countDown = null; } @@ -20,44 +43,44 @@ function startStopCounter () { } function init () { - countDown = window.setInterval("startCounter()", 1000); - window.setTimeout("initCounter()", 500); + countDown = window.setInterval('startCounter()', 1000); + window.setTimeout('initCounter()', 500); } function confirm () { - if (parent.surfbar_url != null) { + if (parent.surfbar_url !== null) { // Is in right frameset - parent.surfbar_url.location.href = "{%url=surfbar.php?id=$content[url_id]&check=$content[check]&salt=$content[salt]%}"; + parent.surfbar_url.location.href = '{%url=surfbar.php?id=$content[url_id]&check=$content[check]&salt=$content[salt]%}'; } else { // Called frame=top directly - window.location.href = "{%url=surfbar.php%}"; + window.location.href = '{%url=surfbar.php%}'; } } function reloadSurfbar () { - if (parent.surfbar_stats != null) { + if (parent.surfbar_stats !== null) { // Is in right frameset parent.surfbar_stats.location.reload(); } else { // Called frame=top directly - window.location.href = "{%url=surfbar.php%}"; + window.location.href = '{%url=surfbar.php%}'; } this.location.reload(); } function initCounter () { - if (parent.surfbar_url != null) { + if (parent.surfbar_url !== null) { // Is in right frameset - parent.surfbar_url.location.href = '{%pipe,SURFBAR_GET_URL=$content[url_id]%}'; + parent.surfbar_url.location.href = '{%pipe,getSurfbarUrl=$content[url_id]%}'; } else { // Called frame=top directly - window.location.href = "{%url=surfbar.php%}"; + window.location.href = '{%url=surfbar.php%}'; } - counter.innerHTML = "{%pipe,SURFBAR_GET_RELOAD_TIME=$content[url_id]%}"; - points.innerHTML = "{%pipe,SURFBAR_GET_REWARD,translateComma=$content[url_id]%}"; - reload.innerHTML = "{%pipe,SURFBAR_GET_USER_LOCKS%}"; - max.innerHTML = "{%pipe,SURFBAR_GET_TOTAL_URLS%}"; + counter.innerHTML = '{%pipe,getSurfbarWaitingTime=$content[url_id]%}'; + points.innerHTML = '{%pipe,getSurfbarReward,translateComma=$content[url_id]%}'; + reload.innerHTML = '{%pipe,getSurfbarUserLocks%}'; + max.innerHTML = '{%pipe,getSurfbarTotalUrls%}'; } function startCounter () { @@ -71,7 +94,7 @@ function startCounter () { if (currCounter == 0) { clearInterval(countDown); confirm(); - window.setTimeout("reloadSurfbar()", 500); + window.setTimeout('reloadSurfbar()', 500); } }