🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.misc
Article #270

html test

#270
From: Berkcomie
Date: Sat, 14 Nov 2026 19:02
223 lines
11059 bytes
[code=html]
<!DOCTYPE html>
<html lang="nl">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width,initial-scale=1.0"/>
  <title>FilmsApp – Play Movie</title>
  <style>
    /* CSS setup */
    *, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }
    body { font-family: Arial, sans-serif; background: var(--bg); color: var(--text); transition: background .3s, color .3s; }
    :root {
      --bg:#f0f0f0; --text:#333;
      --nav-bg:#333; --btn-bg:#007bff; --btn-text:#fff;
      --card-bg:#fff; --shadow: rgba(0,0,0,0.1);
    }
    [data-dark="true"] {
      --bg:#121212; --text:#eee;
      --nav-bg:#222; --btn-bg:#1a73e8;
      --card-bg:#1e1e1e; --shadow: rgba(0,0,0,0.5);
    }
    .topnav { display: flex; flex-wrap: wrap; align-items:center; background: var(--nav-bg); padding:10px; position: sticky; top:0; z-index: 100;}
    .topnav * { margin:5px; padding:6px 10px; border:none; border-radius:4px; font-size:16px; }
    .topnav button { background: var(--btn-bg); color: var(--btn-text); cursor: pointer; }
    .topnav input { max-width: 180px; }
    
    /* Zelfde witte styling behouden en #provider-select toegevoegd */
    #country-select, #type-select, #genre-select, #provider-select { background: #fff; color: #333; max-width: 150px; cursor: pointer; }
    
    main { padding:20px; }
    .cards { display:flex; flex-wrap: wrap; gap:20px; }
    .film-card { background: var(--card-bg); box-shadow: 0 2px 5px var(--shadow); width:200px; display:flex; flex-direction:column; overflow:hidden; border-radius:8px; }
    .film-card img { width:100%; aspect-ratio:2/3; object-fit:cover; background: #444; }
    .info { flex:1; padding:10px; display:flex; flex-direction:column; justify-content:space-between; }
    .info h3 { font-size:16px; margin-bottom:8px;}
    .info p { font-size:14px; margin-bottom:8px;}
    .play-button, .play-button-tv, .info-button {
      display:block; text-align:center; margin-top:4px;
      background: var(--btn-bg); color: var(--btn-text);
      padding:6px; border-radius:4px; text-decoration:none;
    }
    .load-more-btn { margin:20px auto; display:block; background: var(--btn-bg); color: var(--btn-text); border:none; border-radius:5px; padding:10px 20px; cursor:pointer;}
    .hidden { display:none !important; }

    /* Styling voor de Acteurs selectielijst */
    .actor-results-grid { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; padding: 15px; background: rgba(0,0,0,0.05); border-radius: 8px; }
    [data-dark="true"] .actor-results-grid { background: rgba(255,255,255,0.05); }
    .actor-chip { 
      background: var(--card-bg); border: 1px solid #ccc; border-radius: 20px; padding: 5px 15px; 
      display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 4px var(--shadow);
    }
    .actor-chip:hover { border-color: var(--btn-bg); transform: scale(1.03); }
    .actor-chip img { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; background: #666; }
    .actor-chip span { font-size: 14px; font-weight: bold; color: var(--text); }
    .section-header { font-size: 18px; font-weight: bold; margin: 15px 5px 5px 5px; color: var(--text); }

    /* styling voor de teller */
    .counter-box {
      margin: 20px;
      padding: 10px 20px;
      background-color: var(--card-bg);
      color: var(--text);
      border: 1px solid #ccc;
      border-radius: 8px;
      box-shadow: 0 2px 5px var(--shadow);
      display: inline-block;
      font-size: 1.2em;
    }
  </style>
</head>
<body>

  <div class="topnav">
    <select id="type-select">
      <option value="movie">Film</option>
      <option value="tv">TV-serie</option>
    </select>
    
    <select id="country-select">
      <option value="US" selected>All Country</option>
      <option value="US">Engelse</option>
      <option value="GB">Verenigd Koninkrijk</option>
      <option value="NL|BE">Nederland & België</option>
      <option value="NL">Alleen Nederland</option>
      <option value="BE">Alleen België</option>
      <option value="TR">Turkey</option>
      <option value="DE">Germany</option>
      <option value="FR">France</option>
      <option value="PL">Poland</option>
    </select>

    <!-- HIER STAAT HET NIEUWE KEUZEMENU VOOR DE STREAMINGDIENSTEN -->
    <select id="provider-select">
      <option value="" selected>All Providers</option>
      <option value="8">Netflix</option>
      <option value="337">Disney+</option>
      <option value="9">Prime Video</option>
      <option value="15">Hulu</option>
      <option value="1899">Max</option>
      <option value="350">Apple TV+</option>
      <option value="337|9">Combo: Disney+ & Prime</option>
      <option value="8|337">Combo: Netflix & Disney+</option>
    </select>
    
    <select id="genre-select">
      <option value="">Alles</option>
      <option value="28">Actie</option>
      <option value="12">Avontuur</option>
      <option value="16">Animatie</option>
      <option value="35">Komedie</option>
      <option value="80">Misdaad</option>
      <option value="99">Documentaire</option>
      <option value="18">Drama</option>
      <option value="10751">Familie</option>
      <option value="14">Fantasie</option>
      <option value="36">Historisch</option>
      <option value="27">Horror</option>
      <option value="10402">Muziek</option>
      <option value="9648">Mysterie</option>
      <option value="10749">Romantiek</option>
      <option value="878">Sciencefiction</option>
      <option value="10770">TV Film</option>
      <option value="53">Thriller</option>
      <option value="10752">Oorlog</option>
      <option value="37">Western</option>
    </select>
    <button id="genre-search">Zoek Genre</button>
    
    <input type="text" id="search-input" placeholder="Vrij zoeken…"/>
    <button id="free-search">Zoeken</button>

    <input type="number" id="year-input" placeholder="Jaartal (bijv. 2023)" min="1900" max="2030"/>
    <button id="year-search">Zoek Jaar</button>

    <input type="text" id="actor-input" placeholder="Acteur naam…"/>
    <button id="actor-search">Zoek Acteur</button>

    <button id="dark-toggle">🌙</button>
  </div>

  <!-- Teller -->
  <div class="counter-box">
    Bezoekers‐aantal: <span id="visitorCount">Laden…</span>
  </div>

  <main>
    <div id="actor-selection-wrapper" class="hidden">
      <div class="section-header">Gevonden Acteurs (Klik op een acteur):</div>
      <div id="actor-results-container" class="actor-results-grid"></div>
    </div>

    <div id="movie-section-header" class="section-header hidden">Resultaten:</div>
    <div id="results-container" class="cards"></div>
    <button id="load-more" class="load-more-btn hidden">Laad meer</button>
  </main>
  <script>
    document.addEventListener('DOMContentLoaded', () => {
      // 1. De bezoekersteller via counterapi
      const visitorSpan = document.getElementById("visitorCount");
      const namespace = "filmsapp_bezoekers";
      const key = "ut_pO244CJQ9V5WKbvnxKtj1peufJfN02eQSRfmfCh9";
      const countApiUrl = `https://counterapi.dev/${namespace}/${key}/increment`;

      fetch(countApiUrl)
        .then(response => {
          if (!response.ok) throw new Error("Fout bij ophalen teller");
          return response.json();
        })
        .then(data => {
          if(visitorSpan) visitorSpan.textContent = data.value;
        })
        .catch(error => {
          console.error("Teller fout:", error);
          if(visitorSpan) visitorSpan.textContent = "Niet beschikbaar";
        });

      // 2. De HTML Elementen koppelen in JavaScript
      const apiKey = '8476a7ab80ad76f0936744df0430e67c';
      const typeSelect = document.getElementById('type-select'),
            countrySelect = document.getElementById('country-select'),
            providerSelect = document.getElementById('provider-select'),
            genreSelect = document.getElementById('genre-select'),
            genreSearchBtn = document.getElementById('genre-search'),
            freeSearchBtn = document.getElementById('free-search'),
            searchInput = document.getElementById('search-input'),
            yearInput = document.getElementById('year-input'),
            yearSearchBtn = document.getElementById('year-search'),
            actorInput = document.getElementById('actor-input'),
            actorSearchBtn = document.getElementById('actor-search'),
            darkToggle = document.getElementById('dark-toggle'),
            results = document.getElementById('results-container'),
            loadMore = document.getElementById('load-more');

      const actorSelectionWrapper = document.getElementById('actor-selection-wrapper'),
            actorResultsContainer = document.getElementById('actor-results-container'),
            movieSectionHeader = document.getElementById('movie-section-header');

      // Zoekparameters bijhouden (onthoudt nu keuzes via localStorage)
      let currentType = 'movie', 
          currentCountry = localStorage.item_country || (countrySelect ? countrySelect.value : 'US'),
          currentProvider = localStorage.item_provider || (providerSelect ? providerSelect.value : ''),
          currentGenre = '', 
          currentQuery = '', 
          currentYear = '', 
          currentActorQuery = '',
          selectedActorId = '', 
          searchMode = 'discover', 
          page = 1, 
          total = 0;

      // Zorg dat de dropdowns visueel ook direct op de opgeslagen waarde springen
      if (countrySelect) countrySelect.value = currentCountry;
      if (providerSelect) providerSelect.value = currentProvider;

      // Event listeners voor keuzemenu wijzigingen (inclusief opslaan)
      if (countrySelect) {
        countrySelect.addEventListener('change', () => {
          currentCountry = countrySelect.value;
          localStorage.item_country = currentCountry; // Sla land op
          reset();
          fetchResults();
        }
[/code]
Technical Details
Message-ID: <sc1.scripts.e6e754403e75048b25.143762@spot.net>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!abo001.abavia.com!feed.abavia.com!abr001.abavia.com!abp001.abavia.com!news.hitnews.com!not-for-mail

Show Full Headers
Complete Article Headers
From: Berkcomie <community@start.invalid>
Newsgroups: free.misc
Subject: html test
Message-ID: <sc1.scripts.e6e754403e75048b25.143762@spot.net>
Date: Sat, 14 Nov 2026 19:02:50 GMT
X-Newsreader: Start Modern 2.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Organization: RSP Sales inc attn. Hitnews
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!abo001.abavia.com!feed.abavia.com!abr001.abavia.com!abp001.abavia.com!news.hitnews.com!not-for-mail
Lines: 224
Injection-Date: Sat, 14 Nov 2026 20:02:50 +0100
Injection-Info: news.hitnews.com; mail-complaints-to="support@hitnews.com"