PageSourceSearch

https://grief.com/wp-content/themes/inovado/framework/js/functions.js?ver=1.0

js grief.com collected 2026-10-01 10:33:50 UTC 3,953 bytes, 108 lines download raw bytes

1/* ------------------------------------------------------------------------ */
2/* Javascripts
3/* ------------------------------------------------------------------------ */
4
5jQuery(document).ready(function($){
6    
7     // Clear Input Fields value
8	 $('input[type=text]').each(function() {
9		var default_value = this.value;
10		$(this).focus(function(){
11		   if(this.value == default_value) {
12		           this.value = '';
13		   }
14		});
15		$(this).blur(function(){
16		       if(this.value == '') {
17		               this.value = default_value;
18		       }
19		});
20	});
21	
22	/* ------------------------------------------------------------------------ */
23	/* Image Hovers */
24	/* ------------------------------------------------------------------------ */
25
26	$(".post-image a, .post-gallery a, #portfolio-slider li a").hover(function(){
27		$(this).has('img').append('<div class="overlay"></div>');
28		$(this).find('.overlay').animate({opacity : '1'}, 300);
29	}, function(){
30		$(this).find('.overlay').animate({opacity : '0'}, 300 ,function(){ 
31			$(this).remove(); 
32		});
33	});
34	
35	$('.portfolio-item').hover(function() {
36		$(this).find('.portfolio-overlay').stop().animate({'opacity' : 1}, 200, 'easeOutSine');
37		$(this).find('.overlay-link, .overlay-lightbox').stop().animate({'top' : $(this).height()/2-54, 'opacity' : 1}, 160, 'easeOutSine');
38	}, function(){
39		$(this).find('.portfolio-overlay').stop().animate({'opacity' : 0}, 300, 'easeInSine');
40		$(this).find('.overlay-link, .overlay-lightbox').stop().animate({'top' : -25, 'opacity' : 0}, 260, 'easeOutSine');
41	});
42	
43	$('.portfolio-item-one .portfolio-picwrap').hover(function() {
44		$(this).find('.portfolio-overlay').stop().animate({'opacity' : 1}, 200, 'easeOutSine');
45		$(this).find('.overlay-link, .overlay-lightbox').stop().animate({'top' : $(this).height()/2-24, 'opacity' : 1}, 160, 'easeOutSine');
46	}, function(){
47		$(this).find('.portfolio-overlay').stop().animate({'opacity' : 0}, 300, 'easeInSine');
48		$(this).find('.overlay-link, .overlay-lightbox').stop().animate({'top' : -25, 'opacity' : 0}, 260, 'easeOutSine');
49	});
50	
51	$('.blog-item').hover(function() {
52		$(this).find('.blog-overlay').stop().animate({'opacity' : 1}, 200, 'easeOutSine');
53		$(this).find('.post-icon').stop().animate({'top' : 50, 'opacity' : 1}, 160, 'easeOutSine');
54	}, function(){
55		$(this).find('.blog-overlay').stop().animate({'opacity' : 0}, 300, 'easeInSine');
56		$(this).find('.post-icon').stop().animate({'top' : -25, 'opacity' : 0}, 260, 'easeOutSine');
57	});
58	
59	/* ------------------------------------------------------------------------ */
60	/* Back To Top */
61	/* ------------------------------------------------------------------------ */
62
63	$(window).scroll(function(){
64		if($(window).scrollTop() > 200){
65			$("#back-to-top").fadeIn(200);
66		} else{
67			$("#back-to-top").fadeOut(200);
68		}
69	});
70	
71	$('#back-to-top, .back-to-top').click(function() {
72		  $('html, body').animate({ scrollTop:0 }, '800');
73		  return false;
74	});
75	
76	/* ------------------------------------------------------------------------ */
77	/* Infobar */
78	
79	var infostate = 'close';
80	var infobarheight = $('#infobar').height() + 62;
81	
82	$('.close-infobar').click(function() {
83		if(infostate == 'close'){
84			$('#infobar').show().animate({ top : 0 }, 220, 'easeOutQuad');
85			$(this).addClass('open');
86			infostate = 'open';
87		}
88		else if(infostate == 'open'){
89			$('#infobar').show().animate({ top : -infobarheight }, 220, 'easeOutQuad');
90			$(this).removeClass('open');
91			infostate = 'close';
92		}
93		return false;
94	});
95	
96	$('#infobar').css({'top' : -infobarheight}).fadeIn('fast');
97	
98	$(window).resize(function() {
99		infobarheight = $('#infobar').height() + 62;
100		$('#infobar').css({'top' : -infobarheight}).show();
101		$('.close-infobar').removeClass('open');
102		infostate = 'close';
103  	});
104	
105});
106/* ------------------------------------------------------------------------ */
107/* EOF
108/* ------------------------------------------------------------------------ */

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.