PageSourceSearch

https://anonops.com/js/general.js

js anonops.com collected 2026-10-03 20:28:49 UTC 2,038 bytes, 70 lines download raw bytes

1jQuery(document).ready(function(){
2
3/*-----------------------------------------------------------------------------------*/
4/* Portfolio Carousel (jCarouselLite) */
5/*-----------------------------------------------------------------------------------*/
6
7if ( jQuery( '.portfolio-carousel' ).length ) {
8	if ( jQuery( '.portfolio-carousel .slides li' ).length > 1 ) {
9		
10		var visibleSlides = 5;
11		var autoSpeed = woo_slider_settings.auto;
12		var slideSpeed = woo_slider_settings.speed;
13		
14		if ( autoSpeed < 100 ) {
15			autoSpeed = autoSpeed * 1000;
16		}
17		
18		if ( slideSpeed < 100 ) {
19			slideSpeed = slideSpeed * 1000;
20		}
21		
22		autoSpeed = parseInt( autoSpeed );
23		slideSpeed = parseInt( slideSpeed );
24		
25		// Make sure the slider doesn't freak out if there are fewer than 5 items.
26		if ( jQuery( '.portfolio-carousel .slides li' ).length < 5 ) {
27			visibleSlides = jQuery( '.portfolio-carousel .slides li' ).length;
28		}
29	
30		jQuery( '.portfolio-carousel' ).jCarouselLite({
31		
32			btnNext: '#carousel-inner .btn-next', 
33			btnPrev: '#carousel-inner .btn-prev', 
34			auto: autoSpeed, 
35			speed: slideSpeed, 
36			visible: visibleSlides, 
37			circular: false
38		
39		});
40		
41		jQuery( '#carousel-inner .btn-prev' ).addClass( 'disabled' );
42		jQuery( '#carousel-inner .btn-next' ).click( function () {
43			jQuery( '#carousel-inner .btn-prev.disabled' ).removeClass( 'disabled' );
44		});
45
46	}
47}
48
49/*-----------------------------------------------------------------------------------*/
50/* Add alt-row styling to tables */
51/*-----------------------------------------------------------------------------------*/
52
53	jQuery( '.entry table tr:odd').addClass( 'alt-table-row' );
54
55
56/*-----------------------------------------------------------------------------------*/
57/* Superfish navigation dropdown */
58/*-----------------------------------------------------------------------------------*/
59
60if(jQuery().superfish) {
61		jQuery( 'ul.nav').superfish({
62			delay: 200,
63			animation: {opacity:'show', height:'show'},
64			speed: 'fast',
65			dropShadows: false
66		});
67}
68
69
70});

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.