PageSourceSearch

https://www.belmontent.com/js/custom.js

js belmontent.com collected 2026-10-10 01:48:21 UTC 5,735 bytes, 257 lines download raw bytes

1// Jquery with no conflict
2jQuery(document).ready(function($) {
3	
4	//##########################################
5	// COLUMNIZR
6	//##########################################
7	
8	$('.multicolumn').columnize({ 
9		columns: 2
10	});
11		
12	
13	//##########################################
14	// CAROUSEL
15	//##########################################
16	
17	$('#mycarousel').jcarousel({
18        // Configuration goes here (http://sorgalla.com/projects/jcarousel/)
19        vertical: false
20    });
21    
22    $('#mycarousel-vertical').jcarousel({
23        // Configuration goes here (http://sorgalla.com/projects/jcarousel/)
24        vertical: true
25    });
26    
27	//##########################################
28	// LOF SLIDER
29	//##########################################
30	 
31	 
32	var buttons = { previous:$('#home-slider .button-previous') ,
33						next:$('#home-slider .button-next') };	
34	
35
36	
37	$('#home-slider').lofJSidernews( {
38		interval 		: 4000,
39		direction		: 'opacitys',	
40		easing			: 'easeInOutExpo',
41		duration		: 1200,
42		auto		 	: false,
43		maxItemDisplay  : 5,
44		navPosition     : 'horizontal', // horizontal
45		navigatorHeight : 73,
46		navigatorWidth  : 188,
47		mainWidth		: 940,
48		buttons: buttons
49	});
50										
51											
52	
53											
54	//##########################################
55	// Superfish
56	//##########################################
57	
58	$("ul.sf-menu").superfish({ 
59        animation: {height:'show'},   // slide-down effect without fade-in 
60        delay:     800 ,              // 1.2 second delay on mouseout 
61        autoArrows:  false,
62        speed: 100
63    });
64    
65    
66    //##########################################
67	// PROJECT SLIDER
68	//##########################################
69	
70    $('.project-slider').flexslider({
71    	animation: "fade",
72    	controlNav: true,
73    	directionNav: false,
74    	keyboardNav: true
75    });
76    
77    
78    //##########################################
79	// Filter - Isotope 
80	//##########################################
81
82	
83	var $container = $('#filter-container');
84	
85	$container.imagesLoaded( function(){
86		$container.isotope({
87			itemSelector : 'figure',
88			filter: '*',
89			resizable: false,
90			animationEngine: 'jquery'
91		});
92	});
93	
94	// filter buttons
95		
96	$('#filter-buttons a').click(function(){
97	
98		// select current
99		var $optionSet = $(this).parents('#filter-buttons');
100	    $optionSet.find('.selected').removeClass('selected');
101	    $(this).addClass('selected');
102    
103		var selector = $(this).attr('data-filter');
104		$container.isotope({ filter: selector });
105		return false;
106	});
107	
108	//##########################################
109	// Tool tips
110	//##########################################
111	
112	
113	$('.poshytip').poshytip({
114    	className: 'tip-twitter',
115		showTimeout: 1,
116		alignTo: 'target',
117		alignX: 'center',
118		offsetY: 5,
119		allowTipHover: false
120    });
121	
122   
123    
124    $('.form-poshytip').poshytip({
125		className: 'tip-twitter',
126		showOn: 'focus',
127		alignTo: 'target',
128		alignX: 'right',
129		alignY: 'center',
130		offsetX: 5
131	});
132	
133	//##########################################
134	// Tweet feed
135	//##########################################
136	
137	$("#tweets").tweet({
138        count: 3,
139        username: "ansimuz"
140    });
141    
142    //##########################################
143	// PrettyPhoto
144	//##########################################
145	
146	$('a[data-rel]').each(function() {
147	    $(this).attr('rel', $(this).data('rel'));
148	});
149	
150	$("a[rel^='prettyPhoto']").prettyPhoto();
151
152
153	//##########################################
154	// Accordion box
155	//##########################################
156
157	$('.accordion-container').hide(); 
158	$('.accordion-trigger:first').addClass('active').next().show();
159	$('.accordion-trigger').click(function(){
160		if( $(this).next().is(':hidden') ) { 
161			$('.accordion-trigger').removeClass('active').next().slideUp();
162			$(this).toggleClass('active').next().slideDown();
163		}
164		return false;
165	});
166	
167	//##########################################
168	// Toggle box
169	//##########################################
170	
171	$('.toggle-trigger').click(function() {
172		$(this).next().toggle('slow');
173		$(this).toggleClass("active");
174		return false;
175	}).next().hide();
176	
177	    
178    
179	
180	//##########################################
181	// Tabs
182	//##########################################
183
184    $(".tabs").tabs("div.panes > div", {effect: 'fade'});
185
186
187	
188	//##########################################
189	// Create Combo Navi
190	//##########################################	
191		
192	// Create the dropdown base
193	$("<select id='comboNav' />").appendTo("#combo-holder");
194	
195	// Create default option "Go to..."
196	$("<option />", {
197		"selected": "selected",
198		"value"   : "",
199		"text"    : "Navigation"
200	}).appendTo("#combo-holder select");
201	
202	// Populate dropdown with menu items
203	$("#nav a").each(function() {
204		var el = $(this);		
205		var label = $(this).parent().parent().attr('id');
206		var sub = (label == 'nav') ? '' : '- ';
207		
208		$("<option />", {
209		 "value"   : el.attr("href"),
210		 "text"    :  sub + el.text()
211		}).appendTo("#combo-holder select");
212	});
213
214	
215	//##########################################
216	// Combo Navigation action
217	//##########################################
218	
219	$("#comboNav").change(function() {
220	  location = this.options[this.selectedIndex].value;
221	});
222	
223	
224	//##########################################
225	// Resize event
226	//##########################################
227	
228	$(window).resize(function() {
229		
230		var w = $(window).width();
231		//console.log(w);
232
233		$container.isotope('reLayout');
234
235	}).trigger("resize");
236	
237		
238});//close	
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257

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.