madebydanny.uk written in html, css, and a lot of JavaScript I don't understand madeydanny.uk
html css javascript

added CDN

+2 -203
+2
cdn.html
··· 1 + The MBD CDN is a network of servers located around the world powered by the Cloudflare global network. It's designed to deliver media (images, videos, live broadcasts, etc) at extremely fast speeds with 100% uptime 2 + If you wish to use the MBD CDN please email cdn@danielmorrisey.com
-118
cdn/docs.html
··· 1 - <!DOCTYPE html> 2 - <html lang="en"> 3 - <head> 4 - <meta charset="UTF-8"> 5 - <meta name="viewport" content="width=device-width, initial-scale=1.0"> 6 - <title>MBD CDN API Documentation</title> 7 - <style> 8 - body { 9 - font-family: 'Fira Code', monospace; 10 - background-color: #121212; 11 - color: #e0e0e0; 12 - line-height: 1.6; 13 - padding: 2rem; 14 - } 15 - h1, h2, h3 { 16 - color: #f71900; 17 - } 18 - code { 19 - background: #1e1e1e; 20 - padding: 2px 6px; 21 - border-radius: 4px; 22 - } 23 - pre { 24 - background: #1e1e1e; 25 - padding: 1rem; 26 - border-radius: 6px; 27 - overflow-x: auto; 28 - } 29 - a { 30 - color: #f71900; 31 - text-decoration: none; 32 - } 33 - a:hover { 34 - text-decoration: underline; 35 - } 36 - section { 37 - margin-bottom: 2rem; 38 - } 39 - </style> 40 - </head> 41 - <body> 42 - <h1>MBD CDN API Documentation</h1> 43 - <p>Welcome to the official documentation for the MBD CDN API. This API allows file uploads, statistics retrieval, and regional content serving.</p> 44 - <p>All API routes are found at <strong><code>https://cdn.madebydanny.uk/</code></strong></p> 45 - 46 - <section> 47 - <h2>1. Upload Files</h2> 48 - <p><strong>Endpoint:</strong> <code>POST /upload</code></p> 49 - <p><strong>Description:</strong> Upload a file to all regions. Maximum file size: 100 MB.</p> 50 - <p><strong>Form data parameter:</strong></p> 51 - <ul> 52 - <li><code>file</code> — The file to upload.</li> 53 - </ul> 54 - <p><strong>Response:</strong> JSON with a universal URL and file key.</p> 55 - <pre><code>{ 56 - "url": "https://cdn.madebydanny.uk/user-content/2025-10-18/123456_file.png", 57 - "key": "user-content/2025-10-18/123456_file.png" 58 - }</code></pre> 59 - </section> 60 - 61 - <section> 62 - <h2>2. Retrieve Stats</h2> 63 - <p><strong>Endpoint:</strong> <code>GET /stats</code></p> 64 - <p><strong>Description:</strong> Fetch global statistics about uploaded files and bandwidth.</p> 65 - <p><strong>Response:</strong> JSON object:</p> 66 - <pre><code>{ 67 - "filesUploaded": 10, 68 - "totalBandwidth": 1.23, // in GB 69 - "regionsSupported": 6 70 - }</code></pre> 71 - </section> 72 - 73 - <section> 74 - <h2>3. Serve Content</h2> 75 - <p><strong>Endpoint:</strong> <code>GET /user-content/{path}</code></p> 76 - <p><strong>Description:</strong> Redirects to the nearest regional copy of the file based on the user's location.</p> 77 - <p><strong>Example:</strong></p> 78 - <pre><code>GET /user-content/2025-10-18/123456_file.png 79 - Redirects to: 80 - https://asia-public-cdn.madebydanny.uk/user-content/2025-10-18/123456_file.png 81 - </code></pre> 82 - </section> 83 - 84 - <section> 85 - <h2>4. CORS Support</h2> 86 - <p>All endpoints support CORS. Preflight requests (<code>OPTIONS</code>) are handled automatically.</p> 87 - </section> 88 - 89 - <section> 90 - <h2>5. Error Responses</h2> 91 - <ul> 92 - <li><code>400</code> — Bad request (e.g., no file uploaded or file too large).</li> 93 - <li><code>404</code> — Endpoint not found.</li> 94 - <li><code>500</code> — Internal server error.</li> 95 - </ul> 96 - </section> 97 - 98 - <section> 99 - <h2>6. Example Upload Request (JavaScript)</h2> 100 - <pre><code>const fileInput = document.querySelector('#file'); 101 - const formData = new FormData(); 102 - formData.append('file', fileInput.files[0]); 103 - 104 - fetch('https://cdn.madebydanny.uk/upload', { 105 - method: 'POST', 106 - body: formData 107 - }) 108 - .then(res => res.json()) 109 - .then(console.log) 110 - .catch(console.error); 111 - </code></pre> 112 - </section> 113 - 114 - <footer> 115 - <p>&copy; 2025 MBD CDN</p> 116 - </footer> 117 - </body> 118 - </html>
-85
cdn/index.html
··· 1 - <!DOCTYPE html> 2 - <html lang="en"> 3 - <head> 4 - <meta charset="UTF-8" /> 5 - <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 6 - <title>MBD CDN 2.0 - Free, Fast & Powered by Cloudflare</title> 7 - 8 - <!-- SEO & Social --> 9 - <meta name="description" content="MBD CDN is a free-for-life content delivery network powered by Cloudflare's ultra-fast servers. Upload your files, get a shareable URL instantly, and deliver content globally." /> 10 - <meta name="keywords" content="MBD CDN, Made by Danny, Free CDN, Cloudflare CDN, File Hosting, Fast CDN, CDN Upload" /> 11 - <meta property="og:title" content="MBD CDN 2.0 - Free, Fast & Powered by Cloudflare" /> 12 - <meta property="og:description" content="Upload files instantly and deliver worldwide with MBD CDN." /> 13 - <meta property="og:image" content="https://public-cdn.madebydanny.uk/user-content/2025-09-13/20-45-31_Untitled(13).png" /> 14 - <meta name="twitter:card" content="summary_large_image" /> 15 - 16 - <!-- Fonts & Styles --> 17 - <link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap" rel="stylesheet"> 18 - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" crossorigin="anonymous" referrerpolicy="no-referrer" /> 19 - <link rel="stylesheet" href="/css/cdn.css"> 20 - 21 - <link rel="icon" type="image/png" href="https://public-cdn.madebydanny.uk/user-content/2025-09-13/20-45-17_database-solid-full.svg" /> 22 - <script src="/js/cdn-v2.js" defer></script> 23 - </head> 24 - <body> 25 - <header2> 26 - <h1><i class="fa-solid fa-database"></i> MBD CDN <i>2.0</i></h1> 27 - <nav> 28 - <a href="/index.html">Home</a> 29 - <a href="docs.html">Docs</a> 30 - </nav> 31 - </header2> 32 - <header class="center"> 33 - <p>Upload your files to the MBD CDN — free for life, powered by Cloudflare’s global edge network.</p> 34 - </header> 35 - 36 - <!-- Upload Section --> 37 - <section class="center"> 38 - <div class="card upload-card"> 39 - <p class="heading"><i class="fa-solid fa-cloud-arrow-up"></i> Upload File</p> 40 - 41 - <div id="drop-zone" class="drop-zone"> 42 - <p><i class="fa-solid fa-upload"></i> Drag & drop your file here, or click to select</p> 43 - </div> 44 - 45 - <input type="file" id="fileInput" hidden> 46 - 47 - <label class="checkbox-label"> 48 - <input type="checkbox" id="useImrs"> 49 - Use <a href="#imrs"><strong>imrs</strong></a> for image optimization 50 - </label> 51 - 52 - <button id="uploadBtn" class="btn"><i class="fa-solid fa-cloud-arrow-up"></i> Upload</button> 53 - <div id="result" class="result"></div> 54 - </div> 55 - </section> 56 - 57 - 58 - <!-- Features Section --> 59 - <section class="center"> 60 - <div class="card features-card"> 61 - <p class="heading"><i class="fa-solid fa-star"></i> Why MBD CDN?</p> 62 - <ul> 63 - <li><i class="fa-solid fa-bolt" style="color: #ff0000;"></i> Faster than a blink of an eye, thanks to Cloudflare's network with data centers in over 330 cities across 125 countries.</li> 64 - <li><i class="fa-solid fa-hand-holding-dollar" style="color: #ff0000;"></i> Free-for-Life, you never have to spend a dime.</li> 65 - <li><i class="fa-solid fa-code" style="color: #ff0000;"></i> Free to use API.</li> 66 - </ul> 67 - </div> 68 - </section> 69 - 70 - <section class="center" id="imrs"> 71 - <div class="card docs-card"> 72 - <p class="heading"><i class="fa-solid fa-image"></i> What is IMRS?</p> 73 - <p>IMRS, or image media reduction system, transforms images from PNG, JPEG, WEBP, etc. to AVIF, an image type that's smaller and loads quicker but keeps the same high-quality image.</p> 74 - </div> 75 - </section> 76 - 77 - <!-- Footer --> 78 - <footer class="center"> 79 - <hr> 80 - <p>&copy; 2024–<span id="current-year"></span> Made by Danny UK</p> 81 - <iframe src="https://status.madebydanny.uk/badge?theme=dark" width="185" height="30" frameborder="0" scrolling="no" style="color-scheme: normal"></iframe> 82 - </footer> 83 - <script src="https://uptime.betterstack.com/widgets/announcement.js" data-id="223534" async="async" type="text/javascript"></script> 84 - </body> 85 - </html>