PageSourceSearch

https://www.neurametrix.com/assets/js/bjqs/bjqs-1.3.min.js?1264

js neurametrix.com collected 2026-10-07 15:42:43 UTC 9,706 bytes, 1 lines download raw bytes

1(function($){"use strict";$.fn.bjqs=function(o){var defaults={width:100,height:0,e:this,lang:"en",animtype:"fade",animduration:450,animspeed:4e3,automatic:true,showcontrols:true,showmarkers:true,labels:{next:"Next image slide",prev:"Previous image slide",play:"Play image slideshow",pause:"Pause image slideshow"},keyboardnav:true,hoverpause:true,usecaptions:false,randomstart:true,responsive:true};var settings=$.extend({},defaults,o);var $wrapper=this,$slider=$wrapper.find("ul.bjqs"),$slides=$slider.children("li"),$c_wrapper=null,$c_fwd=null,$c_prev=null,$c_play=null,$c_pause=null,$m_wrapper=null,$m_markers=null,$canvas=null,$clone_first=null,$clone_last=null;var state={slidecount:$slides.length,animating:false,paused:false,currentslide:1,nextslide:0,currentindex:0,nextindex:0,interval:null};var responsive={width:null,height:null,ratio:null};var vars={fwd:"forward",prev:"previous"};var init=function(){if(settings.lang=="se"){settings.labels.next="Visa nästa bild i bildspelet";settings.labels.prev="Visa föregående bild i bildspelet";settings.labels.play="Spela upp bildspelet";settings.labels.pause="Pausa bildspelet"}$wrapper.addClass("bjqs-wrapper");$slides.addClass("bjqs-slide");if(settings.randomstart&&state.slidecount>1){conf_random()}if(settings.responsive){conf_responsive()}else{conf_static()}if(state.slidecount>1){if(settings.showcontrols){conf_controls()}if(settings.showmarkers){conf_markers()}if(settings.keyboardnav){conf_keynav()}if(settings.automatic){play()}}else{settings.automatic=false}if(settings.animtype==="fade"){conf_fade()}else if(settings.animtype==="slide"){conf_slide()}if(settings.usecaptions){conf_captions()}if(settings.animtype==="slide"&&!settings.randomstart){state.currentindex=1;state.currentslide=2}$slider.show();$slides.eq(state.currentindex).show();if(settings.automatic){}};var play=function(){clearInterval(state.interval);state.interval=setInterval(function(){go(vars.fwd,false)},settings.animspeed)};var stop=function(){clearInterval(state.interval)};var conf_responsive=function(){responsive.width=settings.width;responsive.height=settings.height;if(settings.animtype==="fade"){$slides.css({width:settings.width/state.slidecount+"%"});$slides.find("img").css({width:settings.width+"%"});$slider.css({width:settings.width*state.slidecount+"%"})}if(settings.animtype==="slide"){$slides.css({width:settings.width/(state.slidecount+2)+"%"});$slides.find("img").css({width:settings.width+"%"});$slider.css({width:settings.width*(state.slidecount+2)+"%",left:-responsive.width*state.currentslide+"%"});$wrapper.css({position:"relative"});$slides.css({"float":"left",position:"relative",display:"list-item"})}$(window).resize(function(){$.each($slides.find("img"),function(){margin_images($(this))})});$wrapper.css({width:"100% "});$wrapper.css({height:"100% "});$slider.css({height:"100% "});$slides.css({height:"100% "});if(state.slidecount>1){$slider.css({overflow:"hidden"})}else{$slider.css({overflow:"visible",left:"0px"})}};var margin_images=function(image){var margintop_procent=50;var bi=image.parents(".blockitem");var block_height_percent=bi.height()/bi.width();$slides.show();var pic_height_percent=image.height()/image.width();if(settings.animtype==="fade"){$slides.hide();$slides.eq(state.currentindex).show()}var margintop=(block_height_percent-pic_height_percent)*(margintop_procent/100);image.css("margin-top",margintop*100+"%")};var resize_complete=function(){var timers={};return function(callback,ms,uniqueId){if(!uniqueId){uniqueId="Don't call this twice without a uniqueId"}if(timers[uniqueId]){clearTimeout(timers[uniqueId])}timers[uniqueId]=setTimeout(callback,ms)}}();var conf_paused=function(paused){var $play_button=$wrapper.find(".bjqs-controls .bjqs-play");var $pause_button=$wrapper.find(".bjqs-controls .bjqs-pause");if(!paused){go(vars.fwd,false);play();$play_button.hide();$pause_button.show();state.paused=false}else{stop();$play_button.show();$pause_button.hide();state.paused=true}};var conf_static=function(){$slides.css({height:settings.height,width:settings.width});$slider.css({height:settings.height,width:settings.width});$wrapper.css({height:settings.height,width:settings.width,position:"relative"})};var conf_slide=function(){$clone_first=$slides.eq(0).clone();$clone_last=$slides.eq(state.slidecount-1).clone();
1$clone_first.attr({"data-clone":"last","data-slide":0}).appendTo($slider).show();$clone_last.attr({"data-clone":"first","data-slide":0}).prependTo($slider).show();$slides=$slider.children("li");state.slidecount=$slides.length;$canvas=$('<div class="bjqs-canvas"></div>');if(settings.responsive){$canvas.css({width:responsive.width+"%",height:"100%",overflow:"hidden",position:"relative"})}else{$canvas.css({width:settings.width+"%",height:settings.height,overflow:"hidden",position:"relative"})}$slides.css({"float":"left",position:"relative",display:"list-item"});$canvas.prependTo($wrapper);$slider.appendTo($canvas)};var conf_fade=function(){$canvas=$('<div class="bjqs-wrapper"></div>');if(settings.responsive){$canvas.css({width:responsive.width+"%",height:"100%",overflow:"hidden",position:"relative"})}else{$canvas.css({width:settings.width+"%",height:settings.height,overflow:"hidden",position:"relative"})}$canvas.prependTo($wrapper);$slider.appendTo($canvas)};var conf_controls=function(){$c_wrapper=$('<div class="bjqs-controls"></div>');$c_fwd=$('<button class="bjqs-prev" aria-label="'+settings.labels.next+'" data-direction="'+vars.fwd+'"><div></div></button>');$c_prev=$('<button class="bjqs-next" aria-label="'+settings.labels.prev+'" data-direction="'+vars.prev+'"><div></div></button>');$c_play=$('<button class="bjqs-play" aria-label="'+settings.labels.play+'"><div></div></button>');$c_pause=$('<button class="bjqs-pause" aria-label="'+settings.labels.pause+'"><div></div></button>');$c_wrapper.on("click","button.bjqs-prev, button.bjqs-next",function(e){e.preventDefault();var direction=$(this).attr("data-direction");if(!state.animating){if(direction===vars.fwd){go(vars.fwd,false)}if(direction===vars.prev){go(vars.prev,false)}}});$c_wrapper.on("click","button.bjqs-play",function(e){conf_paused(false)});$c_wrapper.on("click","button.bjqs-pause",function(e){conf_paused(true)});$slides.find("img").on("click",function(e){go(vars.fwd,false)});$c_wrapper.show();$c_prev.appendTo($c_wrapper);$c_play.appendTo($c_wrapper);$c_pause.appendTo($c_wrapper);$c_fwd.appendTo($c_wrapper);$c_wrapper.appendTo($wrapper);if(settings.automatic){$c_pause.show()}else{$c_play.show()}};var conf_markers=function(){$m_wrapper=$("<div class='bjqs-markers'><ol></ol></div>");$.each($slides,function(key,slide){var slidenum=key+1,gotoslide=key+1;if(settings.animtype==="slide"){gotoslide=key+2}var marker=$("<li><div></div></li>");if(slidenum===state.currentslide){marker.children("div").addClass("active-marker")}marker.on("click",function(e){e.preventDefault();if(!state.animating&&state.currentslide!==gotoslide){go(false,gotoslide)}});marker.appendTo($m_wrapper.children("ol"))});$m_wrapper.appendTo($wrapper);$m_markers=$m_wrapper.find("div")};var conf_keynav=function(){$(document).keyup(function(event){if(!state.animating){if(event.keyCode===39){event.preventDefault();go(vars.fwd,false)}else if(event.keyCode===37){event.preventDefault();go(vars.prev,false)}}})};var conf_captions=function(){$.each($slides,function(key,slide){var caption=$(slide).find("img:first-child").attr("title");if(!caption){caption=$(slide).find("img:first-child").attr("title")}if(caption){caption=$('<p class="bjqs-caption">'+caption+"</p>");caption.appendTo($(slide))}})};var conf_random=function(){var rand=Math.floor(Math.random()*state.slidecount)+1;state.currentslide=rand;if(settings.animtype==="fade"){state.currentindex=rand-1}else{state.currentindex=rand}};var set_next=function(direction){if(direction===vars.fwd){if($slides.eq(state.currentindex).next().length){state.nextindex=state.currentindex+1;state.nextslide=state.currentslide+1}else{state.nextindex=0;state.nextslide=1}}else{if($slides.eq(state.currentindex).prev().length){state.nextindex=state.currentindex-1;state.nextslide=state.currentslide-1}else{state.nextindex=state.slidecount-1;state.nextslide=state.slidecount}}};var go=function(direction,position){if(!state.animating){stop();state.animating=true;if(position){state.nextslide=position;state.nextindex=position-1}else{set_next(direction)}if(settings.animtype==="fade"){if(settings.showmarkers){$m_markers.removeClass("active-marker");$m_markers.eq(state.nextindex).addClass("active-marker")}$slides.eq(state.currentindex).fadeOut(settings.animduration);$slides.eq(state.nextindex).fadeIn(settings.animduration,function(){state.animating=false;state.currentslide=state.nextslide;state.currentindex=state.nextindex})}if(settings.animtype==="slide"){if(settings.showmarkers){var markerindex=state.nextindex-1;if(markerindex===state.slidecount-2){markerindex=0}else if(markerindex===-1){markerindex=state.slidecount-3}$m_markers.removeClass("active-marker");$m_markers.eq(markerindex).addClass("active-marker")}if(settings.responsive){state.slidewidth=responsive.width}else{state.slidewidth=responsive.width}$slider.animate({left:-state.nextindex*state.slidewidth+"%"},settings.animduration,function(){state.currentslide=state.nextslide;state.currentindex=state.nextindex;if($slides.eq(state.currentindex).attr("data-clone")==="last"){$slider.css({left:-state.slidewidth+"%"});state.currentslide=2;state.currentindex=1}else if($slides.eq(state.currentindex).attr("data-clone")==="first"){$slider.css({left:-state.slidewidth*(state.slidecount-2)+"%"});state.currentslide=state.slidecount-1;state.currentindex=state.slidecount-2}state.animating=false})}play()}};init()}})(jQuery);

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.