1 min read

reveal.js autoloader template

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>description</title>
    <meta name="author" content="Rong Zhou">
    <meta name="date" content="2025-03-31" scheme="YYYY-MM-DD">
    <meta name="description" content="description">
    <!-- Reveal.js-->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/5.2.1/reveal.min.css" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/5.2.1/theme/black.min.css" />
    <!-- Check out `https://cdnjs.com/libraries/reveal.js!` There are many available presentations! -->
</head>
<body>
        <div class="reveal">
            <div class="slides">
              <section>
                <!--slide 1 -->
              </section>
              <section>
                <!--slide 2 -->
              </section>
              <section>
                <!--slide 3 -->
              </section>
          </div>
      </div>
      <style>
        .reveal section{
            background-color: rgba(0,0,0,0.5);
        }
      </style>
 <script type="module">
    import Reveal from 'https://cdnjs.cloudflare.com/ajax/libs/reveal.js/5.2.1/reveal.esm.js';
    import RevealHighlight from 'https://cdnjs.cloudflare.com/ajax/libs/reveal.js/5.2.1/plugin/highlight/highlight.esm.js';

    Reveal.initialize({
      controls: true,
      progress: true,
      center: true,
      hash: true,
      plugins: [ RevealHighlight ]
    });
  </script>
</body>
</html>