1//This is added inlined on the root 2// $('<div class="contact-info"><a href="tel:949-630-4120" class="contact-icons"><i class="fa fa-phone" aria-hidden="true"></i></a><a href="mailto:[email protected]" class="contact-icons"><i class="fa fa-envelope" aria-hidden="true"></i></a></div>').insertAfter('.MyProfile_Member'); 3// $('<div class="contact-info"><a href="tel:949-630-4120" class="contact-icons"><i class="fa fa-phone" aria-hidden="true"></i></a><a href="mailto:[email protected]" class="contact-icons"><i class="fa fa-envelope" aria-hidden="true"></i></a></div>').insertAfter('#main-menu'); 4 5$(document).ready(function() { 6 7 const iframe = document.getElementById("module"); 8 if (iframe) { 9 const body = document.getElementsByTagName("body")[0]; 10 body.classList.add("module-page"); 11 } 12 var $header = $('header'); 13 var $pageContent = $('.page-content'); 14 var $body = $('body'); 15 var $videoWidget = $pageContent.find('section.video-widget'); 16 var $heroTextWidget = $pageContent.find('section.cho-hero-textwidget'); 17 18 if ($videoWidget.length === 0 && $heroTextWidget.length === 0) { 19 $header.addClass('no-banner'); 20 } 21 if ($header.hasClass('no-banner')) { 22 $body.addClass('module-page'); 23 }else return 24 25 //video banner no youtube branding 26 setTimeout(function() { 27 $('div.videocontent').each(function() { 28 var videoId = $(this).find('iframe').attr('src').match(/embed\/([\w-]+)/)[1]; 29 $(this).html('<div class="video-banner-new" style="position: relative; box-sizing: border-box; width: 124%; transform:translateX(-10%); padding-left: 0; padding-right: 0;">\n' + 30 ' <div class="video-container" style="position: relative; padding-bottom: 47%; height: 0; overflow: hidden;">\n' + 31 ' <iframe class="inner" allowfullscreen="1"\n' + 32 ' allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"\n' + 33 ' title="Website Banner Video"\n' + 34 ' src="https://www.youtube-nocookie.com/embed/' + videoId + '?playlist=' + videoId + '&iv_load_policy=3&enablejsapi=1&disablekb=1&autoplay=1&controls=0&showinfo=0&rel=0&loop=1&mute=1&wmode=transparent&widgetid=1"\n' + 35 ' allowfullscreen="" class="intrinsic-ignore"\n' + 36 ' style="opacity: 1; visibility: visible; width: 150%; height: 100%; max-height: none; max-width: none; position: absolute; top: 0px; left: 50%; transform: translateX(-50%); display: block;"\n' + 37 ' id="iframeVideo" data-gtm-yt-inspected-4="true" title="Youtube Banner" width="100%" height="100%"></iframe>\n' + 38 ' </div>\n' + 39 '</div>'); 40 }); 41 }, 100); 42 43}); 44 45$( document ).ready(function() { 46 47 //ensure the text block is larger then the image 48 $( '.basic-block.theme2:not(.no-image)' ).each(function() { 49 if($(window).innerWidth() >= 1023) { 50 let parentHeight = $(this).height(); 51 let newHeight = parseInt(parentHeight) + 80 52 $(this).find('.text-block').css('min-height' , newHeight) 53 } 54 55 else return 56 }) 57 58 //adjusts title and summary, 59 $('body:not(.EditMode) .basic-block:is(.theme1, .theme2):not(.background-image, .center, .no-image) .img-block').css('background-image',''); 60 $('body:not(.EditMode) .basic-block:is(.theme1, .theme2):not(.background-image,.center) .img-block img').removeClass( "hidden" ); 61 $('section[id*="TitleAndSummary"]:not(.background-image, .center) .img-block.col-sm-push-6').addClass('image-right'); 62 $('section[id*="TitleAndSummary"]:not(.background-image, .center) .img-block:not(.col-sm-push-6)').addClass('image-left'); 63 64 //adds a no clas to title and summary text only variant 65 $('.basic-block:has(.img-block.hidden)').each(function() { 66 $(this).addClass('no-image'); 67 }); 68 69 //Add button to image and text QL 70 $('.card-widget:not(.btn-menu) .cho-quicklink-tile a:is([href^="/"],[href^="http"], [href^="~/"])').each(function () { 71 72 const btnCheck = $(this).find('.cho-quicklink-para').text().includes('cta'); //check for custom wrapper of cta for if 73 const regex = /(.*)(<?<cta>)(.*)(<?<\/cta>)(.*)/gm; //check logic 74 const subst =`$1<span class="btn">$3</span>$5`; 75 76 if(btnCheck) { 77 const result = $(this).find('.cho-quicklink-para').text().replace(regex, subst) 78 $(this).find('.cho-quicklink-para').html(result) 79 80 }else{ 81 $(this).find('div[class*="cho-quicklink-content"]').append('<span class="btn">Learn More </span>') 82 } 83 84 }); 85 86 $('.card-widget.btn-menu .cho-quicklink-tile a:is([href^="/"], [href^="http"], [href^="~/"])').each(function () { 87 88 $(this).find('div[class*="cho-quicklink-content"]').append('<span class="btn">See Menu </span>') 89 90 }); 91 92 93 94 95 // slider 96 97 $('body:not(.EditMode) .slider .cho-quicklink-tile').each(function(){ 98 if($(this).css('display') == 'none') { 99 $(this).remove(); 100 } else return 101 }); 102 $('.remove-3rd .cho-quicklink-tile.cards-3:nth-of-type(3)').each(function(){ 103 $(this).remove(); 104 }); 105 106 // $('body:not(.EditMode) .slider .cho-quicklink-tile').wrapAll('<section class="slider-container"/>'); 107 108 $('body:not(.EditMode) .slider').each(function(){ 109 $(this).nextUntil('section:not(.slider)').addBack().find('.cho-quicklink-tile').wrapAll('<section class="slider-container"/>') 110 }); 111 112 $('.slider-container').slick({ 113 speed: 300, 114 slidesToShow: 3, 115 slidesToScroll: 3, 116 dots: true, 117 arrows:false, 118 infinite: false, 119 adaptiveHeight: true, 120 responsive: [ 121 { 122 breakpoint: 1023, 123 settings: { 124 slidesToShow: 2, 125 slidesToScroll: 2 126 } 127 }, 128 { 129 breakpoint: 768, 130 settings: { 131 slidesToShow: 1, 132 slidesToScroll: 1 133 } 134 } 135 ] 136 137 });
138 //makes each column in the slider match height 139 $( '.slider-container .slick-track' ).each(function() { 140 let parentHeight = $(this).height(); 141 $(this).css('height' , parentHeight) 142 }) 143 //removes empty section 144 $('.card-widget.slider').each(function() { 145 if($(this).has('.slider-container').length > 0) { 146 return 147 }else { 148 $(this).remove() 149 } 150 }); 151 152 //gallery loader 153 $('.gallery-slider .inner-wrap').append('<div class="loader"><div class="loader-animation" /></div>'); 154 155 //gallery slider 156 setTimeout(() => { 157 $('.gallery-slider .loader').remove() 158 }, 1500); 159 160 setTimeout(() => { 161 $('.gallery-slider .my-gallery').slick({ 162 speed: 300, 163 slidesToShow: 3, 164 slidesToScroll: 3, 165 dots: true, 166 arrows:false, 167 infinite: false, 168 adaptiveHeight: true, 169 responsive: [ 170 { 171 breakpoint: 1023, 172 settings: { 173 slidesToShow: 2, 174 slidesToScroll: 2 175 } 176 }, 177 { 178 breakpoint: 768, 179 settings: { 180 slidesToShow: 1, 181 slidesToScroll: 1 182 } 183 } 184 ] 185 186 }); 187 188 }, 500); 189 190 191//events 192//adding default image to upcoming events and remove inline sizes 193$('.upcoming-event-wrapper img').each( function(e){ 194 const checkValue = $(this).attr('src'); 195 $(this).attr('style',''); 196if(checkValue === ''){ 197 $(this).attr('src', '/getmedia/178c3dd2-80b8-48e2-91dd-f4b8c4fabe7a/BBC_4C_logo-temp.aspx') 198}else{return} 199}); 200 201 202//adds slider to the timeline 203$('body:not(.EditMode) .timeline').wrapAll('<div class="timeline-slider-container"/>'); 204 205$('.timeline-slider-container').slick({ 206 speed: 300, 207 slidesToShow: 1, 208 slidesToScroll: 1, 209 dots: true, 210 arrows:false, 211 infinite: true, 212 fade:true, 213 cssEase: 'linear', 214 adaptiveHeight: true 215}); 216 217//titmeline 218$('.slick-dotted.timeline-slider-container .slick-dots').insertBefore('.timeline-slider-container .slick-list'); 219 220//adds title to a doted timeline that navigates between years 221$('.timeline-slider-container').each(function() { 222 $(this).find('section.timeline').each(function(){ 223 let parentID =$(this).attr('id'); 224 let parentTitle = $(this).find('h2[id*="Title"]').text(); 225 226 $(`.timeline-slider-container`).find(`.slick-dots li button[aria-controls="${parentID}"]`).text(parentTitle) 227 228 }); 229 230}); 231 232//custom text area and gallery slider side by side, must have text area first and use custom class to move it to right 233$('body:not(.EditMode) .basic-text-area.w-50').each(function(){ 234 $(this).next('body:not(.EditMode) .gallery-slider.w-50').addBack().wrapAll('<section class="text-gallery-50-50" />'); 235}) 236 237 238 //custom footer 239 $('div[id*="2RowFooter_divLogoContainer"]').insertBefore('footer div[id$="divCol1"]'); 240 $('div.ft-contact-wrapper').children().appendTo('footer div[id$="divCol1"]'); 241 $('footer .ft-social-wrapper').appendTo('footer div[id$="divCol3"]'); 242 $('div.ft-contact-wrapper').removeClass('col-xs-12 col-sm-6'); 243 244 //remove the address title 245 $('footer address a').each(function() { 246 // get element text 247 var text = $(this).text(); 248 // modify text 249 text = text.replace('Balboa Bay Club', ''); 250 // update element text 251 $(this).text(text); 252 }); 253 254 //toggle functionality for footer links 255 $('footer div[id$="divCol2"] h5').each(function() { 256 257 $(this).append('<a class="toggle-btn" title="button" aria-label="Open and Close Link Menu"><i class="fa fa-angle-right" aria-hidden="true"></i></a>'); 258 259 $(this, '.toggle-btn').click(function() { 260 $(this).parent().toggleClass("down"); 261 $(this).find('i.fa').toggleClass(function() { 262 if($(this).is( ".fa-angle-down")) { 263 return $(this).addClass("fa-angle-right").removeClass("fa-angle-down") 264 }else{ 265 return $(this).addClass("fa-angle-down").removeClass("fa-angle-right") 266 } 267 }); 268 269 }); 270}); 271 272 273 274 275 276 277});
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.