PageSourceSearch

https://www.cutpoint-inc.com/assets/plugins/master-slider/source/plugins/MSGallery.js

js cutpoint-inc.com collected 2026-10-02 01:29:04 UTC 1,955 bytes, 69 lines download raw bytes

1/**
2 *	Master Slider, Gallery Template v1.0
3 * 	@author: Averta Ltd.
4 */
5
6;(function($){
7	
8	window.MSGallery = function(id , slider){
9		this.id = id;
10		this.slider = slider;
11		
12		this.telement = $('#'+id);
13		
14		this.botcont = $('<div></div>').addClass('ms-gallery-botcont').appendTo(this.telement);
15		this.thumbcont = $('<div></div>').addClass('ms-gal-thumbcont hide-thumbs').appendTo(this.botcont);
16		this.playbtn  = $('<div></div>').addClass('ms-gal-playbtn').appendTo(this.botcont);
17		this.thumbtoggle  = $('<div></div>').addClass('ms-gal-thumbtoggle').appendTo(this.botcont);
18		
19		// adds required controls to slider
20		slider.control('thumblist' , {insertTo:this.thumbcont , autohide:false , dir:'h'});
21		slider.control('slidenum'  , {insertTo:this.botcont , autohide:false});
22		slider.control('slideinfo' , {insertTo:this.botcont , autohide:false});		
23		slider.control('timebar'   , {insertTo:this.botcont , autohide:false});		
24		slider.control('bullets'   , {insertTo:this.botcont , autohide:false});		
25	};
26	
27	var p = MSGallery.prototype;
28	
29	p._init = function(){
30		var that = this;
31		
32		if(!this.slider.api.paused)
33			 this.playbtn.addClass('btn-pause');
34		 
35		this.playbtn.click(function(){
36			if(that.slider.api.paused){
37				 that.slider.api.resume();
38				 that.playbtn.addClass('btn-pause');
39			}else{
40				 that.slider.api.pause();
41				 that.playbtn.removeClass('btn-pause');
42			}
43		});
44		
45		
46		this.thumbtoggle.click(function(){
47			
48			if(that.vthumbs){
49				//that.hideThumbs();
50				that.thumbtoggle.removeClass('btn-hide');
51				that.vthumbs = false;
52				that.thumbcont.addClass('hide-thumbs');
53			}else{
54				//that.showThumbs();
55				that.thumbtoggle.addClass('btn-hide');
56				that.thumbcont.removeClass('hide-thumbs');
57				that.vthumbs = true;
58			}
59		});
60		
61	};
62	
63	p.setup = function(){
64		var that = this;
65		$(document).ready(function(){that._init();});
66	};
67	
68	
69})(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.