1////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2/* [ GNB ë´ë¹ë² ì´ì ] start */ 3////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 4/* ê³µíµ Drag í¨ì ìì */ 5 6var arcDrag = function(opt){ 7 8 var defaults = { 9 targets:"", 10 overTarget:"", 11 cnt:100, 12 step:1, 13 X:0, 14 Y:0, 15 radius:0, 16 angleX:0, 17 angleY:0 18 } 19 20 var arcSet = jQuery.extend({},defaults, opt); 21 var $target = arcSet.targets, 22 targetStyle = $target[0].style, 23 overStyle = arcSet.overTarget.length > 0 ? arcSet.overTarget[0].style : "", 24 alpha = Math.PI / arcSet.cnt, 25 movePos = 0, 26 posTable; 27 28 var that = { 29 30 arcPosition:function(cnt, x, y, radius, angleX, angleY){ 31 var sin = [], cos = []; 32 for(var i=0; i<cnt; i++){ 33 sin[i] = angleX*Math.floor(-Math.cos(alpha*i) * radius ) + x; 34 cos[i] = angleY*Math.floor(-Math.sin(alpha*i) * radius ) + y; 35 } 36 position = { 37 X : sin, 38 Y : cos 39 } 40 return position; 41 }, 42 43 bezierCurve1:function(x1, y1, x2, y2){ 44 var posX = [], posY = [], 45 r = [] ,t = 0; 46 for(var i=0; i<arcSet.cnt; i++){ 47 t = i/arcSet.cnt; 48 posX[i] = Math.floor((1-t)*x1 + t*x2); 49 posY[i] = Math.floor((1-t)*y1 + t*y2); 50 }//ë² ì§ì 곡ì ê³µì 2ì°¨ 곡ì 51 position = { 52 X : posX, 53 Y : posY 54 } 55 return position; 56 }, 57 58 //x1 ììì ì ìì¹ , x2 곡ì ì íí를 ê²°ì í ì , x3 ì ì ì¢ ë£ ìì¹ 59 bezierCurve2:function(x1, y1, x2, y2, x3, y3){ 60 var posX = [], posY = [], 61 r = [] ,t = 0; 62 for(var i=0; i<=arcSet.cnt; i++){ 63 t = i/arcSet.cnt; 64 r[0] = (1-t)*(1-t); 65 r[1] = 2*t*(1-t); 66 r[2] = t*t; 67 posX[i] = Math.floor((r[0]*x1) + (r[1]*x2) + (r[2]*x3)); 68 posY[i] = Math.floor((r[0]*y1) + (r[2]*y2) + (r[2]*y3)); 69 }//ë² ì§ì 곡ì ê³µì 2ì°¨ 곡ì 70 position = { 71 X : posX, 72 Y : posY 73 } 74 return position; 75 }, 76 77 dragLine:function(pos){ 78 overStyle.width = pos+4 + "px"; 79 }, 80 81 dragLineGNB:function(pos){ 82 overStyle.width = pos + "px"; 83 84 var gnbNum = Math.floor(pos / 96.5) ; 85 var currentGnbNum = ( pos / 96.5) ; 86 87 $('ul.gnb').find('li').removeClass( 'active' ) ; 88 if ( currentGnbNum > 5.9 ) { 89 $('ul.gnb').find('li').eq(6).addClass( 'active' ) ; 90 } else { 91 $('ul.gnb').find('li').eq(gnbNum).addClass( 'active' ) ; 92 } 93 94 }, 95 96 dragEndAni:function(x , y){ 97 targetStyle.left = x+"px"; 98 targetStyle.top = y+ "px"; 99 }, 100 101 dragTarget:function(evt, endPos, startPos, x, y){ 102 if(endPos + (evt - startPos) >= 0 && endPos + (evt- startPos) <= arcSet.cnt ){ 103 movePos = endPos + (evt - startPos); 104 } 105 else if(endPos + (evt - startPos) < 0){ 106 movePos = 0 107 } 108 else if(endPos + (evt- startPos) > arcSet.cnt){ 109 movePos = arcSet.cnt; 110 } 111 targetStyle.left = x+"px"; 112 targetStyle.top = y+"px"; 113 114 return movePos; 115 }, 116 117 dragTargetX:function(e, endPos, startPos){ 118 if(endPos + (e.pageX - startPos) >= 0 && endPos + (e.pageX - startPos) <= arcSet.cnt ){ 119 movePos = endPos + (e.pageX - startPos); 120 } 121 else if(endPos + (e.pageX - startPos) < 0){ 122 movePos = 0 123 } 124 else if(endPos + (e.pageX - startPos) > arcSet.cnt){ 125 movePos = arcSet.cnt 126 } 127 targetStyle.left = movePos-12+"px"; 128 return movePos; 129 }, 130 131 dragTargetY:function(e, endPos, startPos){ 132 if(endPos + (e.pageY - startPos) >= 0 && endPos + (e.pageY - startPos) <= arcSet.cnt ){ 133 movePos = endPos + (e.pageY - startPos); 134 targetStyle.top = movePos-12+"px"; 135 } 136 return movePos; 137 } 138 } 139 140 that.targetW = $target.width()/2; 141 that.targetH = $target.height()/2; 142 that.section = arcSet.cnt/arcSet.step; 143 144 return that; 145} 146 147var contentResize = function(target, scaleTarget){ 148 var $target = target, 149 $scaleTarget = scaleTarget, 150 // $dragTarget = $(".curved .dragLine"), 151 $bodyStyle = $("body")[0].style, 152 $contentWrap = $(".contentWrap"), 153 ratio = 0, winW = 0, winH = 0, left = 0, top = 0, top2 = 0, ratioTop = 0, ratioLeft = 0, ratioW = 0, ratioH = 0, 154 ratioMargin = 0; 155 156 winW = $(window).width(); 157 winH = $(window).height(); 158 scrollSize = $(document).height() - winH; 159 var that = { 160 sizeHandler:function(){ 161 top = 1280 - winH; 162 ratioW = winW/1280 < 1 ? winW/1280 : 1; 163 ratioH = winH/730 < 1 ? winH/730 : 1; 164 ratio = ratioW < ratioH ? ratioW : ratioH; 165 if(ratio <= 0.8){ 166 ratio = 0.8; 167 } 168 if(winH <= 600 ){ 169 $('body').css({ 'overflow-y' : 'visible'}); 170 $scaleTarget.css( {"transform":"scale("+0.8+","+0.8+")"}); 171 } 172 else{ 173 $('body').css({ 'overflow-y' : 'hidden'}); 174 } 175 if(winH <= 730 && winH > 600 && winW > 1280-((730-winH)*3)){ 176 $contentWrap.css({ 'width' : 1280-((730-winH)*3)}); 177 } 178 else if(winH <= 600){ 179 $contentWrap.css({ 'width' : 1024});
180 } 181 else if(winH > 730){ 182 $contentWrap.attr("style",""); 183 } 184 185 if(winH <= 730 && winH >= 600 ){ 186 if( 600 < winH && winH < 730){ 187 ratioTop = -Math.floor((730-winH)*0.4); 188 } 189 if( 1024 < winW && winW < 1280 ){ 190 ratioLeft = -Math.floor((1280-winW)*0.2); 191 } 192 ratioMargin = ratioTop < ratioLeft ? ratioTop : ratioLeft; 193 winH = 730 ; 194 $target.css({"top":365}); 195 $target.css({"top":""}); 196 $scaleTarget.css( {"transform":"scale("+ratio+","+ratio+")"}); 197 } 198 else if( winH >= (1500*ratio)){ 199 if( 600 < winH && winH < 730){ 200 ratioTop = -Math.floor((730-winW)*0.1); 201 } 202 $(".contentWrap").css({"height":Math.floor(1500*ratio)-4}); 203 $target.css({"top":0, "margin-top":0-(1280-winW)*0.60}); 204 $scaleTarget.css( {"transform":"scale("+ratio+","+ratio+")"}); 205 $target.css({"bottom":0}); 206 } 207 else if( 730 < winH && winH <= (1500*ratio)){ 208 if( 600 < winH && winH < 730){ 209 ratioTop = -Math.floor((730-winH)*0.4); 210 } 211 if( 1024 < winW && winW < 1280 ){ 212 ratioLeft = -Math.floor((1280-winW)*0.2); 213 } 214 ratioMargin = ratioTop < ratioLeft ? ratioTop : ratioLeft; 215 if(winH <= 600){ 216 $('.contentWrap').css({ 'width' : 1024}); 217 } 218 else if(winH > 730){ 219 $('.contentWrap').attr("style",""); 220 } 221 $(".contentWrap").css({"height":""}); 222 $target.css({"top":"","margin-top":""}); 223 $scaleTarget.css( {"transform":"scale("+ratio+","+ratio+")"}); 224 } 225 } 226 } 227 228 scrollSize = $(document).height() - winH; 229 if (1024 < winW && winW < 1280 ) { 230 that.sizeHandler(); 231 } 232 else if(winW <= 1024 ){ 233 winW = 1024; 234 that.sizeHandler(); 235 } 236 else if(winW >= 1280 ){ 237 winW = 1280; 238 $('body').css({ 'overflow-x' : 'hidden'}); 239 that.sizeHandler(); 240 } 241 if(winH < 730){ 242 that.sizeHandler(); 243 } 244 245 $(window).resize(function(){ 246 winW = $(this).width(); 247 winH = $(this).height(); 248 scrollSize = $(document).height() - winH; 249 if (1024 < winW && winW < 1280 ) { 250 that.sizeHandler(); 251 } 252 else if(winW <= 1024 ){ 253 winW = 1024; 254 that.sizeHandler(); 255 } 256 else if(winW >= 1280 ){ 257 winW = 1280; 258 $('body').css({ 'overflow-x' : 'hidden'}); 259 that.sizeHandler(); 260 } 261 if(winH < 730){ 262 that.sizeHandler(); 263 } 264 }); 265} 266 267var chkchkNum = 0 ; 268 269function bodyColtrolObj ( target ) { 270 var that = { 271 $target : target , 272 $wind : $(window) , 273 $fixedBox : target.find('div.fixedBox') , 274 $fixedBoxBtm : target.find('div.fixedBoxBtm') , 275 css_miw : 1024 , 276 css_mih : 600,//730 , 277 currentH : 0 , 278 docW : 0 , 279 docH : 0 , 280 281 firstSet : function () { 282 that.$target.css({ 'min-height' : that.css_mih + 'px' }) ; 283 that.currentH = that.css_mih ; 284 that.docH = $(document).height() ; 285 that.docW = $(document).width() ; 286 //that.$fixedBoxBtm.css({ 'top' : that.docH - 130 }) ; 287 } , 288 289 highResize : function () { 290 that.currentH = that.$wind.height() ; 291 that.docH = $(document).height() ; 292 that.docW = $(document).width() ; 293 //that.$fixedBoxBtm.css({ 'top' : that.currentH - 100 }) ; 294 } , 295 296 // ì¤í¬ë¡¤ì ì ì´ 297 highScrollHandler : function () { 298 var scrollT = that.$wind.scrollTop() ; 299 } 300 } ; 301 return that ; 302} 303 304function bodyColtrolHandler ( obj ) { 305 var that = bodyColtrolObj ( obj ) ; 306 that.firstSet () ; 307 that.highResize () ; 308 that.$wind.bind( 'resize' , function () { 309 that.highResize () ; 310 }) ; 311 that.$wind.bind( 'scroll' , function () { 312 that.highScrollHandler () ; 313 }) 314} 315 316/*Common Sprite Animate Handler*/ 317var sprite = function(target, imgSet){ 318 var $target = target, 319 targetStyle = $target[0].style, 320 imgW = imgSet.imageW, 321 stepW = imgSet.stepW, 322 stepH = imgSet.stepH; 323 324 var that = { 325 326 changeImage:function(index){ 327 index *= stepW; 328 var vOffset = -Math.floor(index/imgW)*stepH; 329 hOffset = -index%imgW; 330 targetStyle.backgroundPosition = hOffset +"px "+vOffset+"px"; 331 } 332 } 333 334 return that; 335} 336 337var locationSet = function(ver){ 338 var $subList = $("div.fixedBox .util li"), 339 locationSrc = location.href; 340 341 $subList.bind({ 342 click:function(e){ 343 e.preventDefault(); 344 location.href = $(this).find("a").attr("href") + "?"+ver; 345 } 346 }); 347}
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.