PageSourceSearch

https://shinsaibashi-nakano-dc.com/wp/wp-content/themes/dental-web_2021/assets/js/libs/inputKeybindCopyText.js

js shinsaibashi-nakano-dc.com collected 2026-10-05 11:14:43 UTC 993 bytes, 32 lines download raw bytes

1"use strict";
2
3(function () {
4  /**
5   * inputへの入力値を対象のid要素に反映させる
6   * @param {NodeElement} element input
7   * @return {void}
8   */
9  var inputKeybindCopyText = function inputKeybindCopyText(element) {
10    var input = element;
11    var logElement = document.getElementById(input.dataset.inputcopytext);
12
13    var updateValue = function updateValue(event) {
14      logElement.textContent = event.target.value;
15    };
16
17    input.addEventListener('input', updateValue); // 初期値設定
18
19    logElement.textContent = input.value;
20  };
21
22  inputKeybindCopyText(document.querySelector('[data-inputCopyText]'));
23
24  // inputの全角から半角へ変換
25  $("input").change(function(){
26    var str = $(this).val();
27    str = str.replace( /[A-Za-z0-9-!”#$%&’()=<>,.?_[]{}@^~¥]/g, function(s) {
28        return String.fromCharCode(s.charCodeAt(0) - 65248);
29    });
30    $(this).val(str);
31  }).change();
32})();

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.