PageSourceSearch

http://www.samsungfnreit.com/js/manage_viewport.js

js samsungfnreit.com collected 2026-10-05 23:14:36 UTC 1,309 bytes, 48 lines download raw bytes

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.