Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.32.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : pj-news-ticker-admin.js

jQuery(document).ready(function($){
    $('.color-field').wpColorPicker();

	$("#pjnt-shortcode-help").hide();
	$("#pjnt-shortcode-help-hide").hide();
	$("#pjnt-shortcode-help-show").click(function(){
	    $("#pjnt-shortcode-help").show();
	    $("#pjnt-shortcode-help-show").hide();
	    $("#pjnt-shortcode-help-hide").show();
	});
	$("#pjnt-shortcode-help-hide").click(function(){
	    $("#pjnt-shortcode-help").hide();
	    $("#pjnt-shortcode-help-show").show();
	    $("#pjnt-shortcode-help-hide").hide();
	});

	// show & hide google custom font url text field on select
	var google_font_choice = $("select[name='pj-news-ticker-options[google_font_choice]'] option:selected").val();
	if(google_font_choice === 'custom') {
		$("select[name='pj-news-ticker-options[google_font]']").hide();
		$("select[name='pj-news-ticker-options[google_font]']").parent().prev().hide();
		$("select[name='pj-news-ticker-options[google_font]']").parent().parent().hide();
	} else {
		$("input[name='pj-news-ticker-options[google_font_url]']").hide();
		$("input[name='pj-news-ticker-options[google_font_url]']").parent().prev().hide();
		$("input[name='pj-news-ticker-options[google_font_url]']").parent().parent().hide();
	}
	$("select[name='pj-news-ticker-options[google_font_choice]']").change(function() {
		if($(this).children("option:selected").val() === 'custom'){
			$("input[name='pj-news-ticker-options[google_font_url]']").show();
			$("input[name='pj-news-ticker-options[google_font_url]']").parent().prev().show();
			$("input[name='pj-news-ticker-options[google_font_url]']").parent().parent().show();
			$("select[name='pj-news-ticker-options[google_font]']").hide();
			$("select[name='pj-news-ticker-options[google_font]']").parent().prev().hide();
			$("select[name='pj-news-ticker-options[google_font]']").parent().parent().hide();
		} else {
			$("select[name='pj-news-ticker-options[google_font]']").show();
			$("select[name='pj-news-ticker-options[google_font]']").parent().prev().show();
			$("select[name='pj-news-ticker-options[google_font]']").parent().parent().show();
			$("input[name='pj-news-ticker-options[google_font_url]']").hide();
			$("input[name='pj-news-ticker-options[google_font_url]']").parent().prev().hide();
			$("input[name='pj-news-ticker-options[google_font_url]']").parent().parent().hide();
		}
	});
});
© 2025 XylotrechusZ