- ID de l'analyse :
- 43f16ed8-c61b-4f7f-b4a8-45420aec46e8Terminée
- URL soumise :
- https://link-lib.netlify.app/
- Fin du rapport :
Liens : 0 trouvé(s)
Liens sortants identifiés à partir de la page
Variables JavaScript : 5 trouvée(s)
Les variables JavaScript globales chargées dans l'objet fenêtre d'une page sont des variables déclarées en dehors des fonctions et accessibles depuis n'importe quel endroit du code au sein du champ d'application actuel
Nom | Type |
---|---|
onbeforetoggle | object |
documentPictureInPicture | object |
onscrollend | object |
adBlockCheck | function |
closeModal | function |
Messages de journal de console : 0 trouvé(s)
Messages consignés dans la console web
HTML
Le corps HTML de la page en données brutes
<!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>