EkaSunucu bietet völlig kostenlose Tools und Codes, mit denen Sie Ihre Website entwickeln können. Goldpreise, Wechselkurse, Wetter, Zeit- und Datumscodes und mehr!
Kopieren Sie die Codes, fügen Sie sie ein und verwenden Sie sie sofort
Sie können es nach Ihren Wünschen bearbeiten
Alle Codes sind kostenlos und unbegrenzt nutzbar
Immer auf dem neuesten Stand und funktionsfähig
Führen Sie die folgenden Schritte aus, um die Codes zu Ihrer Website hinzuzufügen
Kopieren Sie den Code in die Zwischenablage, indem Sie neben dem gewünschten Code auf die Schaltfläche „Kopieren“ klicken.
Fügen Sie im HTML-Inhalt Ihrer Website den Code in den Abschnitt ein, den Sie anzeigen möchten.
Die Codes werden automatisch ausgeführt. Wenn Sie möchten, können Sie die Codes anpassen, um sie für Ihre eigene Website geeignet zu machen.
Alle vorgefertigten Codes, die Sie zur Bereicherung Ihrer Website benötigen, finden Sie hier. Wählen Sie aus den in Kategorien unterteilten Codes die Codes aus, die für Ihre Website geeignet sind.
Sie können jeden getesteten und gebrauchsfertigen Code überprüfen und zu Ihrer Website hinzufügen. Sie können es ganz einfach verwenden, indem Sie die Installationsanweisungen befolgen.
Mit diesem Code können Sie Ihrer Website ein Widget hinzufügen, das die aktuellen Goldpreise anzeigt. Es zeigt die Preise für Grammgold, Viertelgold, Halbgold, Vollgold und ONS-Gold live an.
<iframe src="https://www.altinfiyat.org/altin-fiyatlari-widget" width="100%" height="400" frameborder="0" scrolling="no"></iframe>
Mit diesem Code können Sie Ihrer Website ein Widget hinzufügen, das aktuelle Wechselkurse anzeigt. Sie können die aktuellen Wechselkurse von Dollar, Euro, Pfund Sterling, Kanadischem Dollar, Schweizer Franken und anderen Währungen verfolgen.
<iframe src="https://www.doviz.com/widget/doviz-kurlari" width="100%" height="350" frameborder="0" scrolling="no"></iframe>
Mit diesem Code können Sie Ihrer Website ein Widget hinzufügen, das die Indizes der Borsa Istanbul (BIST) anzeigt. BIST 100, BIST 30, BIST Zeigt die aktuellen Werte und Veränderungsraten von Banken und anderen wichtigen Indizes an.
<iframe src="https://bigpara.hurriyet.com.tr/widgets/borsa/borsa-widget.html" width="100%" height="400" frameborder="0" scrolling="no"></iframe>
Mit diesem Code können Sie Ihrer Website ein Widget hinzufügen, das Live-Aktienkurse anzeigt. Sie können die aktuellen Werte, Wechselkurse und Transaktionsvolumina der an der Borsa Istanbul gehandelten Aktien verfolgen.
<iframe src="https://finans.mynet.com/borsa/canli-borsa-verileri/" width="100%" height="450" frameborder="0" scrolling="yes"></iframe>
Mit diesem Code können Sie Ihrer Website ein Kreditberechnungstool hinzufügen. Ihre Besucher können die monatliche Zahlung, die Gesamtrückzahlung und die Gesamtzinsbeträge berechnen, indem sie Informationen zu Kredithöhe, Laufzeit und Zinssatz eingeben.
<div id="kredi-hesaplama" style="max-width: 600px; margin: 0 auto; font-family: Arial, sans-serif;">
<style>
.kredi-form {
background-color: #f8fafc;
padding: 20px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.kredi-form h3 {
color: #0ea5e9;
margin-top: 0;
text-align: center;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: bold;
color: #1e293b;
}
.form-control {
width: 100%;
padding: 10px;
border: 1px solid #cbd5e1;
border-radius: 5px;
font-size: 16px;
}
.btn-hesapla {
background: linear-gradient(135deg, #0ea5e9, #0284c7);
color: white;
border: none;
padding: 12px 25px;
border-radius: 5px;
cursor: pointer;
width: 100%;
font-weight: bold;
font-size: 16px;
}
.sonuc {
margin-top: 20px;
background: white;
padding: 15px;
border-radius: 5px;
border-left: 4px solid #0ea5e9;
}
.sonuc-item {
margin-bottom: 10px;
}
.sonuc-item span {
font-weight: bold;
color: #0ea5e9;
}
</style>
<div class="kredi-form">
<h3>Kredi Kontolama</h3>
<div class="form-group">
<label for="kredi-tutari">Kredi Tutarı (TL)</label>
<input type="number" id="kredi-tutari" class="form-control" placeholder="Örn: 50000">
</div>
<div class="form-group">
<label for="vade">Vade (Ay)</label>
<input type="number" id="vade" class="form-control" placeholder="Örn: 36">
</div>
<div class="form-group">
<label for="faiz-orani">Yıllık Faiz Oranı (%)</label>
<input type="number" step="0.01" id="faiz-orani" class="form-control" placeholder="Örn: 1.89">
</div>
<button class="btn-hesapla" onclick="krediKontola()">Kontola</button>
<div id="sonuc" class="sonuc" style="display: none;">
<div class="sonuc-item">Monatlich Zahlung: <span id="aylik-odeme">0</span> TL</div>
<div class="sonuc-item">Toplam Geri Zahlung: <span id="toplam-odeme">0</span> TL</div>
<div class="sonuc-item">Toplam Faiz: <span id="toplam-faiz">0</span> TL</div>
</div>
</div>
<script>
function krediKontola() {
// Değerleri al
const krediTutari = parseFloat(document.getElementById('kredi-tutari').value);
const vade = parseInt(document.getElementById('vade').value);
const yillikFaizOrani = parseFloat(document.getElementById('faiz-orani').value);
// Fehler Kontrolle
if (isNaN(krediTutari) || isNaN(vade) || isNaN(yillikFaizOrani)) {
alert('Bitte alle Felder korrekt şekilde doldProdukt!');
return;
}
// Monatlich faiz oranı hesaplama
const aylikFaizOrani = yillikFaizOrani / 12 / 100;
// Monatlich ödeme hesaplama
const aylikOdeme = krediTutari * aylikFaizOrani * Math.pow(1 + aylikFaizOrani, vade) /
(Math.pow(1 + aylikFaizOrani, vade) - 1);
// Toplam geri ödeme ve faiz hesaplama
const toplamOdeme = aylikOdeme * vade;
const toplamFaiz = toplamOdeme - krediTutari;
// Ergebnisları göster
document.getElementById('aylik-odeme').textContent = aylikOdeme.toFixed(2);
document.getElementById('toplam-odeme').textContent = toplamOdeme.toFixed(2);
document.getElementById('toplam-faiz').textContent = toplamFaiz.toFixed(2);
document.getElementById('sonuc').style.display = 'block';
}
</script>
</div>
Mit diesem Code können Sie Ihrer Website aktuelle Nachrichten hinzufügen. Teilen Sie Ihren Besuchern aktuelle Nachrichten, aktuelle Nachrichten und andere wichtige Entwicklungen mit.
<iframe src="https://www.haberler.com/haber-widget/" width="100%" height="500" frameborder="0" scrolling="auto" style="border-radius: 10px;"></iframe>
Mit diesem Code können Sie Ihrer Seite aktuelle Wirtschaftsnachrichten hinzufügen. Erstellen Sie nützliche Inhalte für Ihre Besucher, die die Märkte, Wechselkurse, den Aktienmarkt und die Wirtschaftsagenda verfolgen möchten.
<iframe src="https://www.bloomberght.com/piyasa/haber-feed" width="100%" height="500" frameborder="0" scrolling="auto" style="border-radius: 10px;"></iframe>
Mit diesem Code können Sie aktuelle Sportnachrichten zu Ihrer Website hinzufügen. Verfolgen Sie die neuesten Nachrichten, Tabellen und Spielergebnisse aus Fußball, Basketball, Volleyball und anderen Bereichen.
<iframe src="https://www.sporx.com/widget/son-dakika-haberleri" width="100%" height="500" frameborder="0" scrolling="auto" style="border-radius: 10px;"></iframe>
Mit diesem Code können Sie Ihrer Website aktuelle Technologie-News hinzufügen. Verfolgen Sie neue Technologien, Smartphones, Software-Updates und die neuesten Entwicklungen in der Welt der Technologie.
<iframe src="https://www.webtekno.com/widget/teknoloji-haberleri" width="100%" height="500" frameborder="0" scrolling="auto" style="border-radius: 10px;"></iframe>
Mit diesem Code können Sie Ihrer Website aktuelle Nachrichten und Ankündigungen des Ministeriums für nationale Bildung hinzufügen. Verfolgen Sie die neuesten Entwicklungen im Bildungssystem, Prüfungen und wichtige Termine für Schüler, Lehrer und Eltern.
<iframe src="https://www.meb.gov.tr/meb_duyuru_widget/" width="100%" height="500" frameborder="0" scrolling="auto" style="border-radius: 10px;"></iframe>
Mit diesem Code können Sie Ihrer Website eine stilvolle und funktionale Digitaluhr hinzufügen. Erhöhen Sie die visuelle Attraktivität Ihrer Website und zeigen Sie Ihren Besuchern gleichzeitig die aktuelle Uhrzeit an.
<div id="dijital-saat" style="text-align: center; font-family: Arial, sans-serif;">
<style>
.saat-container {
display: inline-block;
background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
padding: 20px 30px;
border-radius: 10px;
box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
margin: 20px auto;
}
.saat-rakamlar {
font-size: 48px;
font-weight: bold;
color: white;
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
letter-spacing: 2px;
}
.saat-saniye {
color: rgba(255, 255, 255, 0.8);
}
.saat-ampm {
font-size: 18px;
font-weight: normal;
vertical-align: middle;
margin-left: 5px;
opacity: 0.9;
}
.saat-tarih {
margin-top: 8px;
color: white;
font-size: 16px;
opacity: 0.8;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.03); }
100% { transform: scale(1); }
}
.saat-container:hover {
animation: pulse 1.5s infinite;
}
.saat-ayrac {
animation: blink 1.5s infinite;
}
@keyframes blink {
0% { opacity: 1; }
50% { opacity: 0.3; }
100% { opacity: 1; }
}
</style>
<div class="saat-container">
<div class="saat-rakamlar">
<span id="saat">00</span>
<span class="saat-ayrac">:</span>
<span id="dakika">00</span>
<span class="saat-ayrac">:</span>
<span id="saniye" class="saat-saniye">00</span>
<span id="ampm" class="saat-ampm">AM</span>
</div>
<div class="saat-tarih" id="tarih">Pazartesi, 1 Ocak 2023</div>
</div>
<script>
function saatGuncelle() {
const simdi = new Date();
const gunler = ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"];
const aylar = ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"];
let saat = simdi.getHours();
const ampm = saat >= 12 ? 'PM' : 'AM';
saat = saat % 12;
saat = saat ? saat : 12;
const dakika = simdi.getMinutes();
const saniye = simdi.getSeconds();
const tarih = gunler[simdi.getDay()] + ', ' + simdi.getDate() + ' ' + aylar[simdi.getMonth()] + ' ' + simdi.getFullYear();
document.getElementById('saat').textContent = saat.toString().padStart(2, '0');
document.getElementById('dakika').textContent = dakika.toString().padStart(2, '0');
document.getElementById('saniye').textContent = saniye.toString().padStart(2, '0');
document.getElementById('ampm').textContent = ampm;
document.getElementById('tarih').textContent = tarih;
setTimeout(saatGuncelle, 1000);
}
saatGuncelle();
</script>
</div>
Mit diesem Code können Sie Ihrer Website einen stilvollen Kalender hinzufügen. Ihre Besucher können das aktuelle Datum überprüfen und die Monatsansicht überprüfen. Mit seinem anpassbaren Design können Sie es an das Thema Ihrer Website anpassen.
<div id="takvim-widget" style="font-family: Arial, sans-serif; max-width: 400px; margin: 0 auto;">
<style>
.takvim-container {
background: white;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
overflow: hidden;
border: 1px solid rgba(226, 232, 240, 0.8);
}
.takvim-header {
background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
color: white;
padding: 15px 20px;
text-align: center;
position: relative;
}
.takvim-baslik {
font-size: 18px;
font-weight: bold;
margin: 0;
}
.takvim-nav {
display: flex;
justify-content: space-between;
margin-top: 10px;
}
.takvim-btn {
background: rgba(255, 255, 255, 0.2);
border: none;
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.takvim-btn:hover {
background: rgba(255, 255, 255, 0.4);
}
.takvim-table {
width: 100%;
border-collapse: collapse;
}
.takvim-table th {
padding: 15px 5px;
text-align: center;
font-weight: 500;
color: #64748b;
font-size: 14px;
}
.takvim-table td {
text-align: center;
padding: 8px;
font-size: 14px;
color: #475569;
border-radius: 50%;
}
.takvim-table td:hover {
background-color: #f1f5f9;
cursor: pointer;
}
.bugun {
background-color: #0ea5e9;
color: white !important;
font-weight: bold;
}
</style>
<div class="takvim-container">
<div class="takvim-header">
<h3 class="takvim-baslik" id="takvim-ay-yil">Ocak 2023</h3>
<div class="takvim-nav">
<button class="takvim-btn" id="prev-month"><</button>
<button class="takvim-btn" id="next-month">></button>
</div>
</div>
<table class="takvim-table" id="takvim-tablo">
<thead>
<tr>
<th>Pt</th>
<th>Sa</th>
<th>Ça</th>
<th>Pe</th>
<th>Cu</th>
<th>Ct</th>
<th>Pz</th>
</tr>
</thead>
<tbody>
<!-- JavaScript ile doldurulacak -->
</tbody>
</table>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
let tarih = new Date();
let ay = tarih.getMonth();
let yil = tarih.getFullYear();
takvimOlustur(ay, yil);
document.getElementById('prev-month').addEventListener('click', function() {
ay--;
if(ay < 0) {
ay = 11;
yil--;
}
takvimOlustur(ay, yil);
});
document.getElementById('next-month').addEventListener('click', function() {
ay++;
if(ay > 11) {
ay = 0;
yil++;
}
takvimOlustur(ay, yil);
});
function takvimOlustur(ay, yil) {
const aylar = ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"];
document.getElementById('takvim-ay-yil').textContent = aylar[ay] + ' ' + yil;
let ilkGun = new Date(yil, ay, 1);
let gunSayisi = new Date(yil, ay + 1, 0).getDate();
let tarih = 1;
let tablo = document.getElementById('takvim-tablo').getElementsByTagName('tbody')[0];
tablo.innerHTML = '';
let satir = document.createElement('tr');
let gunIndex = ilkGun.getDay();
if (gunIndex === 0) gunIndex = 7; // Pazar=0 ise 7 yap (Pazartesi başlangıç)
// Ayın ilk TaTagden önceki boş hücreler
for (let i = 1; i < gunIndex; i++) {
let hucre = document.createElement('td');
hucre.textContent = '';
satir.appendChild(hucre);
}
// Günleri oluştur
while (tarih <= gunSayisi) {
if (gunIndex > 7) {
tablo.appendChild(satir);
satir = document.createElement('tr');
gunIndex = 1;
}
let hucre = document.createElement('td');
hucre.textContent = tarih;
// BuTaTag tarihini vurgula
let bugun = new Date();
if (tarih === bugun.getDate() && ay === bugun.getMonth() && yil === bugun.getFullYear()) {
hucre.classList.add('bugun');
}
satir.appendChild(hucre);
tarih++;
gunIndex++;
}
// Son Zeiledaki kalan boş hücreleri ekle
while (gunIndex <= 7) {
let hucre = document.createElement('td');
hucre.textContent = '';
satir.appendChild(hucre);
gunIndex++;
}
tablo.appendChild(satir); // Son satırı ekle
}
});
</script>
</div>
Mit diesem Code fügen Sie Ihrer Website ein aktuelles Wetter-Widget hinzu, das je nach Stadt Temperatur, Luftfeuchtigkeit, Windgeschwindigkeit und Wochenprognose anzeigt.
<iframe src="https://www.mgm.gov.tr/sunum/tahmin-klasik.aspx?m=ISTANBUL&basla=1&bitir=5&rC=111&en=en" frameborder="0" width="100%" height="400" scrolling="no" style="border-radius: 10px;"></iframe>
Mit diesem Code können Sie Ihrer Website ein Widget hinzufügen, das aktuelle Gebetszeiten anzeigt. Sie können tägliche Gebetszeiten sowie Iftar-/Suhur-Zeiten im Ramadan je nach Stadt- und Bezirkseinstellung anzeigen.
<iframe src="https://namazvakitleri.diyanet.gov.tr/tr-TR/9541/istanbul-icin-namaz-vakti" frameborder="0" width="100%" height="400" scrolling="no" style="border-radius: 10px; max-width: 500px; margin: 0 auto; display: block;"></iframe>
Mit diesem Code können Sie eine feste Schaltfläche auf Ihrer Website einfügen, um es Besuchern zu ermöglichen, Ihnen über WhatsApp leicht zu erreichen. Die Schaltfläche befindet sich in der rechten unteren Ecke der Seite und ist mit mobilen Geräten kompatibel.
<style>
.whatsapp-buton {
position: fixed;
bottom: 30px;
right: 30px;
z-index: 999;
width: 60px;
height: 60px;
border-radius: 50%;
background-color: #25d366;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 30px;
text-decoration: none;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
transition: all 0.3s ease;
animation: pulse 2s infinite;
}
.whatsapp-buton:hover {
text-decoration: none;
color: white;
transform: scale(1.1);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
}
70% {
box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
}
}
/* Mobil cihazlar für Bearbeitung */
@media (max-width: 768px) {
.whatsapp-buton {
width: 50px;
height: 50px;
font-size: 24px;
bottom: 20px;
right: 20px;
}
}
</style>
<a href="https://wa.me/905xxxxxxxxx?text=Merhaba,%20sitenizden%20ulaşıyorum." class="whatsapp-buton" target="_blank">
<i class="fab fa-whatsapp"></i>
</a>
<!-- Önemli Not: Font Awesome kütüphanesini eklemeyi unutmayın -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" />
Mit diesem Code fügen Sie Ihrer Website einen praktischen Taschenrechner hinzu, mit dem Besucher grundlegende Berechnungen einfach durchführen können.
<iframe src="https://www.calculatorsoup.com/calculators/basic/basic-calculator.php" style="width:100%; height:500px; border:0; border-radius:10px;" title="Taschenrechner"></iframe>
Mit diesem Code können Sie Ihrer Website ein praktisches Einheitenumrechnungswerkzeug hinzufügen. Bieten Sie Besuchern eine einfache Möglichkeit, Maßeinheiten wie Länge, Gewicht, Volumen und Temperatur umzuwandeln.
<iframe src="https://www.unitconverters.net/" style="width:100%; height:500px; border:0; border-radius:10px;" title="Einheitsumrechnung Werkzeug"></iframe>
Mit diesem Code können Sie Ihrer Website ein elegantes Widget hinzufügen, das Datum und Uhrzeit anzeigt. Sowohl Datum als auch Uhrzeit werden an einem Ort mit attraktivem Design präsentiert.
<div id="tarih-saat-widget" style="font-family: Arial, sans-serif; max-width: 350px; margin: 0 auto;">
<style>
.ts-container {
background: white;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
overflow: hidden;
border: 1px solid rgba(226, 232, 240, 0.8);
}
.ts-header {
background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
color: white;
padding: 15px;
text-align: center;
font-weight: bold;
font-size: 18px;
}
.ts-content {
padding: 20px;
text-align: center;
}
.ts-saat {
font-size: 40px;
font-weight: bold;
color: #1e293b;
margin-bottom: 5px;
letter-spacing: 2px;
}
.ts-tarih {
font-size: 16px;
color: #64748b;
margin-bottom: 10px;
}
.ts-gun {
display: inline-block;
padding: 5px 15px;
background: #f1f5f9;
border-radius: 20px;
color: #0ea5e9;
font-weight: 600;
margin-top: 5px;
font-size: 14px;
}
.ts-blink {
animation: blink 1.2s infinite;
}
@keyframes blink {
0% { opacity: 1; }
50% { opacity: 0.3; }
100% { opacity: 1; }
}
</style>
<div class="ts-container">
<div class="ts-header">Tarih ve Saat</div>
<div class="ts-content">
<div class="ts-saat" id="ts-saat">00<span class="ts-blink">:</span>00<span class="ts-blink">:</span>00</div>
<div class="ts-tarih" id="ts-tarih">1 Ocak 2023</div>
<div class="ts-gun" id="ts-gun">Pazartesi</div>
</div>
</div>
<script>
function tarihSaatGuncelle() {
const simdi = new Date();
const gunler = ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"];
const aylar = ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"];
const saat = simdi.getHours().toString().padStart(2, '0');
const dakika = simdi.getMinutes().toString().padStart(2, '0');
const saniye = simdi.getSeconds().toString().padStart(2, '0');
const gun = simdi.getDate();
const ay = aylar[simdi.getMonth()];
const yil = simdi.getFullYear();
const haftaGunu = gunler[simdi.getDay()];
document.getElementById('ts-saat').innerHTML = `${saat}<span class="ts-blink">:</span>${dakika}<span class="ts-blink">:</span>${saniye}`;
document.getElementById('ts-tarih').textContent = `${gun} ${ay} ${yil}`;
document.getElementById('ts-gun').textContent = haftaGunu;
setTimeout(tarihSaatGuncelle, 1000);
}
tarihSaatGuncelle();
</script>
</div>
Mit diesem Code können Sie auf Ihrer Seite einen Abschnitt hinzufügen, der wichtige Ereignisse anzeigt, die an diesem Datum in der Vergangenheit stattgefunden haben. Stellen Sie Ihren Besuchern interessante und informative Inhalte zur Verfügung.
<iframe src="https://www.tarihtebugun.gen.tr/widget/tarihtebugun.aspx" width="100%" height="450" frameborder="0" scrolling="auto" style="border-radius: 10px;"></iframe>
Mit diesem Code können Sie Ihrer Website einen praktischen Stoppuhr hinzufügen. Besucher können den Timer starten, stoppen und zurücksetzen.
<iframe src="https://chronometer.com.tr/embed" width="100%" height="300" frameborder="0" scrolling="no" style="border-radius: 10px;"></iframe>
Mit diesem Code können Sie eine Zähler auf Ihrer Website einfügen, um Besuchern zu zeigen, wie viel Zeit noch bis zu einem besonderen Ereignis oder einer Kampagne bleibt.
<div style="width:100%; max-width:500px; margin:0 auto; background:#f8f9fa; border-radius:10px; overflow:hidden; box-shadow:0 5px 15px rgba(0,0,0,0.1);">
<div style="background:#0ea5e9; color:#fff; padding:15px; text-align:center; font-weight:bold; font-size:18px;">
Etkinliğe Kalan Süre
</div>
<div style="padding:20px; text-align:center;">
<div id="gerisayim" style="display:flex; justify-content:center; gap:10px; margin-bottom:15px;">
<div style="background:#fff; padding:10px; border-radius:8px; min-width:60px; box-shadow:0 2px 5px rgba(0,0,0,0.05);">
<div id="gun" style="font-size:24px; font-weight:bold; color:#1e293b;">00</div>
<div style="font-size:12px; color:#64748b;">GÜN</div>
</div>
<div style="background:#fff; padding:10px; border-radius:8px; min-width:60px; box-shadow:0 2px 5px rgba(0,0,0,0.05);">
<div id="saat" style="font-size:24px; font-weight:bold; color:#1e293b;">00</div>
<div style="font-size:12px; color:#64748b;">SAAT</div>
</div>
<div style="background:#fff; padding:10px; border-radius:8px; min-width:60px; box-shadow:0 2px 5px rgba(0,0,0,0.05);">
<div id="dakika" style="font-size:24px; font-weight:bold; color:#1e293b;">00</div>
<div style="font-size:12px; color:#64748b;">DAKİKA</div>
</div>
<div style="background:#fff; padding:10px; border-radius:8px; min-width:60px; box-shadow:0 2px 5px rgba(0,0,0,0.05);">
<div id="saniye" style="font-size:24px; font-weight:bold; color:#1e293b;">00</div>
<div style="font-size:12px; color:#64748b;">SANİYE</div>
</div>
</div>
<div style="margin-top:10px; font-size:14px; color:#64748b;">
⚙️ Ayarlanabilir hedef tarih
</div>
</div>
</div>
<script>
// Geri sayım yapılacak hedef tarih (YYYY-AA-GG formatında)
var hedefTarih = new Date("2024-12-31T23:59:59").getTime();
// Her saniyede bir geri sayımı Tagcelle
var geriSayim = setInterval(function() {
var simdi = new Date().getTime();
var fark = hedefTarih - simdi;
// Gün, saat, dakika, saniye hesapla
var gun = Math.floor(fark / (1000 * 60 * 60 * 24));
var saat = Math.floor((fark % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var dakika = Math.floor((fark % (1000 * 60 * 60)) / (1000 * 60));
var saniye = Math.floor((fark % (1000 * 60)) / 1000);
// Sayaçları Tagcelle
document.getElementById("gun").innerHTML = gun.toString().padStart(2, '0');
document.getElementById("saat").innerHTML = saat.toString().padStart(2, '0');
document.getElementById("dakika").innerHTML = dakika.toString().padStart(2, '0');
document.getElementById("saniye").innerHTML = saniye.toString().padStart(2, '0');
// Geri sayım bittiyse
if (fark < 0) {
clearInterval(geriSayim);
document.getElementById("gerisayim").innerHTML = "<div style='font-size:24px; font-weight:bold; color:#ef4444;'>SÜRE DOLDU!</div>";
}
}, 1000);
</script>
Mit diesem Code können Sie Ihrem Site ein Fenster hinzufügen, das Ihre Facebook-Seite anzeigt. Besucher Ihrer Seite können Ihre Facebook-Seite ansehen und liken.
<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/tr_TR/sdk.js#xfbml=1&version=v16.0" nonce="random-nonce"></script>
<div class="fb-page"
data-href="https://www.facebook.com/FACEBOOK_SAYFA_URL"
data-tabs="timeline"
data-width="500"
data-height="600"
data-small-header="false"
data-adapt-container-width="true"
data-hide-cover="false"
data-show-facepile="true">
<blockquote cite="https://www.facebook.com/FACEBOOK_SAYFA_URL" class="fb-xfbml-parse-ignore">
<a href="https://www.facebook.com/FACEBOOK_SAYFA_URL">Facebook Seitemız</a>
</blockquote>
</div>
Mit diesem Code können Sie Ihrer Website ein elegantes Display hinzufügen, das Ihr Instagram-Profil präsentiert. Besucher können Ihrem Instagram-Konto einfach folgen.
<style>
.insta-profile {
max-width: 350px;
border-radius: 10px;
background: white;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
overflow: hidden;
font-family: Arial, sans-serif;
}
.insta-header {
background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
padding: 15px;
text-align: center;
color: white;
font-weight: bold;
}
.insta-content {
padding: 20px;
display: flex;
align-items: center;
}
.insta-avatar {
width: 80px;
height: 80px;
border-radius: 50%;
border: 3px solid #f1f1f1;
overflow: hidden;
margin-right: 15px;
}
.insta-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.insta-info {
flex-grow: 1;
}
.insta-username {
font-weight: bold;
font-size: 18px;
margin-bottom: 5px;
}
.insta-stats {
display: flex;
justify-content: space-around;
margin: 15px 0;
text-align: center;
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
padding: 10px 0;
}
.insta-stat {
padding: 10px;
}
.insta-number {
font-weight: bold;
font-size: 16px;
}
.insta-label {
font-size: 12px;
color: #888;
}
.insta-follow {
display: block;
background: #dc2743;
color: white;
text-align: center;
padding: 10px;
border-radius: 5px;
text-decoration: none;
margin-top: 15px;
font-weight: bold;
transition: all 0.3s ease;
}
.insta-follow:hover {
background: #bc1888;
}
</style>
<div class="insta-profile">
<div class="insta-header">
Instagram Profilimiz
</div>
<div class="insta-content">
<div class="insta-avatar">
<img src="https://instagram.fist7-2.fna.fbcdn.net/v/t51.2885-19/44884218_345707102882519_2446069589734326272_n.jpg?_nc_ht=instagram.fist7-2.fna.fbcdn.net&_nc_cat=1&_nc_ohc=X6q1Tp8Sy9oAX9cbcMJ&edm=ALlQn9MBAAAA&ccb=7-5&ig_cache_key=YW5vbnltb3VzX3Byb2ZpbGVfcGlj.2-ccb7-5&oh=00_AfAAU0WYw2c9QrbFz3w1SlC9NtmIrAWAM4MDcMGZgG694g&oe=64F08641" alt="Profil Fotoğrafı">
</div>
<div class="insta-info">
<div class="insta-username">@INSTAGRAM_KULLANICI_ADI</div>
<div class="insta-bio">Resmi Instagram hesabımız</div>
</div>
</div>
<div class="insta-stats">
<div class="insta-stat">
<div class="insta-number">250</div>
<div class="insta-label">Gönderi</div>
</div>
<div class="insta-stat">
<div class="insta-number">10.5K</div>
<div class="insta-label">Takipçi</div>
</div>
<div class="insta-stat">
<div class="insta-number">526</div>
<div class="insta-label">Takip</div>
</div>
</div>
<a href="https://www.instagram.com/INSTAGRAM_KULLANICI_ADI/" target="_blank" class="insta-follow">
Takip Et
</a>
</div>
Mit diesem Code können Sie Ihrem Site ein Widget hinzufügen, das Ihre Instagram-Posts anzeigt. Besucher können Ihre Instagram-Inhalte direkt auf Ihrer Website ansehen.
<style>
.insta-widget {
max-width: 800px;
margin: 0 auto;
font-family: Arial, sans-serif;
}
.insta-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid #eee;
}
.insta-profile {
display: flex;
align-items: center;
}
.insta-logo {
width: 40px;
height: 40px;
margin-right: 15px;
background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 24px;
}
.insta-follow-btn {
background: #dc2743;
color: white;
border: none;
padding: 8px 15px;
border-radius: 5px;
font-weight: bold;
cursor: pointer;
transition: background 0.3s;
}
.insta-follow-btn:hover {
background: #bc1888;
}
.insta-gallery {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}
.insta-item {
position: relative;
overflow: hidden;
border-radius: 8px;
aspect-ratio: 1;
}
.insta-item img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s;
}
.insta-item:hover img {
transform: scale(1.1);
}
.insta-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s;
}
.insta-item:hover .insta-overlay {
opacity: 1;
}
.insta-stats {
color: white;
display: flex;
gap: 15px;
}
.insta-stat {
display: flex;
align-items: center;
}
.insta-stat i {
margin-right: 5px;
}
@media (max-width: 768px) {
.insta-gallery {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 480px) {
.insta-gallery {
grid-template-columns: 1fr;
}
}
</style>
<div class="insta-widget">
<div class="insta-header">
<div class="insta-profile">
<div class="insta-logo">
<i class="fab fa-instagram"></i>
</div>
<div>
<h3 style="margin:0;font-size:16px;">@INSTAGRAM_KULLANICI_ADI</h3>
<small style="color:#888;">Instagram Gönderilerimiz</small>
</div>
</div>
<a href="https://www.instagram.com/INSTAGRAM_KULLANICI_ADI/" target="_blank" class="insta-follow-btn">
Takip Et
</a>
</div>
<div class="insta-gallery" id="insta-gallery">
<!-- Bu bölüm JavaScript ile doldurulacak -->
</div>
</div>
<script>
// Instagram gönderilerini almak für sorgu
const instagramUserId = 'INSTAGRAM_KULLANICI_ADI';
const accessToken = 'ACCESS_TOKEN';
const limit = 6; // Gösterilecek gönderi sayısı
// Örnek veri (Echt API bağlantısı für aşağıdaki yorum Zeileını kaldırın)
const mockData = {
data: [
{
id: '1',
media_url: 'https://picsum.photos/id/1/500/500',
caption: 'Harika bir Tag!',
like_count: 124,
comments_count: 15
},
{
id: '2',
media_url: 'https://picsum.photos/id/2/500/500',
caption: 'Yeni ürünümüz',
like_count: 98,
comments_count: 8
},
{
id: '3',
media_url: 'https://picsum.photos/id/3/500/500',
caption: 'Ofisten kareler',
like_count: 76,
comments_count: 5
},
{
id: '4',
media_url: 'https://picsum.photos/id/4/500/500',
caption: 'Kunde memnuniyeti',
like_count: 156,
comments_count: 24
},
{
id: '5',
media_url: 'https://picsum.photos/id/5/500/500',
caption: 'Teamarbeit',
like_count: 112,
comments_count: 10
},
{
id: '6',
media_url: 'https://picsum.photos/id/6/500/500',
caption: 'Yeni tasarımlar',
like_count: 89,
comments_count: 7
}
]
};
// Gönderileri yükle ve göster
function displayInstagramFeed(data) {
const gallery = document.getElementById('insta-gallery');
gallery.innerHTML = '';
data.data.forEach(post => {
const item = document.createElement('div');
item.className = 'insta-item';
item.innerHTML = `
<img src="${post.media_url}" alt="${post.caption || 'Instagram gönderisi'}">
<div class="insta-overlay">
<div class="insta-stats">
<div class="insta-stat">
<i class="fas fa-heart"></i> ${post.like_count}
</div>
<div class="insta-stat">
<i class="fas fa-comment"></i> ${post.comments_count}
</div>
</div>
</div>
`;
item.addEventListener('click', () => {
window.open(`https://www.instagram.com/p/${post.id}`, '_blank');
});
gallery.appendChild(item);
});
}
// Mock veriyi kullan (test für)
displayInstagramFeed(mockData);
// Echt API sorgusu für aşağıdaki kodu verwenden
/*
fetch(`https://graph.instagram.com/${instagramUserId}/media?fields=id,caption,media_url,permalink,thumbnail_url,timestamp,like_count,comments_count&access_token=${accessToken}&limit=${limit}`)
.then(response => response.json())
.then(data => {
displayInstagramFeed(data);
})
.catch(error => {
console.error('Instagram verisi erhaltenamadı:', error);
});
*/
</script>
Mit diesem Code können Sie auf Ihrer Seite einen Button hinzufügen, der es Ihren Besuchern ermöglicht, Ihre Twitter-Profil mit einem Klick zu folgen.
<!-- Twitter Takip Buton Stili -->
<style>
.twitter-follow {
font-family: 'Helvetica Neue', Arial, sans-serif;
max-width: 350px;
margin: 20px auto;
}
.twitter-follow-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
background-color: #1da1f2;
color: white;
border-radius: 30px;
padding: 10px 20px;
text-decoration: none;
font-weight: bold;
box-shadow: 0 2px 5px rgba(29, 161, 242, 0.3);
transition: all 0.3s ease;
}
.twitter-follow-btn:hover {
background-color: #0c85d0;
box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
transform: translateY(-2px);
}
.twitter-profile {
display: flex;
align-items: center;
background: white;
border-radius: 10px;
padding: 15px;
margin-bottom: 15px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.twitter-avatar {
width: 60px;
height: 60px;
border-radius: 50%;
overflow: hidden;
margin-right: 15px;
border: 3px solid #e8f5fe;
}
.twitter-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.twitter-info {
flex-grow: 1;
}
.twitter-name {
font-weight: bold;
margin: 0 0 2px 0;
}
.twitter-handle {
color: #657786;
margin: 0 0 5px 0;
font-size: 14px;
}
.twitter-bio {
font-size: 14px;
color: #14171a;
margin: 0;
}
.twitter-icon {
font-size: 20px;
margin-right: 5px;
}
</style>
<!-- Twitter Takip Butonu -->
<div class="twitter-follow">
<div class="twitter-profile">
<div class="twitter-avatar">
<img src="https://pbs.twimg.com/profile_images/sample_image.jpg" alt="Profil Fotoğrafı">
</div>
<div class="twitter-info">
<h3 class="twitter-name">Twitter Profilim</h3>
<p class="twitter-handle">@TWITTER_KULLANICI_ADI</p>
<p class="twitter-bio">Resmi Twitter hesabımızı takip edin ve Tagcel haberlerden haberdar olun.</p>
</div>
</div>
<a href="https://twitter.com/intent/follow?screen_name=TWITTER_KULLANICI_ADI" class="twitter-follow-btn" target="_blank">
<i class="fab fa-twitter twitter-icon"></i> Takip Et
</a>
</div>
<!-- Twitter JavaScript SDK -->
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
Mit diesem Code können Sie Ihrer Website eine Radio-Streaming-Funktion hinzufügen. Besucher können ihre Lieblingsradiosender hören, ohne Ihre Website zu verlassen.
<div class="radyo-container" style="max-width:400px; margin:0 auto; font-family:Arial, sans-serif;">
<style>
.radyo-player {
background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
color: white;
}
.radyo-header {
padding: 15px 20px;
text-align: center;
border-bottom: 1px solid rgba(255,255,255,0.1);
}
.radyo-title {
font-weight: bold;
font-size: 18px;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
}
.radyo-title i {
margin-right: 10px;
color: #e91e63;
}
.radyo-info {
background: rgba(0,0,0,0.2);
padding: 15px;
text-align: center;
position: relative;
}
.radyo-now-playing {
font-size: 14px;
opacity: 0.7;
margin-bottom: 5px;
}
.radyo-station {
font-size: 22px;
font-weight: bold;
margin: 0 0 15px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.radyo-controls {
display: flex;
justify-content: center;
gap: 15px;
margin: 15px 0 5px;
}
.radyo-btn {
width: 50px;
height: 50px;
border-radius: 50%;
background: #e91e63;
color: white;
border: none;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 10px rgba(233, 30, 99, 0.4);
}
.radyo-btn:hover {
transform: scale(1.1);
}
.radyo-btn.play-pause {
width: 60px;
height: 60px;
font-size: 20px;
}
.radyo-btn.volume {
background: rgba(255,255,255,0.2);
box-shadow: none;
}
.radyo-volume-slider {
width: 80%;
margin: 10px auto;
}
.radyo-stations {
padding: 10px;
max-height: 200px;
overflow-y: auto;
}
.radyo-station-item {
padding: 10px 15px;
border-radius: 8px;
margin-bottom: 8px;
background: rgba(255,255,255,0.05);
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
}
.radyo-station-item:hover, .radyo-station-item.active {
background: rgba(233, 30, 99, 0.2);
}
.radyo-station-item.active {
border-left: 3px solid #e91e63;
}
.radyo-station-logo {
width: 30px;
height: 30px;
background: rgba(0,0,0,0.2);
border-radius: 50%;
overflow: hidden;
margin-right: 10px;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
color: white;
font-size: 12px;
}
.radyo-station-name {
flex-grow: 1;
font-size: 14px;
}
.radyo-station-freq {
font-size: 12px;
opacity: 0.7;
}
.radyo-footer {
padding: 10px;
text-align: center;
font-size: 12px;
opacity: 0.7;
border-top: 1px solid rgba(255,255,255,0.1);
}
.radyo-visualizer {
height: 30px;
display: flex;
align-items: flex-end;
justify-content: center;
gap: 2px;
margin: 10px 0;
}
.radyo-bar {
width: 4px;
height: 15px;
background: #e91e63;
border-radius: 2px;
animation: radyo-pulse 1.2s ease-in-out infinite;
}
.radyo-bar:nth-child(1) { animation-delay: 0s; }
.radyo-bar:nth-child(2) { animation-delay: 0.1s; }
.radyo-bar:nth-child(3) { animation-delay: 0.2s; }
.radyo-bar:nth-child(4) { animation-delay: 0.3s; }
.radyo-bar:nth-child(5) { animation-delay: 0.4s; }
.radyo-bar:nth-child(6) { animation-delay: 0.2s; }
.radyo-bar:nth-child(7) { animation-delay: 0.1s; }
.radyo-bar:nth-child(8) { animation-delay: 0s; }
@keyframes radyo-pulse {
0% { height: 5px; }
50% { height: 25px; }
100% { height: 5px; }
}
</style>
<div class="radyo-player">
<div class="radyo-header">
<h3 class="radyo-title"><i class="fas fa-broadcast-tower"></i> Online Radyo Player</h3>
</div>
<div class="radyo-info">
<div class="radyo-now-playing">ŞU AN ÇALIYOR</div>
<div class="radyo-station" id="current-station">Radyo Seçiniz</div>
<div class="radyo-visualizer" id="radyo-visualizer">
<div class="radyo-bar"></div>
<div class="radyo-bar"></div>
<div class="radyo-bar"></div>
<div class="radyo-bar"></div>
<div class="radyo-bar"></div>
<div class="radyo-bar"></div>
<div class="radyo-bar"></div>
<div class="radyo-bar"></div>
</div>
<div class="radyo-controls">
<button class="radyo-btn" id="prev-btn"><i class="fas fa-step-backward"></i></button>
<button class="radyo-btn play-pause" id="play-btn"><i class="fas fa-play"></i></button>
<button class="radyo-btn" id="next-btn"><i class="fas fa-step-forward"></i></button>
</div>
<input type="range" class="radyo-volume-slider" id="volume-slider" min="0" max="100" value="80">
</div>
<div class="radyo-stations" id="radyo-stations">
<div class="radyo-station-item" data-url="https://example.com/radyo1.mp3">
<div class="radyo-station-logo">R1</div>
<div class="radyo-station-name">Power FM</div>
<div class="radyo-station-freq">100.0</div>
</div>
<div class="radyo-station-item" data-url="https://example.com/radyo2.mp3">
<div class="radyo-station-logo">R2</div>
<div class="radyo-station-name">Kral FM</div>
<div class="radyo-station-freq">92.3</div>
</div>
<div class="radyo-station-item" data-url="https://example.com/radyo3.mp3">
<div class="radyo-station-logo">R3</div>
<div class="radyo-station-name">TRT FM</div>
<div class="radyo-station-freq">93.3</div>
</div>
<div class="radyo-station-item" data-url="https://example.com/radyo4.mp3">
<div class="radyo-station-logo">R4</div>
<div class="radyo-station-name">Metro FM</div>
<div class="radyo-station-freq">97.2</div>
</div>
<div class="radyo-station-item" data-url="https://example.com/radyo5.mp3">
<div class="radyo-station-logo">R5</div>
<div class="radyo-station-name">Joy FM</div>
<div class="radyo-station-freq">106.2</div>
</div>
</div>
<div class="radyo-footer">
<p>Not: Echt radyo yayını für gültig radyo stream URL'lerini kullanmalısınız.</p>
</div>
</div>
<audio id="radio-player" style="display:none;"></audio>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const radioPlayer = document.getElementById('radio-player');
const playBtn = document.getElementById('play-btn');
const prevBtn = document.getElementById('prev-btn');
const nextBtn = document.getElementById('next-btn');
const volumeSlider = document.getElementById('volume-slider');
const stationItems = document.querySelectorAll('.radyo-station-item');
const currentStation = document.getElementById('current-station');
const visualizer = document.getElementById('radyo-visualizer');
let isPlaying = false;
let currentIndex = 0;
// Ses seviyesini ayarla
radioPlayer.volume = volumeSlider.value / 100;
// Ses Kontrolle
volumeSlider.addEventListener('input', function() {
radioPlayer.volume = this.value / 100;
});
// Oynat/Duraklat
playBtn.addEventListener('click', function() {
if (isPlaying) {
radioPlayer.pause();
playBtn.innerHTML = '';
visualizer.style.visibility = 'hidden';
isPlaying = false;
} else {
if (radioPlayer.src) {
radioPlayer.play();
playBtn.innerHTML = '';
visualizer.style.visibility = 'visible';
isPlaying = true;
} else if (stationItems.length > 0) {
// Eğer radyo seçilmemişse ilk radyoyu seç
selectStation(0);
}
}
});
// Önceki/Sonraki radyo
prevBtn.addEventListener('click', function() {
if (currentIndex > 0) {
selectStation(currentIndex - 1);
} else {
selectStation(stationItems.length - 1);
}
});
nextBtn.addEventListener('click', function() {
if (currentIndex < stationItems.length - 1) {
selectStation(currentIndex + 1);
} else {
selectStation(0);
}
});
// İstasyon seçme
stationItems.forEach((item, index) => {
item.addEventListener('click', function() {
selectStation(index);
});
});
// İstasyon seçme fonksiyonu
function selectStation(index) {
// Aktif sınıfını kaldır
document.querySelector('.radyo-station-item.active')?.classList.remove('active');
const station = stationItems[index];
station.classList.add('active');
const url = station.getAttribute('data-url');
const name = station.querySelector('.radyo-station-name').textContent;
radioPlayer.src = url;
radioPlayer.play()
.then(() => {
currentStation.textContent = name;
playBtn.innerHTML = '';
visualizer.style.visibility = 'visible';
isPlaying = true;
currentIndex = index;
})
.catch(error => {
console.error('Radyo çerhaltenamadı:', error);
currentStation.textContent = 'Çerhaltenamadı: ' + name;
playBtn.innerHTML = '';
});
}
});
</script>
Mit diesem Code können Sie Ihrer Website eine tägliche Zeitungslese-Funktion hinzufügen. Besucher können die Tageszeitungen lesen, ohne Ihre Website zu verlassen.
<div class="gazete-container" style="max-width:800px; margin:0 auto; font-family:Arial, sans-serif;">
<style>
.gazete-wrapper {
background: #f8f9fa;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.gazete-header {
background: linear-gradient(135deg, #495057 0%, #343a40 100%);
color: white;
padding: 15px 20px;
font-weight: bold;
font-size: 18px;
display: flex;
align-items: center;
justify-content: space-between;
}
.gazete-date {
font-size: 14px;
opacity: 0.9;
}
.gazete-tabs {
display: flex;
flex-wrap: wrap;
background: #e9ecef;
padding: 10px 10px 0;
gap: 5px;
border-bottom: 1px solid #dee2e6;
}
.gazete-tab {
padding: 8px 15px;
background: #dee2e6;
color: #495057;
border-radius: 5px 5px 0 0;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.3s ease;
opacity: 0.8;
}
.gazete-tab:hover, .gazete-tab.active {
background: white;
opacity: 1;
}
.gazete-tab.active {
font-weight: bold;
}
.gazete-content {
position: relative;
min-height: 500px;
background: white;
}
.gazete-frame {
width: 100%;
height: 500px;
border: none;
}
.gazete-loading {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: white;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
transition: opacity 0.3s ease;
}
.gazete-spinner {
width: 40px;
height: 40px;
border: 4px solid #f3f3f3;
border-top: 4px solid #343a40;
border-radius: 50%;
animation: gazete-spin 1s linear infinite;
margin-bottom: 10px;
}
@keyframes gazete-spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.gazete-footer {
padding: 10px 15px;
background: #f8f9fa;
font-size: 13px;
color: #6c757d;
text-align: center;
border-top: 1px solid #dee2e6;
}
@media (max-width: 576px) {
.gazete-tab {
font-size: 12px;
padding: 6px 10px;
}
}
</style>
<div class="gazete-wrapper">
<div class="gazete-header">
<span><i class="fas fa-newspaper"></i> Günlük Gazeteler</span>
<span class="gazete-date" id="gazete-date">01.01.2023</span>
</div>
<div class="gazete-tabs" id="gazete-tabs">
<div class="gazete-tab active" data-url="https://www.hurriyet.com.tr">Hürriyet</div>
<div class="gazete-tab" data-url="https://www.milliyet.com.tr">Milliyet</div>
<div class="gazete-tab" data-url="https://www.sabah.com.tr">Sabah</div>
<div class="gazete-tab" data-url="https://www.cumhuriyet.com.tr">Cumhuriyet</div>
<div class="gazete-tab" data-url="https://www.posta.com.tr">Posta</div>
<div class="gazete-tab" data-url="https://www.sozcu.com.tr">Sözcü</div>
</div>
<div class="gazete-content">
<iframe id="gazete-frame" class="gazete-frame" src="" frameborder="0" allowfullscreen></iframe>
<div class="gazete-loading" id="gazete-loading">
<div class="gazete-spinner"></div>
<div>Gazete yükleniyor...</div>
</div>
</div>
<div class="gazete-footer">
<p>Not: Bazı gazeteler içeriklerini iframe içerisinde görüntülemeye izin vermeyebilir. Bu durumda gazeteyi yeni sekmede açmanız gerekebilir.</p>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const tabs = document.querySelectorAll('.gazete-tab');
const frame = document.getElementById('gazete-frame');
const loading = document.getElementById('gazete-loading');
const dateDisplay = document.getElementById('gazete-date');
// Tarih gösterimi
function updateDate() {
const now = new Date();
const day = String(now.getDate()).padStart(2, '0');
const month = String(now.getMonth() + 1).padStart(2, '0');
const year = now.getFullYear();
dateDisplay.textContent = `${day}.${month}.${year}`;
}
updateDate();
// İlk gazeteyi yükle
if (tabs.length > 0) {
const firstTab = tabs[0];
const url = firstTab.getAttribute('data-url');
frame.src = url;
}
// Gazete değiştirme
tabs.forEach(tab => {
tab.addEventListener('click', function() {
const url = this.getAttribute('data-url');
// Aktif tabı işaretle
document.querySelector('.gazete-tab.active').classList.remove('active');
this.classList.add('active');
// Yükleniyor göster
loading.style.opacity = '1';
loading.style.visibility = 'visible';
// İframe'i Tagcelle
frame.src = url;
});
});
// İframe yüklendiğinde yükleniyor gizle
frame.addEventListener('load', function() {
loading.style.opacity = '0';
setTimeout(() => {
loading.style.visibility = 'hidden';
}, 300);
});
});
</script>
Mit diesem Code können Sie eine automatische gleitende Bildergalerie auf Ihrer Website einfügen. Besucher können Ihre Produkt-, Dienstleistungs- oder Veranstaltungsfotos in einem stilvollen Format ansehen.
<div class="slideshow-container" style="max-width:800px; margin:0 auto; font-family:Arial, sans-serif;">
<style>
.slideshow-wrapper {
position: relative;
width: 100%;
overflow: hidden;
border-radius: 10px;
box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
.slides {
display: flex;
transition: transform 0.5s ease;
height: 400px;
}
.slide {
min-width: 100%;
position: relative;
}
.slide img {
width: 100%;
height: 100%;
object-fit: cover;
}
.slide-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
padding: 20px;
color: white;
}
.slide-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 5px;
}
.slide-desc {
font-size: 14px;
opacity: 0.9;
}
.slide-controls {
display: flex;
justify-content: space-between;
margin-top: 10px;
}
.slide-dots {
display: flex;
justify-content: center;
gap: 8px;
margin-top: 15px;
}
.slide-dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: #ccc;
cursor: pointer;
transition: all 0.3s ease;
}
.slide-dot.active {
background: #0d6efd;
transform: scale(1.2);
}
.slide-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 40px;
height: 40px;
background: rgba(255,255,255,0.8);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 10;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
transition: all 0.3s ease;
}
.slide-arrow:hover {
background: white;
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.slide-prev {
left: 10px;
}
.slide-next {
right: 10px;
}
.slide-arrow i {
font-size: 18px;
color: #333;
}
</style>
<div class="slideshow-wrapper">
<div class="slides" id="slides">
<div class="slide">
<img src="https://picsum.photos/id/10/800/400" alt="Slide 1">
<div class="slide-overlay">
<div class="slide-title">Doğa Manzarası</div>
<div class="slide-desc">Muhteşem doğa manzarası ile huzur bulun.</div>
</div>
</div>
<div class="slide">
<img src="https://picsum.photos/id/20/800/400" alt="Slide 2">
<div class="slide-overlay">
<div class="slide-title">Stadt Hayatı</div>
<div class="slide-desc">Modern şehir hayatının dinamizmi.</div>
</div>
</div>
<div class="slide">
<img src="https://picsum.photos/id/30/800/400" alt="Slide 3">
<div class="slide-overlay">
<div class="slide-title">Teknoloji</div>
<div class="slide-desc">Gelişen teknolojiyle hayatınızı kolaylaştırın.</div>
</div>
</div>
<div class="slide">
<img src="https://picsum.photos/id/40/800/400" alt="Slide 4">
<div class="slide-overlay">
<div class="slide-title">Mimari</div>
<div class="slide-desc">Etkileyici mimari tasarımlar.</div>
</div>
</div>
</div>
<div class="slide-arrow slide-prev" id="slide-prev">
<i class="fas fa-chevron-left"></i>
</div>
<div class="slide-arrow slide-next" id="slide-next">
<i class="fas fa-chevron-right"></i>
</div>
</div>
<div class="slide-dots" id="slide-dots">
<div class="slide-dot active"></div>
<div class="slide-dot"></div>
<div class="slide-dot"></div>
<div class="slide-dot"></div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const slidesContainer = document.getElementById('slides');
const prevBtn = document.getElementById('slide-prev');
const nextBtn = document.getElementById('slide-next');
const dots = document.querySelectorAll('.slide-dot');
let currentIndex = 0;
const slideCount = document.querySelectorAll('.slide').length;
let interval;
let touchStartX = 0;
let touchEndX = 0;
// Automatischer Wechsel
function startAutoSlide() {
interval = setInterval(() => {
goToSlide((currentIndex + 1) % slideCount);
}, 5000);
}
function stopAutoSlide() {
clearInterval(interval);
}
// Slayta git
function goToSlide(index) {
currentIndex = index;
slidesContainer.style.transform = `translateX(${-currentIndex * 100}%)`;
updateDots();
}
// Nokta göstergelerini Tagcelle
function updateDots() {
dots.forEach((dot, index) => {
if (index === currentIndex) {
dot.classList.add('active');
} else {
dot.classList.remove('active');
}
});
}
// İleri/Geri butonları
prevBtn.addEventListener('click', () => {
stopAutoSlide();
goToSlide(currentIndex === 0 ? slideCount - 1 : currentIndex - 1);
startAutoSlide();
});
nextBtn.addEventListener('click', () => {
stopAutoSlide();
goToSlide((currentIndex + 1) % slideCount);
startAutoSlide();
});
// Nokta göstergeleri
dots.forEach((dot, index) => {
dot.addEventListener('click', () => {
stopAutoSlide();
goToSlide(index);
startAutoSlide();
});
});
// Dokunma desteği
slidesContainer.addEventListener('touchstart', (e) => {
touchStartX = e.changedTouches[0].screenX;
stopAutoSlide();
});
slidesContainer.addEventListener('touchend', (e) => {
touchEndX = e.changedTouches[0].screenX;
if (touchStartX - touchEndX > 50) {
// Sola kaydırma
goToSlide((currentIndex + 1) % slideCount);
} else if (touchEndX - touchStartX > 50) {
// Sağa kaydırma
goToSlide(currentIndex === 0 ? slideCount - 1 : currentIndex - 1);
}
startAutoSlide();
});
// Automatischer Wechseli başlat
startAutoSlide();
});
</script>
Mit diesem Code fügen Sie Ihrer Website Live-TV hinzu, sodass Besucher nationale Sender ansehen können, ohne die Website zu verlassen.
<div class="tv-player-container" style="max-width:600px; margin:0 auto; font-family:Arial, sans-serif;">
<style>
.tv-container {
width: 100%;
background: #212529;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.tv-header {
background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
color: white;
padding: 15px 20px;
font-weight: bold;
font-size: 18px;
display: flex;
align-items: center;
justify-content: space-between;
}
.tv-player {
width: 100%;
aspect-ratio: 16/9;
background: black;
position: relative;
}
.tv-channels {
display: flex;
flex-wrap: wrap;
padding: 10px;
gap: 8px;
background: #343a40;
}
.tv-channel {
padding: 8px 12px;
background: #495057;
color: white;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
transition: all 0.3s ease;
}
.tv-channel:hover, .tv-channel.active {
background: #0d6efd;
}
.tv-info {
color: rgba(255,255,255,0.7);
font-size: 14px;
padding: 10px 15px;
text-align: center;
background: #343a40;
}
.tv-current {
text-align: center;
padding: 10px;
color: white;
background: #212529;
font-weight: bold;
}
</style>
<div class="tv-container">
<div class="tv-header">
<span><i class="fas fa-tv"></i> Live-TV</span>
<span class="tv-time" id="canlitv-time">00:00:00</span>
</div>
<div class="tv-player" id="tv-player">
<iframe id="tv-iframe" width="100%" height="100%" src="about:blank" frameborder="0" allowfullscreen></iframe>
</div>
<div class="tv-current" id="current-channel">Kanal Seçiniz</div>
<div class="tv-channels">
<div class="tv-channel" data-url="https://tv-trt1.medya.trt.com.tr/master.m3u8">TRT 1</div>
<div class="tv-channel" data-url="https://tv-trt2.medya.trt.com.tr/master.m3u8">TRT 2</div>
<div class="tv-channel" data-url="https://tv-trthaber.medya.trt.com.tr/master.m3u8">TRT Haber</div>
<div class="tv-channel" data-url="https://tv-trtspor.medya.trt.com.tr/master.m3u8">TRT Spor</div>
</div>
<div class="tv-info">
<p>Not: Bazı kanallar telif hakkı nedeniyle görüntülenemeyebilir.</p>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const channels = document.querySelectorAll('.tv-channel');
const iframe = document.getElementById('tv-iframe');
const currentChannel = document.getElementById('current-channel');
const timeDisplay = document.getElementById('canlitv-time');
// Saat gösterimi
function updateTime() {
const now = new Date();
const hours = String(now.getHours()).padStart(2, '0');
const minutes = String(now.getMinutes()).padStart(2, '0');
const seconds = String(now.getSeconds()).padStart(2, '0');
timeDisplay.textContent = `${hours}:${minutes}:${seconds}`;
}
setInterval(updateTime, 1000);
updateTime();
// Kanal değiştirme
channels.forEach(channel => {
channel.addEventListener('click', function() {
const url = this.getAttribute('data-url');
const channelName = this.textContent;
// Aktif kanalı işaretle
document.querySelector('.tv-channel.active')?.classList.remove('active');
this.classList.add('active');
// İframe'i Tagcelle
iframe.src = url;
currentChannel.textContent = `Şu an: ${channelName}`;
});
});
});
</script>
Dieser Code zeigt bei jeder Aktualisierung ein anderes Bild, sodass Besucher jedes Mal ein neues Motiv entdecken.
<div class="random-image-container" style="max-width:600px; margin:0 auto; font-family:Arial, sans-serif;">
<style>
.random-image-wrapper {
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 20px rgba(0,0,0,0.1);
background: white;
}
.random-image-header {
background: linear-gradient(135deg, #6b21a8 0%, #8b5cf6 100%);
color: white;
padding: 15px 20px;
font-weight: bold;
font-size: 18px;
display: flex;
align-items: center;
justify-content: space-between;
}
.random-image-header i {
margin-right: 10px;
}
.random-image-content {
position: relative;
}
.random-image {
width: 100%;
aspect-ratio: 16/9;
object-fit: cover;
transition: all 0.5s ease;
}
.random-image-title {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
color: white;
padding: 20px;
}
.random-image-title h3 {
margin: 0 0 5px 0;
font-size: 20px;
}
.random-image-title p {
margin: 0;
opacity: 0.9;
font-size: 14px;
}
.random-image-controls {
display: flex;
align-items: center;
justify-content: space-between;
padding: 15px 20px;
border-top: 1px solid #eee;
}
.random-image-categories {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.random-image-category {
padding: 5px 10px;
background: #f1f5f9;
border-radius: 20px;
font-size: 13px;
color: #334155;
cursor: pointer;
transition: all 0.3s ease;
}
.random-image-category:hover, .random-image-category.active {
background: #8b5cf6;
color: white;
}
.random-image-btn {
background: #8b5cf6;
color: white;
border: none;
padding: 8px 20px;
border-radius: 5px;
font-weight: bold;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
transition: all 0.3s ease;
}
.random-image-btn:hover {
background: #6b21a8;
}
.random-image-info {
padding: 10px 20px;
background: #f8fafc;
font-size: 13px;
color: #64748b;
text-align: center;
border-top: 1px solid #eee;
}
</style>
<div class="random-image-wrapper">
<div class="random-image-header">
<span><i class="fas fa-random"></i> Rastgele Resim</span>
<span id="random-img-count">1/25</span>
</div>
<div class="random-image-content">
<img id="random-image" class="random-image" src="https://picsum.photos/id/10/600/340" alt="Rastgele Resim">
<div class="random-image-title">
<h3 id="random-img-title">Doğa Manzarası</h3>
<p id="random-img-desc">Etkileyici bir doğa manzarası</p>
</div>
</div>
<div class="random-image-controls">
<div class="random-image-categories">
<div class="random-image-category active" data-category="all">Tümü</div>
<div class="random-image-category" data-category="nature">Doğa</div>
<div class="random-image-category" data-category="city">Stadt</div>
<div class="random-image-category" data-category="tech">Teknoloji</div>
</div>
<button id="random-img-btn" class="random-image-btn">
<i class="fas fa-sync-alt"></i> Yeni Resim
</button>
</div>
<div class="random-image-info">
<p>Her tıklamada unterschiedlich bir resim gösterilir.</p>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const randomImage = document.getElementById('random-image');
const randomImgTitle = document.getElementById('random-img-title');
const randomImgDesc = document.getElementById('random-img-desc');
const randomImgCount = document.getElementById('random-img-count');
const randomImgBtn = document.getElementById('random-img-btn');
const categories = document.querySelectorAll('.random-image-category');
// Resim veritabanı (simule edilmiş)
const imageDatabase = {
nature: [
{ id: 10, title: 'Dağ Manzarası', desc: 'Etkileyici dağ manzarası' },
{ id: 11, title: 'Orman', desc: 'Yeşil orman manzarası' },
{ id: 12, title: 'Deniz', desc: 'Mavi deniz manzarası' },
{ id: 13, title: 'Çöl', desc: 'Geniş çöl manzarası' },
{ id: 14, title: 'Şelale', desc: 'Doğal şelale' },
{ id: 15, title: 'Gökyüzü', desc: 'Bulutlu gökyüzü manzarası' },
],
city: [
{ id: 20, title: 'Modern Stadt', desc: 'Modern şehir manzarası' },
{ id: 21, title: 'Gökdelenler', desc: 'Yüksek gökdelenler' },
{ id: 22, title: 'Tarihi Stadt', desc: 'Tarihi şehir manzarası' },
{ id: 23, title: 'Gece Şehri', desc: 'Gece şehir manzarası' },
{ id: 24, title: 'Köprü', desc: 'Stadt köprüsü' },
],
tech: [
{ id: 30, title: 'Bilgisayar', desc: 'Modern bilgisayar' },
{ id: 31, title: 'Akıllı Telefon', desc: 'Son model akıllı telefon' },
{ id: 32, title: 'Robot', desc: 'Erweitert robot teknolojisi' },
{ id: 33, title: 'Yapay Zeka', desc: 'Yapay zeka görselleştirmesi' },
]
};
let currentCategory = 'all';
let allImages = [];
// Tüm resimleri birleştir
function combineAllImages() {
allImages = [];
for (const category in imageDatabase) {
allImages = allImages.concat(imageDatabase[category]);
}
return allImages;
}
// Seite yüklendiğinde alle resimleri birleştir
combineAllImages();
// Rastgele resim göster
function showRandomImage() {
let images = currentCategory === 'all' ? allImages : imageDatabase[currentCategory];
if (images.length === 0) {
randomImgTitle.textContent = 'Resim bulunamadı';
randomImgDesc.textContent = 'Bu kategoride resim yok';
randomImage.src = '';
randomImgCount.textContent = '0/0';
return;
}
const randomIndex = Math.floor(Math.random() * images.length);
const image = images[randomIndex];
randomImage.src = `https://picsum.photos/id/${image.id}/600/340`;
randomImgTitle.textContent = image.title;
randomImgDesc.textContent = image.desc;
randomImgCount.textContent = `${randomIndex + 1}/${images.length}`;
// Resim Hochladen animasyonu
randomImage.style.opacity = '0.5';
setTimeout(() => {
randomImage.style.opacity = '1';
}, 300);
}
// Yeni resim butonu
randomImgBtn.addEventListener('click', showRandomImage);
// Kategori değiştirme
categories.forEach(category => {
category.addEventListener('click', function() {
// Aktif sınıfını değiştir
document.querySelector('.random-image-category.active').classList.remove('active');
this.classList.add('active');
// Kategoriyi Tagcelle
currentCategory = this.getAttribute('data-category');
// Yeni resim göster
showRandomImage();
});
});
// İlk resmi göster
showRandomImage();
});
</script>
Mit diesem Code können Sie Schaltflächen zu Ihrer Website hinzufügen, um Ihren Inhalt in den sozialen Medien teilen zu können. Ihre Besucher können Ihren Inhalt mit nur einem Klick auf verschiedenen Plattformen teilen.
<div class="sosyal-paylasim" style="display:flex; gap:10px; margin:20px 0; font-family:Arial, sans-serif;">
<span style="font-weight:bold; margin-right:10px; display:flex; align-items:center;">Paylaş:</span>
<a href="https://www.facebook.com/sharer/sharer.php?u=" target="_blank" style="background:#3b5998; color:white; padding:8px 12px; border-radius:5px; text-decoration:none; display:flex; align-items:center;">
<i class="fab fa-facebook-f"></i><span style="margin-left:5px;">Facebook</span>
</a>
<a href="https://twitter.com/intent/tweet?url=" target="_blank" style="background:#1da1f2; color:white; padding:8px 12px; border-radius:5px; text-decoration:none; display:flex; align-items:center;">
<i class="fab fa-twitter"></i><span style="margin-left:5px;">Twitter</span>
</a>
<a href="https://wa.me/?text=" target="_blank" style="background:#25d366; color:white; padding:8px 12px; border-radius:5px; text-decoration:none; display:flex; align-items:center;">
<i class="fab fa-whatsapp"></i><span style="margin-left:5px;">WhatsApp</span>
</a>
<a href="https://www.linkedin.com/sharing/share-offsite/?url=" target="_blank" style="background:#0077b5; color:white; padding:8px 12px; border-radius:5px; text-decoration:none; display:flex; align-items:center;">
<i class="fab fa-linkedin-in"></i><span style="margin-left:5px;">LinkedIn</span>
</a>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const links = document.querySelectorAll('.sosyal-paylasim a');
const url = encodeURIComponent(window.location.href);
const title = encodeURIComponent(document.title);
links.forEach(link => {
let href = link.getAttribute('href');
if(href.includes('text=')) {
link.setAttribute('href', href + title + ' ' + url);
} else {
link.setAttribute('href', href + url);
}
});
});
</script>