PageSourceSearch

https://svc.kpanews.co.kr/user/assets/_js/commonUi.js

js kpanews.co.kr collected 2026-10-02 16:39:52 UTC 884 bytes, 34 lines download raw bytes

1/**
2 * commonUi.js — 사용자 화면 공통 UI (commonLib.jsp 경유 로드)
3 */
4(function ($) {
5  'use strict';
6
7  /* ---------- 맨 위로 (.scroll_top · commonFooter.jsp) ---------- */
8  var scrollPageToTop = function () {
9    var $root = $('html, body');
10    if ($root.length) {
11      $root.stop(true).animate({ scrollTop: 0 }, 300);
12    }
13    try {
14      window.scrollTo({ top: 0, left: 0, behavior: 'smooth' });
15    } catch (ignore) {}
16  };
17
18  $(function () {
19    $(document).on(
20      'click',
21      '.inq_topBtn, .pcm_top, .js_pcm_top, .scroll_top',
22      function (e) {
23        e.preventDefault();
24        scrollPageToTop();
25      }
26    );
27    $(document).on('keydown', '.scroll_top', function (e) {
28      if (e.key === 'Enter' || e.key === ' ') {
29        e.preventDefault();
30        scrollPageToTop();
31      }
32    });
33  });
34})(jQuery);

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.