]> git.mxchange.org Git - mailer.git/blobdiff - templates/de/html/js/js_surfbar_frame_top.tpl
Updated copyright year.
[mailer.git] / templates / de / html / js / js_surfbar_frame_top.tpl
index b5cabc45641f3846fee4974ed1dedb822d546445..c0fa23faf7c9b6da5102352a9286b78477cd2305 100644 (file)
@@ -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={%pipe,SURFBAR_GENERATE_VALIDATION_CODE=$content[url_id]%}&salt={%pipe,SURFBAR_GET_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);
        }
 }