Code Blocks with Fullscreen Output
<!DOCTYPE html>
<html>
<head>
<title>Fullscreen Demo</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
padding: 20px;
background: #f0f8ff;
transition: all 0.3s ease;
}
.dark-mode {
background: #1a1a2e;
color: #f0f0f0;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background: white;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.dark-mode .container {
background: #2d2d2d;
box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
h1 {
color: #4285f4;
}
button {
background: #4285f4;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
margin: 10px;
}
button:hover {
opacity: 0.9;
}
.theme-toggle {
position: fixed;
top: 10px;
right: 10px;
background: rgba(0,0,0,0.1);
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
</style>
</head>
<body>
<div class="container">
<h1>Fullscreen Output Demo</h1>
<p>This HTML runs in a fullscreen popup when you click Run.</p>
<button onclick="alert('Hello from fullscreen!')">Click Me</button>
<p>Try resizing the window to see responsive behavior.</p>
<div class="theme-toggle" onclick="document.body.classList.toggle('dark-mode')">
☀️
</div>
</div>
</body>
</html>
Share this post