PageSourceSearch

https://www.gcmp.com.au/wp-content/themes/gcmp/framework/js/functions.js?ver=1.0

js gcmp.com.au collected 2026-10-08 02:18:12 UTC 3,455 bytes, 96 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	$('.portfolio-item').hover(function() {
24		$(this).find('.portfolio-overlay').stop().animate({'opacity' : 1}, 200, 'easeOutSine');
25		$(this).find('.overlay-link, .overlay-lightbox').stop().animate({'top' : $(this).height()/2-54, 'opacity' : 1}, 160, 'easeOutSine');
26	}, function(){
27		$(this).find('.portfolio-overlay').stop().animate({'opacity' : 0}, 300, 'easeInSine');
28		$(this).find('.overlay-link, .overlay-lightbox').stop().animate({'top' : -25, 'opacity' : 0}, 260, 'easeOutSine');
29	});
30	
31	$('.portfolio-item-one .portfolio-picwrap').hover(function() {
32		$(this).find('.portfolio-overlay').stop().animate({'opacity' : 1}, 200, 'easeOutSine');
33		$(this).find('.overlay-link, .overlay-lightbox').stop().animate({'top' : $(this).height()/2-24, 'opacity' : 1}, 160, 'easeOutSine');
34	}, function(){
35		$(this).find('.portfolio-overlay').stop().animate({'opacity' : 0}, 300, 'easeInSine');
36		$(this).find('.overlay-link, .overlay-lightbox').stop().animate({'top' : -25, 'opacity' : 0}, 260, 'easeOutSine');
37	});
38	
39	$('.blog-item').hover(function() {
40		$(this).find('.blog-overlay').stop().animate({'opacity' : 1}, 200, 'easeOutSine');
41		$(this).find('.post-icon').stop().animate({'top' : 50, 'opacity' : 1}, 160, 'easeOutSine');
42	}, function(){
43		$(this).find('.blog-overlay').stop().animate({'opacity' : 0}, 300, 'easeInSine');
44		$(this).find('.post-icon').stop().animate({'top' : -25, 'opacity' : 0}, 260, 'easeOutSine');
45	});
46	
47	/* ------------------------------------------------------------------------ */
48	/* Back To Top */
49	/* ------------------------------------------------------------------------ */
50
51	$(window).scroll(function(){
52		if($(window).scrollTop() > 200){
53			$("#back-to-top").fadeIn(200);
54		} else{
55			$("#back-to-top").fadeOut(200);
56		}
57	});
58	
59	$('#back-to-top, .back-to-top').click(function() {
60		  $('html, body').animate({ scrollTop:0 }, '800');
61		  return false;
62	});
63	
64	/* ------------------------------------------------------------------------ */
65	/* Infobar */
66	
67	var infostate = 'close';
68	var infobarheight = $('#infobar').height() + 62;
69	
70	$('.close-infobar').click(function() {
71		if(infostate == 'close'){
72			$('#infobar').show().animate({ top : 0 }, 220, 'easeOutQuad');
73			$(this).addClass('open');
74			infostate = 'open';
75		}
76		else if(infostate == 'open'){
77			$('#infobar').show().animate({ top : -infobarheight }, 220, 'easeOutQuad');
78			$(this).removeClass('open');
79			infostate = 'close';
80		}
81		return false;
82	});
83	
84	$('#infobar').css({'top' : -infobarheight}).fadeIn('fast');
85	
86	$(window).resize(function() {
87		infobarheight = $('#infobar').height() + 62;
88		$('#infobar').css({'top' : -infobarheight}).show();
89		$('.close-infobar').removeClass('open');
90		infostate = 'close';
91  	});
92	
93});
94/* ------------------------------------------------------------------------ */
95/* EOF
96/* ------------------------------------------------------------------------ */

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.