1(function ($) { 2 3 $(document).ready(function(){ 4 $('.block-b, .block-c, .block-d, .block-e, .block-f').slick({ 5 dots: true, 6 infinite: true, 7 speed: 500, 8 fade: true, 9 cssEase: 'linear', 10 autoplay: true, 11 loop: true, 12 dots: false, 13 prevArrow: false, 14 nextArrow: false 15 }); 16 }); 17 18$(document).ready(function() { 19 tha_shadowboxHandling(); 20 tha_mainMenuDrops(); 21 tha_mobileMenu(); 22 tha_mainNavResizing(); 23 24 $('.sbvideo a').click(function (e) { 25 e.preventDefault(); 26 let url = $(this).attr('href'); 27 28 Shadowbox.open( { content: url, 29 type : "iframe", 30 player : "iframe", 31 title : "", 32 height : 500, 33 width : 850 34 }); 35 }); 36 37 $('.financials-drop').click(function (e) { 38 e.preventDefault(); 39 40 if ($(this).hasClass('up')) { 41 $(this).removeClass('up'); 42 $('#financials-data').slideUp(); 43 } else { 44 $(this).addClass('up'); 45 $('#financials-data').slideDown(); 46 } 47 }); 48 49 $('#close-financials').click(function() { 50 $('#financials-data').slideUp(); 51 $('.financials-drop').removeClass('up'); 52 }); 53 54 55 if ($('h1.tribe-events-page-title').length) { 56 //console.log($('.tribe-events-page-title').text()); 57 $('.page-title').empty().text($('h1.tribe-events-page-title').text()); 58 } 59 60 if ($('body.shadowbox').length) { 61 $('body.shadowbox #page-content a').each(function(index, element) { 62 var href = $(element).attr('href'); 63 64 if (href) { 65 if (href.indexOf('http') !== -1) { 66 $(element).attr('data-href',href).click(function () { 67 if ($(element).attr('target') === '_blank') { 68 window.parent.open($(this).attr('data-href'),"_blank"); 69 } else { 70 window.parent.open($(this).attr('data-href'),"_self"); 71 } 72 73 window.parent.Shadowbox.close(); 74 }); 75 $(element).removeAttr('href').css({ 76 'cursor':'pointer', 77 'text-decoration':'underline' 78 }); 79 } 80 } 81 }); 82 } 83 84 if ($('#drop-content').length) { 85 $('.drop-title').click(function () { 86 var $parent = $(this).parent(); 87 var $plus = $(this).find('.plus'); 88 var $content = $parent.find('.drop-content'); 89 90 if ($parent.hasClass('open')) { 91 $content.slideUp(); 92 $plus.removeClass('open'); 93 $parent.removeClass('open'); 94 } else { 95 $content.slideDown(); 96 $plus.addClass('open'); 97 $parent.addClass('open'); 98 } 99 }); 100 } 101 102 $('.cl-search-icon').click(function () { 103 if (!$('#search-form-overlay').is(':visible')) { 104 $('#search-form-overlay').fadeIn(); 105 } 106 }); 107 $('.icon-cancel').click(function () { 108 if ($('#search-form-overlay').is(':visible')) { 109 $('#search-form-overlay').fadeOut(); 110 } 111 }); 112}); 113 114//functions 115function tha_mainNavResizing() { 116 $('#main-menu').data('size','big'); 117 118 //console.log(mobileCheck); 119 if ($(window).width() > 1000) { 120 $(window).scroll(function () { 121 if($(document).scrollTop() > 30){ 122 if($('#main-menu').data('size') == 'big'){ 123 $('#main-menu').data('size','small').addClass('scrolled'); 124 } 125 } else { 126 if($('#main-menu').data('size') == 'small'){ 127 $('#main-menu').data('size','big').removeClass('scrolled'); 128 } 129 } 130 }); 131 } 132} 133 134function tha_mobileMenu() { 135 $('#main-menu ul.menu > li.menu-item-has-children').prepend('<span class="plus"><span></span><span></span></span>'); 136 $('#main-menu span.plus').click(function() { 137 if ($(this).hasClass('open')) { 138 $(this).removeClass('open').parent().children('ul').slideUp('fast'); 139 } else { 140 $(this).addClass('open').parent().children('ul').slideDown('fast'); 141 } 142 }); 143 144 $('#hamburger').click(function () { 145 if ($('#main-menu').is(':visible')) { 146 $('#main-menu').slideUp(); 147 } else { 148 $('#main-menu').slideDown(); 149 } 150 151 $(this).toggleClass('open'); 152 }); 153} 154 155function tha_mainMenuDrops() { 156 function tha_addMenu() { 157 var $this = $(this); 158 159 if ($(window).width() > 975) { 160 if (!$this.hasClass('open') && $this.hasClass('menu-item-has-children')) { 161 if ($('#main-menu ul.menu > li.open').length) { 162 $('#main-menu ul.menu > li.open').removeClass('open').find('ul').slideUp(400); 163 } 164 165 $this.addClass('open').find('ul').slideDown(400); 166 } 167 168 if (!$this.hasClass('menu-item-has-children')) { 169 $('#main-menu ul.menu > li.open').removeClass('open').find('ul').slideUp(400); 170 } 171 } 172 } 173 174 function tha_mainOut() { 175 if ($('#main-menu ul.menu > li.open').length) { 176 $('#main-menu ul.menu > li.open').removeClass('open').find('ul').slideUp(400); 177 } 178 } 179 180 function tha_removeMenu() { 181 /*if ($(window).width() > 975) { 182 $(this).find('ul').slideUp(400); 183 }*/ 184 } 185 186 $("#main-menu ul.menu > li").hoverIntent(tha_addMenu, tha_removeMenu); 187 $("#main-menu").hoverIntent(tha_removeMenu, tha_mainOut); 188} 189 190function tha_shadowboxHandling() { 191 Shadowbox.init({ 192 overlayColor : '#333', 193 overlayOpacity : 0.8, 194 onClose : tha_SBClose, 195 onOpen : tha_SBOpen 196 }); 197 198 function tha_SBOpen() { 199 $('body').css({ 200 'height' : '100%', 201 'overflow' : 'hidden' 202 }); 203 } 204 205 function tha_SBClose() { 206 $('body').removeAttr('style'); 207 } 208} 209 210/* Counter Scripts */ 211jQuery(document).ready(function($) { 212 $('.counter').counterUp({ 213 delay: 10, 214 time: 1000 215 }); 216}); 217 218// Insert Tulsa Race Massacre URL 219$(document).ready(function(){ 220 221 var site = window.location.hostname; 222 var before = '<li class="page_item"><a href="https://'; 223 var after = '" style="user-select: none;">Project-Based Voucher Applications</a></li>';
224 var slug = before + site + "/housing-options/project-based-vouchers/" + after; 225 226 $( slug ).insertAfter( '.page-item-495' ); 227 228 var links = '<a href="#planning" id="developement-planning" class="circle-graphic-link"></a><a href="#construction" class="circle-graphic-link" id="developement-construction"></a><a href="#relocation" class="circle-graphic-link" id="developement-relocation"></a><a href="#project-financing" class="circle-graphic-link" id="developement-project-financing"></a><a href="#pre-development" id="developement-pre-development" class="circle-graphic-link"></a>'; 229 230 $( links ).insertAfter( '#circle-image img' ); 231 232}); 233 234})(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.