1jQuery(document).ready(function () { 2 3jQuery('.ccclosethis').click(function(){ 4jQuery('.overlayayay').hide(); 5jQuery('.lightboxit').hide(); 6}); 7 8 9jQuery('.post-138408 .single_add_to_cart_button').click(function(e){ 10 e.preventDefault(); 11 window.open ( "mailto:[email protected]", '_top'); 12}); 13 14 15jQuery("body").on("submit", "form", function() { 16 jQuery(this).submit(function() { 17 return false; 18 }); 19 return true; 20}); 21 22 23 24jQuery('.hp-grey-bxs figcaption').hover(function(){ 25 jQuery(this).siblings('.opacitycover').addClass('opacityhover') 26},function(){ 27 jQuery(this).siblings('.opacitycover').removeClass('opacityhover') 28}); 29 30jQuery('.hp-bx-1 .hp-bx-innr').hover(function(){ 31 jQuery('.hp-bx-1 .tooltiptext').toggle(); 32 jQuery('.hp-bx-1 .middle-img-hp').toggle(); 33 jQuery('.hp-bx-1 .bx-txt').toggle(); 34}); 35 36jQuery('.hp-bx-2 .hp-bx-innr').hover(function(){ 37 jQuery('.hp-bx-2 .tooltiptext').toggle(); 38 jQuery('.hp-bx-2 .middle-img-hp').toggle(); 39 jQuery('.hp-bx-2 .bx-txt').toggle(); 40}); 41 42jQuery('.hp-bx-3 .hp-bx-innr').hover(function(){ 43 jQuery('.hp-bx-3 .tooltiptext').toggle(); 44 jQuery('.hp-bx-3 .middle-img-hp').toggle(); 45 jQuery('.hp-bx-3 .bx-txt').toggle(); 46}); 47 48jQuery('.hp-bx-4 .hp-bx-innr').hover(function(){ 49 jQuery('.hp-bx-4 .tooltiptext').toggle(); 50 jQuery('.hp-bx-4 .middle-img-hp').toggle(); 51 jQuery('.hp-bx-4 .bx-txt').toggle(); 52}); 53 54 55jQuery('.move-to-slider').appendTo('#soliloquy-container-94733'); 56 57if (jQuery(".postid-13480")[0]){ 58 testingvalidationchecks(); 59} 60 61 62jQuery('#post-wrap').removeClass('opaque'); 63 64 65jQuery('.search-click-tab').click(function(){ 66 idtt=jQuery(this).attr('id'); 67 jQuery('.search-click-tab').removeClass('active'); 68 jQuery(this).addClass('active'); 69 jQuery('.search .site-search-result').hide(); 70 if (idtt == 'Venues'){jQuery('.search .site-search-result.tribe_venue').show(); } 71 if (idtt == 'Events'){jQuery('.search .site-search-result.tribe_events').show();} 72 if (idtt == 'Conferencing'){jQuery('.search .site-search-result.conferencing-venues').show();} 73 if (idtt == 'Products'){jQuery('.search .site-search-result.product').show();} 74 if (idtt == 'Other'){jQuery('.search .site-search-result.post').show();jQuery('.search .site-search-result.places').show();jQuery('.search .site-search-result.page').show();} 75 if (idtt != 'vic'){jQuery('.search .site-search-result.vic').hide()} 76 if (idtt == 'vic'){jQuery('.search .site-search-result.vic').show()} 77 78}); 79 80jQuery("#service_providers-Hospitality").click(function(){ 81 jQuery(".venue.Hospitality").show(); 82 jQuery(".venue.Caterers").hide(); 83 jQuery(".venue.Teambuilding").hide(); 84}); 85jQuery("#service_providers-Teambuilding").click(function(){ 86 jQuery(".venue.Hospitality").hide(); 87 jQuery(".venue.Caterers").hide(); 88 jQuery(".venue.Teambuilding").show(); 89}); 90jQuery("#service_providers-Caterers").click(function(){ 91 jQuery(".venue.Hospitality").hide(); 92 jQuery(".venue.Caterers").show(); 93 jQuery(".venue.Teambuilding").hide(); 94}); 95 96 97 98 99function run_search_ajax(){ 100 jQuery('.search-page-filters').addClass('opaque'); 101 jQuery('.venuesheading').addClass('opaque'); 102 jQuery('.venuehotbox').addClass('opaque'); 103 var category = jQuery("#conf_search_category").val(); 104 var capacity = parseInt(jQuery(".search-cap").val()); 105 var text = jQuery("#conf_search_text").val(); 106 var layout = jQuery('.chkboxfltr:checked').val(); 107 if (typeof layout === 'undefined'){layout='all';} 108 var data = { 109 action: 'conference_search_results_ajax', 110 text: text, 111 category: category, 112 capacity: capacity, 113 layout: layout, 114 }; 115 jQuery.post(conference_search_resultsAjax.ajaxurl, data, function(response) { 116 jQuery('.search_results').empty(); 117 parsedData = jQuery.parseJSON(response) 118 var stringToAppend = ''; 119 if (response == 0){ 120 stringToAppend =" <div class='no-results'>No Results Found</div>"; 121 } 122 123 else { 124 jQuery.each(parsedData, function(index, data){ 125 var tempstring =''; 126 jQuery.each(data['filter_tags'], function(i,d){ 127 tempstring +=' ' + d['slug']; 128 });
129 stringToAppend += "<div class='venuehotbox "+tempstring+"'><div class='' id='post-"+index+"'><div class='entry-content'><a href='"+data['permalink']+"'><div class='featured-image'>"+data['thumbnail']+"</div></a><a href='"+data['permalink']+"'><h2 class='entry-title'>"+data['title']+"</h2></a><div class='overviewfacts archiveone'><ul class='stats'></ul></div></div></div></div>"; 130 131 }) 132 } 133 jQuery('.search-page-filters').removeClass('opaque'); 134 jQuery('.venuesheading').removeClass('opaque'); 135 jQuery('.search_results').append(stringToAppend); 136 jQuery('.conf-srch-fltrs').change(); 137 138 }); 139} 140 141jQuery('#conf_search_category').on('change', function(){ 142 run_search_ajax(); 143}); 144jQuery('.search-cap').on('change',function(){ 145 run_search_ajax(); 146}); 147jQuery('.search-page-filters a').on('click', function(){ 148 preventDefault(); 149 run_search_ajax(); 150}); 151jQuery('#conf_search_text').on('change',function(){ 152 run_search_ajax(); 153}); 154 155 156jQuery('.chkboxfltr').on('change',function(){ 157 run_search_ajax(); 158}); 159 160jQuery('.chkboxfltr').click(function() { 161 jQuery('.chkboxfltr').not(this).prop('checked', false); 162 run_search_ajax(); 163}); 164 165 166 167jQuery('.conf-srch-fltrs').change(function(){ 168 169 if (jQuery(this).is(':checked')){ 170 jQuery('.venuehotbox:not(.'+jQuery(this).attr('id')+')').hide(); 171} 172else{ 173 jQuery('.venuehotbox:not(.'+jQuery(this).attr('id')+')').show(); 174} 175 176 if ( jQuery("div.venuehotbox:visible").length === 0 && !jQuery('.search_results').hasClass('no-results')){ 177 178 jQuery('.search_results').append("<div class='no-results'>No Results Found</div>"); 179 } 180 else 181 { 182 jQuery('.no-results').remove(); 183 } 184 185}); 186 187 188jQuery(".lomorbut").click(function(){ 189 jQuery(".roomrow").show(); 190 jQuery(this).hide(); 191}); 192 193 194 195 196//date stuf 197function get_today_formatted(today){ 198 199 var dd = today.getDate(); 200 var mm = today.getMonth()+1; //January is 0! 201 202 var yyyy = today.getFullYear(); 203 if(dd<10){ 204 // dd='0'+dd; 205 } 206 if(mm<10){ 207 // mm='0'+mm; 208 } 209 var today = new Array(); //make associative 210 today.push(yyyy); 211 today.push(mm); 212 today.push(dd); 213 return today; 214} 215 216function two_weeks_ago(date_object) { 217 var two_weeks = 1209600000; // two weeks in milliseconds 218 219 var total = date_object.getTime() - two_weeks; 220 var date = new Date(total); 221 222 var past = new Array(); 223 past.push(date.getFullYear()); 224 past.push(date.getMonth() + 1); 225 past.push(date.getDate()); 226 return past; 227} 228 229 230function testingvalidationchecks(){ 231 var d = new Date(); 232 var f_d = get_today_formatted(d); 233 var x = two_weeks_ago(d); 234 235 236 var past_month = x[1]; 237 var month = f_d[1]; 238 var past_day = x[2]; 239 var day = f_d[2]; 240 var past_year = x[0]; 241 var year = f_d[0]; 242 243 244 var the_val = jQuery('#EventStartDate').val();// = date in format day-month-year 245 var selected_day = the_val.substr(0, the_val.indexOf('-')); 246 var x = the_val.replace(selected_day,''); var x = x.substring(1); 247 var selected_month = x.substr(0, x.indexOf('-')); 248 var selected_year = the_val.substr(the_val.length - 4); 249 if(selected_day<10){ 250 selected_day='0'+selected_day; 251 } 252 if(selected_month<10){ 253 selected_month='0'+selected_month; 254 255 } 256 if(past_day<10){ 257 past_day='0'+past_day; 258 } 259 if(past_month<10){ 260 past_month='0'+past_month; 261 262 } 263 264 265var final_formatted_selected_date = selected_year + '-' + selected_month + '-' + selected_day ;//+ 'Z'; 266var final_formatted_past_date = past_year + '-' + past_month + '-' + past_day;// + 'Z'; 267var final_formatted_today_date = year + '-' + month + '-' + day;// + 'Z'; 268 269var to_compare_date_selected =new Date(final_formatted_selected_date); 270var to_compare_date_past = new Date(final_formatted_past_date); 271var to_compare_date_today = new Date(final_formatted_today_date); 272 273var days_between = numDaysBetween(to_compare_date_selected, to_compare_date_today); //must be more than 14 274console.log(days_between); 275if (days_between >=5){ 276 jQuery(".hidemew").hide(); 277 jQuery(".eventalert2").hide(); 278 jQuery('.events-community-submit').prop('disabled', false); 279 //console.log('more'); 280} 281else{ 282 jQuery(".hidemew").show(); 283 jQuery(".eventalert2").show(); 284 jQuery('.events-community-submit').prop('disabled', true); 285// 286} 287 288} 289 290jQuery('#EventStartDate').change(function(){ 291 testingvalidationchecks(); 292}); 293 294jQuery('.events-community-submit').click(function(){ 295// jQuery('.events-community-submit').prop('disabled', true); 296}); 297 298 299function numDaysBetween (d1, d2) { 300 var diff = Math.abs(d1.getTime() - d2.getTime()); 301 return diff / (1000 * 60 * 60 * 24); 302}; 303 304 305 jQuery('.agree.main').change(function(){ 306 if(this.checked){ 307 jQuery('#tohidethis').hide(); 308 } 309 else 310 { 311 jQuery('#tohidethis').show(); 312 313 } 314 }); 315 jQuery('.newWindow').attr('target', '_blank'); 316 317 318function PrintElem(elem) 319{ 320 var mywindow = window.open('', 'PRINT', 'height=400,width=600'); 321
322 //mywindow.document.write('<html><head><title>' + document.title + '</title>'); 323 mywindow.document.write('</head><body >'); 324 // mywindow.document.write('<h1>' + document.title + '</h1>'); 325 mywindow.document.write(document.getElementById(elem).innerHTML); 326 mywindow.document.write('</body></html>'); 327 328 mywindow.document.close(); // necessary for IE >= 10 329 mywindow.focus(); // necessary for IE >= 10*/ 330 331 mywindow.print(); 332 mywindow.close(); 333 334 return true; 335} 336 337jQuery('.printit').click(function(){ 338 PrintElem('printThis'); 339}); 340 341 var x = []; 342 var temp = []; 343 jQuery('#location-carousel').slick(getslicksettings(3)); 344 // jQuery('#service_providers-location-carousel').slick(getslicksettings(4)); 345 346 347 jQuery("#venue-search").submit(function(event) { 348 event.preventDefault(); 349 jQuery(this).attr('disabled', true); 350 jQuery("#venues-to-show").empty(); 351 // jQuery('#venues-to-show').append('<div class="tribe-events-ajax-loading tribe-events-active-spinner"><img class= "tribe-events-spinner-medium" src="http://cloud4.techniqueweb.co.uk/~bra4eqacruce/wp-content/themes/experienceoxfordshire/images/spinner.gif"/></div>'); 352 var category = jQuery("#venue-search-category").val(); 353 var location = jQuery("#venue-search-location").val(); 354 var keyword = jQuery(".keyword").val(); 355 var data = { 356 action: 'venue_search', 357 keyword: keyword, 358 category: category, 359 location: location 360 }; 361 jQuery.post(venue_searchAjax.ajaxurl, data, function(response) { 362 jQuery("#venues-to-show").empty(); 363 jQuery("#venues-to-show").append( response ); 364 jQuery(this).attr('disabled', false); 365 x=[]; 366 }); 367 }); 368 369 jQuery(document).on('click','#mobile-show_filters',function(event){ 370 // jQuery("#mobile-show_filters").click(function(event){ 371 jQuery('.venue-filter-bar').attr('style','display:block; position:absolute; z-index:1002; width:86%; padding:2%; background-color:#fff'); 372 jQuery('.filter-overlay').attr('style','display:block'); 373 jQuery('.venue-filter-bar').addClass('mobile'); 374 }); 375 376 377 jQuery(".service_providers-click_tab").click(function(event){ 378 //remove the active class 379 jQuery('.service_providers-tab').removeClass('active'); 380 //add active to the new active class 381 var category = jQuery(this).attr('id'); 382 jQuery('#'+category+'-tab').addClass('active'); 383 384 classtoshow = category.replace('service_providers-', ''); 385 386 //foreach slick-slide //if has class classtoshow, show, else hide 387 388 jQuery('#service_providers-ourHolder .slick-slide').each(function(i, obj) { 389 390 if (jQuery(this).hasClass(classtoshow)){ 391 jQuery(this).show(); 392 } 393 else { 394 jQuery(this).hide(); 395 } 396 397}); 398}); 399 400 401 jQuery(".click_tab").click(function(event){ 402 //remove the active class 403 jQuery('.tab').removeClass('active'); 404 //add active to the new active class 405 var category = jQuery(this).attr('id'); 406 jQuery('#'+category+'.tab').addClass('active'); 407 var classList = jQuery('#location-carousel').attr('class').split(' '); 408 409 jQuery('#location-carousel').slick("unslick"); 410 jQuery("#ourHolder").empty(); 411 jQuery('#ourHolder').append('<div class="tribe-events-ajax-loading tribe-events-active-spinner"><img class= "tribe-events-spinner-medium" src="http://cloud4.techniqueweb.co.uk/~bra4eqacruce/wp-content/themes/experienceoxfordshire/images/spinner.gif"/></div>'); 412 jQuery("#venues-to-show .venue").addClass("blackout"); 413 var a = classList[0]; 414 var b = classList[1]; 415 var c = classList[2]; 416 var d = classList[3]; 417 var data = { 418 action: 'load_location', 419 category: category, //new category 420 a:a, 421 b:b, 422 c:c, 423 d:d, //current category 424 jq: -1 425 }; 426 jQuery.post(venue_locationAjax.ajaxurl, data, function(response) { 427 jQuery("#ourHolder").empty(); 428 jQuery("#ourHolder").append(response); 429 jQuery('#location-carousel').slick(getslicksettings(3)) 430 }) 431 }); 432 433 jQuery(document).on("click", ".filter-bar-filter", function(){ 434 // event.preventDefault(); 435 jQuery('.search_query_params').append('<div class="tribe-events-ajax-loading tribe-events-active-spinner"><img class= "tribe-events-spinner-medium" src="http://cloud4.techniqueweb.co.uk/~bra4eqacruce/wp-content/themes/experienceoxfordshire/images/spinner.gif"/></div>'); 436 jQuery("#venues-to-show .venue").addClass("blackout"); 437 if (jQuery('.venue-filter-bar').hasClass('mobile')){ 438 jQuery('.filter-overlay').attr('style','display:none'); 439 jQuery('.venue-filter-bar').attr('style','display:none; position:relative; z-index:0; width:100%; padding:0px; background-color:none'); 440 } 441 var b = jQuery(this).attr('id'); 442 jQuery(".active-filter-bar-filter#active"+b+"").show(); 443 444 jQuery(".af").show(); 445 x.push(jQuery(this).attr('name')); 446 jQuery( this ).prop( "disabled", true ); 447 jQuery(this).hide(); 448 console.log(x) 449 filter_search(); 450 }) 451 452 jQuery(document).on("click", ".active-filter-bar-filter", function(){ 453 // event.preventDefault(); 454 jQuery('.search_query_params').append('<div class="tribe-events-ajax-loading tribe-events-active-spinner"><img class= "tribe-events-spinner-medium" src="http://cloud4.techniqueweb.co.uk/~bra4eqacruce/wp-content/themes/experienceoxfordshire/images/spinner.gif"/></div>'); 455 jQuery("#venues-to-show .venue").addClass("blackout"); 456 var itemtoRemove = jQuery(this).attr('name'); 457 itemtoRemove = itemtoRemove.substring(6);
458 x.splice(jQuery.inArray(itemtoRemove, x),1); 459 jQuery("[name="+itemtoRemove+"]").prop("disabled", false); 460 jQuery("[name="+itemtoRemove+"]").show(); //active button 461 jQuery(this).hide(); 462 filter_search(); 463 464 if(x.length == 0){jQuery('.af').hide();} 465 466 }) 467 468 469 jQuery(".fa-globe").click(function(event){ 470 jQuery(".flags").toggleClass('hidden'); 471 }) 472 473jQuery(document).on('click', '.btn-more', function () { 474// jQuery(this).hide(); 475 jQuery('.search_query_params').append('<div class="tribe-events-ajax-loading tribe-events-active-spinner"><img class= "tribe-events-spinner-medium-2" src="http://cloud4.techniqueweb.co.uk/~bra4eqacruce/wp-content/themes/experienceoxfordshire/images/spinner.gif"/></div>'); 476 load_load_more(); 477}) 478jQuery(document).on('click','.filter-overlay',function(event){ 479//jQuery(".filter-overlay").click(function(event){ 480 jQuery('.filter-overlay').attr('style','display:none'); 481 jQuery('.venue-filter-bar.mobile').attr('style','display:none'); 482 483}) 484 485function getslicksettings(x){ 486return { 487 lazyLoad: 'progressive', 488 infinite: true, 489 slidesToShow: x, 490 slidesToScroll: 1, 491 prevArrow:"<svg class='a-left control-c next slick-prev' viewBox='33 15 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'><defs></defs><g id='location-prev' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' transform='translate(33.000000, 15.000000)'><g id='Group' fill-rule='nonzero'><path d='M0.943,10.001 C0.943,14.994 5.006,19.057 10.001,19.057 C14.994,19.057 19.057,14.994 19.057,10.001 C19.057,5.007 14.994,0.944 10.001,0.944 C5.007,0.944 0.943,5.007 0.943,10.001 Z M1.615,10.001 C1.615,5.377 5.377,1.615 10.002,1.615 C14.625,1.615 18.386,5.377 18.386,10.001 C18.386,14.624 14.625,18.385 10.002,18.385 C5.377,18.385 1.615,14.624 1.615,10.001 Z' id='Shape'></path> <path d='M11.553,5.128 C11.682,5 11.899,5 12.028,5.128 C12.091,5.191 12.126,5.276 12.126,5.366 C12.126,5.455 12.091,5.54 12.028,5.604 L7.554,10.078 L12.028,14.552 C12.091,14.615 12.127,14.7 12.127,14.791 C12.127,14.88 12.092,14.964 12.03,15.027 C11.967,15.091 11.882,15.126 11.791,15.126 C11.701,15.126 11.617,15.091 11.554,15.028 L6.843,10.316 C6.78,10.253 6.744,10.168 6.744,10.078 C6.744,9.988 6.779,9.903 6.843,9.841 L11.553,5.128 Z' id='Shape'></path></g></g></svg>", 492 nextArrow:"<svg class='a-right control-c next slick-next' viewBox='13 9 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'> <defs></defs><g id='location-next' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' transform='translate(13.000000, 9.000000)'><g id='Group' fill-rule='nonzero'><path d='M9.999,0.944 C5.006,0.944 0.943,5.007 0.943,10.001 C0.943,14.994 5.006,19.057 9.999,19.057 C14.994,19.057 19.057,14.994 19.057,10.001 C19.057,5.007 14.993,0.944 9.999,0.944 Z M9.999,18.385 C5.376,18.385 1.615,14.624 1.615,10.001 C1.615,5.377 5.376,1.615 9.999,1.615 C14.624,1.615 18.386,5.377 18.386,10.001 C18.385,14.624 14.623,18.385 9.999,18.385 Z' id='Shape'></path><path d='M8.447,5.128 C8.318,5 8.101,5 7.972,5.128 C7.909,5.191 7.874,5.275 7.874,5.365 C7.874,5.454 7.909,5.539 7.972,5.603 L12.446,10.077 L7.973,14.55 C7.91,14.613 7.874,14.698 7.874,14.789 C7.874,14.878 7.909,14.962 7.971,15.025 C8.034,15.089 8.119,15.124 8.21,15.124 C8.3,15.124 8.384,15.089 8.447,15.026 L13.158,10.314 C13.221,10.251 13.257,10.166 13.257,10.076 C13.257,9.986 13.222,9.901 13.158,9.839 L8.447,5.128 Z' id='Shape'></path></g></g></svg>" 493} 494} 495 496 497function filter_search(){ 498//removes the search results and re runs the query with new args 499 y = 'none'; 500 if (x.length > 0){ 501 y = x; 502 } 503 var query_args = jQuery('.search_query_params').data('params'); //args to use 504 var data = { 505 action: 'venue_filter_search', 506 query_args: query_args, 507 filters: y, 508 }; 509 jQuery.post(venue_filter_searchAjax.ajaxurl, data, function(response) { 510 jQuery(".search_query_params").empty(); 511 jQuery(".search_query_params").append(response); 512 hide_load_load_more(query_args); 513 }) 514} 515 516 517var somenum = 13; 518 519 520function load_load_more(){ 521count = somenum + 12; 522counter = 0; 523secondCount = 0; 524//while i is less than 12 do this 525 526 jQuery( ".venue" ).each(function(i) { 527 counter ++; 528 if (counter < count){ 529 jQuery(this).removeClass('hidden'); 530 secondCount ++; 531} 532 }); 533//counter is total amount 534if (counter == secondCount){ 535 jQuery(".btn-more").hide(); 536} 537 somenum = somenum + 12; 538 539} 540 541/* 542function load_load_more(){ 543 y = 'none'; 544 if (x.length > 0){ 545 y = x; 546 } 547 var query_args = jQuery('.search_query_params').data('params'); 548 var count = jQuery('.search_query_params').data('set') + 1; 549 var numItems = jQuery('#venues-to-show .venue').length; 550 var data = { 551 action: 'venue_search_load_more', 552 query_args: query_args, 553 count: count, 554 filters: y, 555 numItems: numItems 556 }; 557 jQuery.post(venue_search_load_moreAjax.ajaxurl, data, function(response) { 558 jQuery('.search_query_params').data('set', count); 559 jQuery('.search_query_params').data('amount', numItems); 560 jQuery(".btn-more").remove(); 561 jQuery(".search_query_params").append(response); 562 jQuery(".tribe-events-ajax-loading").remove(); 563 hide_load_load_more(query_args); 564 }) 565 } 566 567 568*/ 569 570}); 571 572function hide_load_load_more(args){ 573//takes the query from whatever search was 574} 575 jQuery(document).on('click','.gallerymorelinknn',function(event){ 576 event.preventDefault(); 577 var id = jQuery(this).attr('id'); 578 id = id.replace(/[^0-9\.]/g, ''); 579 id = '#lb' + id; 580 jQuery(id).show(); 581 jQuery('.overlayayay').show(); 582});
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.