PageSourceSearch

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

js inksoft.com collected 2026-09-24 08:59:43 UTC 4,271 bytes, 117 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	/* Initialize WOW CSS Animation Library - https://github.com/matthieua/WOW  */
24	/* ------------------------------------------------------------------------ */
25	var wow = new WOW({ 
26		boxClass: 'wow', 
27		mobile: false
28	});
29	wow.init();
30	
31	/* ------------------------------------------------------------------------ */
32	/* Image Hovers */
33	/* ------------------------------------------------------------------------ */
34
35	$(".post-image a, .post-gallery a, #portfolio-slider li a").hover(function(){
36		$(this).has('img').append('<div class="overlay"></div>');
37		$(this).find('.overlay').animate({opacity : '1'}, 300);
38	}, function(){
39		$(this).find('.overlay').animate({opacity : '0'}, 300 ,function(){ 
40			$(this).remove(); 
41		});
42	});
43	
44	$('.portfolio-item').hover(function() {
45		$(this).find('.portfolio-overlay').stop().animate({'opacity' : 1}, 200, 'easeOutSine');
46		$(this).find('.overlay-link, .overlay-lightbox').stop().animate({'top' : $(this).height()/2-54, 'opacity' : 1}, 160, 'easeOutSine');
47	}, function(){
48		$(this).find('.portfolio-overlay').stop().animate({'opacity' : 0}, 300, 'easeInSine');
49		$(this).find('.overlay-link, .overlay-lightbox').stop().animate({'top' : -25, 'opacity' : 0}, 260, 'easeOutSine');
50	});
51	
52	$('.portfolio-item-one .portfolio-picwrap').hover(function() {
53		$(this).find('.portfolio-overlay').stop().animate({'opacity' : 1}, 200, 'easeOutSine');
54		$(this).find('.overlay-link, .overlay-lightbox').stop().animate({'top' : $(this).height()/2-24, 'opacity' : 1}, 160, 'easeOutSine');
55	}, function(){
56		$(this).find('.portfolio-overlay').stop().animate({'opacity' : 0}, 300, 'easeInSine');
57		$(this).find('.overlay-link, .overlay-lightbox').stop().animate({'top' : -25, 'opacity' : 0}, 260, 'easeOutSine');
58	});
59	
60	$('.blog-item').hover(function() {
61		$(this).find('.blog-overlay').stop().animate({'opacity' : 1}, 200, 'easeOutSine');
62		$(this).find('.post-icon').stop().animate({'top' : 50, 'opacity' : 1}, 160, 'easeOutSine');
63	}, function(){
64		$(this).find('.blog-overlay').stop().animate({'opacity' : 0}, 300, 'easeInSine');
65		$(this).find('.post-icon').stop().animate({'top' : -25, 'opacity' : 0}, 260, 'easeOutSine');
66	});
67	
68	/* ------------------------------------------------------------------------ */
69	/* Back To Top */
70	/* ------------------------------------------------------------------------ */
71
72	$(window).scroll(function(){
73		if($(window).scrollTop() > 200){
74			$("#back-to-top").fadeIn(200);
75		} else{
76			$("#back-to-top").fadeOut(200);
77		}
78	});
79	
80	$('#back-to-top, .back-to-top').click(function() {
81		  $('html, body').animate({ scrollTop:0 }, '800');
82		  return false;
83	});
84	
85	/* ------------------------------------------------------------------------ */
86	/* Infobar */
87	
88	var infostate = 'close';
89	var infobarheight = $('#infobar').height() + 62;
90	
91	$('.close-infobar').click(function() {
92		if(infostate == 'close'){
93			$('#infobar').show().animate({ top : 0 }, 220, 'easeOutQuad');
94			$(this).addClass('open');
95			infostate = 'open';
96		}
97		else if(infostate == 'open'){
98			$('#infobar').show().animate({ top : -infobarheight }, 220, 'easeOutQuad');
99			$(this).removeClass('open');
100			infostate = 'close';
101		}
102		return false;
103	});
104	
105	$('#infobar').css({'top' : -infobarheight}).fadeIn('fast');
106	
107	$(window).resize(function() {
108		infobarheight = $('#infobar').height() + 62;
109		$('#infobar').css({'top' : -infobarheight}).show();
110		$('.close-infobar').removeClass('open');
111		infostate = 'close';
112  	});
113	
114});
115/* ------------------------------------------------------------------------ */
116/* EOF
117/* ------------------------------------------------------------------------ */

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.