HTTP/1.0 200 Ok Server: httpd/2.0 x-frame-options: SAMEORIGIN x-xss-protection: 1; mode=block Date: Wed, 09 Jul 2025 13:45:31 GMT Cache-Control: no-cache, no-store, must-revalidate Pragma: no-cache Expires: 0 Content-Type: text/javascript Connection: close jQuery.fn.iphoneSwitch = function(start_state, switched_on_callback, switched_off_callback, options) { var state = start_state == '1' ? start_state : '0'; var settings = { mouse_over: 'pointer', mouse_out: 'default', switch_container_path: '/switcherplugin/iphone_switch_container_on.png', switch_path: '/switcherplugin/iphone_switch.png', switch_height: 32, switch_width: 74 }; if(options) { jQuery.extend(settings, options); } return this.each(function() { var container; var image; container = '
'; image = '
'; jQuery(this).html(container + image); jQuery(this).mouseover(function(){ jQuery(this).css("cursor", settings.mouse_over); }); jQuery(this).mouseout(function(){ jQuery(this).css("background", settings.mouse_out); }); jQuery(this).unbind("click"); // initial click event jQuery(this).click(function() { if((this.id == "stream_ad_enable" || this.id == "pop_ad_enable" || //AiProtection_AdBlock this.id == "radio_protection_enable" || this.id == "radio_mals_enable" || this.id == "radio_vp_enable" || this.id == "radio_cc_enable" || //AiProtection_HomeProtection this.id == "radio_web_restrict_enable" || //AiProtection_AppProtector, AiProtection_WebProtector this.id == "traffic_analysis_enable" || //TrafficAnalyzer_Statistic this.id == "apps_analysis_enable" || //AdaptiveQoS_Bandwidth_Monitor this.id == "bwdpi_wh_enable" || //AdaptiveQoS_WebHistory this.id == "radio_clouddisk_enable" || //Cloud_main this.id == "radio_wps_enable" || //Advanced_WWPS_Content this.id == "nm_radio_dualwan_enable" || //Internet this.id == "simdetect_switch" || //Advanced_MobileBroadband_Content this.id == "dns_switch" || //Advanced_IPTV_Content this.id == "radio_fbwifi_enable" || //Guest_network_fbwifi this.id == "vlan_enable" || //Advanced_TagBasedVLAN_Content this.id == "ad_radio_dualwan_enable") && typeof(curState) != "undefined"){ state = curState; } else if(this.id.length > 18 && this.id.substr(0, 18) == "wtfast_rule_enable"){ var index = (this.id).substr(18); var index_int = parseInt(index); state = rule_enable_array[index_int]; } else if(this.id.substr(0, 16) == "vlan_rule_enable"){ var index = (this.id).substr(16); } if((this.id == "wandhcp_switch") && typeof(curWandhcpState)) state = curWandhcpState; if(state == '1') { jQuery(this).find('.iphone_switch').animate({backgroundPosition: -37}, "slow", function() { jQuery(this).attr('src', settings.switch_container_path); if(typeof(index)) switched_off_callback(index); else switched_off_callback(); }); state = '0'; } else { jQuery(this).find('.iphone_switch').animate({backgroundPosition: 0}, "slow", function() { jQuery(this).find('.iphone_switch').attr('src', settings.switch_container_path); if(typeof(index)) switched_on_callback(index); else switched_on_callback(); }); state = '1'; } }); }); };