GameZone Witgets
GameZone Tarafından Paylaşılan Widgetler Vardır.
GameZone Tarafından Paylaşılan Widgetler Vardır.
<div style="border: 2px solid #17a2b8; padding: 20px; border-radius: 10px; background-color: #eafafc; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); text-align: center;">
<h3 style="color: #17a2b8;">Rastgele Alıntı</h3>
<p id="quote" style="font-style: italic; font-size: 18px;">"Hayat, %10 ne olduğunuz ve %90 ne düşündüğünüzdür."</p>
<button onclick="newQuote()" style="background-color: #17a2b8; color: white; padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer;">
Yeni Alıntı
</button>
</div>
<script>
const quotes = [
'"Hayat, %10 ne olduğunuz ve %90 ne düşündüğünüzdür."',
'"Başarı, en iyi öğretmendir." - Bill Gates',
'"Hayallerinize ulaşmak için ilk adımı atın."',
'"Zaman, en değerli kaynağınızdır."',
'"Gelecek, bugünden ne yaptığınıza bağlıdır."'
];
function newQuote() {
const randomIndex = Math.floor(Math.random() * quotes.length);
document.getElementById('quote').innerText = quotes[randomIndex];
}
</script>
<div style="border: 2px solid #007bff; padding: 20px; border-radius: 10px; background-color: #cce5ff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); text-align: center;">
<h3 style="color: #007bff;">Günün Tarihi ve Saati</h3>
<p id="date-time" style="font-size: 24px; font-weight: bold;"></p>
</div>
<script>
function updateDateTime() {
const now = new Date();
const options = { year: 'numeric', month: 'long', day: 'numeric', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false };
document.getElementById('date-time').innerText = now.toLocaleString('tr-TR', options);
}
setInterval(updateDateTime, 1000);
updateDateTime(); // İlk güncelleme
</script>
<div style="border: 2px solid #ff5722; padding: 20px; border-radius: 10px; background-color: #ffe0e0; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); text-align: center;">
<h3 style="color: #ff5722;">Renk Seçici</h3>
<input type="color" id="color-input" value="#ff5722" onchange="changeColor(this.value)" style="width: 100%; height: 40px; border: none;">
<p id="color-output" style="margin-top: 10px; font-size: 24px;">Seçilen Renk: <span id="selected-color">#ff5722</span></p>
</div>
<script>
function changeColor(color) {
document.getElementById('selected-color').innerText = color;
document.body.style.backgroundColor = color; // Arka plan rengini değiştir
}
</script>
<div style="border: 2px solid #28a745; padding: 20px; border-radius: 10px; background-color: #d4edda; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); text-align: center;">
<h3 style="color: #28a745;">Zamanlayıcı</h3>
<input type="number" id="timer-input" placeholder="Saniye girin" style="padding: 10px; border: 1px solid #ccc; border-radius: 5px; width: 80%;">
<button onclick="startTimer()" style="background-color: #28a745; color: white; padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer;">
Başlat
</button>
<p id="timer-output" style="margin-top: 10px; font-size: 24px;"></p>
</div>
<script>
function startTimer() {
const seconds = document.getElementById('timer-input').value;
let remainingTime = seconds;
const countdown = setInterval(() => {
if (remainingTime <= 0) {
clearInterval(countdown);
document.getElementById('timer-output').innerText = "Zaman doldu!";
} else {
document.getElementById('timer-output').innerText = `${remainingTime} saniye kaldı`;
remainingTime--;
}
}, 1000);
}
</script>
<div style="border: 2px solid #ff5722; padding: 20px; border-radius: 10px; background-color: #ffe0e0; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); text-align: center;">
<h3 style="color: #ff5722;">Eğlenceli Sesli Yanıt</h3>
<input type="text" id="voice-input" placeholder="Bir şey yazın" style="padding: 10px; border: 1px solid #ccc; border-radius: 5px; width: 80%;">
<button onclick="speakText()" style="background-color: #ff5722; color: white; padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer;">
Sesli Yanıt Ver
</button>
</div>
<script>
function speakText() {
const text = document.getElementById('voice-input').value;
const speech = new SpeechSynthesisUtterance(text);
window.speechSynthesis.speak(speech);
}
</script>
<div style="border: 2px solid #ff4d4d; padding: 20px; border-radius: 10px; background-color: #ffeef8; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); text-align: center;">
<h3 style="color: #ff4d4d;">Anlık Müzik Önerileri</h3>
<button onclick="getMusicRecommendation()" style="background-color: #ff4d4d; color: white; padding: 10px; border: none; border-radius: 5px; cursor: pointer;">
Öneri Al
</button>
<p id="music-output" style="margin-top: 10px; font-size: 18px;"></p>
</div>
<script>
const musicRecommendations = [
"Şarkı 1: 'Shape of You' - Ed Sheeran",
"Şarkı 2: 'Blinding Lights' - The Weeknd",
"Şarkı 3: 'Levitating' - Dua Lipa",
"Şarkı 4: 'Stay' - The Kid LAROI & Justin Bieber"
];
function getMusicRecommendation() {
const randomIndex = Math.floor(Math.random() * musicRecommendations.length);
document.getElementById('music-output').innerText = musicRecommendations[randomIndex];
}
</script>
<div style="border: 2px solid #6f42c1; padding: 20px; border-radius: 10px; background-color: #f8f9fa; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); text-align: center;">
<h3 style="color: #6f42c1;">Rastgele Resim Gösterici</h3>
<button onclick="showRandomImage()" style="background-color: #6f42c1; color: white; padding: 10px; border: none; border-radius: 5px; cursor: pointer;">
Rastgele Resim Göster
</button>
<div id="image-output" style="margin-top: 10px;"></div>
</div>
<script>
const images = [
"https://via.placeholder.com/150/FF5733/FFFFFF?text=Resim+1",
"https://via.placeholder.com/150/33FF57/FFFFFF?text=Resim+2",
"https://via.placeholder.com/150/3357FF/FFFFFF?text=Resim+3",
"https://via.placeholder.com/150/FF33A1/FFFFFF?text=Resim+4"
];
function showRandomImage() {
const randomIndex = Math.floor(Math.random() * images.length);
document.getElementById('image-output').innerHTML = `<img src="${images[randomIndex]}" alt="Rastgele Resim" style="width: 150px; height: auto;">`;
}
</script>
<div style="border: 2px solid #007bff; padding: 20px; border-radius: 10px; background-color: #eafafc; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); text-align: center;">
<h3 style="color: #007bff;">Kullanıcı Aracısı Bilgileri</h3>
<button onclick="showUserAgent()" style="background-color: #007bff; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer;">
Bilgileri Göster
</button>
<div id="user-agent-output" style="margin-top: 20px; font-family: monospace;"></div>
</div>
<script>
function showUserAgent() {
const userAgent = navigator.userAgent;
document.getElementById('user-agent-output').innerText = `Kullanıcı Aracısı: ${userAgent}`;
}
</script>
<div style="border: 2px solid #6f42c1; padding: 20px; border-radius: 10px; background-color: #f8f9fa; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); text-align: center;">
<h3 style="color: #6f42c1;">Uluslararası Saatler</h3>
<div id="clocks" style="font-size: 20px; margin: 20px 0;"></div>
<button onclick="updateClocks()" style="background-color: #6f42c1; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer;">
Saatleri Güncelle
</button>
</div>
<script>
const timezones = [
{ name: "New York", offset: -4 },
{ name: "London", offset: 0 },
{ name: "Berlin", offset: 2 },
{ name: "Istanbul", offset: 3 },
{ name: "Tokyo", offset: 9 },
{ name: "Sydney", offset: 10 }
];
function updateClocks() {
const clocksDiv = document.getElementById('clocks');
clocksDiv.innerHTML = ''; // Önceki saatleri temizle
timezones.forEach(zone => {
const date = new Date();
const utc = date.getTime() + (date.getTimezoneOffset() * 60000);
const localTime = new Date(utc + (3600000 * zone.offset));
const timeString = localTime.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
const clockDiv = document.createElement('div');
clockDiv.innerText = `${zone.name}: ${timeString}`;
clocksDiv.appendChild(clockDiv);
});
}
// Sayfa yüklendiğinde saatleri güncelle
updateClocks();
</script>