1jQuery(document).ready(function ($) { 2 3 $(document).on( 'click', '#wbtm_search_location_toggle', function () { 4 5 let toggleBtn = $(this); 6 let startInput = $('input[name="bus_start_route"]'); 7 let endInput = $('input[name="bus_end_route"]'); 8 let startVal = startInput.val(); 9 let endVal = endInput.val(); 10 11 if (startVal !== '' && startVal === endVal) { 12 let alertMsg = $('.wbtm_dropping_point').data('alert') || 'You select Wrong Route !'; 13 alert(alertMsg); 14 return; 15 } 16 17 // $('.wbtm_start_point, .wbtm_dropping_point').addClass('swap-animation'); 18 19 setTimeout(function () { 20 startInput.val(endVal); 21 endInput.val(startVal); 22 // $('.wbtm_start_point, .wbtm_dropping_point').removeClass('swap-animation'); 23 }, 300); 24 25 toggleBtn.toggleClass('rotate'); 26 }); 27 28 29 30});
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.