PageSourceSearch

https://felisfire.com/felisfire/assets/js/script.js

js felisfire.com collected 2026-09-26 18:11:35 UTC 4,010 bytes, 165 lines download raw bytes

1function isMobile() {
2  try{ document.createEvent("TouchEvent"); return true; }
3  catch(e){ return false; }
4}
5
6
7$(document).ready(function(){
8
9  var $window = $(window),
10  small_device = isMobile(),
11  divSelector,el;
12
13
14  	if($('#slider_content').length >0){
15	  var slider = $("#slider_content").mostSlider({
16	    aniSpeed: 800,
17	    animation: 'fade',
18	    aniMethod: 'auto',
19	    pauseTime: 7000,
20	    transparancy: true,
21	    solidHeight: true,
22	    responsive_images: true,
23	    background_center: true,
24	    metrics: {
25	            width: 900,
26	            height: 320
27	    },
28	    contentClass: "content",
29	    sbsContent: true,
30	    contentAniDelay: 300,
31	    hideArrows:true,
32	  });
33	}
34
35	if($('.owl-carousel').length >0){
36		$('.owl-carousel').owlCarousel({
37	  	    loop:true,
38	  	    margin:10,
39	  	    nav:false,
40	        autoplay:true,
41	        autoplayTimeout:2000,
42	        autoplayHoverPause:false,
43	  	    responsive:{
44	  	        0:{
45	  	            items:2
46	  	        },
47	  	        600:{
48	  	            items:5
49	  	        },
50	  	        1000:{
51	  	            items:8
52	  	        }
53	  	    }
54	  	});
55	}
56
57
58	if($('.notable-carousel ').length >0){
59		$('.notable-carousel').on('initialized.owl.carousel change.owl.carousel changed.owl.carousel', function(e) { 
60	        if (!e.namespace || e.type != 'initialized' && e.property.name != 'position') return
61	        //var current = e.relatedTarget.current()
62	        //var items = $(this).find('.owl-stage').children()
63	        var dots = $(this).find('.owl-controls .owl-dots').children()
64	        // var add = e.type == 'changed' || e.type == 'initialized'
65	        $.each(dots,function(i,k){
66	        	var dotNo = parseInt(i)+1;
67
68	        	$(k).text(dotNo);
69	        });
70	    }).owlCarousel({
71	  	    loop:true,
72	  	    margin:0,
73	  	    nav:false,
74	        autoplay:true,
75	        autoplayTimeout:5000,
76	        autoplayHoverPause:false,
77	        dots:true,
78	        dotsEach: true,
79	  	    responsive:{
80	  	        0:{
81	  	            items:1
82	  	        },
83	  	        600:{
84	  	            items:1
85	  	        },
86	  	        1000:{
87	  	            items:1
88	  	        }
89	  	    }
90	  	});
91	}
92
93
94	if($('.chosen-select').length >0){
95	 	$(".chosen-select").chosen({
96	 		no_results_text: "Oops, nothing found!",
97	 		width: "100%",
98	 		disable_search_threshold: 1
99	 	}).change(function(){
100	        var theme = $(this).val(),
101	        	url   = window.location.pathname;
102
103	       	var urlString = url+'?theme='+theme;
104
105	       	window.location.href = urlString;
106	    });
107
108
109
110
111	}
112
113	function showContent(){
114		if(typeof divSelector != 'undefined'){
115			var div_width = divSelector.width(),
116				div_height = divSelector.height(),
117				div_pos_top = (el.offset().top - $(window).scrollTop()) + 40,
118				div_pos_left = el.offset().left - 152,
119				div_pos_right = 'auto',
120				div_pos_bottom = 'auto';
121
122			if((div_pos_left + div_width) > $(window).width()){
123				div_pos_left = 'auto';
124				div_pos_right = 10;
125			}
126
127			if((el.offset().top + 50 + div_height) > $(document).height()){
128				div_pos_top = 'auto';
129				div_pos_bottom = 10;
130			}
131			
132			divSelector.css({top:div_pos_top,bottom:div_pos_bottom,left:div_pos_left,right:div_pos_right});
133		}
134	}
135
136
137	$('a.player-info').click(function(){
138		var par = $(this).parent();
139
140		if($(par).hasClass('current-click')){
141			$(par).removeClass('current-click');
142			$('div.player-stats').removeClass('d_shown');
143		}else{
144			$('.current-click').removeClass('current-click');
145			$('div.player-stats').removeClass('d_shown');
146			$(par).addClass('current-click');
147
148			var product_id = $(this).parent().children('input.id').val();
149				
150			divSelector = $(this).parent().children('.player-stats').addClass('d_shown');
151			el = $(this);
152
153			showContent();
154		}
155		return false;
156	});
157
158	$(window).on('scroll resize',function(){
159			showContent(divSelector,el);
160		});
161
162
163
164
165});

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.