Changeset 32618


Ignore:
Timestamp:
Jul 8, 2017, 4:47:33 PM (12 days ago)
Author:
brainslayer
Message:

syntax change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/kromo/dd-wrt/Speedchecker.asp

    r32596 r32618  
    1717
    1818addEvent(window, "load", function() {
    19         speedchecker_toggle_desc(document.setup.speedchecker_enable);
    2019        speedchecker_enable_onClick(document.setup.speedchecker_enable);
    21         show_layer_ext(document.setup.speedchecker_enable, 'speedcheckerconfig', <% nvem("speedchecker_enable", "1", "1", "0"); %> == 1);
    2220
    2321        document.getElementById("main").style.float="none";
     
    4038            speedchecker_toggle_desc(source);
    4139
    42             if (parseInt(source['value'])) {
    43                 scope.innerHTML = ''.concat(
    44                     '<iframe width="99%" height="250" frameborder="0" scrolling="no" src="',
    45                     'https://speedchecker.dd-wrt.com/registration.html?RID=', RID, '&secret=', secret, '"></iframe>');
     40            if (source.value == 1) {
     41                scope.innerHTML = '<iframe width="99%" height="250" frameborder="0" scrolling="no" src="https://speedchecker.dd-wrt.com/registration.html?RID=' + RID + '&secret=' + secret + '"></iframe>';
    4642                show_layer_ext(document.setup.speedchecker_enable, 'speedcheckerconfig', true);
    4743            } else {
     
    6258       
    6359 if (val==1) {
    64         scope.innerHTML = ''.concat(
    65                         '<iframe width="99%" height="200" frameborder="0" scrolling="no" src="',
    66                         'https://speedchecker.dd-wrt.com/speedtest.html?RID=', RID, '&secret=', secret,
    67                         '&server=', server ,':', port ,'"></iframe>');
     60        scope.innerHTML = '<iframe width="99%" height="200" frameborder="0" scrolling="no" src="https://speedchecker.dd-wrt.com/speedtest.html?RID=' + RID +  '&secret=' + secret + '&server=' + server  + ':' + port + '"></iframe>';
    6861            } else {
    6962                scope.innerHTML = '<iframe width="99%" height="200" frameborder="0" scrolling="no" src="https://speedchecker.dd-wrt.com/header.html"></iframe>';
Note: See TracChangeset for help on using the changeset viewer.