PageSourceSearch

http://kyungsung.ac.kr/resources/_Templet/TMPL00/_Js/layout_sub.js?1790967421769

js kyungsung.ac.kr collected 2026-10-02 18:57:32 UTC 3,001 bytes, 119 lines download raw bytes

1var _isLowBr_ = false,_isMobile_ = false;
2var _thisPage_cfg  = {};
3//레이아웃 셋팅(로딩완료된 후에만 1번만 처리)
4function initPageLayout(){
5	resetTabSize(); // 탭메뉴 사용시 주석제거
6	setContAutoWidth();
7	_setLayoutFooter();
8	resetImgZoom();
9}
10//레이아웃 리셋
11function resetPageLayout(){
12	mainNavi._reset();
13	resetTabSize();   // 탭메뉴 사용시 주석제거
14	resetImgZoom();
15	setContAutoWidth();
16	_resetFooterHeight();
17}
18
19
20//레이아웃 높이 리셋
21function resizePageLayoutHeight(){
22}
23////////////////////////////////////////////////////
24//윈도우 회전시 실행할 함수
25function setWindowRotation(){
26	if(typeof(thisPageRotation)=="function" && thisPageRotation!=undefined){  thisPageRotation(); }
27	else {
28		//기본 회전시 실행할 함수
29		//resetPageLayout();
30	}
31}
32//document.addEventListener('DOMContentLoaded', loaded, false);
33if('onorientationchange' in window){
34	window.addEventListener('onorientationchange', setWindowRotation, false);
35}
36////////////////////////////////////////////////////
37$(document).ready(function(){
38	//console.log("1.Ready");
39
40	try{getWindowSize();	}catch(e){}
41	try{getPageSize();	}catch(e){}
42	if(_isMobile_) $alertLoading("Page Loading...");
43	try{setLowBrowser();	}catch(e){	}
44	try{setMediaObjectFunc();	}catch(e){	}
45	try{ _thisLayout_style = getPageStyle(); }catch(e){}
46	try{ resetTabSize(); }catch(e){}
47	initNavigation();
48	docLoading(function(){
49		//console.log("3.docLoad");
50		initImgSizeInfo();
51		initPageLayout();
52		resetImgZoom();
53	});
54});
55$(window).load(function(){
56	//console.log("2.Load");
57});
58$(window).resize(function(e){
59	//var resizeTimeGap = (_isLowBr_)?  250 : 10;
60	var resizeTimeGap = 10;
61	if(_isLowBr_) resizeTimeGap=100;
62	clearTimeout(window.resizeEvt);
63	window.resizeEvt = setTimeout(function()
64	{
65		//console.log("Resize" );
66		getWindowSize();getPageSize();
67		try{
68		if(old_wsize.win== undefined ||  wsize.win.w!=old_wsize.win.w){
69			resetPageLayout();
70		}else{
71			resizePageLayoutHeight();
72		}
73		}catch(e){
74			resetPageLayout();
75		}
76	}, resizeTimeGap);
77});
78
79$(window).scroll(function(){
80	clearTimeout(window.scrollEvt);
81	window.scrollEvt = setTimeout(function()
82	{
83		////srolling
84	}, 250);
85
86});
87try{
88$(window).scrollStopped(function(){
89	//end sroll
90});
91}catch(e){}
92
93//sns 공유
94function snsToggle(){
95	if($(".cont-ctrl-btns .btn-share").hasClass("is-open")){
96		$(".sns-list").slideUp(300);
97		$(".cont-ctrl-btns .btn-share").removeClass("is-open");
98	} else {
99		$(".sns-list").slideDown(300);
100		$(".cont-ctrl-btns .btn-share").addClass("is-open");
101	}
102}
103
104//이미지 없을때
105$(function(){
106   function hideImg(){
107     
108      $("img").each(function(){
109          var $this = $(this);
110          var wImgObj = $this.attr("src");
111          
112            if ( wImgObj == null || wImgObj == '' ){
113            	$this.css("display","none");
114            }
115      });
116   }
117  
118   hideImg();
119});

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.