SILENT KILLERPanel

Current Path: > home > > transcarter > public_html > wp-content > > themes > archives-1751292698 > js


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.135
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home//transcarter/public_html/wp-content//themes/archives-1751292698/js

NameTypeSizeLast ModifiedActions
common.js File 225 bytes June 30 2025 14:12:20.
customizer-controls.js File 8814 bytes June 30 2025 14:12:20.
customizer.js File 2339 bytes June 30 2025 14:12:20.
navigation.js File 4386 bytes June 30 2025 14:12:20.

Reading File: /home//transcarter/public_html/wp-content//themes/archives-1751292698/js/customizer.js

/* global wp, jQuery */
/**
 * File customizer.js.
 *
 * Theme Customizer enhancements for a better user experience.
 *
 * Contains handlers to make Theme Customizer preview reload changes asynchronously.
 */

( function( $ ) {
	// Site title and description.
	wp.customize( 'blogname', function( value ) {
		value.bind( function( to ) {
			$( '.site-title a' ).text( to );
		} );
	} );
	
	wp.customize( 'blogdescription', function( value ) {
		value.bind( function( to ) {
			$( '.site-description' ).text( to );
		} );
	} );

	// Header text color.
	wp.customize( 'header_textcolor', function( value ) {
		value.bind( function( to ) {
			if ( 'blank' === to ) {
				$( '.site-title, .site-description' ).css( {
					clip: 'rect(1px, 1px, 1px, 1px)',
					position: 'absolute',
				} );
			} else {
				$( '.site-title, .site-description' ).css( {
					clip: 'auto',
					position: 'relative',
				} );
				$( '.site-title a, .site-description' ).css( {
					color: to,
				} );
			}
		} );
	} );

	var custom_preview = {
		'pfx_scrolltop_position' : {'sel' : 'a#pfx-scroll-top', 'css' : "left" , 'val' : "{{val}}%"},
		'pfx_scrolltop_padding' : {'sel' : 'a#pfx-scroll-top', 'css' : "padding" , 'val' : "{{val}}px"},
		'pfx_scrolltop_borderwidth' : {'sel' : 'a#pfx-scroll-top', 'css' : "border" , 'val' : "{{val}}px solid"},
		'pfx_scrolltop_borderradius' : {'sel' : 'a#pfx-scroll-top', 'css' : "border-radius" , 'val' : "{{val}}px"},
		'pfx_scrolltop_bg_color' : {'sel' : 'a#pfx-scroll-top', 'css' : "background-color" , 'val' : "{{val}}"},
		'pfx_scrolltop_color' : {'sel' : "a#pfx-scroll-top span.dashicons.dashicons-arrow-up-alt2", 'css' : "color" , 'val' : "{{val}}"},
		'pfx_scrolltop_iconsize' : {'sel' : "a#pfx-scroll-top span.dashicons.dashicons-arrow-up-alt2", 'css' : ['width', 'height', 'font-size'] , 'val' : "{{val}}px"},
	};
	
	$.each( custom_preview, function (i, value){

		// Append & Apply scrolltop setting
		wp.customize( i, function(values) {
			values.bind( function( to ){
				
				var sel = value.sel;
				var newVal = value.val;
				
				newVal = newVal.split('{{val}}').join(to);
				
				if(typeof value.css == 'object'){
					for( var kk in value.css){
							$( sel ).css( value.css[kk] , newVal );
					}
					return;
				}
				
				$( sel ).css( value.css , newVal );
			});
		});

	});
	
}( jQuery ) );



SILENT KILLER Tool