https://www.edgewaterindianapolis.com/wp-content/plugins/swifty-fr…/assets/js/main.js?ver=1789024648
1(function ($) { 2 // --------------------- 3 4 // ========== Hero Slider ========== 5 $(".ulp-hero-slider").slick({ 6 dots: false, 7 fade: true, 8 speed: 1000, 9 infinite: true, 10 autoplay: true, 11 autoplaySpeed: 3000, 12 arrows: true, 13 }); 14 function setSliderHeight() { 15 if ($(window).width() > 992) { 16 var maxHeight = 0; 17 $('.ulp-hero-slider .slick-slide').each(function(){ 18 var slideHeight = $(this).height(); 19 maxHeight = (slideHeight > maxHeight) ? slideHeight : maxHeight; 20 }); 21 $('.ulp-hero-slider').height(maxHeight); 22 } 23 } 24 25 // Call the function initially and on window resize 26 setSliderHeight(); 27 $(window).resize(setSliderHeight); 28 29 30 // ========== Home Image Gallery Slider ========== 31 $('.ulp-slick-home-gallery').slick({ 32 centerMode: true, 33 arrows: true, 34 centerPadding: '60px', 35 slidesToShow: 3, 36 slidesToScroll: 1, 37 responsive: [ 38 { 39 breakpoint: 1024, 40 settings: { 41 arrows: true, 42 centerMode: true, 43 centerPadding: '40px', 44 slidesToShow: 1 45 } 46 }, 47 { 48 breakpoint: 480, 49 settings: { 50 arrows: true, 51 centerMode: true, 52 centerPadding: '40px', 53 slidesToShow: 1 54 } 55 } 56 ], 57 prevArrow: '<button class="slide-arrow prev-arrow slick-prev">Previous</button>', 58 nextArrow: '<button class="slide-arrow next-arrow slick-next">Next</button>' 59 }); 60 61 // ========== Home Floorplan Slider With Tabs ========== 62 $(".ulp-home-floorplans-slider").slick({ 63 slidesToShow: 3, 64 slidesToScroll: 1, 65 dots: false, 66 speed: 1000, 67 infinite: false, 68 autoplay: false, 69 autoplaySpeed: 3000, 70 arrows: true, 71 responsive: [ 72 { 73 breakpoint: 1280, 74 settings: { 75 slidesToShow: 2, 76 slidesToScroll: 1 77 } 78 }, 79 { 80 breakpoint: 767, 81 settings: { 82 slidesToShow: 1, 83 slidesToScroll: 1 84 } 85 }, 86 { 87 breakpoint: 576, 88 settings: { 89 slidesToShow: 1 90 } 91 } 92 ] 93 }); 94 $(".ulp-available-unit-slider").slick({ 95 slidesToShow: 3, 96 slidesToScroll: 1, 97 dots: false, 98 speed: 1000, 99 infinite: false, 100 autoplay: false, 101 autoplaySpeed: 3000, 102 arrows: true, 103 responsive: [ 104 { 105 breakpoint: 992, 106 settings: { 107 slidesToShow: 2, 108 slidesToScroll: 1 109 } 110 }, 111 { 112 breakpoint: 767, 113 settings: { 114 slidesToShow: 1, 115 slidesToScroll: 1 116 } 117 }, 118 { 119 breakpoint: 576, 120 settings: { 121 slidesToShow: 1 122 } 123 } 124 ] 125 }); 126 127 $(".ulp .filter .filter-item").on("click", function (e) { 128 e.preventDefault(); 129 $(".ulp .filter .filter-item.active").removeClass("active"); 130 $(this).addClass("active"); 131 var triggerSlider = $(this).attr('data-filter'); 132 var filter = $(this).data("filter"); 133 // console.log(filter); 134 $(".ulp-home-floorplans-slider").slick("slickUnfilter"); 135 $(".ulp-home-floorplans-slider").slick("slickFilter", "." + filter); 136 $(window).trigger('resize'); 137 $('.slick-slider').slick('slickGoTo', 0).click(); 138 }); 139 140 $(".ulp .filter .filter-item").first().click(); 141 142 $("#ulp-tabs-block").each(function () { 143 $(".property-logo-img img:first-child").addClass("flp-pmc-logo"); 144 }); 145 146 // ========== Home Page Amenities Tabs ========== 147 $(".ulp .swifty-tabs-stage .swifty-tab-content").hide(); 148 149 // -- Change tab class and display content 150 $(".ulp .swifty-tabs-nav a").on("click", function (event) { 151 event.preventDefault(); 152 $(".swifty-tabs-nav li, .swifty-tabs-nav li a, .ulp-tab-image").removeClass( 153 "active" 154 ); 155 $(this).parent().addClass("active"); 156 $(this).addClass("active"); 157 158 $(".swifty-tabs-stage div.swifty-tab-content").hide().fadeOut(500); 159 var tabShow = $(this).attr("href"); 160 var tabImg = tabShow.replace("#", ""); 161 $("." + tabImg + "-image").addClass("active"); 162 $(tabShow).show().fadeIn(); 163 }); 164 165 $(window).on("load", function () { 166 $(".ulp .swifty-tabs-nav").each(function () { 167 // alert("ok"); 168 $("li:first a", this).click(); 169 }); 170 }); 171 172 // ========== Show More Less Button ========== 173 174 // $(document).ready(function () { 175 // $(".flp-filters-trigger").click(function (e) { 176 // e.preventDefault(); 177 // $(".more-flp-filters").slideToggle("slow"); 178 // $(".reset-new-flp-filtrers").slideToggle("slow"); 179 180 // $(".floorplan-filters").toggleClass("active"); 181 // $(this).toggleClass("active"); 182 // }); 183 // }); 184 185 186 187 // $("section.floorplans-listing .single-floorplan").each(function () { 188 // var defaultFlpImg = $(this).attr("default-img"); 189 // $(".flp-swaps a.swap-" + defaultFlpImg, this).click(); 190 // }); 191 192 193 // $(".mobile-home-flp-filter select").change(function () { 194 // var bedval = $(this).val(); 195 // $( 196 // '.flp-slider-tab .filter .filter-item[data-filter="' + bedval + '"]' 197 // ).click(); 198 // }); 199 200 // New Floor Plans filtering 201 function flpLoop() { 202 var i = 1; 203 $(".single-floorplan") 204 .not(".bed-no-match") 205 .not(".area-no-match") 206 .not(".price-no-match") 207 .each(function () { 208 if (i % 2 == 0) { 209 $(this).removeClass("odd").addClass("even"); 210 } else { 211 $(this).removeClass("even").addClass("odd"); 212 } 213 // console.log(i); 214 i++; 215 }); 216 } 217 flpLoop(); 218 219 $("select.flp-bedrooms").change(function () { 220 var bedVal = $(this).val(); 221 $(".single-floorplan").addClass("bed-no-match"); 222 $(".single-floorplan." + bedVal + "").removeClass("bed-no-match"); 223 window.scrollBy(0, 1); 224 window.scrollBy(0, -1); 225 flpLoop(); 226 if ($("select.sitemap-bedrooms-filter").length) { 227 $("select.sitemap-bedrooms-filter").val(bedVal); 228 $("select.sitemap-bedrooms-filter").change(); 229 $("select.sitemap-bedrooms-filter").niceSelect("update"); 230 } 231 }); 232 if ($(".sitemap-area-range").length && $(".flp-min-sqft").length) { 233 $("select#flp-max-sqft").remove(); 234 $("select.flp-min-sqft").empty(); 235 var newoptions = $(".sitemap-area-range").html(); 236 $("select.flp-min-sqft").html(newoptions); 237 238 $("select.flp-min-sqft").change(function () { 239 var sqftRange = $(this).val(); 240 $(".single-floorplan").addClass("area-no-match"); 241 if (sqftRange == "all-areas") { 242 $(".single-floorplan").removeClass("area-no-match"); 243 } else { 244 var sqftArray = sqftRange.split("-"); 245 var minValue = Math.min(...sqftArray); 246 var maxValue = Math.max(...sqftArray); 247 $(".single-floorplan").each(function () { 248 var flpSq = $(this).attr("listing-sqft"); 249 if (parseInt(flpSq) >= minValue && parseInt(flpSq) <= maxValue) { 250 $(this).removeClass("area-no-match"); 251 } 252 }); 253 } 254 $(".sitemap-area-range").val(sqftRange); 255 $(".sitemap-area-range").change(); 256 $(".sitemap-area-range").niceSelect("update"); 257 }); 258 } else if ($(".flp-min-sqft").length) { 259 $("select.flp-min-sqft").change(function () { 260 var minSqft = $(this).val(); 261 var maxSqft = $(".flp-max-sqft").val(); 262 $(".single-floorplan").addClass("area-no-match"); 263 if (maxSqft == "all-max-sq") { 264 if (minSqft == "all-min-sq") { 265 $(".single-floorplan").removeClass("area-no-match"); 266 } else { 267 $(".single-floorplan").each(function () { 268 var flpSq = $(this).attr("listing-sqft"); 269 if (parseInt(flpSq) >= parseInt(minSqft)) { 270 $(this).removeClass("area-no-match"); 271 } 272 }); 273 } 274 } else { 275 if (minSqft == "all-min-sq") { 276 $(".single-floorplan").each(function () { 277 var flpSq = $(this).attr("listing-sqft"); 278 if (parseInt(flpSq) <= parseInt(maxSqft)) { 279 $(this).removeClass("area-no-match"); 280 } 281 }); 282 } else { 283 $(".single-floorplan").each(function () { 284 var flpSq = $(this).attr("listing-sqft"); 285 if ( 286 parseInt(flpSq) >= parseInt(minSqft) && 287 parseInt(flpSq) <= parseInt(maxSqft) 288 ) { 289 $(this).removeClass("area-no-match"); 290 } 291 }); 292 } 293 } 294 flpLoop(); 295 }); 296 297 $("select.flp-max-sqft").change(function () { 298 var maxSqft = $(this).val(); 299 var minSqft = $(".flp-min-sqft").val(); 300 $(".single-floorplan").addClass("area-no-match"); 301 if (minSqft == "all-min-sq") { 302 if (maxSqft == "all-max-sq") { 303 $(".single-floorplan").removeClass("area-no-match"); 304 } else { 305 $(".single-floorplan").each(function () { 306 var flpSq = $(this).attr("listing-sqft"); 307 if (parseInt(flpSq) <= parseInt(maxSqft)) { 308 $(this).removeClass("area-no-match"); 309 } 310 }); 311 } 312 } else { 313 if (maxSqft == "all-max-sq") { 314 $(".single-floorplan").each(function () { 315 var flpSq = $(this).attr("listing-sqft"); 316 if (parseInt(flpSq) >= parseInt(minSqft)) { 317 $(this).removeClass("area-no-match"); 318 } 319 }); 320 } else { 321 $(".single-floorplan").each(function () { 322 var flpSq = $(this).attr("listing-sqft"); 323 if ( 324 parseInt(flpSq) >= parseInt(minSqft) && 325 parseInt(flpSq) <= parseInt(maxSqft) 326 ) { 327 $(this).removeClass("area-no-match"); 328 } 329 }); 330 } 331 } 332 flpLoop(); 333 }); 334 } 335 336 if ($(".sitemap-price-range").length && $(".flp-min-price").length) { 337 $("select#flp-max-price").remove(); 338 $("select.flp-min-price").empty(); 339 var newoptions = $(".sitemap-price-range").html(); 340 $("select.flp-min-price").html(newoptions); 341 342 $("select.flp-min-price").change(function () { 343 var priceRange = $(this).val(); 344 $(".single-floorplan").addClass("price-no-match"); 345 if (priceRange == "all-prices") { 346 $(".single-floorplan").removeClass("price-no-match"); 347 } else { 348 var priceArray = priceRange.split("-"); 349 var minValue = Math.min(...priceArray); 350 var maxValue = Math.max(...priceArray); 351 $(".single-floorplan").each(function () { 352 var flpSq = $(this).attr("listing-price"); 353 alert(flpSq); 354 if (parseInt(flpSq) >= minValue && parseInt(flpSq) <= maxValue) { 355 $(this).removeClass("price-no-match"); 356 } 357 }); 358 } 359 $(".sitemap-price-range").val(sqftRange); 360 $(".sitemap-price-range").change(); 361 $(".sitemap-price-range").niceSelect("update"); 362 }); 363 } else if ($(".flp-min-price").length) { 364 $("select.flp-min-price").change(function () { 365 var minPrice = $(this).val(); 366 var maxPrice = $(".flp-max-price").val(); 367 $(".single-floorplan").addClass("price-no-match"); 368 if (maxPrice == "all-max-pr") { 369 if (minPrice == "all-min-pr") { 370 $(".single-floorplan").removeClass("price-no-match"); 371 } else { 372 $(".single-floorplan").each(function () { 373 var flpSq = $(this).attr("listing-price"); 374 if (parseInt(flpSq) >= parseInt(minPrice)) { 375 $(this).removeClass("price-no-match"); 376 } 377 }); 378 } 379 } else { 380 if (minPrice == "all-min-pr") { 381 $(".single-floorplan").each(function () { 382 var flpSq = $(this).attr("listing-price"); 383 if (parseInt(flpSq) <= parseInt(maxPrice)) { 384 $(this).removeClass("price-no-match"); 385 } 386 }); 387 } else { 388 $(".single-floorplan").each(function () { 389 var flpSq = $(this).attr("listing-price"); 390 if ( 391 parseInt(flpSq) >= parseInt(minPrice) && 392 parseInt(flpSq) <= parseInt(maxPrice) 393 ) { 394 $(this).removeClass("price-no-match"); 395 } 396 }); 397 } 398 } 399 flpLoop(); 400 }); 401 402 $("select.flp-max-price").change(function () { 403 var maxPrice = $(this).val(); 404 var minPrice = $(".flp-min-price").val(); 405 $(".single-floorplan").addClass("price-no-match"); 406 if (minPrice == "all-min-pr") { 407 if (maxPrice == "all-max-pr") { 408 $(".single-floorplan").removeClass("price-no-match"); 409 } else { 410 $(".single-floorplan").each(function () { 411 var flpSq = $(this).attr("listing-price"); 412 if (parseInt(flpSq) <= parseInt(maxPrice)) { 413 $(this).removeClass("price-no-match"); 414 } 415 }); 416 } 417 } else { 418 if (maxPrice == "all-max-pr") { 419 $(".single-floorplan").each(function () { 420 var flpSq = $(this).attr("listing-price"); 421 if (parseInt(flpSq) >= parseInt(minPrice)) { 422 $(this).removeClass("price-no-match"); 423 } 424 }); 425 } else { 426 $(".single-floorplan").each(function () { 427 var flpSq = $(this).attr("listing-price"); 428 if ( 429 parseInt(flpSq) >= parseInt(minPrice) && 430 parseInt(flpSq) <= parseInt(maxPrice) 431 ) { 432 $(this).removeClass("price-no-match"); 433 } 434 }); 435 } 436 } 437 flpLoop(); 438 }); 439 } 440 441$(".ulp-amenities-grid li").hover(function(){ 442 var image = $(this).data("image"); 443 var id = $(this).parent().closest('.swifty-tab-content').attr('id'); 444 $('.'+id+'-image img').hide(); 445 var arr=[]; 446 $('.'+id+'-image img').each(function(i,item){ 447 arr.push($(item).data('image')); 448 }); 449 if (jQuery.inArray(image, arr) == -1 ){ 450 $('.'+id+'-image img[data-image="default"]').show(); 451 } 452 else{ 453 $('.'+id+'-image img[data-image="'+image+'"]').show(); 454 } 455 }); 456 457 $(".ulp-amenities-grid li").hover(function(){ 458 var image = $(this).data("image"); 459 var id = $(this).parent().closest('.swifty-tab-content-c').attr('id'); 460 //alert(id); 461 $('.'+id+'-image img').hide(); 462 var arr=[]; 463 $('.'+id+'-image img').each(function(i,item){ 464 arr.push($(item).data('image')); 465 }); 466 if (jQuery.inArray(image, arr) == -1 ){ 467 $('.'+id+'-image img[data-image="default"]').show(); 468 } 469 else{ 470 $('.'+id+'-image img[data-image="'+image+'"]').show(); 471 } 472 }); 473//this function used for remove attr for homepage intro section image 474$(document).ready(function () { 475 $('.ulp-home-intro .ulp-slide-bg a').removeAttr('href').removeAttr('tabindex'); 476}); 477})(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.