Contents

조회 수 19357 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
<!DOCTYPE html>  
<html>  
<head>  
<title>Orientation Checker</title>  
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximumscale=1.0; user-scalable=0;" />  
<script type="text/javascript" src="/js/jquery-1.6.1.min.js"></script>   
<script type="text/javascript">  
/*  
 * ios, android 둘다 지원되는 스크립트   
 */   
var ori_status;   
  
$(document).ready(function() {    
    window.onorientationchange = changeOrientation;  
    window.setTimeout(changeOrientation, 0);          
});  
  
// event handler  
function changeOrientation(){  
    if(ori_status == detectOrientation())return;  
    ori_status = detectOrientation();         
    alert(ori_status);    
}  
  
function detectOrientation(){  
    var orientation = window.orientation;   
    var rtn;  
  
    switch(orientation) {    
        case 90: case -90:    
            rtn = 'landscape';    
            break;    
        default:    
            rtn = 'portrait';    
    }    
    return rtn;  
}  
</script>  
</head>  
<body>  
  
</body>  
</html>  

?

  1. [matlab] 정보은닉 스테가노그래피(Steganography) 수업

    Date2016.10.03 CategoryDevelop Byhooni Views678
    Read More
  2. [matlab] ZigZag-Scanning (2-D Array)

    Date2016.10.15 CategoryDevelop Byhooni Views1980
    Read More
  3. [linux] 프로세스 관련 시스템콜

    Date2003.04.23 CategoryDevelop Byhooni Views7827
    Read More
  4. [linux] 임베디드 리눅스 (embedded linux)

    Date2013.04.23 CategoryDevelop Byhooni Views7354
    Read More
  5. [linux] 쉘 스크립트를 이용한 BBS

    Date2003.04.23 CategoryDevelop Byhooni Views10047
    Read More
  6. [linux] 날짜나 파일의 내용으로 검색하는 방법(find 명령 사용)

    Date2013.04.23 CategoryDevelop Byhooni Views8110
    Read More
  7. [linux] tar 명령어 뽀개기.. ㅋㅋ

    Date2003.04.23 CategoryDevelop Byhooni Views7669
    Read More
  8. [linux] crond 사용법.. ㅋㅋ

    Date2013.04.23 CategoryDevelop Byhooni Views7246
    Read More
  9. [linux] CentOS Apache 웹서버에 HTTPS 적용

    Date2015.10.23 CategoryDevelop Byhooni Views781
    Read More
  10. [lego] 세그웨이 이것만 볼것.. ㅎㅎ

    Date2013.04.23 CategoryDevelop Byhooni Views33536
    Read More
  11. [kotlin] 코틀린 안드로이드 앱 버전/빌드 정보

    Date2020.12.15 CategoryDevelop Byhooni Views815
    Read More
  12. [js]모바일 웹에서 orientationchange

    Date2013.04.23 CategoryDevelop Byhooni Views19357
    Read More
Board Pagination Prev 1 ... 7 8 9 10 11 12 13 14 15 16 ... 71 Next
/ 71