Image Resizer
Tab 1
Tab 2
Tab 3
Tab 4
Tab 5
Tab 6
Tab 7
Tab 8
4
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Image Resizer</title>
<style>
#sliderContainer {
margin: 20px;
}
#imageContainer {
text-align: center;
margin-top: 20px;
}
#resizableImage {
max-width: 100%;
}
</style>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Indsæt Dags Dato og Klokkeslet</title>
<script>
function insertDateTime() {
const now = new Date();
const date = now.toLocaleDateString(‘da-DK’, {
year: ‘numeric’,
month: ‘long’,
day: ‘numeric’
});
const time = now.toLocaleTimeString(‘da-DK’, {
hour: ‘2-digit’,
minute: ‘2-digit’,
second: ‘2-digit’
});
document.getElementById(‘datetime’).innerText = `${date} ${time}`;
}
window.onload = insertDateTime;
</script>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Image Size Slider</title>
<style>
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
font-family: Arial, sans-serif;
}
.container {
text-align: center;
}
.slider-container {
width: 500px;
margin: 20px auto;
}
.slider {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 15px;
background: #ddd;
outline: none;
opacity: 0.7;
transition: opacity 0.2s;
}
.slider:hover {
opacity: 1;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 25px;
height: 25px;
background: #4CAF50;
cursor: pointer;
border-radius: 50%;
}
.slider::-moz-range-thumb {
width: 25px;
height: 25px;
background: #4CAF50;
cursor: pointer;
border-radius: 50%;
}
#image {
max-width: 100%;
transition: width 0.2s, height 0.2s;
}
</style>
</head>