PageSourceSearch

https://www.iisc.ac.in/wp-content/themes/iisc/js/scripts.js

js iisc.ac.in collected 2026-09-24 08:36:12 UTC 1,944 bytes, 65 lines download raw bytes

1function parallax() {�
2	var scrollPosition = $(window).scrollTop();�
3	$('#parallax').css('top',(0 - (scrollPosition * 0.3))+'px' ); // bg image moves at 30% of scrolling speed�
4	$('#hero').css('opacity',((100 - scrollPosition/2) *0.01));�
5	$('#servicesbg').css('top',(0 - (scrollPosition * 0.3))+'px' )�
6}�
7$(document).ready(function() {�
8�
9	/*	Parallax Background�
10	================================================== */�
11�
12	$(window).on('scroll', function(e) {�
13		parallax();�
14	});�
15	�
16	/*	Local Scroll�
17	================================================== */�
18	�
19	jQuery('.navbar').localScroll({�
20			offset: -80,�
21			duration: 500�
22		});�
23		�
24	/*	Active Menu�
25	================================================== */�
26		�
27	jQuery(function() {�
28		var sections = jQuery('section');�
29		var navigation_links = jQuery('nav a');�
30		sections.waypoint({�
31		handler: function(direction) {�
32			var active_section;�
33			active_section = jQuery(this);�
34			if (direction === "up") active_section = active_section.prev();�
35			var active_link = jQuery('nav a[href="#' + active_section.attr("id") + '"]');�
36			navigation_links.parent().removeClass("active");�
37			active_link.parent().addClass("active");�
38			active_section.addClass("active-section");�
39		},�
40		offset: '35%'�
41		});�
42	});�
43	�
44	/*	Animation with Waypoints�
45	================================================== */�
46	�
47	jQuery('.animate').waypoint(function() {�
48	     var animation = jQuery(this).attr("data-animate");�
49	     jQuery(this).addClass(animation);�
50	     jQuery(this).addClass('animated');�
51	}, { offset: '80%' });�
52	�
53	/*	Pretty Photo�
54	================================================== */�
55	�
56	jQuery('#gallery a').attr('rel', 'prettyPhoto');�
57	jQuery("a[rel^='prettyPhoto']").prettyPhoto();�
58	�
59	/*	Bootstrap Carousel�
60	================================================== */�
61	�
62//	jQuery('.carousel').carousel()�
63	�
64�
65});

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.