403Webshell
Server IP : 104.21.14.103  /  Your IP : 3.149.229.172
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/home/giankuin/dietcontrungnhanh.com/wp-content/themes/flatsome/inc/admin/customizer/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/home/giankuin/dietcontrungnhanh.com/wp-content/themes/flatsome/inc/admin/customizer/js/customizer-reset.js
jQuery(function ($) {
	const $resetButton = jQuery('#flatsome-customizer-reset')
	const $clearTypographyCache = jQuery(
		'#flatsome-customizer-clear-typography-cache'
	)

	$resetButton.on('click', function (event) {
		event.preventDefault()

		var data = {
			wp_customize: 'on',
			action: 'customizer_reset',
			nonce: _FlatsomeCustomizerReset.nonce.reset,
		}

		var r = confirm(_FlatsomeCustomizerReset.confirm)

		if (!r) return

		$resetButton.attr('disabled', 'disabled')

		$.post(ajaxurl, data, function () {
			wp.customize.state('saved').set(true)
			location.reload()
		})
	})

	$clearTypographyCache.on('click', function (event) {
		event.preventDefault()

		const data = {
			wp_customize: 'on',
			action: 'customizer_clear_typography_cache',
			nonce: _FlatsomeCustomizerReset.nonce.reset,
		}

		const r = confirm(
			'Are you sure you want to clear typography cache and locally downloaded font files?'
		)

		if (!r) return

		$clearTypographyCache.prop('disabled', true)

		$.post(ajaxurl, data)
			.done(({ success }) => {
				if (!success) return
				console.log(
					'Flatsome: Typography cache and locally saved fonts files removed successfully'
				)
			})
			.always(() => {
				$clearTypographyCache.prop('disabled', false)
			})
	})
})

Youez - 2016 - github.com/yon3zu
LinuXploit