1$(function() { 2 3 //Onloadæã®ãã§ãã¯ããã¯ã¹ä¸éå¶å¾¡ 4 seatsControl(); 5 6 // ã¬ã¼ã¹é¸æã®ã¤ãã³ãè¨å® 7 $('#racelist').change(function() { 8 9 var url = window.location.href; 10 11 //鏿ããvalueå¤ã夿°ã«æ ¼ç´ 12 var val = $(this).val(); 13 14 if(typeof URL == 'function'){ 15 url = new URL(window.location.href); 16 url.searchParams.set('raceId', val); 17 } else { 18 url = url.split('?')[0]; 19 url = url + "?raceId=" + val; 20 } 21 22 window.location.href = url; 23 }); 24 25 // ãã§ãã¯ããã¯ã¹ã®ã¤ãã³ãè¨å® 26 $('input[name="seats"]').click(function() { 27 seatsControl(); 28 }); 29 30 // ãã§ãã¯ããã¯ã¹ã®ä¸éå¶å¾¡ 31 function seatsControl() { 32 var checked_length = $('input[name="seats"]:checked').length; 33 34 // 鏿ä¸éã¯2ã¤ã¾ã§ 35 if (checked_length >= 2) { 36 $('input[name="seats"]:not(:checked)').prop('disabled', true); 37 $('input[name="seats"]:not(:checked)').parent().removeClass('btn-primary'); 38 $('input[name="seats"]:not(:checked)').parent().addClass('btn-light'); 39 } else { 40 $('input[name="seats"]:not(:checked)').prop('disabled', false); 41 $('input[name="seats"]:not(:checked)').parent().removeClass('btn-light'); 42 $('input[name="seats"]:not(:checked)').parent().addClass('btn-primary'); 43 } 44 } 45 46 // äºééä¿¡å¶å¾¡ 47 $('form').submit(function() { 48 $(this).find(':submit').prop('disabled', 'true'); 49 }); 50});
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.