PageSourceSearch

https://www.ortech.com.tw/bk/main_contact/index.js?v=100517

js ortech.com.tw collected 2026-10-05 09:47:46 UTC 1,072 bytes, 43 lines download raw bytes

1const contact = {};
2contact.captchaRefresh = function () {
3    $(".captchaImg").attr('src', '/captcha/default?' + Math.random());
4    $('.captchaInput').val('');
5}
6
7
8contact.sendForm = function () {
9    let form = $('.wdd-form').val();
10    axios.post($('.base-url').val() + '/contact/ajax/send-form', form).then((res) => {
11        _g.loaded()
12        if (res.data.status == 'false') {
13            contact.captchaRefresh()
14            $('.notice-box').removeClass('d-none');
15            $('.errorMsgText').text(res.data.errorMsg);
16        } else {
17            $('.notice-box').addClass('d-none');
18            $('modern-modal[data-modal-id="contact-success"]')[0].open()
19        }
20    })
21}
22
23function sendForm() {
24    $('.sendFormBtn').on('click', function () {
25        _g.loading()
26        contact.sendForm();
27
28    })
29}
30
31function refreshBtn() {
32    $('.captchaRefresh').on('click', function () {
33        contact.captchaRefresh();
34    });
35}
36
37$(function () {
38    refreshBtn();
39    sendForm();
40    // setTimeout(() => {
41    //     contact.captchaRefresh();
42    // }, 1500);
43})

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.