Mini Shell

Direktori : /proc/self/root/proc/self/root/home/rizant5/public_html-1210/js/
Upload File :
Current File : //proc/self/root/proc/self/root/home/rizant5/public_html-1210/js/main.js

jQuery(function($) {'use strict',

	//#main-slider
	$(function(){
		$('#main-slider.carousel').carousel({
			interval: 8000
		});
	});


	// accordian
	$('.accordion-toggle').on('click', function(){
		$(this).closest('.panel-group').children().each(function(){
		$(this).find('>.panel-heading').removeClass('active');
		 });

	 	$(this).closest('.panel-heading').toggleClass('active');
	});

	//Initiat WOW JS
	new WOW().init();

	// portfolio filter
	$(window).load(function(){'use strict';
		var $portfolio_selectors = $('.portfolio-filter >li>a');
		var $portfolio = $('.portfolio-items');
		$portfolio.isotope({
			itemSelector : '.portfolio-item',
			layoutMode : 'fitRows'
		});
		
		$portfolio_selectors.on('click', function(){
			$portfolio_selectors.removeClass('active');
			$(this).addClass('active');
			var selector = $(this).attr('data-filter');
			$portfolio.isotope({ filter: selector });
			return false;
		});
	});

	// Contact form
	var form = $('#main-contact-form');
	form.submit(function(event){
		event.preventDefault();
		var form_status = $('<div class="form_status"></div>');
		$.ajax({
			url: $(this).attr('action'),

			beforeSend: function(){
				form.prepend( form_status.html('<p><i class="fa fa-spinner fa-spin"></i> Email is sending...</p>').fadeIn() );
			}
		}).done(function(data){
			form_status.html('<p class="text-success">' + data.message + '</p>').delay(3000).fadeOut();
		});
	});

	
	//goto top
	$('.gototop').click(function(event) {
		event.preventDefault();
		$('html, body').animate({
			scrollTop: $("body").offset().top
		}, 500);
	});	

	//Pretty Photo
	$("a[rel^='prettyPhoto']").prettyPhoto({
		social_tools: false
	});	
});

$(document).ready(function() {
	$(".btnopenclose").click(function() {
		$("#sticky-social ul").toggleClass("remove");
		$(".btnopenclose").toggleClass("as_selected");
	});
});

document.addEventListener('contextmenu', event => event.preventDefault());

/*
$(".reminder-comp button").on('click', () => {
	$(".reminder-comp").remove();
});
*/

// Close Reminder        
var closeRm = () => {
	$("#reminderComp").fadeOut(300);
}


//$(".reminder-comp").fadeIn(300);
setTimeout(() => {
	$("#reminderComp").fadeIn(200);
	var topSpc = document.getElementById('reminderComp').clientHeight;
	console.log(topSpc);
	topSpc = topSpc + 150;
	$("#sticky-social").css({'top': topSpc+'px'});
}, 2000);



$("#player").removeAttr("style");

Zerion Mini Shell 1.0