]> git.mxchange.org Git - mailer.git/blobdiff - templates/de/html/js/js_surfbar_frame_top.tpl
mailer project continued:
[mailer.git] / templates / de / html / js / js_surfbar_frame_top.tpl
index 1126345eb555696e95f26846169f708fc9d6e022..9a1b5a0befd724b8d02c07ea669f7a6b87b092d8 100644 (file)
@@ -1,18 +1,46 @@
-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
+ * --------------------------------------------------------------------
+ * $Revision::                                                        $
+ * $Date::                                                            $
+ * $Tag:: 0.2.1-FINAL                                                 $
+ * $Author::                                                          $
+ * --------------------------------------------------------------------
+ * Copyright (c) 2003 - 2009 by Roland Haeder
+ * Copyright (c) 2009 - 2012 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,gerSurfbarReloadTime=$content[url_id]%}';
+var maxCounter  = '{%pipe,gerSurfbarReloadTime=$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) {
                // 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,17 +48,17 @@ 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) {
                // 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%}';
        }
 }
 
@@ -40,7 +68,7 @@ function reloadSurfbar () {
                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();
 }
@@ -48,16 +76,16 @@ function reloadSurfbar () {
 function initCounter () {
        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,gerSurfbarUrl=$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,gerSurfbarReloadTime=$content[url_id]%}';
+       points.innerHTML  = '{%pipe,gerSurfbarReward,translateComma=$content[url_id]%}';
+       reload.innerHTML  = '{%pipe,getSurfbarUserLocks%}';
+       max.innerHTML     = '{%pipe,getSurfbarTotalUrls%}';
 }
 
 function startCounter () {
@@ -71,7 +99,7 @@ function startCounter () {
        if (currCounter == 0) {
                clearInterval(countDown);
                confirm();
-               window.setTimeout("reloadSurfbar()", 500);
+               window.setTimeout('reloadSurfbar()', 500);
        }
 }