- 제출된 URL:
- https://link-lib.netlify.app/
- 보고서 완료:
링크 · 0개 결과
페이지에서 식별된 외부 링크
JavaScript 변수 · 5개 결과
페이지의 창 개체에 로드된 전역 JavaScript 변수는 함수 외부에서 선언된 변수로, 현재 범위 내에서 코드의 어느 부분에서나 액세스할 수 있습니다
이름 | 유형 |
---|---|
onbeforetoggle | object |
documentPictureInPicture | object |
onscrollend | object |
adBlockCheck | function |
closeModal | function |
콘솔 로그 메시지 · 0개 결과
웹 콘솔에 기록된 메시지
HTML
페이지의 원시 HTML 본문
<!DOCTYPE html><html lang="en"><head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ad Blocker Detection</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<link rel="icon" href="logo.png" type="image/png">
<style>
body {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
text-align: center;
}
h1 {
margin-top: 50px;
}
.ad-blocker-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
z-index: 1000;
justify-content: center;
align-items: center;
}
.modal-content {
background: white;
padding: 20px;
border-radius: 8px;
max-width: 400px;
width: 90%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.modal-header {
font-size: 1.5rem;
margin-bottom: 10px;
}
.modal-body {
margin-bottom: 20px;
}
.close-button, .disable-button {
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
.close-button {
background: red;
color: white;
}
.disable-button {
background: green;
color: white;
}
#main-content {
display: none;
margin-top: 50px;
}
.show {
display: block;
}
</style>
</head>
<body>
<div id="main-content">
<h1>Welcome to Our Website</h1>
<p>Enjoy your stay! Please consider disabling your ad blocker to support us.</p>
<button id="learn-more" class="disable-button" onclick="window.location.href='lib'">Go</button>
</div>
<div id="ad-blocker-modal" class="ad-blocker-modal">
<div class="modal-content">
<div class="modal-header">Ad Blocker Detected</div>
<div class="modal-body">
<p>It seems you are using an ad blocker. Please consider disabling it to support our content.</p>
</div>
<button class="close-button" onclick="closeModal()">Close</button>
</div>
</div>
<script>
function adBlockCheck() {
setTimeout(function() {
document.body.innerHTML += `<div class="adsbygoogle" id="test-ad"></div>`;
const testAd = document.getElementById('test-ad');
const testAdStyle = getComputedStyle(testAd);
if (testAdStyle.display === 'none') {
document.getElementById('ad-blocker-modal').style.display = 'flex';
document.getElementById('main-content').style.display = 'none';
} else {
document.getElementById('main-content').style.display = 'block';
}
}, 1000);
}
function closeModal() {
document.getElementById('ad-blocker-modal').style.display = 'none';
document.getElementById('main-content').style.display = 'block';
}
adBlockCheck();
</script>
</body></html>