PageSourceSearch

https://www.nmh.gov.tw/Scripts/ncftaPopupper/ncftaPopupper.js

js nmh.gov.tw collected 2026-10-02 07:56:49 UTC 1,654 bytes, 61 lines download raw bytes

1//2023/7/3 birdshiu 新增,為文化基金會客製的彈出式視窗的 js
2//************ function *******************
3
4// 取is-center 底下的a
5$(function () {
6    $('.is-center a').each(function () {
7        $(this).attr("href", "#");
8    })
9})
10
11function NcfaPopupper(clickedA) { // 給 a 的 click 用
12    let $clickedA = $(clickedA); // 被按的那個 a tag
13    let $hide = $clickedA.siblings('.hidden'); // 附近 class=hidden 的 div
14    let title = $clickedA.attr('title');
15    let content = $hide.html();
16
17    Swal.fire({
18        title: title,
19        html: '<div class="align-left">' + content + '</div>',
20        showCloseButton: true,
21        width: '1200px',
22        showConfirmButton: false,
23    });
24
25    //_SetNcftaPopupper(title, content);
26}
27
28function _SetNcftaPopupperTitle(value) {
29    $('#ncftaPopupperTitle').text(value);
30}
31
32function _SetNcftaPopupperContent(value) {
33    $('#ncftaPopupperContent').html(value);
34}
35
36function _SetNcftaPopupper(titleValue, contentValue) {
37    _SetNcftaPopupperTitle(titleValue);
38    _SetNcftaPopupperContent(contentValue);
39    _ShowNcftaPopupper();
40}
41
42function _ShowNcftaPopupper() {
43    $('#ncftaPopupperOverlay').show();
44}
45
46function _HideNcftaPopupper() {
47    $('#ncftaPopupperOverlay').hide();
48}
49
50//************* event ****************
51$(function () {
52    $('#ncftaPopupperClose').on('click', function () {
53        _HideNcftaPopupper();
54    });
55    $('#ncftaPopupperOverlay').on('click', function () {
56        _HideNcftaPopupper();
57    })
58    $('#ncftaPopupperForm').on('click', function (e) {
59        e.stopPropagation();
60    })
61})

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.