PageSourceSearch

https://www.journal-dtt.org/asset/js/common.js?v=2610090501

js journal-dtt.org collected 2026-10-08 20:01:12 UTC 2,493 bytes, 110 lines download raw bytes

1(function() {
2	var root = this;
3
4	var $body = $("body");
5	var version = 'SCRIPT VERSION : 1.0';
6	var module;
7	var $toggle = $(".btn-toggle");
8	if(typeof exports !== 'undefined') {
9		module = exports;
10	} else {
11		module = root.module = {};
12	}
13	module.getVersion = function() {
14		return version;
15	}
16	module.header = function(){
17		this.defaults = {
18			btn : ".hamburger--collapse-r"
19		};
20
21		$(this.defaults.btn).on("click" , function(){
22			if(!$(this).is(".is-active")) {
23				$(this).addClass('is-active');
24				$("body").addClass('is-left-open');
25			}
26			else {
27			 $(this).removeClass('is-active');
28			 $("body").removeClass('is-left-open');
29			}
30		});
31	}
32	module.ClickEvent = function(el){
33		el.on("click" , function(e){
34			var _type = $(this).data('toggle');
35			if(_type == "tab"){
36				module.ClickEvent.tab($(this));
37			}
38			return false;
39		});
40		// tab module
41		module.ClickEvent.tab = function(el){
42			var $this = el,
43			$this_target = $this.attr("href"),
44			$this_index = $this.index(),
45			$this_pa = $this.parent(),
46			$this_pa_sib = $($this_pa.data("tab"));
47			$this.addClass("active").siblings().removeClass("active");
48			$($this_target).show().siblings().hide();
49		}
50	}
51
52	module.mobileGnb = function(){
53		$("#gnb .gnb_li1>a").on("click" , function(){
54			var $this = $(this),
55					$this_pa = $(this).parent("li");
56
57			if($(window).width() < 1025){
58
59				if(!$this_pa.is(".active")){
60					$this_pa.addClass("active").siblings("li").removeClass("active").find(".drop_menu").stop().slideUp();
61					$this.next(".drop_menu").stop().slideDown();
62				} else{
63					$this.next(".drop_menu").stop().slideUp().parents("li").removeClass("active");
64
65				}
66				return false;
67			}
68		});
69	}
70
71	module.resizeComm = function(){
72		$(window).resize(function(){
73
74			var $ww = $(window).width(),
75					$wh = $(window).height();
76
77			if($ww > 1200){
78				if($("body").is(".is-left-open")){
79					$("body").removeClass("is-left-open");
80					$("#gnb>.gnb_li1").removeClass("active");
81					$("#gnb>.gnb_li1 .drop_menu").stop().slideUp();
82
83				}
84			}
85
86		});
87	}
88
89
90
91	module.init = function(){
92		module.ClickEvent($toggle);
93		module.header();
94		module.mobileGnb();
95	}
96
97}());
98module.init();
99
100$(document).ready(function(){
101	// ¸µÅ©Å¬¸¯½Ã header³ôÀÌ »©°í À̵¿
102	$('#quick-bar li.article').find('a').each(function(){
103		$(this).on('click', function(){
104			//Çì´õ ³ôÀÌ
105			var header = $('header').height();
106			$("html, body").stop().animate({scrollTop:$(this.hash).offset().top - (header+5)}, 300);
107			return false;
108		});
109	});
110});

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.