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.