PageSourceSearch

https://kyukyo-u.ac.jp/js/contact/input.js?v=1790304035

js kyukyo-u.ac.jp collected 2026-09-25 02:40:43 UTC 1,437 bytes, 37 lines download raw bytes

1$(function(){
2    // オンフォーカスでフォーカスがある input[text] と textarea でクラスを追加する
3    // ロストフォーカス時のイベントは Ajax による非同期入力チェックで変更する
4    $('input[type=text],textarea').focus(function(){
5        $(this).addClass('focus');
6    });
7    // ページ離脱イベント
8    $(window).on('beforeunload',function(){
9    // return('まだお問合せが完了していません。\n入力完了までもう少しですが、このページから離れますか?');
10    });
11    // submit 時はページ離脱イベントによるメッセージは回避することとする
12    $('form').on('submit',function(){
13        $(window).off('beforeunload');
14    });
15    // テキストボックスにフォーカス時、フォームの背景色を変化
16    $('input,textarea')
17        .focusin(function(e) {
18            $(this).addClass('c-form-not');
19            $(this).removeClass('c-form-error');
20            $(this).removeClass('c-form-fin');
21        })
22        .focusout(function(e) {
23          $(this).removeClass('c-form-not');
24        });
25});
26
27// 強制的に半角にする関数
28function compulsion_helf(obj) {
29    obj.value=helf_change(obj.value);
30}
31
32// 文字コードの変更
33function helf_change(str){
34    return str.replace(/[0-9]/g,function($0){
35        return String.fromCharCode(parseInt($0.charCodeAt(0))-65248);
36    });
37}

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.