1$(document).ready(function() { 2 if ($("input:hidden[name=answering_company_name]").val() == 2) { 3 $("input[name=company_name]").addClass('validate[required]').css('ime-mode', 'active').end(); 4 } 5 if ($("input:hidden[name=answering_company_department]").val() == 2) { 6 $("input[name=company_department]").addClass('validate[required]').css('ime-mode', 'active').end(); 7 } 8 9 $("input[name=name01]").addClass('validate[required]').css('ime-mode', 'active').end(); 10 if ($("input:hidden[name=answering_name_split]").val() == 1) { 11 $("input[name=name02]").addClass('validate[required]').css('ime-mode', 'active').end(); 12 } 13 14 if ($("input:hidden[name=answering_kana01]").val() == 2) { 15 $("input[name=kana01]").addClass('validate[required]').css('ime-mode', 'active').end(); 16 if ($("input:hidden[name=answering_name_split]").val() == 1) { 17 $("input[name=kana02]").addClass('validate[required]').css('ime-mode', 'active').end(); 18 } 19 } 20 21 if ($("input:hidden[name=answering_addr]").val() == 2) { 22 $("input[name=zip01]").addClass('validate[required,custom[zip]]').css('ime-mode', 'disabled').end(); 23 $("*[name=pref]").addClass('validate[required]').end(); 24 $("input[name=addr01]").addClass('validate[required]').css('ime-mode', 'active').end(); 25 } 26 27 if ($("input:hidden[name=answering_tel]").val() == 2) { 28 $("input[name=tel01]").attr('maxlength', '11'); 29 $("input[name=tel01]").addClass('validate[required,minSize[10],maxSize[11],custom[onlyNumberSp],custom[tel]]').css('ime-mode', 'disabled').end(); 30 } 31 32 $("input[name=email]").addClass('validate[required,custom[email]]').css('ime-mode', 'disabled'); 33 34 $("*[name=zip01]").blur( function () { 35 fnCallAddress2('/input_zip.php', 'zip01', 'pref', 'addr01', 'addr99'); 36 }); 37 38 $("textarea[name=contents]").addClass('validate[required]').css('ime-mode', 'active'); 39 40 $("form[name=form1]").validationEngine({ 41 autoHidePrompt:true 42 }); 43 44 $(document).on("keypress", "input:not(.allow_submit)", function(event) { 45 return event.which !== 13; 46 }); 47}); 48 49function getTarget(oEvent) { return oEvent.srcElement || oEvent.target; } 50Event.prototype.getTarget = getTarget; 51
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.