Arama Yap Mesaj Submit
Request a Callback
+90
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro

Contact Us

Location Halkali merkez neighborhood fatih st ozgur apt no 46 , Kucukcekmece , Istanbul , 34303 , TR

You can add to your site
Free Codes

EkaSunucu offers completely free tools and codes that you can use to develop your site. Gold prices, exchange rates, weather, time and date codes and more!

Easy
Entegrasyon

Copy and paste the codes and use immediately

customizable
Kodlar

You can edit it according to your need

Tamamen
Free

All codes are free and unlimited use

regular
Update

Always up to date and working

How Can You Use Codes?

Follow the steps below to add the codes to your site

1. Copy Code

Copy the code to the clipboard by clicking the "Copy" button next to the code you want.

2. Paste to Your Site

In the HTML content of your website, paste the code into the section you want to display.

3. Use Now

The codes will run automatically. If you want, you can customize the codes to make them suitable for your own site.

No programming knowledge is required for these codes, just copy-paste is enough.
CATEGORIES

Site Codes Categories

All the ready-made codes you need to enrich your website are here. Choose the codes that are suitable for your site among the codes classified into categories.

READY CODES

Site Codes

You can review each tested and ready-to-use code and add it to your site. You can easily start using it by following the installation instructions.

Add Gold Prices Code to Your Site

With this code, you can add a widget that shows current gold prices to your site. It shows gram gold, quarter gold, half gold, full gold and ONS gold prices live.

Current prices
Mobile compatible
customizable

How to Install?

  1. Copy the code below
  2. Paste it where you added it to your website's HTML content
  3. You can edit the width and height values as per your wish.
HTML Kodu
<iframe src="https://www.altinfiyat.org/altin-fiyatlari-widget" width="100%" height="400" frameborder="0" scrolling="no"></iframe>
Gold Prices

Add Currency Rates Code to Your Site

With this code, you can add a widget that shows current exchange rates to your site. You can follow the current exchange rates of Dollar, Euro, Sterling, Canadian Dollar, Swiss Franc and other currencies.

Live rates
Mobile compatible
Change indicators

How to Install?

  1. Copy the code below
  2. Paste it where you added it to your website's HTML content
  3. You can edit the width and height values as per your wish.
HTML Kodu
<iframe src="https://www.doviz.com/widget/doviz-kurlari" width="100%" height="350" frameborder="0" scrolling="no"></iframe>
Exchange Rates

Add BIST Index Code to Your Site

With this code, you can add a widget that displays Borsa Istanbul (BIST) indices to your site. BIST 100, BIST 30, BIST Shows the current values ​​and change rates of banks and other important indices.

Current indices
Change percentages
regular table

How to Install?

  1. Copy the code below
  2. Paste it where you added it to your website's HTML content
  3. You can edit the width and height values as per your wish.
HTML Kodu
<iframe src="https://bigpara.hurriyet.com.tr/widgets/borsa/borsa-widget.html" width="100%" height="400" frameborder="0" scrolling="no"></iframe>
BIST Index

Add Stocks Code to Your Site

With this code, you can add a widget that shows live stock prices to your site. You can follow the current values, change rates and transaction volume of stocks traded on Borsa Istanbul.

live data
Mobile compatible
stock search

How to Install?

  1. Copy the code below
  2. Paste it where you added it to your website's HTML content
  3. You can edit the width and height values as per your wish.
HTML Kodu
<iframe src="https://finans.mynet.com/borsa/canli-borsa-verileri/" width="100%" height="450" frameborder="0" scrolling="yes"></iframe>
Stocks

Add Credit Calculation Code to Your Site

You can add a loan calculation tool to your site with this code. Your visitors can calculate monthly payment, total repayment and total interest amounts by entering the loan amount, maturity and interest rate information.

customizable
Mobile compatible
Detailed payment plan

How to Install?

  1. Copy the code below
  2. Paste it where you added it to your website's HTML content
  3. You can edit the width and height values as per your wish.
HTML & JavaScript Code
<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 Accountlama</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="krediAccountla()">Accountla</button>

    <div id="sonuc" class="sonuc" style="display: none;">
      <div class="sonuc-item">Monthly Payment: <span id="aylik-odeme">0</span> TL</div>
      <div class="sonuc-item">Toplam Geri Payment: <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 krediAccountla() {
      // 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);

      // Error control
      if (isNaN(krediTutari) || isNaN(vade) || isNaN(yillikFaizOrani)) {
        alert('Please all fields correct şekilde doldproduct!');
        return;
      }

      // Monthly faiz oranı hesaplama
      const aylikFaizOrani = yillikFaizOrani / 12 / 100;

      // Monthly ö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;

      // Resultları 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>
Credit Calculation

Add News Code to Your Site

You can add current news to your site with this code. Share breaking news, current news and other important developments with your visitors.

Current news
Mobile compatible
Category based

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. You can edit the width and height values as per your wish.
HTML Kodu
<iframe src="https://www.haberler.com/haber-widget/" width="100%" height="500" frameborder="0" scrolling="auto" style="border-radius: 10px;"></iframe>
Haber Kodu

Add Economy News Code to Your Site

With this code, you can add current economic news to your site. Create useful content for your visitors who want to follow the markets, exchange rates, stock market and economic agenda.

Instant update
Mobile compatible
financial data

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. You can edit the width and height values as per your wish.
HTML Kodu
<iframe src="https://www.bloomberght.com/piyasa/haber-feed" width="100%" height="500" frameborder="0" scrolling="auto" style="border-radius: 10px;"></iframe>
Economic News

Add Sports News Code to Your Site

You can add current sports news to your site with this code. Follow the latest news, standings and match results from football, basketball, volleyball and other branches.

live scores
Mobile compatible
Match results

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. You can edit the width and height values as per your wish.
HTML Kodu
<iframe src="https://www.sporx.com/widget/son-dakika-haberleri" width="100%" height="500" frameborder="0" scrolling="auto" style="border-radius: 10px;"></iframe>
Sports News

Add Technology News Code to Your Site

With this code, you can add current technology news to your site. Follow new technologies, smartphones, software updates and the latest developments in the world of technology.

Current content
Mobile compatible
Product reviews

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. You can edit the width and height values as per your wish.
HTML Kodu
<iframe src="https://www.webtekno.com/widget/teknoloji-haberleri" width="100%" height="500" frameborder="0" scrolling="auto" style="border-radius: 10px;"></iframe>
Technology News

Add MEB News Code to Your Site

With this code, you can add current news and announcements of the Ministry of National Education to your site. Follow the latest developments in the education system, exams and important dates for students, teachers and parents.

Official announcements
Mobile compatible
Important dates

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. You can edit the width and height values as per your wish.
HTML Kodu
<iframe src="https://www.meb.gov.tr/meb_duyuru_widget/" width="100%" height="500" frameborder="0" scrolling="auto" style="border-radius: 10px;"></iframe>
MEB News

Add Time Code to Your Site

With this code, you can add a stylish and functional digital clock to your site. Increase the visual appeal of your site while showing the current time to your visitors.

customizable color
Mobile compatible
animated

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. You can edit the color and size values as per your wish.
HTML & JavaScript Code
<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>
Digital Clock

Add Calendar Code to Your Site

You can add a stylish calendar to your site with this code. Your visitors can check the current date and review the monthly view. With its customizable design, you can make it suitable for the theme of your site.

customizable
Mobile compatible
interactive

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. You can edit the color and design values as per your wish.
HTML & JavaScript Code
<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">&lt;</button>
        <button class="takvim-btn" id="next-month">&gt;</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 dayünden ö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;

          // Budayün 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 linedaki 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>
Takvim Kodu

Sitene Hava Durumu Kodu Ekle

This code adds a current weather widget to your site, showing temperature, humidity, wind speed and weekly forecasts by city.

Live data
Mobile Compatible
City selection

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. You can adjust width, height and city values as needed
HTML Kodu
<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>
Hava Durumu

Sitene Namaz Vakitleri Kodu Ekle

With this code, you can add a widget to your site that displays current prayer times. You can show daily prayer times and Iftar/Suhur hours during Ramadan based on city and district selection.

Current times
Mobile Compatible
City selection

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. You can adjust width, height and city values as needed
HTML Kodu
<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>
Namaz Vakitleri

Sitene Whatsapp Butonu Ekle

You can add a fixed button to your site with this code to allow visitors to easily reach you via WhatsApp. The button is located at the bottom right corner of the page and is compatible with mobile devices.

customizable
Mobile Compatible
Custom message setting

How to Install?

  1. Copy the code below
  2. Paste it into your website's HTML content before the closing </body> tag
  3. Edit your phone number and message text
HTML & CSS Kodu
<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 for editing */
  @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" />
WhatsApp Butonu

Add a Calculator to Your Site

This code adds a useful calculator to your site so visitors can perform basic calculations easily.

customizable
Mobile Compatible
Simple setup

How to Install?

  1. Copy the code below
  2. Paste it into your website's HTML content
  3. You can edit color and size values.
HTML Kodu
<iframe src="https://www.calculatorsoup.com/calculators/basic/basic-calculator.php" style="width:100%; height:500px; border:0; border-radius:10px;" title="Calculator"></iframe>
Calculator

Add Unit Conversion Code to Your Site

With this code, you can add a practical unit conversion tool to your site. Provide visitors with an easy way to convert units such as length, weight, volume, and temperature.

Multiple units
Mobile Compatible
Instant Translation

How to Install?

  1. Copy the code below
  2. Paste it into your website's HTML content
  3. You can edit the width and height values as per your wish.
HTML Kodu
<iframe src="https://www.unitconverters.net/" style="width:100%; height:500px; border:0; border-radius:10px;" title="Unit Conversion Tool"></iframe>
Unit Conversion

Sitene Tarih ve Saat Kodu Ekle

Using this code, you can add a stylish widget to your site that shows the current date and time. Both date and time are presented in one place with an attractive design.

customizable
Mobile Compatible
Animated

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. You can edit the color and design values as per your wish.
HTML & JavaScript Kodu
<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>
Tarih ve Saat

Add Today in History Code to Your Site

This code allows you to add a section to your site that displays significant events that occurred on this date in the past. Provide your visitors with interesting and informative content.

Automatic update
Mobile Compatible
Informative

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. You can edit the width and height values as per your wish.
HTML Kodu
<iframe src="https://www.tarihtebugun.gen.tr/widget/tarihtebugun.aspx" width="100%" height="450" frameborder="0" scrolling="auto" style="border-radius: 10px;"></iframe>
Today in History

Sitene Kronometre Kodu Ekle

Using this code, you can add a handy stopwatch to your site. Visitors can start, stop, and reset the timer.

customizable
Mobile Compatible
Easy control

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. You can customize color and design values.
HTML Kodu
<iframe src="https://chronometer.com.tr/embed" width="100%" height="300" frameborder="0" scrolling="no" style="border-radius: 10px;"></iframe>
Kronometre

Add Countdown Code to Your Site

You can add a countdown timer to your site with this code for special events or campaigns. Visitors can see how much time is left until the event starts.

Customizable date
Mobile Compatible
Attention‑Grabbing

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. You can change the target date optionally.
HTML Kodu
<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ı daycelle
  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ı daycelle
    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>
Countdown

Add Code to Show Facebook Address to Your Site

With this code, you can add a window to your site that displays your Facebook page. Your visitors can view and like your Facebook page.

Current content
Mobile Compatible
Follower Growth

How to Install?

  1. Copy the code below
  2. Replace the place in the code where "FACEBOOK_SAYFA_URL" is written with your own Facebook page URL.
  3. Paste it wherever you want to add it to your website's HTML content
HTML Kodu
<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 Pagemız</a>
  </blockquote>
</div>
Facebook

Sitene Instagram Profil Kodu Ekle

Using this code, you can add a sleek display to your site that showcases your Instagram profile. Visitors can easily follow your Instagram account.

customizable
Mobile Compatible
Follower Growth

How to Install?

  1. Copy the code below
  2. Replace the place with your Instagram username in the code with "INSTAGRAM_KULLANICI_ADI"
  3. Paste it wherever you want to add it to your website's HTML content
HTML Kodu
<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>
Instagram

Sitene Instagram Widget Kodu Ekle

With this code, you can add a widget to your site that displays your Instagram posts. Your visitors will be able to view your Instagram content directly on your website.

Media display
Mobile Compatible
Automatic update

How to Install?

  1. Copy the code below
  2. Replace the parts "INSTAGRAM_KULLANICI_ADI" and "ACCESS_TOKEN" in the code with your own information.
  3. Paste it wherever you want to add it to your website's HTML content
HTML Kodu
<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 for sorgu
  const instagramUserId = 'INSTAGRAM_KULLANICI_ADI';
  const accessToken = 'ACCESS_TOKEN';
  const limit = 6; // Gösterilecek gönderi sayısı

  // Örnek veri (Real API bağlantısı for aşağıdaki yorum lineını kaldırın)
  const mockData = {
    data: [
      {
        id: '1',
        media_url: 'https://picsum.photos/id/1/500/500',
        caption: 'Harika bir day!',
        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: 'Customer memnuniyeti',
        like_count: 156,
        comments_count: 24
      },
      {
        id: '5',
        media_url: 'https://picsum.photos/id/5/500/500',
        caption: 'Teamwork',
        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 for)
  displayInstagramFeed(mockData);

  // Real API sorgusu for aşağıdaki kodu use
  /*
  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 getamadı:', error);
    });
  */
</script>
Instagram

Sitene Twitter Takip Et Kodu Ekle

This code allows you to add a button to your site that enables visitors to follow your Twitter profile with a single click.

customizable
Mobile Compatible
Follower Growth

How to Install?

  1. Copy the code below
  2. Replace the place with your Twitter username in the code with "TWITTER_KULLANICI_ADI"
  3. Paste it wherever you want to add it to your website's HTML content
HTML Kodu
<!-- 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 daycel 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>
Twitter

Sitene Radyo Dinleme Kodu Ekle

Using this code, you can add a radio streaming feature to your site. Visitors can listen to their favorite radio stations without leaving your website.

Live music
Mobile Compatible
Channel List

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. You can adjust the width and height values if necessary.
HTML Kodu
<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: Real radyo yayını for valid 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 control
    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 çgetamadı:', error);
          currentStation.textContent = 'Çgetamadı: ' + name;
          playBtn.innerHTML = '';
        });
    }
  });
</script>
Radyo Dinleme

Sitene Gazete Okuma Kodu Ekle

With this code, you can add a daily newspaper reading feature to your site. Visitors can read the daily newspapers without leaving your website.

Daily update
Mobile Compatible
Many newspapers

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. You can adjust the width and height values if necessary.
HTML Kodu
<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 daycelle
        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>
Gazete Okuma

Sitene Kayan Resim Kodu Ekle

You can add an automatic sliding image gallery to your site with this code. Visitors can view your product, service, or event photos in a stylish format.

customizable
Mobile Compatible
Automatic transition

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. Replace image URLs with your own images.
HTML Kodu
<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">City 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;

    // Automatic transition
    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 daycelle
    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();
    });

    // Automatic transitioni başlat
    startAutoSlide();
  });
</script>
Kayan Resim

Add Live TV Watch Code to Your Site

This code adds live TV viewing to your site so visitors can watch national channels without leaving it.

Live broadcast
Mobile Compatible
Channel Selection

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. You can adjust the width and height values if necessary.
HTML Kodu
<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 daycelle
        iframe.src = url;
        currentChannel.textContent = `Şu an: ${channelName}`;
      });
    });
  });
</script>
Live TV

Sitene Rastgele Resim Kodu Ekle

This code displays a different image on each refresh so visitors discover a new visual every time.

Automatic change
Mobile Compatible
customizable

How to Install?

  1. Copy the code below
  2. Paste it wherever you want to add it to your website's HTML content
  3. Replace image URLs with your own images or customize categories
HTML Kodu
<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">City</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 different 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 City', desc: 'Modern şehir manzarası' },
        { id: 21, title: 'Gökdelenler', desc: 'Yüksek gökdelenler' },
        { id: 22, title: 'Tarihi City', desc: 'Tarihi şehir manzarası' },
        { id: 23, title: 'Gece Şehri', desc: 'Gece şehir manzarası' },
        { id: 24, title: 'Köprü', desc: 'City 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: 'Advanced 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;
    }

    // Page yüklendiğinde all 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 upload 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 daycelle
        currentCategory = this.getAttribute('data-category');

        // Yeni resim göster
        showRandomImage();
      });
    });

    // İlk resmi göster
    showRandomImage();
  });
</script>
Rastgele Resim

Add Social Media Sharing Code to Your Site

With this code, you can add buttons to your site to share your content on social media. Your visitors can share your content on different platforms with just one click.

customizable
Mobile Compatible
Increase Access

How to Install?

  1. Copy the code below
  2. Add it to your website's HTML content
  3. Your content will be ready for automatic sharing
HTML Kodu
<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>
Social Sharing
Top