403Webshell
Server IP : 216.250.13.251  /  Your IP : 216.73.216.237
Web Server : nginx/1.24.0
System : Linux gunay 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : root ( 0)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/gunay/wp-content/themes/rttheme19/rt-framework/admin/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/gunay/wp-content/themes/rttheme19/rt-framework/admin/js/rt-font-control.js
/*!
 * 
 * RT-Theme 19 WordPress Theme Admin - Font Control
 * Copyright (C) 2014 RT-Themes
 * http://rtthemes.com
 *
 */

jQuery(document).ready(function($) {

 
 	function rt_create_option_inputs( list, selected_values ){

		var i,options,selected,anyselected = false ;

		selected_values_array = selected_values.toString().split(",");
		list = list.toString().split(",");

		for (i = 0; i < list.length; ++i) {	 
			
			if( $.inArray( list[i], selected_values_array ) > -1 ){
				anyselected = true;
			} 
		}


		for (i = 0; i < list.length; ++i) {	 
			selected = $.inArray( list[i], selected_values_array ) > -1 ? "selected" : "";		
 			selected = ! anyselected && i == 0 ? "selected" : selected;	
			options += '<option value="'+list[i]+'" '+selected+'>'+list[i]+'</option>';    
		}

		return options;
 		
 	}

	$(".rt_fonts").on("change",function(){

			var selectedOption = $('option:selected', this),
				selectedValue = selectedOption.val(),
				el;


			if ( ! selectedValue ){
				return false;
			}

			var	variants = selectedOption.data("variants"),
				subsets = selectedOption.data("subsets"),
				parse_value = selectedValue.split("||"),
				kind = parse_value[0],
				family = parse_value[1];


				//subset
				el = $("[data-customize-setting-link='"+$(this).data("subset-id")+"']");
				if( kind == "google" && subsets ){

					el.html( rt_create_option_inputs( subsets, $(this).data("selected-subsets") ) ).trigger("change");
					el.parents("li:eq(0)").show().effect("highlight", 700);

				}else{
					el.parents("li:eq(0)").hide();
				}

				//variant
				el = $("[data-customize-setting-link='"+$(this).data("variant-id")+"']");
				if( kind == "google" && variants ){

					el.html( rt_create_option_inputs( variants, $(this).data("selected-variant") ) ).trigger("change");
					el.parents("li:eq(0)").show().effect("highlight", 700);

				}else{
					el.parents("li:eq(0)").hide();
				}

	});	

	$(window).on("load",function(){
		$(".rt_fonts").each(function(){
			$(this).trigger("change");
		});
	});	
 
}); 


Youez - 2016 - github.com/yon3zu
LinuXploit