Spaces:
Running
Running
Download index.html from MarcRyan/random-classics: direct link, hf CLI and curl.
- Browser
- Download file 39.1 kB
-
https://huggingface.co/spaces/MarcRyan/random-classics/resolve/main/index.html
- Command line
-
hf download hf://spaces/MarcRyan/random-classics/index.html
-
curl -L -o index.html https://huggingface.co/spaces/MarcRyan/random-classics/resolve/main/index.html
39.1 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Golden Age Cinema - Art Deco Film Collection</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Playfair+Display:wght@400;700&family=Montserrat:wght@300;500&display=swap'); | |
| :root { | |
| --gold: #FFD700; | |
| --platinum: #E5E4E2; | |
| --black: #0a0a0a; | |
| --maroon: #800020; | |
| --emerald: #50C878; | |
| } | |
| body { | |
| font-family: 'Montserrat', sans-serif; | |
| background-color: var(--black); | |
| color: var(--platinum); | |
| overflow-x: hidden; | |
| } | |
| .hero { | |
| height: 100vh; | |
| background: radial-gradient(ellipse at center, rgba(10,10,10,0.9) 0%, rgba(0,0,0,1) 100%); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .film-grain { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: url('https://grainy-gradients.vercel.app/noise.svg'); | |
| opacity: 0.1; | |
| pointer-events: none; | |
| } | |
| .title { | |
| font-family: 'Cinzel Decorative', serif; | |
| text-shadow: 0 0 15px rgba(255, 215, 0, 0.7); | |
| letter-spacing: 3px; | |
| } | |
| .art-deco-border { | |
| border: 4px solid var(--gold); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .art-deco-border:before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| border: 2px solid rgba(255,215,0,0.3); | |
| pointer-events: none; | |
| } | |
| .art-deco-border:after { | |
| content: ''; | |
| position: absolute; | |
| top: 8px; | |
| left: 8px; | |
| right: 8px; | |
| bottom: 8px; | |
| border: 1px solid rgba(255,215,0,0.2); | |
| pointer-events: none; | |
| } | |
| .glow-effect { | |
| box-shadow: 0 0 25px rgba(255, 215, 0, 0.5); | |
| transition: all 0.3s ease; | |
| } | |
| .glow-effect:hover { | |
| box-shadow: 0 0 40px rgba(255, 215, 0, 0.8); | |
| transform: translateY(-5px); | |
| } | |
| .theater-screen { | |
| width: 90%; | |
| max-width: 1200px; | |
| height: 0; | |
| padding-bottom: 45%; | |
| background: linear-gradient(135deg, #111 0%, #222 100%); | |
| position: relative; | |
| margin: 0 auto; | |
| border-radius: 8px 8px 0 0; | |
| box-shadow: 0 0 80px rgba(255, 215, 0, 0.4); | |
| border: 16px solid var(--gold); | |
| border-bottom: none; | |
| } | |
| .theater-screen:before { | |
| content: ''; | |
| position: absolute; | |
| top: -30px; | |
| left: -30px; | |
| right: -30px; | |
| height: 60px; | |
| background: linear-gradient(90deg, | |
| var(--gold) 0%, | |
| #111 10%, | |
| #111 90%, | |
| var(--gold) 100%); | |
| z-index: -1; | |
| box-shadow: 0 10px 30px rgba(0,0,0,0.5); | |
| } | |
| .theater-screen:after { | |
| content: ''; | |
| position: absolute; | |
| bottom: -60px; | |
| left: -30px; | |
| right: -30px; | |
| height: 60px; | |
| background: linear-gradient(90deg, | |
| var(--gold) 0%, | |
| #111 10%, | |
| #111 90%, | |
| var(--gold) 100%); | |
| z-index: -1; | |
| box-shadow: 0 10px 30px rgba(0,0,0,0.5); | |
| } | |
| .screen-content { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: #000; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| overflow: hidden; | |
| } | |
| .screen-curtains { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(90deg, | |
| rgba(139, 0, 0, 0.7) 0%, | |
| rgba(139, 0, 0, 0.5) 50%, | |
| rgba(139, 0, 0, 0.7) 100%); | |
| z-index: 2; | |
| display: flex; | |
| justify-content: space-between; | |
| transition: opacity 1.5s ease; | |
| } | |
| .curtain { | |
| width: 25%; | |
| height: 100%; | |
| background: linear-gradient(135deg, var(--maroon) 0%, #500 100%); | |
| position: relative; | |
| transition: all 1.5s ease-out; | |
| box-shadow: 0 0 30px rgba(0,0,0,0.7); | |
| } | |
| .curtain:before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(135deg, | |
| transparent 0%, | |
| rgba(255,255,255,0.1) 50%, | |
| transparent 100%); | |
| } | |
| .curtain-left { | |
| transform-origin: right center; | |
| } | |
| .curtain-right { | |
| transform-origin: left center; | |
| } | |
| .screen-open .screen-curtains { | |
| opacity: 0; | |
| pointer-events: none; | |
| } | |
| .screen-open .curtain-left { | |
| transform: perspective(800px) rotateY(-60deg); | |
| } | |
| .screen-open .curtain-right { | |
| transform: perspective(800px) rotateY(60deg); | |
| } | |
| .projector-light { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| background: radial-gradient( | |
| ellipse at center, | |
| rgba(255, 215, 0, 0.3) 0%, | |
| rgba(255, 215, 0, 0.2) 40%, | |
| rgba(255, 215, 0, 0) 70% | |
| ); | |
| pointer-events: none; | |
| z-index: 1; | |
| opacity: 0; | |
| transition: opacity 0.5s ease; | |
| } | |
| .screen-open .projector-light { | |
| opacity: 1; | |
| } | |
| .marquee { | |
| width: 100%; | |
| overflow: hidden; | |
| white-space: nowrap; | |
| box-sizing: border-box; | |
| background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(10,10,10,0.7) 50%, rgba(0,0,0,0.8) 100%); | |
| border-top: 3px solid var(--gold); | |
| border-bottom: 3px solid var(--gold); | |
| font-family: 'Playfair Display', serif; | |
| letter-spacing: 2px; | |
| } | |
| .marquee-content { | |
| display: inline-block; | |
| padding-left: 100%; | |
| animation: marquee 20s linear infinite; | |
| text-shadow: 0 0 10px rgba(255,215,0,0.5); | |
| } | |
| @keyframes marquee { | |
| 0% { transform: translateX(0); } | |
| 100% { transform: translateX(-100%); } | |
| } | |
| .movie-card { | |
| background: linear-gradient(135deg, rgba(20,20,20,0.9) 0%, rgba(10,10,10,0.9) 100%); | |
| border: 3px solid var(--gold); | |
| transition: all 0.3s ease; | |
| cursor: pointer; | |
| position: relative; | |
| overflow: hidden; | |
| font-family: 'Playfair Display', serif; | |
| } | |
| .movie-card:before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(135deg, rgba(255,215,0,0.05) 0%, transparent 100%); | |
| pointer-events: none; | |
| } | |
| .movie-card:hover { | |
| transform: translateY(-10px); | |
| box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3); | |
| border-color: var(--platinum); | |
| } | |
| .movie-card.active { | |
| border: 3px solid var(--emerald); | |
| box-shadow: 0 0 40px var(--emerald); | |
| } | |
| .movie-card.active:after { | |
| content: 'NOW PLAYING'; | |
| position: absolute; | |
| top: 10px; | |
| right: 10px; | |
| background: var(--emerald); | |
| color: var(--black); | |
| padding: 3px 10px; | |
| font-size: 12px; | |
| font-weight: bold; | |
| border-radius: 3px; | |
| font-family: 'Montserrat', sans-serif; | |
| } | |
| .oscar-badge { | |
| position: absolute; | |
| top: -10px; | |
| right: -10px; | |
| width: 40px; | |
| height: 40px; | |
| background: radial-gradient(circle at center, var(--gold) 0%, #b8860b 100%); | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| box-shadow: 0 0 15px rgba(255,215,0,0.7); | |
| z-index: 2; | |
| } | |
| .oscar-badge i { | |
| color: var(--black); | |
| font-size: 20px; | |
| } | |
| .art-deco-pattern { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| background: | |
| linear-gradient(135deg, transparent 45%, rgba(255,215,0,0.03) 45%, rgba(255,215,0,0.03) 55%, transparent 55%), | |
| linear-gradient(-135deg, transparent 45%, rgba(255,215,0,0.03) 45%, rgba(255,215,0,0.03) 55%, transparent 55%); | |
| background-size: 30px 30px; | |
| pointer-events: none; | |
| opacity: 0.5; | |
| } | |
| .scroll-down { | |
| position: absolute; | |
| bottom: 30px; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| animation: bounce 2s infinite; | |
| } | |
| @keyframes bounce { | |
| 0%, 20%, 50%, 80%, 100% { | |
| transform: translateY(0) translateX(-50%); | |
| } | |
| 40% { | |
| transform: translateY(-20px) translateX(-50%); | |
| } | |
| 60% { | |
| transform: translateY(-10px) translateX(-50%); | |
| } | |
| } | |
| .golden-btn { | |
| background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%); | |
| color: var(--black); | |
| font-weight: bold; | |
| letter-spacing: 1px; | |
| border: none; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .golden-btn:before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: -100%; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); | |
| transition: all 0.5s ease; | |
| } | |
| .golden-btn:hover:before { | |
| left: 100%; | |
| } | |
| .film-reel { | |
| width: 60px; | |
| height: 60px; | |
| border: 3px solid var(--gold); | |
| border-radius: 50%; | |
| position: relative; | |
| animation: spin 2s linear infinite; | |
| } | |
| .film-reel:before { | |
| content: ''; | |
| position: absolute; | |
| top: 5px; | |
| left: 5px; | |
| right: 5px; | |
| bottom: 5px; | |
| border: 3px solid var(--gold); | |
| border-radius: 50%; | |
| } | |
| .film-reel:after { | |
| content: ''; | |
| position: absolute; | |
| top: 15px; | |
| left: 15px; | |
| right: 15px; | |
| bottom: 15px; | |
| border: 3px solid var(--gold); | |
| border-radius: 50%; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| .art-deco-divider { | |
| height: 3px; | |
| background: linear-gradient(90deg, | |
| transparent 0%, | |
| var(--gold) 20%, | |
| var(--gold) 80%, | |
| transparent 100%); | |
| margin: 20px 0; | |
| position: relative; | |
| } | |
| .art-deco-divider:before { | |
| content: ''; | |
| position: absolute; | |
| top: -3px; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| width: 30px; | |
| height: 9px; | |
| background: var(--gold); | |
| clip-path: polygon(50% 0%, 0% 100%, 100% 100%); | |
| } | |
| .award-tag { | |
| position: absolute; | |
| top: 10px; | |
| left: 10px; | |
| background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%); | |
| color: var(--black); | |
| padding: 3px 8px; | |
| font-size: 10px; | |
| font-weight: bold; | |
| border-radius: 3px; | |
| font-family: 'Montserrat', sans-serif; | |
| box-shadow: 0 0 10px rgba(255,215,0,0.5); | |
| } | |
| .gold-text { | |
| background: linear-gradient to right, var(--gold) 0%, #fff 50%, var(--gold) 100%); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| color: transparent; | |
| text-shadow: 0 0 10px rgba(255,215,0,0.3); | |
| } | |
| .loading-spinner { | |
| border: 4px solid rgba(255, 215, 0, 0.3); | |
| border-radius: 50%; | |
| border-top: 4px solid var(--gold); | |
| width: 40px; | |
| height: 40px; | |
| animation: spin 1s linear infinite; | |
| margin: 20px auto; | |
| } | |
| /* Playlist styles */ | |
| .playlist-container { | |
| max-height: 500px; | |
| overflow-y: auto; | |
| scrollbar-width: thin; | |
| scrollbar-color: var(--gold) var(--black); | |
| } | |
| .playlist-container::-webkit-scrollbar { | |
| width: 8px; | |
| } | |
| .playlist-container::-webkit-scrollbar-track { | |
| background: var(--black); | |
| } | |
| .playlist-container::-webkit-scrollbar-thumb { | |
| background-color: var(--gold); | |
| border-radius: 10px; | |
| } | |
| .playlist-item { | |
| padding: 12px 16px; | |
| border-bottom: 1px solid rgba(255,215,0,0.2); | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .playlist-item:hover { | |
| background: rgba(255,215,0,0.1); | |
| } | |
| .playlist-item.active { | |
| background: rgba(80,200,120,0.2); | |
| border-left: 3px solid var(--emerald); | |
| } | |
| .playlist-item .title { | |
| font-weight: 500; | |
| margin-bottom: 4px; | |
| } | |
| .playlist-item .meta { | |
| font-size: 12px; | |
| color: rgba(229,228,226,0.7); | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <!-- Hero Section --> | |
| <section class="hero flex items-center justify-center text-center relative"> | |
| <div class="film-grain"></div> | |
| <div class="art-deco-pattern"></div> | |
| <div class="z-10 px-6"> | |
| <h1 class="title text-6xl md:text-8xl font-bold mb-6"> | |
| <span class="gold-text">COLORIZED</span> | |
| <span class="block text-5xl md:text-7xl mt-4 gold-text">CLASSICS</span> | |
| </h1> | |
| <p class="text-xl md:text-2xl mb-8 max-w-2xl mx-auto tracking-wider font-light">A curated collection of beautifully colorized classic films from the Internet Archive</p> | |
| <div class="flex flex-col sm:flex-row justify-center space-y-4 sm:space-y-0 sm:space-x-4"> | |
| <button id="featuredBtn" class="golden-btn px-8 py-3 rounded-full font-semibold hover:scale-105 transition-transform duration-300 shadow-lg hover:shadow-xl"> | |
| <i class="fas fa-star mr-2"></i> Featured Films | |
| </button> | |
| <button id="randomBtn" class="px-8 py-3 border-2 border-gold-500 rounded-full font-semibold hover:bg-gold-500 hover:text-black transition-colors duration-300"> | |
| <i class="fas fa-random mr-2"></i> Random Classic | |
| </button> | |
| </div> | |
| </div> | |
| <div class="scroll-down"> | |
| <i class="fas fa-chevron-down text-2xl text-gold-500 animate-bounce"></i> | |
| </div> | |
| </section> | |
| <!-- Main Theater Section --> | |
| <section class="py-20 px-4 relative"> | |
| <div class="art-deco-pattern"></div> | |
| <div class="text-center mb-16"> | |
| <h2 class="title text-4xl md:text-5xl font-bold mb-4"> | |
| <span class="gold-text">THE GRAND</span> | |
| <span class="text-platinum-200">THEATER</span> | |
| </h2> | |
| <div class="art-deco-divider max-w-md mx-auto"></div> | |
| </div> | |
| <!-- Theater Screen --> | |
| <div class="theater-screen"> | |
| <div class="screen-curtains"> | |
| <div class="curtain curtain-left"></div> | |
| <div class="curtain curtain-right"></div> | |
| </div> | |
| <div class="projector-light"></div> | |
| <div class="screen-content"> | |
| <div class="screen-content-inner w-full h-full flex items-center justify-center"> | |
| <div id="playerContainer" class="w-full h-full flex items-center justify-center"> | |
| <div class="text-center"> | |
| <div class="film-reel mx-auto mb-4"></div> | |
| <p class="text-xl font-light">Select a film from our collection</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Theater Controls --> | |
| <div class="max-w-4xl mx-auto mt-8 flex justify-center space-x-4"> | |
| <button id="openCurtainsBtn" class="golden-btn px-6 py-2 rounded font-semibold transition-colors duration-300 flex items-center"> | |
| <i class="fas fa-theater-masks mr-2"></i> Open Curtains | |
| </button> | |
| <button id="fullscreenBtn" class="px-6 py-2 bg-gray-800 rounded font-semibold hover:bg-gray-700 transition-colors duration-300 flex items-center border border-gold-500"> | |
| <i class="fas fa-expand mr-2"></i> Full Screen | |
| </button> | |
| <button id="volumeBtn" class="px-6 py-2 bg-gray-800 rounded font-semibold hover:bg-gray-700 transition-colors duration-300 flex items-center border border-gold-500"> | |
| <i class="fas fa-volume-up mr-2"></i> Volume | |
| </button> | |
| </div> | |
| </section> | |
| <!-- Movie Collection Section --> | |
| <section class="py-20 px-6 bg-black bg-opacity-80 relative overflow-hidden"> | |
| <div class="art-deco-pattern"></div> | |
| <div class="max-w-6xl mx-auto relative"> | |
| <div class="text-center mb-16"> | |
| <h2 class="title text-4xl md:text-5xl font-bold mb-4"> | |
| <span class="gold-text">COLORIZED</span> | |
| <span class="text-platinum-200">ARCHIVES</span> | |
| </h2> | |
| <div class="art-deco-divider max-w-md mx-auto"></div> | |
| <p class="mt-6 max-w-2xl mx-auto font-light">Our curated selection of colorized classics from the Internet Archive's collection</p> | |
| </div> | |
| <div class="marquee mb-8"> | |
| <div class="marquee-content"> | |
| NOW PLAYING: CLASSIC FILMS IN STUNNING COLOR • FROM THE INTERNET ARCHIVE'S COLORIZED COLLECTION • EXPERIENCE HISTORY IN VIBRANT HUES • | |
| </div> | |
| </div> | |
| <div id="loadingContainer" class="text-center py-12"> | |
| <div class="loading-spinner"></div> | |
| <p class="text-xl font-light">Loading colorized classics...</p> | |
| </div> | |
| <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 hidden" id="movieGrid"> | |
| <!-- Movies will be loaded here from RSS feed --> | |
| </div> | |
| <!-- Playlist Section --> | |
| <div id="playlistContainer" class="hidden mt-12"> | |
| <h3 class="text-2xl font-bold mb-6 gold-text flex items-center"> | |
| <i class="fas fa-list-ol mr-3"></i> Full Collection Playlist | |
| </h3> | |
| <div class="playlist-container art-deco-border p-1"> | |
| <div class="bg-black p-4"> | |
| <div id="playlist" class="divide-y divide-gray-800"> | |
| <!-- Playlist items will be loaded here --> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="text-center mt-8"> | |
| <button id="togglePlaylistBtn" class="golden-btn px-6 py-2 rounded font-semibold transition-colors duration-300"> | |
| <i class="fas fa-list mr-2"></i> Show Full Collection | |
| </button> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- About Section --> | |
| <section class="py-20 px-6 relative"> | |
| <div class="art-deco-pattern"></div> | |
| <div class="max-w-4xl mx-auto"> | |
| <div class="text-center mb-16"> | |
| <h2 class="title text-4xl md:text-5xl font-bold mb-4"> | |
| <span class="gold-text">ABOUT THE</span> | |
| <span class="text-platinum-200">ARCHIVES</span> | |
| </h2> | |
| <div class="art-deco-divider max-w-md mx-auto"></div> | |
| </div> | |
| <div class="grid md:grid-cols-2 gap-12 items-center"> | |
| <div class="relative art-deco-border glow-effect p-1"> | |
| <div class="bg-black p-8 h-full"> | |
| <h3 class="text-3xl font-semibold mb-6 gold-text">Colorized Classics</h3> | |
| <p class="text-lg leading-relaxed mb-6 font-light">Our collection features classic films that have been carefully colorized to bring new life to these cinematic treasures. The colorization process allows modern audiences to experience these films in a fresh way while preserving their historical significance.</p> | |
| <p class="text-lg leading-relaxed font-light">All films are sourced from the Internet Archive's colorized movies collection, which includes public domain films that have been digitally enhanced with color while maintaining the original film's integrity.</p> | |
| </div> | |
| </div> | |
| <div class="relative art-deco-border glow-effect p-1"> | |
| <div class="bg-black p-8 h-full"> | |
| <h3 class="text-3xl font-semibold mb-6 gold-text">The Art Deco Era</h3> | |
| <p class="text-lg leading-relaxed mb-6 font-light">The Art Deco movement influenced cinema architecture, poster design, and even film aesthetics during the 1920s-1940s. Our virtual theater pays homage to this glamorous era with geometric patterns, luxurious materials, and bold typography.</p> | |
| <p class="text-lg leading-relaxed font-light">Each film in our collection is presented with the grandeur it deserves, framed by our Art Deco inspired interface that transports you back to Hollywood's golden age.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Footer --> | |
| <footer class="py-12 px-6 bg-black bg-opacity-90 text-center relative"> | |
| <div class="art-deco-pattern"></div> | |
| <div class="max-w-4xl mx-auto relative"> | |
| <h3 class="title text-2xl font-semibold mb-6 gold-text">COLORIZED CLASSICS</h3> | |
| <div class="flex justify-center space-x-6 mb-8"> | |
| <a href="#" class="text-2xl hover:text-amber-400 transition-colors duration-300"><i class="fab fa-twitter"></i></a> | |
| <a href="#" class="text-2xl hover:text-amber-400 transition-colors duration-300"><i class="fab fa-facebook"></i></a> | |
| <a href="#" class="text-2xl hover:text-amber-400 transition-colors duration-300"><i class="fab fa-instagram"></i></a> | |
| <a href="https://archive.org/" target="_blank" class="text-2xl hover:text-amber-400 transition-colors duration-300"><i class="fas fa-archive"></i></a> | |
| </div> | |
| <p class="text-sm opacity-70 mb-2 font-light">All films are provided by the Internet Archive and are in the public domain.</p> | |
| <p class="text-xs opacity-50 font-light">This site is for educational purposes only. No copyright infringement intended.</p> | |
| </div> | |
| </footer> | |
| <script> | |
| // RSS feed URL for colorized movies | |
| const RSS_FEED_URL = 'https://archive.org/services/collection-rss.php?collection=colorized-movies'; | |
| let movies = []; | |
| let currentMovieIndex = -1; | |
| // Parse XML to JSON | |
| function parseXmlToJson(xml) { | |
| const items = xml.querySelectorAll('item'); | |
| const movies = []; | |
| items.forEach(item => { | |
| const title = item.querySelector('title').textContent; | |
| const link = item.querySelector('link').textContent; | |
| const description = item.querySelector('description').textContent; | |
| const pubDate = item.querySelector('pubDate')?.textContent || ''; | |
| // Extract year from title if possible | |
| const yearMatch = title.match(/(19\d{2}|20\d{2})/); | |
| const year = yearMatch ? yearMatch[0] : ''; | |
| // Clean up title by removing year and common suffixes | |
| let cleanTitle = title.replace(/\(.*\)/g, '').trim(); | |
| cleanTitle = cleanTitle.replace(/\[.*\]/g, '').trim(); | |
| cleanTitle = cleanTitle.replace(/\d{4}/g, '').trim(); | |
| // Extract runtime if available in description | |
| let runtime = ''; | |
| const runtimeMatch = description.match(/(\d+)\s*min(?:ute)?s?/i); | |
| if (runtimeMatch) { | |
| runtime = `${runtimeMatch[1]}m`; | |
| } | |
| movies.push({ | |
| title: cleanTitle, | |
| year: year, | |
| description: description, | |
| archiveUrl: link, | |
| runtime: runtime, | |
| pubDate: pubDate, | |
| originalTitle: title | |
| }); | |
| }); | |
| return movies; | |
| } | |
| // Load movies from RSS feed | |
| async function loadMoviesFromRss() { | |
| try { | |
| const response = await fetch(`https://api.allorigins.win/get?url=${encodeURIComponent(RSS_FEED_URL)}`); | |
| const data = await response.json(); | |
| if (data.contents) { | |
| const parser = new DOMParser(); | |
| const xmlDoc = parser.parseFromString(data.contents, "text/xml"); | |
| movies = parseXmlToJson(xmlDoc); | |
| // Hide loading spinner and show grid | |
| document.getElementById('loadingContainer').classList.add('hidden'); | |
| document.getElementById('movieGrid').classList.remove('hidden'); | |
| // Display featured movies | |
| displayFeaturedMovies(movies.slice(0, 6)); // Show first 6 as featured | |
| return movies; | |
| } else { | |
| throw new Error('No contents in response'); | |
| } | |
| } catch (error) { | |
| console.error('Error loading RSS feed:', error); | |
| document.getElementById('loadingContainer').innerHTML = ` | |
| <div class="text-red-400"> | |
| <i class="fas fa-exclamation-triangle text-4xl mb-4"></i> | |
| <p class="text-xl">Failed to load movies. Please try again later.</p> | |
| </div> | |
| `; | |
| return []; | |
| } | |
| } | |
| // Display featured movies in grid | |
| function displayFeaturedMovies(featuredMovies) { | |
| const movieGrid = document.getElementById('movieGrid'); | |
| movieGrid.innerHTML = ''; | |
| featuredMovies.forEach((movie, index) => { | |
| const movieCard = document.createElement('div'); | |
| movieCard.className = 'movie-card rounded-lg overflow-hidden relative group h-full'; | |
| movieCard.innerHTML = ` | |
| <div class="p-6 h-full flex flex-col"> | |
| <div class="flex justify-between items-start mb-4"> | |
| <div> | |
| <h3 class="text-2xl font-bold mb-1 gold-text">${movie.title}</h3> | |
| <p class="text-sm text-gray-400">${movie.year ? movie.year + ' • ' : ''}${movie.runtime || 'Runtime not specified'}</p> | |
| </div> | |
| </div> | |
| <div class="art-deco-divider my-4"></div> | |
| <p class="text-gray-300 mb-4 flex-grow font-light">${movie.description || 'No description available'}</p> | |
| <button class="play-btn mt-6 golden-btn px-4 py-2 rounded text-sm font-semibold transition-colors duration-300 w-full" data-index="${index}"> | |
| <i class="fas fa-play mr-1"></i> Play Film | |
| </button> | |
| </div> | |
| `; | |
| movieGrid.appendChild(movieCard); | |
| }); | |
| } | |
| // Display full playlist | |
| function displayPlaylist(allMovies) { | |
| const playlist = document.getElementById('playlist'); | |
| playlist.innerHTML = ''; | |
| allMovies.forEach((movie, index) => { | |
| const playlistItem = document.createElement('div'); | |
| playlistItem.className = `playlist-item ${index === currentMovieIndex ? 'active' : ''}`; | |
| playlistItem.innerHTML = ` | |
| <div class="title">${movie.title}</div> | |
| <div class="meta">${movie.year ? movie.year + ' • ' : ''}${movie.runtime || 'Runtime not specified'}</div> | |
| `; | |
| playlistItem.addEventListener('click', () => { | |
| playMovie(movie, index); | |
| }); | |
| playlist.appendChild(playlistItem); | |
| }); | |
| } | |
| // Play selected movie | |
| function playMovie(movie, index) { | |
| currentMovieIndex = index; | |
| // Update playlist active item | |
| document.querySelectorAll('.playlist-item').forEach(item => { | |
| item.classList.remove('active'); | |
| }); | |
| if (index >= 0) { | |
| document.querySelectorAll('.playlist-item')[index].classList.add('active'); | |
| } | |
| // Open curtains | |
| document.querySelector('.theater-screen').classList.add('screen-open'); | |
| document.getElementById('openCurtainsBtn').innerHTML = '<i class="fas fa-theater-masks mr-2"></i> Close Curtains'; | |
| // Load player | |
| const playerContainer = document.getElementById('playerContainer'); | |
| playerContainer.innerHTML = ` | |
| <iframe src="${movie.archiveUrl}" | |
| width="100%" | |
| height="100%" | |
| frameborder="0" | |
| webkitallowfullscreen="true" | |
| mozallowfullscreen="true" | |
| allowfullscreen | |
| id="moviePlayer"> | |
| </iframe> | |
| `; | |
| // Update marquee | |
| document.querySelector('.marquee-content').textContent = | |
| `NOW PLAYING: ${movie.title.toUpperCase()} ${movie.year ? '(' + movie.year + ')' : ''} • FROM THE INTERNET ARCHIVE'S COLORIZED COLLECTION`; | |
| // Highlight selected movie card | |
| document.querySelectorAll('.movie-card').forEach(card => card.classList.remove('active')); | |
| // Scroll to theater | |
| document.querySelector('.theater-screen').scrollIntoView({ behavior: 'smooth' }); | |
| } | |
| // Toggle fullscreen | |
| function toggleFullscreen() { | |
| const player = document.getElementById('moviePlayer'); | |
| if (!player) return; | |
| if (player.requestFullscreen) { | |
| player.requestFullscreen(); | |
| } else if (player.webkitRequestFullscreen) { /* Safari */ | |
| player.webkitRequestFullscreen(); | |
| } else if (player.msRequestFullscreen) { /* IE11 */ | |
| player.msRequestFullscreen(); | |
| } | |
| } | |
| // Toggle curtains | |
| function toggleCurtains() { | |
| const screen = document.querySelector('.theater-screen'); | |
| const curtains = document.querySelector('.screen-curtains'); | |
| const openCurtainsBtn = document.getElementById('openCurtainsBtn'); | |
| if (screen.classList.contains('screen-open')) { | |
| // Close curtains | |
| screen.classList.remove('screen-open'); | |
| curtains.style.opacity = '1'; | |
| curtains.style.pointerEvents = 'auto'; | |
| openCurtainsBtn.innerHTML = '<i class="fas fa-theater-masks mr-2"></i> Open Curtains'; | |
| // Clear player content | |
| document.getElementById('playerContainer').innerHTML = ` | |
| <div class="text-center"> | |
| <div class="film-reel mx-auto mb-4"></div> | |
| <p class="text-xl font-light">Select a film from our collection</p> | |
| </div> | |
| `; | |
| // Reset current movie index | |
| currentMovieIndex = -1; | |
| // Update playlist active item | |
| document.querySelectorAll('.playlist-item').forEach(item => { | |
| item.classList.remove('active'); | |
| }); | |
| } else { | |
| // Open curtains | |
| screen.classList.add('screen-open'); | |
| openCurtainsBtn.innerHTML = '<i class="fas fa-theater-masks mr-2"></i> Close Curtains'; | |
| // If there's a current movie, play it again | |
| if (currentMovieIndex >= 0) { | |
| playMovie(movies[currentMovieIndex], currentMovieIndex); | |
| } | |
| } | |
| } | |
| // Toggle playlist visibility | |
| function togglePlaylist() { | |
| const playlistContainer = document.getElementById('playlistContainer'); | |
| const toggleBtn = document.getElementById('togglePlaylistBtn'); | |
| if (playlistContainer.classList.contains('hidden')) { | |
| playlistContainer.classList.remove('hidden'); | |
| toggleBtn.innerHTML = '<i class="fas fa-list mr-2"></i> Hide Full Collection'; | |
| // Display the full playlist if not already loaded | |
| if (document.getElementById('playlist').children.length === 0) { | |
| displayPlaylist(movies); | |
| } | |
| } else { | |
| playlistContainer.classList.add('hidden'); | |
| toggleBtn.innerHTML = '<i class="fas fa-list mr-2"></i> Show Full Collection'; | |
| } | |
| } | |
| // Initialize | |
| document.addEventListener('DOMContentLoaded', async () => { | |
| // Load movies from RSS feed | |
| movies = await loadMoviesFromRss(); | |
| // Play movie when button clicked | |
| document.addEventListener('click', (e) => { | |
| if (e.target.classList.contains('play-btn') || e.target.closest('.play-btn')) { | |
| const btn = e.target.classList.contains('play-btn') ? e.target : e.target.closest('.play-btn'); | |
| const movieIndex = btn.getAttribute('data-index'); | |
| playMovie(movies[movieIndex], parseInt(movieIndex)); | |
| } | |
| // Fullscreen button | |
| if (e.target.id === 'fullscreenBtn' || e.target.closest('#fullscreenBtn')) { | |
| toggleFullscreen(); | |
| } | |
| // Curtains button | |
| if (e.target.id === 'openCurtainsBtn' || e.target.closest('#openCurtainsBtn')) { | |
| toggleCurtains(); | |
| } | |
| // Featured films button | |
| if (e.target.id === 'featuredBtn' || e.target.closest('#featuredBtn')) { | |
| document.getElementById('movieGrid').scrollIntoView({ behavior: 'smooth' }); | |
| } | |
| // Random film button | |
| if (e.target.id === 'randomBtn' || e.target.closest('#randomBtn') && movies.length > 0) { | |
| const randomIndex = Math.floor(Math.random() * movies.length); | |
| playMovie(movies[randomIndex], randomIndex); | |
| } | |
| // Toggle playlist button | |
| if (e.target.id === 'togglePlaylistBtn' || e.target.closest('#togglePlaylistBtn')) { | |
| togglePlaylist(); | |
| } | |
| }); | |
| // Smooth scroll for anchor links | |
| document.querySelectorAll('a[href^="#"]').forEach(anchor => { | |
| anchor.addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| document.querySelector(this.getAttribute('href')).scrollIntoView({ | |
| behavior: 'smooth' | |
| }); | |
| }); | |
| }); | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=MarcRyan/random-classics" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |