| 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 | 
| 9 | 10 | 11 | 12 | 13 | 14 | 15 | 
| 16 | 17 | 18 | 19 | 20 | 21 | 22 | 
| 23 | 24 | 25 | 26 | 27 | 28 | 29 | 
| 30 | 
- 하모니카
 - script
 - hamonikr
 - DB
 - 아틀라시안
 - javascript
 - 스크립트
 - postgres
 - Atlassian
 - Linux
 - DATABASE
 - 윈도우
 - 자바
 - 3.0
 - 자바스크립트
 - python
 - 설치
 - 우분투
 - Windows
 - install
 - java
 - JS
 - 데이터베이스
 - PostgreSQL
 - 노드
 - 리눅스
 - 설정
 - ubuntu
 - node
 - 파이썬
 
- Today
 
- Total
 
목록개발/javascript (18)
LukeHan 의 잡다한 기술 블로그
// byte to hex function toHexString(byteArray){ return Array.from(byteArray, function(byte){ return ('0' + (byte & 0xFF).toString(16)).slice(-2); }).join('') } // number to hex function dec2hex(num){ hexString = num.toString(16); return hexString; } // hex to number function hex2dec(hexString){ num = parseInt(hexString, 16); return num; } // char to ascii function char2ascii(numStr){ return numS..
var type = navigator.appName; var lang = navigator.userLanguage; if(type=="Netscape") lang = navigator.language // 국가코드에서 앞 2글자만 자름 var lang = lang.substr(0,2); if(lang == "en"){ // 영어인 경우 window.location.replace('/en/index.html'); } else if (lang == "de"){ // 독일어인 경우 window.location.replace('/de/index.html'); } else if (lang == "es"){ // 스페인어 인 경우 window.location.replace('/es/index.html'); } el..
마우스를 이미지에 클릭하면 startDrag의 함수가 시작 됩니다 마우스를 이미지에 클릭하면 startDrag의 함수가 시작 됩니다
location 프로토콜 : location.protocol 도메인 : location.host 포트 : location.port 도메인 + 포트 : location.host open 새 탭 : onclick="window.open('/url', '_blank')"
var fsCheck = false; function goFullscreen(data){ var fullscreenTarget = document.getElementById('page-top'); if (fsCheck) { if(document.exitFullscreen) { document.exitFullscreen(); } else if(document.webkitExitFullscreen) { document.webkitExitFullscreen(); } else if(document.mozCancelFullScreen) { document.mozCancelFullScreen(); } else if(document.msExitFullscreen) { document.msExitFullscreen()..
iOS/Android 체크 if( /Android/i.test(navigator.userAgent)) { // 안드로이드 } else if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) { // iOS 아이폰, 아이패드, 아이팟 } else { // 그 외 디바이스 } browser 체크1 // 접속 브라우저를 확인합니다(html5 지원하지 않을 경우 경고문을 출력하기 위해 사용) function isBrowserCheck(){ var agt = navigator.userAgent.toLowerCase(); var text = ''; if ((navigator.appName == 'Netscape' && agt.indexOf('trident') != -1) || (..