1 $(function () { 2 // å ¥åå 容åå¾ç¨ 夿° 3 var val; 4 // idåå¾ç¨ 夿° 5 var id; 6 // ã©ã¸ãªãã¿ã³å¤åå¾ç¨ 夿° 7 var radio; 8 // ãã§ãã¯ããã¯ã¹å¤åå¾ç¨ 夿° 9 var check; 10 // inputè¦ç´ ã®type屿§å¤åå¾ç¨ï¼ã©ã¸ãªãã¿ã³ã§ãããã©ããå¤å¥ã®ããï¼ 11 var type; 12 // ã©ã¸ãªãã¿ã³åæå¤ã®åå¾ã以ä¸ã®è¨è¿°ã§å ¨ã¦ã®ã©ã¸ãªãã¿ã³ã®åæå¤ãåå¾ 13 $("[type='radio']:checked").each(function (index) { 14 // ã©ã¸ãªãã¿ã³å¤åå¾ 15 radio = $(this).val(); 16 // ã©ã¸ãªãã¿ã³ã®ç¥å è¦ç´ ããidåãåå¾ 17 id = $(this).parents("[id]").attr("id"); 18 // åå¾ããidåã確èªç¨ã®class快尾ã«ä»ä¸ãã¦ã確èªç»é¢ã®å¤ãæå® 19 $(".confirm_" + id).text(radio); 20 }); 21 //å ¥åæ¬ã®å 容ãå¤ãã£ãéã®å¦çãå ¥åããå 容ã確èªç»é¢ã¸ç»é²ããã 22 $(".input_area input,.input_area select,.input_area textarea").change(function () { 23 //å ¥åå 容åå¾ 24 val = $(this).val(); 25 //type屿§ã®åå¾ 26 type = $(this).attr("type"); 27 //type屿§ãã©ã¸ãªãã¿ã³ã ã£ãå ´åã®å¦ç 28 if (type == "radio") { 29 // ã©ã¸ãªãã¿ã³å¤åå¾ 30 radio = $(this).val(); 31 // ã©ã¸ãªãã¿ã³ã®ç¥å è¦ç´ ããidåãåå¾ 32 id = $(this).parents("[id]").attr("id"); 33 // åå¾ããidåã確èªç¨ã®class快尾ã«ä»ä¸ãã¦ã確èªç»é¢ã®å¤ãæå® 34 $(".confirm_" + id).text(radio); 35 }//type屿§ããã§ãã¯ããã¯ã¹ã ã£ãå ´åã®å¦ç 36 else if (type == "checkbox") { 37 // ãã§ãã¯ããã¯ã¹å¤åå¾ 38 check = $(this).val(); 39 // ã©ã¸ãªãã¿ã³ã®ç¥å è¦ç´ ããidåãåå¾ 40 id = $(this).parents("[id]").attr("id"); 41 // åå¾ããidåã確èªç¨ã®class快尾ã«ä»ä¸ãã¦ã確èªç»é¢ã®å¤ãæå® 42 $(".confirm_" + id).append(check + " / "); 43 }//type屿§ãã©ã¸ãªãã¿ã³ã§ã¯ãªãã£ãå ´åã®å¦ç 44 else { 45 // å ¥åæ¬ã®idåãåå¾ 46 id = $(this).attr("id"); 47 // åå¾ããidåã確èªç¨ã®class快尾ã«ä»ä¸ãã¦ã確èªç»é¢ã®å¤ãæå® 48 $(".confirm_" + id).text(val); 49 } 50 }) 51 //確èªãã¿ã³ãæ¼ããéã®å¦çãå ¥åç»é¢ãé表示ã»ç¢ºèªç»é¢ã表示 52 $(".confirm_button").click(function () { 53 $(".input_area").hide(); 54 $(".confirm_area").show(); 55 $('.soushin_block').removeClass('soushin_disabled'); 56 $(window).scrollTop($('#contact-form-start').offset().top); 57 }) 58 //æ»ããã¿ã³ãæ¼ããéã®å¦çãå ¥åç»é¢ã表示ã»ç¢ºèªç»é¢ãé表示 59 $(".back_button").click(function () { 60 $(".input_area").show(); 61 $(".confirm_area").hide(); 62 $(window).scrollTop($('#contact-form-start').offset().top); 63 }) 64 //éä¿¡ãã¿ã³ãæ¼ããéã®å¦çããµã³ã¯ã¹ï¼å®äºï¼ç»é¢ã表示ã»ç¢ºèªç»é¢ãé表示 65 $("[type='submit']").click(function () { 66 $(".thanks_area").fadeIn(2000); 67 $(".confirm_area").hide(); 68 $(window).scrollTop($('#contact-form-start').offset().top); 69 }) 70 71 //å¿ é é ç®ãã§ãã¯ç¨ã宿°ã®ä½æ 72 const target = '[aria-required="true"]'; 73 74 //å¿ é é ç®ã®å 容ãå¤ãã£ãéã®å¦ç 75 $(target).on('keydown keyup keypress change', function () { 76 77 //å¤å®ç¨ãã©ã° 78 let flag = true; 79 80 //å¿ é é ç®ãã«ã¼ãã§ï¼ã¤ãã¤ç¢ºèª 81 $(target).each(function (e) { 82 if ($(target).eq(e).val() === "") { 83 flag = false;
84 } 85 }); 86 87 //ãã©ã°ãtrueãªã確èªãã¿ã³ãæå¹ãfalseãªãç¡å¹ã«ãã 88 if (flag) { 89 //å¿ é é ç®ãã¹ã¦å ¥åæ¸ã¿ã§ããã°æå¹ã«ãã 90 $('.confirm_button').removeAttr("disabled"); 91 $('.soushin_block').removeClass('soushin_disabled'); 92 } 93 else { 94 //æªå ¥åãªã©æ¼ããããå ´åã¯ç¡å¹ã«ãã 95 $('.confirm_button').attr("disabled",""); 96 $('.soushin_block').addClass('soushin_disabled'); 97 } 98 }); 99 })
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.