Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

633009 Views

Latest files of /cody/atherosai/ui/comments-01

assets/ cody/atherosai/ui/comments-01/assets/
4 Items
  • alex.jpg
  • anna.jpg
  • drew.jpg
  • liliya.jpg
  • dist/ cody/atherosai/ui/comments-01/dist/
    1 Items
  • purify.min.js
  • style.css cody/atherosai/ui/comments-01/style.css
    84 Views
    0 Comments
    :root {
    --background: #ECF0F4;
    --white: white;
    --gray-light: #FAFBFC;
    --gray-borders: #ECF1F4;
    --gray-dark: #AEB7C2;
    --primary: #4D78C9;
    }
    index.html cody/atherosai/ui/comments-01/index.html
    302 Views
    0 Comments

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Comments</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    script.js cody/atherosai/ui/comments-01/script.js
    157 Views
    0 Comments

    // slightly modified https://stackoverflow.com/questions/3177836/
    // how-to-format-time-since-xxx-e-g-4-minutes-ago-similar-to-stack-exchange-site
    const timeSince = (date) => {
    const seconds = Math.floor((new Date() - date) / 1000);

    let interval = seconds / 31536000;