1// JavaScript Document 2 3//íë ì¶ì 4(function () { 5 var _common = {}; 6 var nowZoom = 100; 7 var nowZoomML = 0; 8 var nowZoom_f = 1; 9 var sizeType = 0; 10 _common.isMobile = false; 11 _common.zoomcontrol = { 12 zoomout : function(){ 13 nowZoom = nowZoom - 10; 14 nowZoomML = ( 100 - nowZoom )/2; 15 nowZoom_f /=1.2; 16 if(nowZoom <= 70) nowZoom = 70; 17 _common.zoomcontrol.zooms(); 18 return false; 19 }, 20 zoomin : function(){ 21 nowZoom = nowZoom + 10; 22 nowZoomML = ( 100 - nowZoom )/2; 23 nowZoom_f *=1.2; 24 if(nowZoom >= 150) nowZoom = 150; 25 _common.zoomcontrol.zooms(); 26 return false; 27 }, 28 zoomreset : function(){ 29 nowZoom = 100; 30 nowZoomML = 0; 31 nowZoom_f =1; 32 _common.zoomcontrol.zooms(); 33 return false; 34 }, 35 zooms : function(){ 36 document.body.style.zoom = nowZoom + '%'; 37 document.body.style.MozTransform = 'scale('+nowZoom_f+')'; // Mozilla(firefox) 38 document.body.style.MozTransformOrigin = '0 0'; 39 document.body.style.OTransform = 'scale('+nowZoom_f+')'; // Opera 40 document.body.style.OTransformOrigin = '0 0'; 41 42 if($('html').hasClass('ie')) { 43 document.body.style.marginLeft = nowZoomML + '%'; 44 } 45 46 setTimeout(function() { 47 if(nowZoom==70){ 48 alert ("30% ì¶ì ëììµëë¤. ë ì´ì ì¶ìí ì ììµëë¤."); 49 } 50 if(nowZoom==150){ 51 alert ("150% íë ëììµëë¤. ë ì´ì íëí ì ììµëë¤."); 52 } 53 }, 500) 54 } 55 }; 56 57 if (typeof uw == 'undefined') { 58 window.uw = {}; 59 } 60 uw = _common; 61 zoomcontrol = _common.zoomcontrol; 62})(); 63 64 65 66 67 68 69//equalizeHeights 70$.fn.equalizeHeights = function() { 71var maxHeight = this.map(function( i, e ) { 72return $( e ).outerHeight(); 73}).get(); 74return this.outerHeight( Math.max.apply( this, maxHeight ) ); 75}; 76 77function equalH(t){ 78 if(t==null){ 79 t=".equalH" 80 } 81 $(""+t+"").equalizeHeights(); 82} 83 84function toggleC(t){ 85 if(t==null){ 86 t=".toggle" 87 } 88 $(""+t+"").toggleClass("on") 89} 90 91 92//gotop 93function goTop() { 94 $('body, html').animate({ scrollTop: $("#divMain").offset().top }, 500); 95} 96 97 98//tab 99$(function(){ 100 $(".tab_idx.over > li").each(function () { 101 }).mouseenter(function () { 102 var n = $(this).index(); 103 $(this).parents(".wrap_idx").find(".con_idx .idx").removeClass("on"); 104 $(this).parents(".wrap_idx").find(".con_idx .idx:eq("+n+")").addClass("on"); 105 $(this).parents(".wrap_idx").find(".tab_idx > li").removeClass("on"); 106 $(this).addClass("on"); 107 }); 108 $(".tab_idx.click > li").each(function () { 109 }).click(function () { 110 var n = $(this).index(); 111 $(this).parents(".wrap_idx").find(".con_idx .idx").removeClass("on"); 112 $(this).parents(".wrap_idx").find(".con_idx .idx:eq("+n+")").addClass("on") 113 $(this).parents(".wrap_idx").find(".tab_idx > li").removeClass("on"); 114 $(this).addClass("on"); 115 }); 116}); 117 118//pop 119function layerOpen(url){ 120 var bg = '<div class="layer_bg" onclick="layerClose()"></div>' 121 var frame ='<iframe class="layer_frame" src="'+url+'" frameborder="0" scrolling="no" allowtransparency="true"></iframe>' 122 var wrap = '<div class="layer_wrap">'+bg+frame+'</div>' 123 $("body").append(wrap); 124 $("html").css("overflow-y","hidden"); 125 layerLoad() 126}; 127function layerLoad(){ 128 $(".layer_frame").load(function(){ 129 $(".layer_wrap").addClass("on") 130 var obj = $(".layer_frame").contents().find('.popIn'); 131 var btnClose = "<a href='javascript:parent.layerClose()' class='popClose'>⨯</a>" 132 obj.append(btnClose) 133 }) 134} 135 136function layerClose(){ 137 $(".layer_wrap").remove() 138 $("html").css("overflow-y","scroll"); 139}; 140 141function popOpenC(u,w,h){ 142 var winW = window.screen.width; 143 var winH = window.screen.height; 144 var L = (winW-w)/2 145 var T = (winH-h)/2 146 window.open(u,'','width='+w+',height='+h+',left='+L+',top='+T+', status=yes, toolbar=no, menubar=no, location=no, scrollbars=yes') 147} 148 149// 150//function imgThumb(obj){ 151// var src = $(obj).find("img").attr("src"); 152// var target = $(obj).parent(".small").next(".big").find(".imgBig"); 153// target.attr("src",src);
154// $(obj).siblings().removeClass("on"); 155// $(obj).addClass("on"); 156//} 157 158 159 160 161// 162function imgResize(r,t){ 163 function resize(){ 164 if(r==null){ 165 r=0.6666 166 } 167 if(t==null){ 168 t=".img_resize" 169 } 170 $(""+t+"").each(function (i) { 171 var imgW = $(this).width(); 172 $(this).height(imgW*r) 173 }); 174 175 } 176 $(document).ready(function(){ 177 resize() 178 }) 179 $(window).resize(function(){ 180 resize() 181 }) 182} 183 184function memFind(){ 185 $(".memFindWrap").slideToggle() 186 $(".memFindWrapHide").slideToggle() 187} 188 189 190 191 192 193 194//gall_thumb ììê°¤ë¬ë¦¬// 195function resize_gall(){ 196 $(".resize_gall").css("overflow","hidden"); 197 $(".resize_gall img").css("width","100%") 198 function resize(){ 199 $(".resize_gall").each(function (i) { 200 var imgW = $(this).width(); 201 $(this).height(imgW*0.5666) 202 $(this).find("img").css("min-height",imgW*0.5666) 203 }); 204 } 205 function resize2(){ 206 $(".resize_gall").each(function (i) { 207 var imgW = $(this).width(); 208 var imgH = $(this).find("img").height(); 209 if(imgW < imgH || imgW == imgH){ 210 var gap = (imgH - $(".resize_gall").height())/2 211 $(this).find("img").css("margin-top","-"+gap+"px") 212 } 213 }); 214 } 215 $(window).load(function(){ 216 resize() 217 resize2() 218 }) 219 $(window).resize(function(){ 220 resize() 221 resize2() 222 }) 223} 224 225 226//ë©ì¸ììê°¤ë¬ë¦¬// 227function resize_gall2(){ 228 $(".resize_gall2").css("overflow","hidden"); 229 $(".resize_gall2 img").css("width","100%") 230 function resize(){ 231 $(".resize_gall2").each(function (i) { 232 var imgW = $(this).width(); 233 $(this).height(imgW*0.4666) 234 $(this).find("img").css("min-height",imgW*0.4666) 235 }); 236 } 237 function resize2(){ 238 $(".resize_gall2").each(function (i) { 239 var imgW = $(this).width(); 240 var imgH = $(this).find("img").height(); 241 if(imgW < imgH || imgW == imgH){ 242 var gap = (imgH - $(".resize_gall2").height())/2 243 $(this).find("img").css("margin-top","-"+gap+"px") 244 } 245 }); 246 } 247 $(window).load(function(){ 248 resize() 249 resize2() 250 }) 251 $(window).resize(function(){ 252 resize() 253 resize2() 254 }) 255} 256 257 258 259 260 261//agreeAll ì²´í¬ë°ì¤// 262function agreeCheck(){ 263 var checkbox = "#contents input.agreeCheck" 264 var checkboxAll = "#contents input.agreeAll" 265 var wrapBtn = "#contents .agree_btn_wrap" 266 var wrapAll = "#contents .agree_all_wrap" 267 var wrap = "#contents .agree_wrap .agree" 268 var onClass = "on" 269 $(checkbox).click(function(){ 270 var length = $(checkbox).length 271 var lengthCheck = $(checkbox+":checked").length 272 var lengthEss = $(checkbox+".ess").length 273 var lengthCheckEss = $(checkbox+":checked.ess").length 274 if(lengthEss == lengthCheckEss){ 275 $(wrapBtn).addClass(onClass) 276 }else{ 277 $(wrapBtn).removeClass(onClass) 278 } 279 if(length == lengthCheck){ 280 $(wrapAll).addClass(onClass) 281 $(checkboxAll).prop("checked","checked") 282 }else{ 283 $(wrapAll).removeClass(onClass) 284 $(checkboxAll).removeProp("checked","checked") 285 } 286 if($(this).parents(wrap).hasClass(onClass)){ 287 $(this).parents(wrap).removeClass(onClass) 288 }else{ 289 $(this).parents(wrap).addClass(onClass) 290 } 291 }) 292 $(checkboxAll).click(function(){ 293 if($(this).prop("checked")==true){ 294 $(wrapBtn+","+wrapAll+","+wrap).addClass(onClass) 295 $(checkbox).prop("checked","checked") 296 }else{ 297 $(wrapBtn+","+wrapAll+","+wrap).removeClass(onClass) 298 $(checkbox).removeProp("checked","checked") 299 } 300 }) 301} 302function findCheck(){ 303 var radio = "#contents input.radioCheck" 304 var wrap = ".radioCheckWrap" 305 var wrapForm = ".radioCheckForm" 306 var onClass = "on" 307 $("#contents input.radioCheck").click(function(){ 308 if($(this).hasClass(onClass)){}else{ 309 if($(this).prop("checked")==true){ 310 $(radio).removeClass(onClass) 311 $(this).addClass(onClass) 312 $(wrap).next(wrapForm).slideUp() 313 $(this).parents(wrap).next(wrapForm).slideDown() 314 } 315 } 316 }) 317} 318 319 320 321 322//모ë°ì¼ ë¤ë¹//
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.