1// ê´ë¦¬ì viewport // 2 3var deviceFilter = "win16|win32|win64|mac|macintel" 4var windowWidth = window.screen.width; 5var pxFixed = "width=550, maximum-scale=1.0, user-scalable=no" 6var deFault = "width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=yes" 7 8// ê°ë¡ëª¨ë, ì¸ë¡ëª¨ë ì²´ì¸ì§í ê²½ì° 9function deviceChange (){ 10 var orientation = window.orientation; 11 if(orientation != undefined){ 12 if(orientation == 0){ 13 // ì¸ë¡ëª¨ë 14 $("meta[name=viewport]").attr("content", pxFixed) 15 }else if(orientation == 90){ 16 // ê°ë¡ëª¨ë 17 setTimeout(function(){ 18 $("meta[name=viewport]").attr("content", deFault) 19 },10) 20 } 21 } 22} 23function setViewPort(w_width) { 24 if (w_width <= 550 ){ 25 $("meta[name=viewport]").attr("content", pxFixed) 26 } else { 27 $("meta[name=viewport]").attr("content", deFault) 28 } 29} 30setViewPort(windowWidth); 31deviceChange(); 32 33// ëë°ì´ì¤ 기기 ë¶ì 34if ( navigator.platform ){ 35 if ( deviceFilter.indexOf(navigator.platform.toLowerCase())<0){ 36 // 모ë°ì¼ê¸°ê¸° 37 $(window).on("orientationchange", function(event) { 38 deviceChange(); 39 }); 40 41 } else{ 42 // í¼ì기기 43 $(window).resize(function(){ 44 var windowWidth = window.screen.width 45 setViewPort(windowWidth); 46 }); 47 } 48}
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.