1/* 2Author: nicdark 3Author URI: http://www.nicdarkthemes.com/ 4*/ 5 6 7 8function nicdark_sort(paged){ 9 10 jQuery( ".nicdark_site" ).prepend('<div class="nicdark_preloader_ajax"></div>'); 11 12 //choice 13 var order_choice = jQuery( "select#nicdark_sort_feature option:selected").val(); 14 var nicdark_asc_desc = jQuery( "select#nicdark_asc_desc option:selected").val(); 15 var nicdark_layout = jQuery( "select#nicdark_layout option:selected" ).val(); 16 17 18 //pagination 19 var nicdark_paged = paged; 20 if(typeof nicdark_paged === 'undefined'){ 21 nicdark_paged = jQuery( ".nicdark_btn.active" ).text(); 22 } 23 24 var nicdark_posttype = jQuery( "input[name=posttype]" ).val(); 25 var nicdark_keyword = jQuery( "input[name=keyword]" ).val(); 26 27 28 //tax 29 var nicdark_tax_1 = ''; 30 var nicdark_tax_2 = ''; 31 var nicdark_tax_3 = ''; 32 var nicdark_tax_4 = ''; 33 34 //tax term 35 var nicdark_destination_package = jQuery( "select#nicdark_select_destination-package option:selected").val(); 36 var nicdark_typology_package = jQuery("select#nicdark_select_typology-package option:selected").val(); 37 var nicdark_duration_package = jQuery("select#nicdark_select_duration-package option:selected").val(); 38 var nicdark_person_package = jQuery("select#nicdark_select_person-package option:selected").val(); 39 40 //date 41 var nicdark_date_from = jQuery( "input[name=nicdark_date_from]" ).val(); 42 var nicdark_date_to = jQuery( "input[name=nicdark_date_to]" ).val(); 43 44 //price 45 var nicdark_price_from = jQuery( "input[name=nicdark_price_from]" ).val(); 46 var nicdark_price_to = jQuery( "input[name=nicdark_price_to]" ).val(); 47 48 49 jQuery.ajax({ 50 51 52 method: "POST", 53 url: "../wp-content/themes/lovetravel/include/ajax/sort.php", 54 data: { 55 order_choice: order_choice, 56 nicdark_paged: nicdark_paged, 57 nicdark_layout: nicdark_layout, 58 nicdark_asc_desc: nicdark_asc_desc, 59 nicdark_posttype: nicdark_posttype, 60 nicdark_keyword: nicdark_keyword, 61 nicdark_date_from: nicdark_date_from, 62 nicdark_date_to: nicdark_date_to, 63 nicdark_price_from: nicdark_price_from, 64 nicdark_price_to: nicdark_price_to, 65 nicdark_destination_package: nicdark_destination_package, 66 nicdark_typology_package: nicdark_typology_package, 67 nicdark_duration_package: nicdark_duration_package, 68 nicdark_person_package: nicdark_person_package 69 } 70 71 }) 72 73 .success(function( nicdark_message ) { 74 75 jQuery( ".nicdark_masonry_container" ).remove(); //empty the content 76 jQuery( ".nicdark_ajax_results" ).append( nicdark_message ); // insert new content base on the new query 77 78 //define new isotope container 79 80 81 //define new isotope container 82 jQuery(".nicdark_masonry_container img").load(function() { 83 var container_masonry = jQuery(".nicdark_masonry_container").isotope({ itemSelector: ".nicdark_masonry_item" }); 84 }); 85 86 87 //nicdark_tooltip 88 jQuery( '.nicdark_tooltip' ).tooltip({ 89 position: { 90 my: "center top", 91 at: "center+0 top-50" 92 } 93 }); 94 95 96 //nicdark_mpopup_window 97 jQuery('.nicdark_mpopup_window').magnificPopup({ 98 type: 'inline', 99 100 fixedContentPos: false, 101 fixedBgPos: true, 102 103 overflowY: 'auto', 104 105 closeBtnInside: true, 106 preloader: false, 107 108 midClick: true, 109 removalDelay: 300, 110 mainClass: 'my-mfp-zoom-in' 111 }); 112 113 114 jQuery( ".nicdark_preloader_ajax" ).remove(); //remove the loader 115 116 }) 117 .error(function(){ 118 119 alert('error'); 120 121 }); 122 123} 124
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.