mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-27 21:21:53 +02:00
118 lines
No EOL
3.8 KiB
HTML
118 lines
No EOL
3.8 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="ro">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<style>
|
||
#modern-banner {
|
||
position: fixed;
|
||
bottom: 20px;
|
||
right: 20px;
|
||
z-index: 1000;
|
||
background: #050224;
|
||
box-shadow: 0 4px 20px rgba(0,0,0,0.3);
|
||
border-radius: 10px;
|
||
padding: 15px;
|
||
max-width: 90%;
|
||
width: 400px;
|
||
transition: all 0.3s ease;
|
||
font-family: Arial, sans-serif;
|
||
}
|
||
#modern-banner .banner-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: 10px;
|
||
}
|
||
#modern-banner .banner-title {
|
||
color: #ffffff;
|
||
font-size: 18px;
|
||
font-weight: bold;
|
||
}
|
||
#modern-banner .banner-content {
|
||
position: relative;
|
||
overflow: hidden;
|
||
border-radius: 8px;
|
||
height: 250px;
|
||
}
|
||
#modern-banner iframe {
|
||
display: block;
|
||
width: 100%;
|
||
height: 100%;
|
||
border: none;
|
||
}
|
||
#modern-banner .close-btn {
|
||
background: none;
|
||
color: #fff;
|
||
border: none;
|
||
font-size: 24px;
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transition: transform 0.3s ease;
|
||
opacity: 0.7;
|
||
padding: 0;
|
||
width: 30px;
|
||
height: 30px;
|
||
}
|
||
#modern-banner .close-btn:hover {
|
||
transform: scale(1.1);
|
||
opacity: 1;
|
||
}
|
||
@media (max-width: 600px) {
|
||
#modern-banner {
|
||
width: calc(100% - 40px);
|
||
max-width: none;
|
||
}
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<!-- Aici este conținutul existent al site-ului dvs. -->
|
||
|
||
<div id="modern-banner" style="display: none;">
|
||
<div class="banner-header">
|
||
<div class="banner-title">Subscribe to the newsletter</div>
|
||
<button class="close-btn" onclick="closeBanner()">×</button>
|
||
</div>
|
||
<div class="banner-content">
|
||
<iframe src="https://b3fbfc70.sibforms.com/serve/MUIFAD81DdedXBbGTpVMN2Bn_wL36h3eSDK_P206yKJBORJirF7ovERtfbKbNilHbEDPJnwOhGdnOy1rAPgsG0wTSWoNMuF1BSzE0VNdvGm3qSPbgBIKYm54hmvLwBHCKNfGFhdlCjcXmh4yulv0_CRp_X3TtYfjgtjTUZEsvCwHWvkcKWAtArfkmHKMghdpuX_aEd-Y2GpkL7EQ" frameborder="0" scrolling="auto" allowfullscreen></iframe>
|
||
</div>
|
||
</div>
|
||
|
||
<script>
|
||
function setCookie(name, value, days) {
|
||
var expires = "";
|
||
if (days) {
|
||
var date = new Date();
|
||
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
||
expires = "; expires=" + date.toUTCString();
|
||
}
|
||
document.cookie = name + "=" + (value || "") + expires + "; path=/";
|
||
}
|
||
|
||
function getCookie(name) {
|
||
var nameEQ = name + "=";
|
||
var ca = document.cookie.split(';');
|
||
for(var i=0; i < ca.length; i++) {
|
||
var c = ca[i];
|
||
while (c.charAt(0)==' ') c = c.substring(1,c.length);
|
||
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
|
||
}
|
||
return null;
|
||
}
|
||
|
||
function closeBanner() {
|
||
document.getElementById('modern-banner').style.display = 'none';
|
||
setCookie('bannerClosed', 'true', 1); // Set cookie for 24 hours
|
||
}
|
||
|
||
window.onload = function() {
|
||
if (!getCookie('bannerClosed')) {
|
||
document.getElementById('modern-banner').style.display = 'block';
|
||
}
|
||
}
|
||
</script>
|
||
</body>
|
||
</html> |