PageSourceSearch

https://denisongallery.com/s3-ap-southeast-1.amazonaws.com/assets-…/data/org/26258/theme/43746/js/site.js

js denisongallery.com collected 2026-10-08 07:11:50 UTC 12,617 bytes, 317 lines download raw bytes

1$(document).ready(function(){ 
2
3	$(this).foundation();
4
5	var pathname = window.location.pathname.split("/");
6	$(".handle-home").removeClass("active");
7	if(pathname[1] == "" || pathname[1] == 'index.cfm')
8		$(".handle-home").addClass("active");
9	else
10		$(".handle-"+pathname[2]).addClass("active");
11	
12	/* BX Slider - Initialization for all the page types. */
13	if( $("ul.main-slider > li").length > 1 ){
14		var auto = ( $('ul.main-slider').attr('auto') ) ? true : false;
15		var controls = ( $('ul.main-slider').attr('arrow') ) ? true : false;
16		var pager = ( $('ul.main-slider').attr('pager') ) ? true : false;
17		var adaptiveHeight = ( $('ul.main-slider').attr('adaptiveHeight') ) ? true : false;
18		$('.main-slider').bxSlider({
19			mode: 'fade',
20			auto: auto,
21			controls: controls,
22			pager: pager,
23			adaptiveHeight: adaptiveHeight
24		});
25	}
26
27	
28		if( $(".gallery").length > 1 ){
29			var myLightbox = GLightbox({
30				'selector': '.gallery'
31			});
32		}
33	
34
35	
36	if( $(".sticky-bg-color").length == 1 ){
37        var headerHeight = $(".sticky-bg-color").height();
38        $(".is-header .is-boxes").height(headerHeight);
39
40		$(document).scroll(function() {
41			$(".sticky-bg-color").removeClass("stick");
42			$(".sticky-bg-color").addClass("stick");
43		});
44    }
45    
46    
47    $('.user-logged-out .testimonial-slider').slick({
48  infinite: true,
49  slidesToShow: 1,
50  slidesToScroll: 1,
51  fade: true,
52  arrows: false,
53  autoplay: true,
54  adaptiveHeight: true,
55  dots: true ,
56 responsive: [
57    {
58      breakpoint: 1024,
59      settings: {
60        slidesToShow: 1,
61        slidesToScroll: 1,
62      },
63    },
64    {
65      breakpoint: 769,
66      settings: {
67        slidesToShow: 1,
68        slidesToScroll: 1,
69      },
70    },
71      ],
72})
73
74     /* slick gallary Slider */
75  $('.user-logged-out #gallary-slider').slick({
76        slidesToShow: 1,
77        slidesToScroll: 1,
78        autoplay: true,
79    	autoplaySpeed: 3000,
80		dots: true,
81        infinite: true,
82		pauseOnHover: false,
83		swipeToSlide: true
84      
85	});
86    /* slick gallary Slider end */
87
88
89    
90    
91    
92     $(".home-lead-magnet #first_name").attr("placeholder", "Name");
93    $(".home-lead-magnet #email").attr("placeholder", "Email Id");
94    
95    $(".newsletter-form #first_name").attr("placeholder", "Name");
96    $(".newsletter-form #email").attr("placeholder", "Email Id");
97    
98    
99    
100        // Hide the extra content initially, using JS so that if JS is disabled, no problemo:
101$('.read-more-content').addClass('hide')
102$('.read-more-show, .read-more-hide').removeClass('hide')
103
104// Set up the toggle effect:
105$('.read-more-show').on('click', function(e) {
106  $(this).next('.read-more-content').removeClass('hide');
107  $(this).addClass('hide');
108  e.preventDefault();
109});
110
111$('.read-more-hide').on('click', function(e) {
112  $(this).parent('.read-more-content').addClass('hide');
113  var moreid=$(this).attr("more-id");
114  $('.read-more-show#'+moreid).removeClass('hide');
115  e.preventDefault();
116});
117    
118    
119
120	/* For Media Gallery 2 */
121	if( $("ul#media-gallery-2 > li").length > 1 ){    
122		$('#media-gallery-2').bxSlider({
123		mode: 'fade',
124			
125			auto: true,
126			stopAutoOnClick: true,
127			
128			controls: true,
129			
130			captions: true,
131			
132			adaptiveHeight: true,
133			
134			pager: true,
135			pagerCustom: '#media-gallery-2-thumbnails',
136			
137		});
138		
139		
140		$('#media-gallery-2-thumbnails').bxSlider({
141			minSlides: 1,
142			maxSlides: 6,
143			infiniteLoop: false,
144			slideWidth: 100,
145			slideMargin: 10,
146			pager:false,
147			controls: true,
148			touchEnabled:false,
149			hideControlOnEnd:false,
150			wrapperClass: 'bx-wrapper margin-0 padding-0 cell'
151		});
152		
153	}
154	
155	var crawler = $(".crawler-images > div").length;
156	if (crawler > 0) {
157		$('.user-logged-out .crawler-images').bxSlider({
158			minSlides: 1,
159			maxSlides: 6,
160			auto:true,
161			infiniteLoop: true,
162			slideWidth: 250,
163			slideMargin: 10,
164			pager:false,
165			ticker:true,
166			tickerHover:true,
167			speed:15000,
168			controls: true,
169			touchEnabled:false,
170			hideControlOnEnd:false,
171			pause:0,
172			wrapperClass: 'bx-wrapper margin-0 padding-0 grid-x crawler-container'
173		});
174	}
175	/* BX Slider - End */
176	
177	$(".user-logged-in .login-register-links").remove();
178	
179	if( $(".user-logged-out footer .social-media ul.social-media-icons li").length == 0 )
180		$(".user-logged-out footer .social-media").remove();
181			
182	if($( "#customer_instagram_unername" ).length > 0 ){
183		var res = $("#customer_instagram_unername").text().replace("@", "");
184
185		(function(g){function r(g){return g.replace(/[&<>"'`=\/]/g,function(a){return f[a]})}var m={host:"https://www.instagram.com/",username:"",tag:"",container:"",display_profile:!0,display_biography:!0,display_gallery:!0,display_igtv:!1,get_data:!1,callback:null,styling:!0,items:8,items_per_row:4,margin:.5,image_size:64
1850},n={150:0,240:1,320:2,480:3,640:4},f={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};g.instagramFeed=function(f){var a=g.fn.extend({},
186m,f);if(""==a.username&&""==a.tag)return console.error("Instagram Feed: Error, no username or tag found."),!1;"undefined"!==typeof a.get_raw_json&&(console.warn("Instagram Feed: get_raw_json is deprecated. See use get_data instead"),a.get_data=a.get_raw_json);if(!a.get_data&&""==a.container)return console.error("Instagram Feed: Error, no container found."),!1;if(a.get_data&&null==a.callback)return console.error("Instagram Feed: Error, no callback defined to get the raw json"),!1;var l=""==a.username;
187g.get(l?a.host+"explore/tags/"+a.tag+"/":a.host+a.username+"/",function(b){try{b=b.split("window._sharedData = ")[1].split("\x3c/script>")[0]}catch(u){console.error("Instagram Feed: It looks like the profile you are trying to fetch is age restricted. See https://github.com/jsanahuja/InstagramFeed/issues/26");return}b=JSON.parse(b.substr(0,b.length-1));b=b.entry_data.ProfilePage||b.entry_data.TagPage;if("undefined"===typeof b)console.error("Instagram Feed: It looks like YOUR network has been temporary banned because of too many requests. See https://github.com/jsanahuja/jquery.instagramFeed/issues/25");
188else if(b=b[0].graphql.user||b[0].graphql.hashtag,a.get_data)a.callback(b);else{var c="",h="",k="",e="",f="";a.styling&&(c=" style='text-align:center;'",h=" style='border-radius:10em;width:15%;max-width:125px;min-width:50px;'",k=" style='font-size:1.2em;'",e=" style='font-size:1em;'",f=" style='margin:"+a.margin+"% "+a.margin+"%;width:"+(100-2*a.margin*a.items_per_row)/a.items_per_row+"%;float:left;'");var d="";a.display_profile&&(d=d+("<div class='instagram_profile'"+c+">")+("<img class='instagram_profile_image' src='"+
189b.profile_pic_url+"' alt='"+(l?b.name+" tag pic":b.username+" profile pic")+"'"+h+" />"),d=l?d+("<p class='instagram_tag'"+k+"><a href='https://www.instagram.com/explore/tags/"+a.tag+"' rel='noopener' target='_blank'>#"+a.tag+"</a></p>"):d+("<p class='instagram_username'"+k+">@"+b.full_name+" (<a href='https://www.instagram.com/"+a.username+"' rel='noopener' target='_blank'>@"+a.username+"</a>)</p>"),!l&&a.display_biography&&(d+="<p class='instagram_biography'"+e+">"+b.biography+"</p>"),d+="</div>");
190k="undefined"!==typeof n[a.image_size]?n[a.image_size]:n[640];if(a.display_gallery)if("undefined"!==typeof b.is_private&&!0===b.is_private)d+="<p class='instagram_private'><strong>This profile is private</strong></p>";else{e=(b.edge_owner_to_timeline_media||b.edge_hashtag_to_media).edges;h=e.length>a.items?a.items:e.length;d+="<div class='instagram_gallery'>";for(c=0;c<h;c++){var m="https://www.instagram.com/p/"+e[c].node.shortcode;switch(e[c].node.__typename){case "GraphSidecar":var p="sidecar";
191var q=e[c].node.thumbnail_resources[k].src;break;case "GraphVideo":p="video";q=e[c].node.thumbnail_src;break;default:p="image",q=e[c].node.thumbnail_resources[k].src}var t="undefined"!==typeof e[c].node.edge_media_to_caption.edges[0]&&"undefined"!==typeof e[c].node.edge_media_to_caption.edges[0].node&&"undefined"!==typeof e[c].node.edge_media_to_caption.edges[0].node.text&&null!==e[c].node.edge_media_to_caption.edges[0].node.text?e[c].node.edge_media_to_caption.edges[0].node.text:"undefined"!==typeof e[c].node.accessibility_caption&&
192null!==e[c].node.accessibility_caption?e[c].node.accessibility_caption:(l?b.name:b.username)+" image "+c;d+="<a href='"+m+"' class='instagram-"+p+"' rel='noopener' target='_blank'>";d+="<img src='"+q+"' alt='"+r(t)+"'"+f+" />";d+="</a>"}d+="</div>"}if(a.display_igtv&&"undefined"!==typeof b.edge_felix_video_timeline&&(b=b.edge_felix_video_timeline.edges,h=b.length>a.items?a.items:b.length,0<b.length)){d+="<div class='instagram_igtv'>";for(c=0;c<h;c++)d+="<a href='https://www.instagram.com/p/"+b[c].node.shortcode+
193"' rel='noopener' target='_blank'>",d+="<img src='"+b[c].node.thumbnail_src+"' alt='"+a.username+" instagram image "+c+"'"+f+" />",d+="</a>";d+="</div>"}g(a.container).html(d)}}).fail(function(a){console.error("Instagram Feed: Unable to fetch the given user/tag. Instagram responded with the status code: ",a.status)});return!0}})(jQuery);
194		$.instagramFeed({
195			'username': res, //add username here
196			'container': "#instagram-feed",
197			'display_profile': false,
198			'display_biography': false,
199			'display_gallery': true,
200			'callback': null,
201			'styling': true,
202			'items': 10,
203			'items_per_row': 5,
204			'margin': 0
205		});
206	}
207
208	$(".remaining-articles-arrow").click(function(){
209		$(".remaining-articles").slideToggle("slow");
210	});
211	
212	$(".more").click(function(){
213		$(".about-more-text").slideToggle("slow");
214		$( ".about-section" ).toggleClass( "active" );
215	});
216
217	if($( ".open-down-arrow" ).length > 0 ){
218		$(".open-down-arrow").click(function(){
219			$(this).toggleClass("active");
220		})
221	}
222
223	if($( ".three-column-slider" ).length > 0 ){
224     var width = $( window ).width();
225        if (width < 564){
226            var slideWidth = 450;
227        }
228        else if (width < 1025) {
229           var slideWidth = 310;
230        } else {
231           var slideWidth = 379;
232        }
233    
234        $('.user-logged-out .three-column-slider').bxSlider({
235            auto:true,
236			minSlides: 1,
237			maxSlides: 3,
238            moveSlides:1,
239			infiniteLoop: false,
240			slideWidth: slideWidth,
241			pager:true,
242			controls: false,
243			touchEnabled:false,
244			hideControlOnEnd:false,
245			wrapperClass: 'bx-wrapper three-column-slider-wrapper margin-0 padding-0 cell'
246		});
247  	}
248	
249	if($( ".form-map-layout" ).length > 0 ){
250        $(".user-logged-out .form-map-layout.form .row .column").removeClass("full");
251        $(".user-logged-out .form-map-layout.form .row .column").addClass("half");
252        $(".user-logged-out .form-map-layout.form .row .column .grid-container .cell").removeClass("medium-6");
253        $(".user-logged-out .form-map-layout.form .row .column .grid-container .cell").addClass("medium-12");
254        
255        $(".user-logged-out .form-map-layout.map .grid-x .cell").addClass("column half");
256        $(".user-logged-out .form-map-layout.map .grid-x .cell").removeClass("cell");
257        
258        $mapHtml =  $(".user-logged-out .form-map-layout.map .grid-x").html();
259        $($mapHtml).insertBefore(".user-logged-out .form-map-layout.form .row .column");
260        $(".user-logged-out .form-map-layout.map").hide();
261    }
262
263	$(".masonry-media-gallery .btn").click(function () {
264		$(".section-filter-gallery .btn").removeClass("active");
265		$(this).addClass("active");   
266	});
267
268	if($( ".new-header-8" ).length > 0 ){
269        $(".off-canvas.sidenav").addClass("mobile-menu-for-desktop");
270        $(".off-canvas-content").addClass("mobile-menu-for-desktop");
271    }
272
273});
274
275filterSelection("all");
276function filterSelection(c) {
277	var x, i;
278	x = document.getElementsByClassName("tile");
279	if (c == "all") c = "";
280	for (i = 0; i < x.length; i++) {
281		w3RemoveClass(x[i], "show");
282		if (x[i].className.indexOf(c) > -1) w3AddClass(x[i], "show");
283	}
284}
285
286function w3AddClass(element, name) {
287	var i, arr1, arr2;
288	arr1 = element.className.split(" ");
289	arr2 = name.split(" ");
290	for (i = 0; i < arr2.length; i++) {
291		if (arr1.indexOf(arr2[i]) == -1) {element.className += " " + arr2[i];}
292	}
293}
294
295function w3RemoveClass(element, name) {
296	var i, arr1, arr2;
297	arr1 = element.className.split(" ");
298	arr2 = name.split(" ");
299	for (i = 0; i < arr2.length; i++) {
300		while (arr1.indexOf(arr2[i]) > -1) {
301		arr1.splice(arr1.indexOf(arr2[i]), 1);     
302		}
303	}
304	element.className = arr1.join(" ");
305}
306
307const stickyMenu = document.querySelector('.main-navigation');
308const header = document.querySelector('header');
309const headerHeight = header.clientHeight;
310
311window.addEventListener('scroll', () => {
312    if (window.scrollY > headerHeight) {
313        stickyMenu.classList.add('sticky');
314    } else {
315        stickyMenu.classList.remove('sticky');
316    }
317});

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.