분류 전체보기(84)
-
안드로이드 태블릿에서 window.open 팝업 이슈
🐞 Android 태블릿 Chrome 앱에서 window.open() 후 white screen 현상대환장인 이유는console에 에러 로그도 안 뜸왼쪽에 태블릿 화면이 나타나야 하지만 나타나지도 않음새로고침했을 때 or url란을 클릭했을 때 or 화면을 길게 클릭했을 때에는 다시 잘 나타남아 어쩌란 말이냐 트위스트 추면서최초 window.open 시 약 3초 후 화면이 하얗게 질려버리는 현상에 약 24시간 정도 괴로와 한 듯🔍 문제 요약현상: window.open()으로 새 탭/창을 연 뒤 약 2~3초 후 화면이 하얗게(white screen) 변함기기 환경: Android OS 기반 태블릿브라우저: Chrome 앱발생 시점: 2025년 5월 6일 업데이트 이후확인일: 2025년 5월 14일 기준..
2025.05.14 -
태블릿 회전 시 화면이 축소되는 현상 때문에 헤메는 나
const firstWidth = window.innerWidth;const firstHeight = window.innerHeight;function fixLayout() { const aspectRatio = firstWidth / firstHeight; // 초기 화면의 너비와 높이 비율 const currentAspectRatio = window.innerWidth / window.innerHeight; if (currentAspectRatio !== aspectRatio) { document.body.style.transform = `scale(${Math.min(window.innerWidth / 1056, window.innerHeight / 1524)})`; documen..
2025.01.17 -
url에 querystring이 ascii code가 아니어서 오류 발생하는 것 때문에 만들어봤다
/** * 비ASCII 문자가 포함된 URL 쿼리 문자열을 퍼센트 인코딩 형식으로 변환합니다. * * 예를 들어, 입력 문자열 "a.do?id=가"는 "a.do?id=%EA%B0%80"로 변환됩니다. * * @param url 비ASCII 문자가 포함된 URL 쿼리 문자열입니다. 이 문자열이 퍼센트 인코딩됩니다. (ex. "a.do?id=가") * @return 퍼센트 인코딩된 URL 쿼리 문자열입니다. (ex. "a.do?id=%EA%B0%80") * @throws IllegalArgumentException 입력 URL이 null이거나 비어 있을 경우 발생합니다. * */function encodeUrlQuery(url) { var parts = url.split("?"); if (parts.len..
2024.08.06 -
CentOS7 설치 후 yum update할 때 에러 발생
[root@localhost ~]# yum updateLoaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfileCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 알 수 없는 오류" One of the configured repositories failed (Unknown), and yum doesn't have enough cached data to continu..
2024.07.11 -
js를 사용해서 듀얼 모니터고 나발이고 화면의 정중앙에 팝업을 띄워봅시다
var popupHeight = 830; var popupWidth = 790; var pheight = window.screen.availHeight; var pwidth = window.screen.availWidth; var pTop = (pheight - popupHeight) / 2; var pLeft = (pwidth - popupWidth) / 2; var dualScreenTop = window.screenY; var dualScreenLeft = window.screenX; pTop += dualScreenTop; pLeft += dualScreenLeft; if (/MSIE|Trident/.test(window.navigator.userAgent)) { if (window.screenL..
2024.03.25 -
js 현재 화면 프린트할 때
프린트 하고 싶다! = window.print() 프린트 미리보기 화면이 닫히는 시점 = onafterprint 적용하고자 했던 예시 - 팝업 화면을 프린트할 때 미리보기가 너무 작아서 보이지 않는 문제가 있었음. 그래서 생각한 방법 1. 현재 창의 가로, 세로를 저장 2.현재 창을 최대화 3. window.print() 4. 원래의 크기로 돌아가기. chatGPT가 알려줌 // 1. 현재 창의 크기를 저장합니다. var originalWidth = window.innerWidth; var originalHeight = window.innerHeight; // 2. 현재 창을 최대화합니다. window.resizeTo(screen.availWidth, screen.availHeight); // 3. wi..
2024.03.21