How to use

Jo main page pr show krwana hai usko main tag ke andr likhna hai
uske bad koi ak section bana ke jo ki main tag se bhr hoga usko koi ak id deni hai
uske bad same url+#idname se access kr sakte hai

 <!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>  </title>
  
  <style>
     body {
             
      margin: 0;
      padding: 0;
      background: #D6D6D8;
      /* background: #C4C5C9; */
    }




    .content-box {
      width: 90px;
      background: rgba(255, 255, 255, 0.25);
      box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      padding: 20px;
      position: relative;
      overflow: hidden;
      transition: height 2s ease;
      transition: max-height 0.8s ease-out;
      margin-top: 20px;
      /* Added margin for spacing between boxes */
      width: 80vw;
      margin: 50px auto;


      white-space: pre-wrap;
      word-wrap: break-word;
      font-size: 14px;


      font-family: normal;
      background: rgba(255, 255, 255, 0.15);
      box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(255, 255, 255, 0.11);
      backdrop-filter: blur(50px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08)
        /* This was made with GlassGenerator.netlify.app */




        color: white;


      line-height: 23px;






      border-radius: 9px;
      backdrop-filter: blur(60px);
      background-color: rgba(225, 225, 225, .051);
      box-shadow: rgba(0, 0, 0, 0.3) 2px 8px 8px;
      border: 2px rgba(255, 255, 255, 0.4) solid;
      border-bottom: 1px rgba(40, 40, 40, 0.35) solid;
      border-right: 1px rgba(40, 40, 40, 0.35) solid;




    }




    .additional-content {
      display: none;
      margin-top: 10px;
      transition: max-height 0.8s ease-out;
    }




    .show-more-btn {
      background-color: #3498db;
      color: #fff;
      padding: 8px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      margin-top: 10px;
    }
  </style>


</head>


<body>















<pre class="content-box">

<button class="show-more-btn" onclick                ="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>








<pre class="content-box">

<button class="show-more-btn" onclick                ="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>








<pre class="content-box">

<button class="show-more-btn" onclick                ="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>








<pre class="content-box">

<button class="show-more-btn" onclick                ="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>








<pre class="content-box">

<button class="show-more-btn" onclick                ="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>








<pre class="content-box">

<button class="show-more-btn" onclick                ="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>








<pre class="content-box">

<button class="show-more-btn" onclick                ="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>








<pre class="content-box">

<button class="show-more-btn" onclick                ="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>








<pre class="content-box">

<button class="show-more-btn" onclick                ="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>








<pre class="content-box">

<button class="show-more-btn" onclick                ="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>









       <script>

          const trouyContainer = document.createElement('div');
          trouyContainer.className = 'trouy';
          
          const darkModeToggle = document.createElement('div');
          darkModeToggle.innerHTML = `
                  <input type="checkbox" class="sr-only" id="darkmode-toggle" checked>
                  <label for="darkmode-toggle" class="toggle">
                      <span>Toggle dark mode</span>
                  </label>
              `;
          
          trouyContainer.appendChild(darkModeToggle);
          document.body.appendChild(trouyContainer);
          
          const style = document.createElement('style');
          style.textContent = `
                

          .trouy {
            position: fixed;
            top: -50px; /* initially hide above the viewport */
            right: 0;
            padding: 10px;
            transition: top 0.3s;
                  }
          
                  
          .toggle {
            font-size: 10px; /* ๐Ÿ‘ˆ change this to scale */
            border: 1.7px solid currentColor;
            border-radius: 2em;
            cursor: pointer;
            display: block;
            height: 20px;
            position: sticky;
            width: 40px;
          }
          .toggle span {
            background-color: currentColor;
            border-radius: 2em;
            display: block;
            height: 1.5em;
            left: .25em;
            overflow: hidden;
            position: absolute;
            top: .25em;
            text-indent: -9999px;
            transition: left .25s;
            width: 1.5em;
            z-index: 2;
          }
          
          .toggle::before,
          .toggle::after {
            content: '';
            display: block;
            border-radius: 1em;
            position: absolute;
            z-index: 1;
          }
          
          .toggle::after {
            box-shadow: .25em .25em #5901d8;
            height: 1.125em;
            right: .9em;
            top: .125em;
            width: 1.125em;
          }
          
          .toggle::before {
            background-color: #ffc409;
            height: .625em;
            outline: .25em dotted #ffc409;
            outline-offset: .125em;
            left: .7em;
            top: .7em;
            width: .625em;
          }
          
          input:checked ~ .toggle span {
            left: 2em;
          }
          
          
          
          
          
          
          
          body:has(#darkmode-toggle:checked) {
            background: black;
            color: #d0d0d0;

          }

           .show-more-btn:has(#darkmode-toggle:checked) {
            background-color: #3498db;
            color: red;
           }
          
          
          
          .sr-only {
            position: absolute;
            left: -9999px;
            opacity: 0;
          }
          
              
          
              `;
          
          document.head.appendChild(style);
          
          let prevScrollPos = window.pageYOffset;
          
          window.onscroll = function() {
            const currentScrollPos = window.pageYOffset;
          
            if (prevScrollPos > currentScrollPos) {
              // Scroll up
              trouyContainer.style.top = "0";
            } else {
              // Scroll down
              trouyContainer.style.top = "-500px";
            }
          
            prevScrollPos = currentScrollPos;
          };
     </script>
     
     
  <script>
    function toggleContent(btn) {
      var contentBox = btn.parentNode;
      var additionalContent = contentBox.querySelector('.additional-content');
      var buttonText = btn.innerText;


      if (additionalContent.style.display === 'none' || additionalContent.style.display === '') {
        additionalContent.style.display = 'block';
        btn.innerText = 'Hide answer';
      } else {
        additionalContent.style.display = 'none';
        btn.innerText = 'Show Answer';
      }
    }
  </script>

</body>

</html>

        
        
        
        
 

Notes

 <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Divisibility</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            background: #3498db; /* Blue background color */
             /*background: ;  Blue background color */
           line-height:23px;
             font-weight:400;
          
         
        font-family:"Times New Roman";
        }
        
        *::selection{
          background:black;
          color:white;
          
        }
        
        
        .content-box {
           
            background: rgba(255, 255, 255, 0.25);
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            padding: 20px;
            position: relative;
            overflow: hidden;
            transition: height 2s ease;
            transition: max-height 0.8s ease-out;
            margin-top: 20px; /* Added margin for spacing between boxes */
             width: 300px;
            margin: 50px auto;
           
            white-space: pre-wrap;
            word-wrap: break-word;
            font-size: 14px;
          
            font-family:normal;
          background: rgba( 255, 255, 255, 0.15 );
          box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
          backdrop-filter: blur( 18px );
          -webkit-backdrop-filter: blur( 18px );
          border: 1px solid rgba( 255, 255, 255, 0.18 );
          background: rgba(255, 255, 255, 0.11);
          backdrop-filter: blur(10px);
          box-shadow: 0 5px 15px rgba(0,0,0,0.08)

        }
        
        
        .additional-content {
            display: none;
            margin-top: 10px;
            transition: max-height 0.8s ease-out;
        }
        
        
        .show-more-btn {
            background-color: #3498db;
            color: #fff;
            padding: 8px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px;
        }
    </style>
</head>

<body>








    <pre class="content-box">

<button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>












    <pre class="content-box">

<button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>












    <pre class="content-box">

<button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>












    <pre class="content-box">

<button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>












    <pre class="content-box">

<button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>












    <pre class="content-box">

<button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>












    <pre class="content-box">

<button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>












    <pre class="content-box">

<button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>












    <pre class="content-box">

<button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>












    <pre class="content-box">

<button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>












    <pre class="content-box">

<button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>












    <pre class="content-box">

<button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>












    <pre class="content-box">

<button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>








    <pre class="content-box">

    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>



    <script>
        function toggleContent(btn) {
            var contentBox = btn.parentNode;
            var additionalContent = contentBox.querySelector('.additional-content');
            var buttonText = btn.innerText;
        
        
            if (additionalContent.style.display === 'none' || additionalContent.style.display === '') {
                additionalContent.style.display = 'block';
                btn.innerText = 'Hide answer';
            } else {
                additionalContent.style.display = 'none';
                btn.innerText = 'Show Answer';
            }
        }
    </script>

    <script>
        // Dark mode toggle function
        function toggleDarkMode() {
          document.body.classList.toggle("dark-mode");
          darkModeButton.textContent = document.body.classList.contains("dark-mode") ? "light" : "Dark";
        }
        
        
        // Create a button at the top of the webpage
        const darkModeButton = document.createElement("button");
        darkModeButton.textContent = "Dark";
        darkModeButton.style.position = "fixed";
        darkModeButton.style.top = "0";
        darkModeButton.style.background = "transparent";
        
        
        darkModeButton.style.right = "0";
        darkModeButton.style.padding = "1px";
        darkModeButton.style.cursor = "pointer";
        
        
        
        
        // Apply styles for dark mode
        const darkModeStyles = `
          .dark-mode {
            background-color: black;
            color: #fff;
            font-weight:150;
            line-height:28px;
              font-weight:150;
          }
        `;
        
        
        // Append the button to the body
        document.body.appendChild(darkModeButton);
        
        
        // Add styles for dark mode to the head
        const styleTag = document.createElement("style");
        styleTag.textContent = darkModeStyles;
        document.head.appendChild(styleTag);
        
        
        // Add click event listener to the button
        darkModeButton.addEventListener("click", toggleDarkMode);
             
    </script>
    
</body>
</html>


  
  
  
 
 

 



    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>



  
  
  
 
 

Link store

                    <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Documentation</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
  
   <style>
     
     body {
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  font-size: .875rem;
  font-family: 'Roboto', sans-serif;
  background: black;
  color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  line-height: 1;
}

p {
  font-size: .875rem;
  margin-bottom: .5rem;
  line-height: 1.3rem;
}

h1 {
  font-size: 3.125rem;
}

h2 {
  font-size: 2.5rem;
}

@media(max-width: 767px) {
  h2 {
    font-size: 1.9rem;
  }
}

h3 {
  font-size: 1.875rem;
}

h4 {
  font-size: 1.45rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: .9375rem;
}

.card-body {
  padding: 2rem;
}

@media (max-width: 991px) {
  .card-body {
    padding: 1.875rem 1.25rem;
  }
}

.grid-margin {
  margin-bottom: 20px;
}

.logo {
  width: 80%;
}

.CodeMirror {
  font-size: .875rem;
  height: auto;
  text-align: left;
  min-height: auto;
  font-family: 'Roboto', sans-serif;
  line-height: 1.40em;
  padding: 10px;
  font-weight: 100;
  letter-spacing: .9px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.CodeMirror-scroll {
  min-height: auto;
}

.documentation .left-sidebar {
  width: 260px;
  padding: 20px 30px;
  background-color: #000000;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

@media (max-width: 991px) {
  .documentation .left-sidebar {
    padding: 16px;
  }
}

@media (min-width: 1200px) {
  .documentation .left-sidebar {
    width: 16.66666667%;
  }
}

@media (min-width: 768px) {
  .documentation .left-sidebar {
    width: 25%;
  }
}
@media (max-width: 767px) {
  .documentation .left-sidebar {
    position: static;
  }
}
.documentation .left-sidebar .logo-wrapper {
  margin-top: 1rem;
  margin-bottom: 1.6rem;
}

.documentation .left-sidebar .logo-wrapper img {
  height: 24px;
}

.documentation .left-sidebar .left-menu-title {
  margin-top: 1rem;
}

.documentation .left-sidebar .left-menu {
  list-style-type: none;
  padding-left: 0;
}

.documentation .left-sidebar .left-menu li {
  line-height: 2.2;
  position: relative;
}

.documentation .left-sidebar .left-menu li a {
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  padding-left: 18px;
}

.documentation .left-sidebar .left-menu li a::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #d384f9;
  position: absolute;
  left: 0;
  top: 11px;
}

.documentation .main-panel {
  padding: 40px 50px;
  margin-left: 0;
}

@media (max-width: 991px) {
  .documentation .main-panel {
    padding: 40px 20px;
  }
}

@media (min-width: 1200px) {
  .documentation .main-panel {
    margin-left: 16.66666667%;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .documentation .main-panel {
    margin-left: 25%;
  }
}

.credits .credit-list {
  list-style-type: none;
  padding-left: 20px;
  margin-bottom: 0;
}

.credits .credit-list li {
  display: flex;
  position: relative;
  flex-wrap: wrap;
}

.credits .credit-list li a {
  overflow: hidden;
  text-overflow: ellipsis;
}

.credits .credit-list li p {
  margin-right: 8px;
}

.credits .credit-list li p::before {
  content: '';
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #d384f9;
  position: absolute;
  left: -17px;
  top: 6px;
}

.card {
  background-color: #191c24;
}
.table {
  color: #ffffff;
}

     
   </style>
    
</head>
<body>
  
 <br><br>
  
                <div class="col-12 grid-margin credits" id="credits">
                  <div class="card">
                    <div class="card-body">
                      <h3 class="mb-4">Credits</h3>
                      <p>We have used the following plugins in Corona-free</p>
                      <div class="row">
                        <div class="col-12 col-md-6">
                          <ul class="credit-list">
                            <li>
                              <p>Bootstrap</p> <a href="https://getbootstrap.com/" target="_blank">https://getbootstrap.com/</a>
                            </li>
                            <li>
                              <p>Chart.js</p> <a href="https://www.chartjs.org/" target="_blank">https://www.chartjs.org/</a>
                            </li>
                            <li>
                              <p>Codemirror</p> <a href="https://codemirror.net/" target="_blank">https://codemirror.net/</a>
                            </li>
                            <li>
                              <p>Flag icons</p> <a href="http://lipis.github.io/flag-icon-css/" target="_blank">http://lipis.github.io/flag-icon-css/</a>
                            </li>
                            <li>
                              <p>Gulp</p> <a href="https://gulpjs.com/" target="_blank">https://gulpjs.com/</a>
                            </li>
                            <li>
                              <p>JQuery</p> <a href="https://jquery.com/" target="_blank">https://jquery.com/</a>
                            </li>
                            <li>
                              <p>JVector Map</p> <a href="http://jvectormap.com/" target="_blank">http://jvectormap.com/</a>
                            </li>
                            <li>
                              <p>Material Design Icons</p> <a href="https://materialdesignicons.com/" target="_blank">https://materialdesignicons.com/</a>
                            </li>
                            <li>
                              <p>Moment.js</p> <a href="https://momentjs.com/" target="_blank">https://momentjs.com/</a>
                            </li>
                          </ul>
                        </div>
                        <div class="col-12 col-md-6">
                          <ul class="credit-list">
                            <li>
                              <p>Owl carousel</p> <a href="https://owlcarousel2.github.io/OwlCarousel2/docs/started-welcome.html" target="_blank">https://owlcarousel2.github.io/OwlCarousel2/docs/started-welcome.html</a>
                            </li>
                            <li>
                              <p>Perfect scrollbar</p> <a href="http://utatti.github.io/perfect-scrollbar/" target="_blank">http://utatti.github.io/perfect-scrollbar/</a>
                            </li>
                            <li>
                              <p>Popper.js</p> <a href="https://popper.js.org/" target="_blank">https://popper.js.org/</a>
                            </li>
                            <li>
                              <p>Progressbar.js</p> <a href="https://progressbarjs.readthedocs.io/en/latest/" target="_blank">https://progressbarjs.readthedocs.io</a>
                            </li>
                            <li>
                              <p>PWS Tabs</p> <a href="https://alexchizhov.com/pwstabs/" target="_blank">https://alexchizhov.com/pwstabs/</a>
                            </li>
                            <li>
                              <p>Select 2</p> <a href="https://select2.org/" target="_blank">https://select2.org/</a>
                            </li>    
                            <li>
                              <p>TWBS pagination</p> <a href="https://esimakin.github.io/twbs-pagination/" target="_blank">https://esimakin.github.io/twbs-pagination/</a>
                            </li>
                            <li>
                              <p>Typeahead</p> <a href="https://twitter.github.io/typeahead.js/" target="_blank">https://twitter.github.io/typeahead.js/</a>
                            </li>
                          </ul>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              <br><br>
   </body>
</html>    

        
        
        
        
 

                    <!DOCTYPE html>
<html lang="en">
<head>
  
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/base16/humanoid-dark.min.css" integrity="sha512-VpzmzXvIXjYfKE4xjvTjF41gt15bbXf3u0CDWXDm105TA7yphqLSVqAc+gnpJswiS068uRYqiXCC4MvCycjQhg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
  <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>

  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }


    body {
      background-color: #278ea5;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;
    }


    .container {
      width: 90vw;
      overflow-x: auto;
    }


    .language {
      color: white;
      background-color: #1f4287;
      padding: 12px 16px;
      border-radius: 5px 5px 0 0;
      text-align: right;
    }


    .code-wrapper {
      position: relative;
    }


    .code-wrapper pre {
      background-color: #071e3d;
      background: #000;
      color: white;
      Height: 250px;
      Overflow: auto;
      padding: 8px 20px;
      border-radius: 0 0 5px 5px;
    }


    #copy-button {
      position: absolute;
      top: 8px;
      right: 8px;
      padding: 7px;
      background-color: #1f4287;
      border: none;
      outline: none;
      color: white;
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.2s ease-in;
      opacity: 0;
      display: hidden;
    }


    #copy-button:hover {
      background-color: #1f428790;
      display: block;

    }


    .code-wrapper:hover #copy-button {
      opacity: 1;
    }


    #copy-success {
      position: absolute;
      bottom: 12px;
      left: 50%;
      transform: translateX(-50%);
      background-color: #1f4287;
      color: white;
      padding: 16px 32px;
      font-size: 24px;
      border-radius: 5px;
      display: none;
    }


    #copy-success.show-message {
      display: inline-block;
    }

    #code {
      margin: -30px;
      padding: 30px;
    }

    .hljs {
      background-color: transparent;
    }

    * {
      margin: 0;
      padding: 0;
    }
  </style>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />

  <title>Code Showcase with copy button functionality</title>
</head>

<body>
  <div class="container">
    <p class="language" id="language-copy">t</p>
    <div class="code-wrapper">
      <pre><code id="code">
&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;

&lt;head&gt;
  &lt;style&gt;
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }


    body {
      background-color: #278ea5;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;
    }


    .container {
      width: 80vw;
      overflow-x: auto;
    }


    .language {
      color: white;
      background-color: #1f4287;
      padding: 12px 16px;
      border-radius: 5px 5px 0 0;
      text-align: right;
    }


    .code-wrapper {
      position: relative;
    }


    .code-wrapper pre {
      background-color: #071e3d;
      color: white;
      Height: 250px;
      Overflow: auto;
      padding: 8px 20px;
      border-radius: 0 0 5px 5px;
    }


    #copy-button {
      position: absolute;
      top: 8px;
      right: 8px;
      padding: 7px;
      background-color: #1f4287;
      border: none;
      outline: none;
      color: white;
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.2s ease-in;
      opacity: 0;
    }


    #copy-button:hover {
      background-color: #1f428790;
    }


    .code-wrapper:hover #copy-button {
      opacity: 1;
    }


    #copy-success {
      position: absolute;
      bottom: 12px;
      left: 50%;
      transform: translateX(-50%);
      background-color: #1f4287;
      color: white;
      padding: 16px 32px;
      font-size: 24px;
      border-radius: 5px;
      display: none;
    }


    #copy-success.show-message {
      display: inline-block;
    }


    .hljs {
      background-color: transparent;
    }
  &lt;/style&gt;
  &lt;meta charset="UTF-8" /&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1.0" /&gt;

  &lt;title&gt;Code Showcase with copy button functionality&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
  &lt;div class="container"&gt;
    &lt;p class="language" id="language-copy"&gt;t&lt;/p&gt;
    &lt;div class="code-wrapper"&gt;
      &lt;pre&gt;
                &lt;code id="code"&gt;
function fibonacci(num)
{
  var num1=0;
  var num2=1;
  var sum;
  var i=0;
  for (i = 0; i &lt; num; i++)
    {https://www.instagram.com/reel/C0hHYsAPSos/?igshid=MzRlODBiNWFlZA==
      sum=num1+num2;
      num1=num2;
      num2=sum;
    }
    return num2;
}
                    
console.log(fibonacci(155));&lt;/code&gt;
            &lt;/pre&gt;
      &lt;button id="copy-button"&gt;Copy&lt;/button&gt;
      &lt;button style="right:130px;" id="copy-button"&gt;Copy&lt;/button&gt;
    &lt;/div&gt;
    &lt;span id="copy-success"&gt;Code copied! :)&lt;/span&gt;
  &lt;/div&gt;
  &lt;script&gt;
    document.addEventListener('DOMContentLoaded', () =&gt; {
      hljs.initHighlightingOnLoad();


      const codeBlock = document.getElementById('code');
      const copyButton = document.getElementById('copy-button');
      const copySuccess = document.getElementById('copy-success');


      const copyTextHandler = () =&gt; {
        const text = codeBlock.innerText;


        // first version - document.execCommand('copy');
        // var element = document.createElement('textarea');
        // document.body.appendChild(element);
        // element.value = text;
        // element.select();
        // document.execCommand('copy');
        // document.body.removeChild(element);


        // copySuccess.classList.add('show-message');
        // setTimeout(() =&gt; {
        //   copySuccess.classList.remove('show-message');
        // }, 2500);


        //   second version - Clipboard API
        navigator.clipboard.writeText(text).then(
          () =&gt; {
            copySuccess.classList.add('show-message');
            setTimeout(() =&gt; {
              copySuccess.classList.remove('show-message');
            }, 2500);
          },
          () =&gt; {
            console.log('Error writing to the clipboard');
          }
        );
      };


      copyButton.addEventListener('click', copyTextHandler);
    });
  &lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/highlight.min.js"&gt;&lt;/script&gt;
&lt;/body&gt;

&lt;/html&gt;</code></pre>
      <button id="copy-button" onclick="copyCode(this)">Copy</button>
      <button style="right:130px;" id="copy-button" onclick="openContentInNewTab(this)">Copy</button>

    </div>
    <span id="copy-success">Code copied! :)</span>
  </div>
  <script>
    function copyCode(button) {
      const responseTextElement = button.parentElement.querySelector('code');
      const textToCopy = responseTextElement.innerText;
      const tempTextArea = document.createElement('textarea');
      tempTextArea.value = textToCopy;
      document.body.appendChild(tempTextArea);
      tempTextArea.select();
      document.execCommand('copy');
      document.body.removeChild(tempTextArea);
      button.innerText = 'Copied';
      button.classList.add('copy-button-copying');
      setTimeout(() => {
        button.innerText = 'Copy';
        button.classList.remove('copy-button-copying');
      }, 2000);
    }
  </script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/highlight.min.js"></script>
  <script>
    function openContentInNewTab(button) {
      const responseTextElement = button.parentElement.querySelector('code');
      const textToOpen = escapeHTML(responseTextElement.innerText);


      // Create a new tab/window
      const newTab = window.open('about:blank', '_blank');


      // Write custom HTML structure with styles and escaped text
      newTab.document.write(`
        <!DOCTYPE html>
        <html lang="en">
        <head>
<meta name="viewport" content="width=device-width, initial-scale=0.6">
      <meta http-equiv="X-UA-Compatible" content="ie-edge">
     
            <style>
                body {
                    font-family: 'Arial', sans-serif;
                    padding: 20px;
                }
            </style>
        </head>
        <body>
            <pre>${textToOpen}</pre>
        </body>
        </html>
    `);

      newTab.document.close();
    }

    // Function to escape HTML characters and include line breaks
    function escapeHTML(html) {
      const escapeMap = {
        '&': '&amp;',
        '<': '&lt;',
        '>': '&gt;',
        '"': '&quot;',
        "'": '&#39;'
      };
      return html.replace(/[&<>"']/g, (match) => escapeMap[match])
        .replace(/\n/g, '<br>');
    }
  </script>
  <script>
    // Include your existing scripts and libraries here
    hljs.initHighlightingOnLoad();
  </script>

</body>
</html>    

        
        
        
        
 

Same box

 <!DOCTYPE html>
<html lang="en">

   <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta http-equiv="X-UA-Compatible" content="ie-edge">
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/base16/humanoid-dark.min.css" integrity="sha512-VpzmzXvIXjYfKE4xjvTjF41gt15bbXf3u0CDWXDm105TA7yphqLSVqAc+gnpJswiS068uRYqiXCC4MvCycjQhg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
      <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
      
      <style>
         * {
         outline: none;
         }
         .response {
         box-shadow: 0 0 10px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 0, 0, 0.8);
         width: 95vw;
         margin: auto;
         position: relative;
         display: flex;
         flex-wrap: nowrap;
         /* Prevent wrapping of boxes when scrolling horizontally */
         margin-bottom: 20px;
         background: black;
         overflow-x: auto;
         /* Enable horizontal scrolling */
         border: 1px solid gray;
         border-radius: 10px;
         max-height: 350px;
         color: white;
         padding: 0;
         margin-bottom: 160px;
         }
         h1 {
         text-align: center;
         }
         /* Styles for the copy button */
         .copy-button {
         position: absolute;
         height: 25px;
         top: 10px;
         right: 20px;
         padding: 4px 8px;
         border: none;
         border-radius: 4px;
         background-color: #007bff;
         color: #fff;
         cursor: pointer;
         }
         .copy-button-copying {
         background-color: #333;
         border: 1px solid black;
         }
         .leftb {
         position: absolute;
         top: 10px;
         left: 10px;
         height: 25px;
         border: 1px double burlywood;
         border-radius: 4px;
         background-color: #000000;
         color: #fff;
         }
         .leftc,
         .download-button {
         position: absolute;
         top: 10px;
         left: 100px;
         /* Adjusted position for "Edit" button */
         height: 25px;
         border: 1px double burlywood;
         border-radius: 4px;
         background-color: #000000;
         color: #fff;
         }
      </style>
      
   </head>
   <body>
   
   
   
   
   
   
   
   
  <!--            start           -->
  
  
  
  
  
  
<pre class="response">
 <code style="background: black; padding-top: 40px; padding-left: 20px;" class="language-html"> 
 
</code>
        <button class="copy-button" onclick="copyCode(this)">Copy</button>
        <button class="leftb" onclick="openContentInNewTab(this)">View</button>
        <button class="leftc" onclick="toggleEditMode(this)">Edit</button>
        <button class="download-button" style="display: none;" onclick="downloadHTML(this)">Download HTML</button>
 </pre>
 
 
 
 
   <!--            end          -->
      
      
      
      
      
      
      
      
      
      
<script>
 function toggleEditMode(button) {
 const preElement = button.parentElement;
 const codeElement = preElement.querySelector('code');
const newButton = preElement.querySelector('.download-button');
         
// Hide the other buttons
  const copyButton = preElement.querySelector('.copy-button');
  const viewButton = preElement.querySelector('.leftb');
  const editButton = preElement.querySelector('.leftc');
         
   editButton.style.display = 'none';
   
   // Show the "Download HTML" button
    newButton.style.display = 'inline-block';
         
   preElement.style.backgroundColor = '#333';
   codeElement.style.backgroundColor = '#333';
  codeElement.contentEditable = true;
   codeElement.focus();
   
   // Add an event listener to make the code non-editable when clicking outside the code block.
    document.addEventListener('click', function(event) {
    if (!preElement.contains(event.target)) {
    exitEditMode(preElement);
                 } }); }
         
  function exitEditMode(preElement) {
   const codeElement = preElement.querySelector('code');
   const copyButton = preElement.querySelector('.copy-button');
    const viewButton = preElement.querySelector('.leftb');
   const editButton = preElement.querySelector('.leftc');
   const newButton = preElement.querySelector('.download-button');
         
         
         
    preElement.style.backgroundColor = 'black';
    codeElement.style.backgroundColor = 'black';
 codeElement.contentEditable = false;
         
         
         
         
             // Show the original buttons
             copyButton.style.display = 'inline-block';
             viewButton.style.display = 'inline-block';
             editButton.style.display = 'inline-block';
         
         
         
         
             // Hide the "Download HTML" button
             newButton.style.display = 'none';
         }
         
         
         
         
         function getRandomWord(length) {
             const characters = 'abcdefghijklmnopqrstuvwxyz';
             let randomWord = '';
             for (let i = 0; i < length; i++) {
                 const randomIndex = Math.floor(Math.random() * characters.length);
                 randomWord += characters.charAt(randomIndex);
             }
             return randomWord;
         }
         
         
         
         
         function downloadHTML(button) {
             const preElement = button.parentElement;
             const codeElement = preElement.querySelector('code');
             const htmlContent = codeElement.innerText;
             const blob = new Blob([htmlContent], { type: 'text/html' });
         
         
         
         
             const randomFileName = getRandomWord(8) + '.html';
             const url = URL.createObjectURL(blob);
         
         
         
         
             const a = document.createElement('a');
             a.href = url;
             a.download = randomFileName;
             a.click();
         
         
         
         
             URL.revokeObjectURL(url);
         }
         
         
         
         
         function copyCode(button) {
             const responseTextElement = button.parentElement.querySelector('code');
             const textToCopy = responseTextElement.innerText;
             const tempTextArea = document.createElement('textarea');
             tempTextArea.value = textToCopy;
             document.body.appendChild(tempTextArea);
             tempTextArea.select();
             document.execCommand('copy');
             document.body.removeChild(tempTextArea);
             button.innerText = 'Copied';
             button.classList.add('copy-button-copying');
             setTimeout(() => {
                 button.innerText = 'Copy';
                 button.classList.remove('copy-button-copying');
             }, 2000);
         }
         
         
         
         
         function openContentInNewTab(button) {
             const responseTextElement = button.parentElement.querySelector('code');
             const textToOpen = responseTextElement.innerText;
             const blob = new Blob([textToOpen], { type: 'text/html' });
             const url = URL.createObjectURL(blob);
             const newTab = window.open(url, '_blank');
         }
      </script>
      <script>
         // Include your existing scripts and libraries here
         hljs.initHighlightingOnLoad();
      </script>
   </body>
</html>
 

        
        
        
        
 

Colourful Input

                    <!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Colourful input</title>
  <style>
    input {
      width: 100%;
      padding: 10px;
      outline: none;
      margin-top: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
      box-sizing: border-box;
      transition: border-color 0.3s, box-shadow 0.3s;
    }

    input:focus {
      border-color: #2196F3;
      box-shadow: 0 0 5px rgba(33, 150, 243, 0.7);
    }
  </style>
</head>

<body>
  <input type="text">
</body>

</html>    

        
        
        
        
 

 
<script>
       const trouyContainer = document.createElement('div');
       trouyContainer.className = 'trouy';

       const darkModeToggle = document.createElement('div');
       darkModeToggle.innerHTML = `
       <input type="checkbox" class="sr-only" id="darkmode-toggle">
       <label for="darkmode-toggle" class="toggle">
            <span>Toggle dark mode</span>
       </label>
       `;

       trouyContainer.appendChild(darkModeToggle);
       document.body.appendChild(trouyContainer);

       const style = document.createElement('style');
       style.textContent = `
       .trouy {
       position: fixed;
       top: -50px; /* initially hide above the viewport */
       right: 0;
       padding: 10px;
       transition: top 0.3s;
       }


       .toggle {
       font-size: 10px; /* ๐Ÿ‘ˆ change this to scale */
       border: 1.7px solid currentColor;
       border-radius: 2em;
       cursor: pointer;
       display: block;
       height: 20px;
       position: sticky;
       width: 40px;
       }
       .toggle span {
       background-color: currentColor;
       border-radius: 2em;
       display: block;
       height: 1.5em;
       left: .25em;
       overflow: hidden;
       position: absolute;
       top: .25em;
       text-indent: -9999px;
       transition: left .25s;
       width: 1.5em;
       z-index: 2;
       }

       .toggle::before,
       .toggle::after {
       content: '';
       display: block;
       border-radius: 1em;
       position: absolute;
       z-index: 1;
       }

       .toggle::after {
       box-shadow: .25em .25em #5901d8;
       height: 1.125em;
       right: .9em;
       top: .125em;
       width: 1.125em;
       }

       .toggle::before {
       background-color: #ffc409;
       height: .625em;
       outline: .25em dotted #ffc409;
       outline-offset: .125em;
       left: .7em;
       top: .7em;
       width: .625em;
       }

       input:checked ~ .toggle span {
       left: 2em;
       }







       body:has(#darkmode-toggle:checked) {
       background: black;
       color: #d0d0d0;
       }







       .sr-only {
       position: absolute;
       left: -9999px;
       opacity: 0;
       }



       `;

       document.head.appendChild(style);

       let prevScrollPos = window.pageYOffset;

       window.onscroll = function() {
       const currentScrollPos = window.pageYOffset;

       if (prevScrollPos > currentScrollPos) {
       // Scroll up
       trouyContainer.style.top = "0";
       } else {
       // Scroll down
       trouyContainer.style.top = "-500px";
       }

       prevScrollPos = currentScrollPos;
       }; 
</script>

  
  
  
 
 

Notes

 <!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>    </title>

  <style>
    body {
     background:#222;
     color:white;
    
      font-family: Arial, sans-serif;
    }
    pre{
     background-color: black;   
     font-weight: 400;
     font-size: 16px;
     width: 100%;
     text-align: center;
     font-family: normal;
     color: white;
     white-space: pre-wrap;
    }
    
    .boxed-theorem {
      border: 2px dashed #fff;
      padding: 20px;
      margin: 30px 0;
      position: relative;
      width:80vw;
      margin:40px auto;
      border-radius:10px;
      background-color: black; /* Dark gray background color */
    }

    .small-box {
      position: absolute;
      top: -16px;
      left: 44%;
      transform: translateX(-40%);
      background-color:#73ffd5; /* Different color for the small box */
      font-weight:bold;
      border: 2px solid ;
      color:black;
      display: flex;
      padding:4px 10px;
      justify-content: center;
      align-items: center;
      font-size: 22px; /* Adjust font size as needed */
      z-index: 1;
      border-radius:10px;
      max-width: 80vw; /* Adjust the max-width value */
    }

    .theorem-content {
      font-size: 18px; /* Adjust font size as needed */
      margin: 0 auto; /* Center content within the box */
    }
  </style>
</head>
<body>

  
  
  
  
  <div class="boxed-theorem">
    <div class="small-box">    </div>
    <div class="theorem-content">
      <pre>
      
      </pre>
    </div>
  </div>


  
  
  
  
  <div class="boxed-theorem">
    <div class="small-box">    </div>
    <div class="theorem-content">
      <pre>
      
      </pre>
    </div>
  </div>






</body>
</html>






  
  
  
 
 
 
  
  
  
  
  <div class="boxed-theorem">
    <div class="small-box">    </div>                  
    <div class="theorem-content">
      <pre>
      
      </pre>
    </div>
  </div>








  
  
  
 
 

Notes with section

 <!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>    </title>

  <style>
    body {
     background:#222;
     color:white;
    
      font-family: Arial, sans-serif;
    }
    pre{
     background-color: black;   
     font-weight: 400;
     font-size: 16px;
     width: 100%;
     text-align: center;
     font-family: normal;
     color: white;
     white-space: pre-wrap;
    }
    
    .boxed-theorem {
      border: 2px dashed #fff;
      padding: 20px;
      margin: 30px 0;
      position: relative;
      width:80vw;
      margin:40px auto;
      border-radius:10px;
      background-color: black; /* Dark gray background color */
    }

    .small-box {
      position: absolute;
      top: -16px;
      left: 44%;
      transform: translateX(-40%);
      background-color:#73ffd5; /* Different color for the small box */
      font-weight:bold;
      border: 2px solid ;
      color:black;
      display: flex;
      padding:4px 10px;
      justify-content: center;
      align-items: center;
      font-size: 22px; /* Adjust font size as needed */
      z-index: 1;
      border-radius:10px;
      max-width: 80vw; /* Adjust the max-width value */
    }

    .theorem-content {
      font-size: 18px; /* Adjust font size as needed */
      margin: 0 auto; /* Center content within the box */
    }
  </style>


  <style>
    section {
       display: none;
        }


    .hidden {
        display: none;
        }
    </style>
</head>
<body>
<section id="one">
            <!-- Content for section one -->
   <h2>Section One</h2>
   <p>This is the content of section one.</p>
   
  </section>
  
  
  
<main>
  
  <div class="boxed-theorem">
    <div class="small-box">    </div>
    <div class="theorem-content">
      <pre>
      
      </pre>
    </div>
  </div>


  
  
  
  
  <div class="boxed-theorem">
    <div class="small-box">    </div>
    <div class="theorem-content">
      <pre>
      
      </pre>
    </div>
  </div>


</main>

<script>
 document.addEventListener("DOMContentLoaded", function () {
            // Function to show the appropriate section based on the URL hash
   function showSectionFromHash() {
    const hash = window.location.hash.substring(1);
  const targetSection = document.getElementById(hash);


  // Show or hide the main tag based on whether a section is being viewed
  const mainTag = document.querySelector('main');
   if (hash && targetSection) {
    mainTag.classList.add('hidden');
    } else {
  mainTag.classList.remove('hidden');
                }


   // Hide all sections
   document.querySelectorAll('section').forEach(section => {
   section.style.display = 'none';
                });


   // Show the section if it exists
   if (targetSection) {
    targetSection.style.display = 'block';
     } }


  // Show the appropriate section when the page loads or the hash changes
  window.addEventListener('hashchange', showSectionFromHash);
            showSectionFromHash();


  // Add click event listeners to navigation links
   document.querySelectorAll('nav a').forEach(anchor => {
     anchor.addEventListener('click', function (e) {
     e.preventDefault();


     // Update the URL without triggering a full page reload
     history.pushState(null, null, this.getAttribute('href'));


     // Show the clicked section
      showSectionFromHash();
                });
            });
        });
    </script>

</body>
</html>


  
  
  
 
 

Dark mode toolger

 <script>
    // Dark mode toggle function
    function toggleDarkMode() {
    document.body.classList.toggle("dark-mode");
    darkModeButton.textContent = document.body.classList.contains("dark-mode") ? "light" : "Dark";
    }
  
    // Create a button at the top of the webpage
    const darkModeButton = document.createElement("button");
    darkModeButton.textContent = "Dark";
    darkModeButton.style.position = "fixed";
    darkModeButton.style.top = "0";
    darkModeButton.style.background = "transparent";
     
    darkModeButton.style.right = "0";
    darkModeButton.style.padding = "1px";
    darkModeButton.style.cursor = "pointer";  
    // Apply styles for dark mode
    const darkModeStyles = `
    .dark-mode {
      background-color: black;
      color: #fff;
      font-weight:150;
      line-height:28px;
        font-weight:150;
    }
    `;
        
    // Append the button to the body
    document.body.appendChild(darkModeButton);
        
    // Add styles for dark mode to the head
    const styleTag = document.createElement("style");
    styleTag.textContent = darkModeStyles;
    document.head.appendChild(styleTag);
        
    // Add click event listener to the button
    darkModeButton.addEventListener("click", toggleDarkMode);
   
</script>


  
  
  
 
 

Bold text by selecting

                    <!DOCTYPE html>
<html>
<head>
  
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title></title>
</head>

<body>

  <button onclick="boldText()" style="font-weight: bold;">B</button>

  <button class="button is-primary  has-text-white is-italic" onclick="italicText()">I</button>

  <button onclick="cursiveText()" style="font-family: cursive;">C</button>

  <button onclick="doublestruckText()" style="text-decoration-style: double;">D</button>

  <br>

  <textarea name="" id="copyValue" cols="30" rows="10"></textarea>




  <script>
    /*function bold() {
  let bold = document.getElementById("copyValue");
  bold.style.fontWeight = "bold";
}

function italic() {
  let italic = document.getElementById("copyValue");
  italic.style.fontStyle = "normal";
}

function cursive() {
  let cursive = document.getElementById("copyValue");
  cursive.style.fontFamily = "cursive";
}

function fantasy() {
  let fantasy = document.getElementById("copyValue");
  fantasy.style.fontFamily = "fantasy";
}*/
    function counter() {
      let textchars = document.getElementById("copyValue").value.length;
      $("#chars").text(textchars + " / 2200");
    }
    var boldChars = {
      0: "๐ŸŽ",
      1: "๐Ÿ",
      2: "๐Ÿ",
      3: "๐Ÿ‘",
      4: "๐Ÿ’",
      5: "๐Ÿ“",
      6: "๐Ÿ”",
      7: "๐Ÿ•",
      8: "๐Ÿ–",
      9: "๐Ÿ—",
      a: "๐š",
      b: "๐›",
      c: "๐œ",
      d: "๐",
      e: "๐ž",
      f: "๐Ÿ",
      g: "๐ ",
      h: "๐ก",
      i: "๐ข",
      j: "๐ฃ",
      k: "๐ค",
      l: "๐ฅ",
      m: "๐ฆ",
      รฑ: "๐งฬƒ",
      n: "๐ง",
      o: "๐จ",
      p: "๐ฉ",
      q: "๐ช",
      r: "๐ซ",
      s: "๐ฌ",
      t: "๐ญ",
      u: "๐ฎ",
      v: "๐ฏ",
      w: "๐ฐ",
      x: "๐ฑ",
      y: "๐ฒ",
      z: "๐ณ",
      A: "๐€",
      B: "๐",
      C: "๐‚",
      D: "๐ƒ",
      E: "๐„",
      F: "๐…",
      G: "๐†",
      H: "๐‡",
      I: "๐ˆ",
      J: "๐‰",
      K: "๐Š",
      L: "๐‹",
      M: "๐Œ",
      N: "๐",
      O: "๐Ž",
      P: "๐",
      Q: "๐",
      R: "๐‘",
      S: "๐’",
      T: "๐“",
      U: "๐”",
      V: "๐•",
      W: "๐–",
      X: "๐—",
      Y: "๐˜",
      Z: "๐™",
    };
    var italicChars = {
      a: "๐˜ข",
      b: "๐˜ฃ",
      c: "๐˜ค",
      d: "๐˜ฅ",
      e: "๐˜ฆ",
      f: "๐˜ง",
      g: "๐˜จ",
      h: "๐˜ฉ",
      i: "๐˜ช",
      j: "๐˜ซ",
      k: "๐˜ฌ",
      l: "๐˜ญ",
      m: "๐˜ฎ",
      รฑ: "๐‘›ฬƒ",
      n: "๐˜ฏ",
      o: "๐˜ฐ",
      p: "๐˜ฑ",
      q: "๐˜ฒ",
      r: "๐˜ณ",
      s: "๐˜ด",
      t: "๐˜ต",
      u: "๐˜ถ",
      v: "๐˜ท",
      w: "๐˜ธ",
      x: "๐˜น",
      y: "๐˜บ",
      z: "๐˜ป",
      A: "๐˜ˆ",
      B: "๐˜‰",
      C: "๐˜Š",
      D: "๐˜‹",
      E: "๐˜Œ",
      F: "๐˜",
      G: "๐˜Ž",
      H: "๐˜",
      I: "๐˜",
      J: "๐˜‘",
      K: "๐˜’",
      L: "๐˜“",
      M: "๐˜”",
      N: "๐˜•",
      O: "๐˜–",
      P: "๐˜—",
      Q: "๐˜˜",
      R: "๐˜™",
      S: "๐˜š",
      T: "๐˜›",
      U: "๐˜œ",
      V: "๐˜",
      W: "๐˜ž",
      X: "๐˜Ÿ",
      Y: "๐˜ ",
      Z: "๐˜ก",
    };
    var cursiveChars = {
      0: "0",
      1: "1",
      2: "2",
      3: "3",
      4: "4",
      5: "5",
      6: "6",
      7: "7",
      8: "8",
      9: "9",
      a: "๐’ถ",
      b: "๐’ท",
      c: "๐’ธ",
      d: "๐’น",
      e: "๐‘’",
      f: "๐’ป",
      g: "๐‘”",
      h: "๐’ฝ",
      i: "๐’พ",
      j: "๐’ฟ",
      k: "๐“€",
      l: "๐“",
      m: "๐“‚",
      n: "๐“ƒ",
      รฑ: "๐“ƒฬƒ",
      o: "๐‘œ",
      p: "๐“…",
      q: "๐“†",
      r: "๐“‡",
      s: "๐“ˆ",
      t: "๐“‰",
      u: "๐“Š",
      v: "๐“‹",
      w: "๐“Œ",
      x: "๐“",
      y: "๐“Ž",
      z: "๐“",
      A: "๐’œ",
      B: "โ„ฌ",
      C: "๐’ž",
      D: "๐’Ÿ",
      E: "โ„ฐ",
      F: "โ„ฑ",
      G: "๐’ข",
      H: "โ„‹",
      I: "โ„",
      J: "๐’ฅ",
      K: "๐’ฆ",
      L: "โ„’",
      M: "โ„ณ",
      N: "๐’ฉ",
      O: "๐’ช",
      P: "๐’ซ",
      Q: "๐’ฌ",
      R: "โ„›",
      S: "๐’ฎ",
      T: "๐’ฏ",
      U: "๐’ฐ",
      V: "๐’ฑ",
      W: "๐’ฒ",
      X: "๐’ณ",
      Y: "๐’ด",
      Z: "๐’ต",
    };
    var strikethroughChars = {
      0: "๐Ÿ˜",
      1: "๐Ÿ™",
      2: "๐Ÿš",
      3: "๐Ÿ›",
      4: "๐Ÿœ",
      5: "๐Ÿ",
      6: "๐Ÿž",
      7: "๐ŸŸ",
      8: "๐Ÿ ",
      9: "๐Ÿก",
      a: "๐•’",
      b: "๐•“",
      c: "๐•”",
      d: "๐••",
      e: "๐•–",
      f: "๐•—",
      g: "๐•˜",
      h: "๐•™",
      i: "๐•š",
      j: "๐•›",
      k: "๐•œ",
      l: "๐•",
      m: "๐•ž",
      n: "๐•Ÿ",
      รฑ: "๐•Ÿฬƒ",
      o: "๐• ",
      p: "๐•ก",
      q: "๐•ข",
      r: "๐•ฃ",
      s: "๐•ค",
      t: "๐•ฅ",
      u: "๐•ฆ",
      v: "๐•ง",
      w: "๐•จ",
      x: "๐•ฉ",
      y: "๐•ช",
      z: "๐•ซ",
      A: "๐”ธ",
      B: "๐”น",
      C: "โ„‚",
      D: "๐”ป",
      E: "๐”ผ",
      F: "๐”ฝ",
      G: "๐”พ",
      H: "โ„",
      I: "๐•€",
      J: "๐•",
      K: "๐•‚",
      L: "๐•ƒ",
      M: "๐•„",
      N: "โ„•",
      ร‘: "โ„•ฬƒ",
      O: "๐•†",
      P: "โ„™",
      Q: "โ„š",
      R: "โ„",
      S: "๐•Š",
      T: "๐•‹",
      U: "๐•Œ",
      V: "๐•",
      W: "๐•Ž",
      X: "๐•",
      Y: "๐•",
      Z: "โ„ค",
    };
    const boldText = () => {
      var text = document.getElementById("copyValue");
      var selectionStart = text.selectionStart;
      var selectionEnd = text.selectionEnd;
      var s = text.value.substring(selectionStart, selectionEnd);
      for (letter in italicChars) {
        var b = new RegExp(italicChars[letter], "g");
        s = s.replace(b, letter);
      }
      for (letter in cursiveChars) {
        var b = new RegExp(cursiveChars[letter], "g");
        s = s.replace(b, letter);
      }
      for (letter in strikethroughChars) {
        var b = new RegExp(strikethroughChars[letter], "g");
        s = s.replace(b, letter);
      }
      for (letter in boldChars) {
        var c = new RegExp(letter, "g");
        var b = new RegExp(boldChars[letter], "g");
        var t = new RegExp(`ts-${letter}`, "g");
        var r = `ts-${letter}`;
        s = s.replace(c, r);
        s = s.replace(b, letter);
        s = s.replace(t, boldChars[letter]);
      }
      text.value =
        text.value.substring(0, selectionStart) +
        s +
        text.value.substring(selectionEnd);
      text.focus(none);
      text.setSelectionRange(selectionStart, selectionStart + s.length);
      localStorage.setItem("text", document.getElementById("copyValue").value);
      counter();
    };
    const italicText = () => {
      var text = document.getElementById("copyValue");
      var selectionStart = text.selectionStart;
      var selectionEnd = text.selectionEnd;
      var s = text.value.substring(selectionStart, selectionEnd);
      for (letter in boldChars) {
        var b = new RegExp(boldChars[letter], "g");
        s = s.replace(b, letter);
      }
      for (letter in cursiveChars) {
        var b = new RegExp(cursiveChars[letter], "g");
        s = s.replace(b, letter);
      }
      for (letter in strikethroughChars) {
        var b = new RegExp(strikethroughChars[letter], "g");
        s = s.replace(b, letter);
      }
      for (letter in italicChars) {
        var c = new RegExp(letter, "g");
        var b = new RegExp(italicChars[letter], "g");
        var t = new RegExp(`ts-${letter}`, "g");
        var r = `ts-${letter}`;
        s = s.replace(c, r);
        s = s.replace(b, letter);
        s = s.replace(t, italicChars[letter]);
      }
      text.value =
        text.value.substring(0, selectionStart) +
        s +
        text.value.substring(selectionEnd);
      text.focus(none);
      text.setSelectionRange(selectionStart, selectionStart + s.length);
      localStorage.setItem("text", document.getElementById("copyValue").value);
      counter();
    };
    const cursiveText = () => {
      var text = document.getElementById("copyValue");
      var selectionStart = text.selectionStart;
      var selectionEnd = text.selectionEnd;
      var s = text.value.substring(selectionStart, selectionEnd);
      for (letter in boldChars) {
        var b = new RegExp(boldChars[letter], "g");
        s = s.replace(b, letter);
      }
      for (letter in italicChars) {
        var b = new RegExp(italicChars[letter], "g");
        s = s.replace(b, letter);
      }
      for (letter in strikethroughChars) {
        var b = new RegExp(strikethroughChars[letter], "g");
        s = s.replace(b, letter);
      }
      for (letter in cursiveChars) {
        var c = new RegExp(letter, "g");
        var b = new RegExp(cursiveChars[letter], "g");
        var t = new RegExp(`ts-${letter}`, "g");
        var r = `ts-${letter}`;
        s = s.replace(c, r);
        s = s.replace(b, letter);
        s = s.replace(t, cursiveChars[letter]);
      }
      text.value =
        text.value.substring(0, selectionStart) +
        s +
        text.value.substring(selectionEnd);
      text.focus(none);
      text.setSelectionRange(selectionStart, selectionStart + s.length);
      localStorage.setItem("text", document.getElementById("copyValue").value);
      counter();
    };
    const doublestruckText = () => {
      var text = document.getElementById("copyValue");
      var selectionStart = text.selectionStart;
      var selectionEnd = text.selectionEnd;
      var s = text.value.substring(selectionStart, selectionEnd);
      for (letter in boldChars) {
        var b = new RegExp(boldChars[letter], "g");
        s = s.replace(b, letter);
      }
      for (letter in italicChars) {
        var b = new RegExp(italicChars[letter], "g");
        s = s.replace(b, letter);
      }
      for (letter in cursiveChars) {
        var b = new RegExp(cursiveChars[letter], "g");
        s = s.replace(b, letter);
      }
      for (letter in strikethroughChars) {
        var c = new RegExp(letter, "g");
        var b = new RegExp(strikethroughChars[letter], "g");
        var t = new RegExp(`ts-${letter}`, "g");
        var r = `ts-${letter}`;
        s = s.replace(c, r);
        s = s.replace(b, letter);
        s = s.replace(t, strikethroughChars[letter]);
      }
      text.value =
        text.value.substring(0, selectionStart) +
        s +
        text.value.substring(selectionEnd);
      text.focus(none);
      text.setSelectionRange(selectionStart, selectionStart + s.length);
      localStorage.setItem("text", document.getElementById("copyValue").value);
      counter();
    };
  </script>
</body>

</html>    

        
        
        
        
 

Carrd type section

 <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Your Page</title>
    <style>
        section {
            display: none;
        }

        .hidden {
            display: none;
        }
    </style>
</head>
<body>

    <main>
        <!-- Content within the main tag -->
        <nav>
            <ul>
                <li><a href="#one">Section One</a></li>
                <li><a href="#two">Section Two</a></li>
                <!-- Add more links as needed -->
            </ul>
        </nav>
        
     </main>

  <section id="one">
            <!-- Content for section one -->
   <h2>Section One</h2>
   <p>This is the content of section one.</p>
   
  </section>

  <section id="two">
            <!-- Content for section two -->
  <h2>Section Two</h2>
    <p>This is the content of section two.</p>
    
  </section>
        
        
  <section id="thr"> 
        <h1> Krishna</h1>
  </section>

        <!-- Add more sections as needed -->
    

  <script>
 document.addEventListener("DOMContentLoaded", function () {
            // Function to show the appropriate section based on the URL hash
   function showSectionFromHash() {
    const hash = window.location.hash.substring(1);
  const targetSection = document.getElementById(hash);

  // Show or hide the main tag based on whether a section is being viewed
  const mainTag = document.querySelector('main');
   if (hash && targetSection) {
    mainTag.classList.add('hidden');
    } else {
  mainTag.classList.remove('hidden');
                }

   // Hide all sections
   document.querySelectorAll('section').forEach(section => {
   section.style.display = 'none';
                });

   // Show the section if it exists
   if (targetSection) {
    targetSection.style.display = 'block';
     } }

  // Show the appropriate section when the page loads or the hash changes
  window.addEventListener('hashchange', showSectionFromHash);
            showSectionFromHash();

  // Add click event listeners to navigation links
   document.querySelectorAll('nav a').forEach(anchor => {
     anchor.addEventListener('click', function (e) {
     e.preventDefault();

     // Update the URL without triggering a full page reload
     history.pushState(null, null, this.getAttribute('href'));

     // Show the clicked section
      showSectionFromHash();
                });
            });
        });
    </script>

</body>
</html> 
 

        
        
        
        
 

                    <!DOCTYPE html>
<html lang="en">

<head>
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title>Quiz</title>
     <!-- Google Font -->
     <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet" />
     <!-- Stylesheet -->
     <link rel="stylesheet" href="./style.css" />




     <style>
          * {
              padding: 0;
              margin: 0;
              box-sizing: border-box;
              font-family: "Poppins", sans-serif;
            }
            body {
              height: 100vh;
              background:#e0e5ec;
              
            }
            .start-screen,
            .score-container {
              position: absolute;
              top: 0;
              width: 100%;
              height: 100%;
              display: flex;
              flex-direction: column;
              align-items: center;
              justify-content: center;
            }
            button {
              border: none;
              outline: none;
              cursor: pointer;
            }
            #start-button,
            #restart {
              font-size: 1.3em;
              padding: 0.5em 1.8em;
              border-radius: 0.2em;
             
              box-shadow: 0.3rem 0.3rem 0.5rem rgba(195, 193, 198, 0.9), -0.2rem -0.2rem 0.4rem #fff;
              
          
          
          }
            #restart {
              margin-top: 0.9em;
            }
            #display-container {
              background-color: #e0e5ec;
              padding: 3.1em .3em;
              width: 80%;
              max-width: 37.5em;
              margin: 0 auto;
              position: absolute;
              transform: translate(-50%, -50%);
              top: 50%;
              left: 50%;
              border-radius: 0.6em;
            }
            .header {
              margin-bottom: 1.8em;
              display: flex;
              justify-content: space-between;
              align-items: center;
              padding-bottom: 0.6em;
              border-bottom: 0.1em solid #c0bfd2;
            }
            .timer-div {
              background-color: #e1f5fe;
              width: 7.5em;
              border-radius: 1.8em;
              display: flex;
              align-items: center;
              justify-content: space-between;
              padding: 0.7em 1.8em;
           
              
            }
            .question {
              margin-bottom: 1.25em;
              font-weight: 600;
            }
            .option-div {
              font-size: 0.9em;
              width: 100%;
              padding: 1em;
              margin: 0.6em 0;
              text-align: left;
              outline: none;
              box-shadow: 0.3rem 0.3rem 0.5rem rgba(195, 193, 198, 0.9), -0.2rem -0.2rem 0.4rem #fff;
              background: white;
              border-radius: 0.6em;
            }
            .option-div:disabled {
              color: #000000;
              cursor: not-allowed;
            }
            #next-button {
              font-size: 1em;
              margin-top: 1.5em;
              background-color: #8754ff;
              color: #ffffff;
              padding: 0.7em 1.8em;
              border-radius: 0.3em;
              float: right;
             
            box-shadow: 0.3rem 0.3rem 0.5rem rgba(195, 193, 198, 0.9), -0.2rem -0.2rem 0.4rem #fff;
              
            }
            .hide {
              display: none;
            }
            .incorrect {
              background-color: #ffdde0;
              color: #d32f2f;

              Border:1px solid #d32f2f;

            }
            .correct {
              background-color: #e7f6d5;
              color: #689f38;

              Border:1px solid #689f38;
            }
            #user-score {
              font-size: 1.5em;
              color: black;
            }
     </style>




</head>

<body>
     <div class="start-screen">
          <button id="start-button">Start</button>
     </div>
     <div id="display-container">
          <div class="header">
               <div class="number-of-count">
                    <span class="number-of-question">1 of 3 questions</span>
               </div>
               <div class="timer-div">
                    <img src="https://uxwing.com/wp-content/themes/uxwing/download/time-and-date/stopwatch-icon.png" width="20px" />
                    <span class="time-left">10s</span>
               </div>
          </div>
          <div id="container">
               <!-- questions and options will be displayed here -->
          </div>
          <button id="next-button">Next</button>
     </div>
     <div class="score-container hide">
          <div id="user-score">Demo Score</div>
          <button id="restart">Restart</button>
     </div>
     <!-- Script -->
     <script>
          //References
          let timeLeft = document.querySelector(".time-left");
          let quizContainer = document.getElementById("container");
          let nextBtn = document.getElementById("next-button");
          let countOfQuestion = document.querySelector(".number-of-question");
          let displayContainer = document.getElementById("display-container");
          let scoreContainer = document.querySelector(".score-container");
          let restart = document.getElementById("restart");
          let userScore = document.getElementById("user-score");
          let startScreen = document.querySelector(".start-screen");
          let startButton = document.getElementById("start-button");
          let questionCount;
          let scoreCount = 0;
          let count = 11;
          let countdown;
          
          
          //Questions and Options array
          
          
          const quizArray = [
              {
                  id: "0",
                  question: "Which is the most widely spoken language in the world?",
                  options: ["Spanish", "Mandarin", "English", "German"],
                  correct: "Mandarin",
              },
              {
                  id: "1",
                  question: "Which is the only continent in the world without a desert?",
                  options: ["North America", "Asia", "Africa", "Europe"],
                  correct: "Europe",
              },
              {
                  id: "2",
                  question: "Who invented Computer?",
                  options: ["Charles Babbage", "Henry Luce", "Henry Babbage", "Charles Luce"],
                  correct: "Charles Babbage",
              },
              {
                  id: "3",
                  question: "What do you call a computer on a network that requests files from another computer?",
                  options: ["A client", "A host", "A router", "A web server"],
                  correct: "A client",
              },
              {
                  id: "4",
                  question: "Hardware devices that are not part of the main computer system and are often added later to the system.",
                  options: ["Peripheral", "Clip art", "Highlight", "Execute"],
                  correct: "Peripheral",
              },
              {
                  id: "5",
                  question: "The main computer that stores the files that can be sent to computers that are networked together is:",
                  options: ["Clip art", "Mother board", "Peripheral", "File server"],
                  correct: "File server",
              }, {
                  id: "6",
                  question: "How can you catch a computer virus?",
                  options: ["Sending e-mail messages", "Using a laptop during the winter", "Opening e-mail attachments", "Shopping on-line"],
                  correct: "Opening e-mail attachments",
              },
              {
                  id: "7",
                  question: "Google (www.google.com) is a:",
                  options: ["Search Engine", "Number in Math", "Directory of images", "Chat service on the web"],
                  correct: "Search Engine",
              },



              {
             
                  question: "Which is not an Internet protocol?",
                  options: ["HTTP", "FTP", "STP", "IP"],
                  correct: "STP",
              },





              {
                  id: "9",
                  question: "Which of the following is not a valid domain name?",
                  options: ["www.yahoo.com", "www.yahoo.co.uk", "www.com.yahoo", "www.yahoo.co.in"],
                  correct: "wwww.com.yahoo",
              },
          
          


           {
                  id: "10",
                  question: "Google (www.google.com) is a:",
                  options: ["Search Engine", "Number in Math", "Directory of images", "Chat service on the web"],
                  correct: "Search Engine",
              },
             
          ];
          
          
          //Restart Quiz
          restart.addEventListener("click", () => {
              initial();
              displayContainer.classList.remove("hide");
              scoreContainer.classList.add("hide");
          });
          
          
          //Next Button
          nextBtn.addEventListener(
              "click",
              (displayNext = () => {
                  //increment questionCount
                  questionCount += 1;
                  //if last question
                  if (questionCount == quizArray.length) {
                      //hide question container and display score
                      displayContainer.classList.add("hide");
                      scoreContainer.classList.remove("hide");
                      //user score
                      userScore.innerHTML =
                          "Your score is " + scoreCount + " out of " + questionCount;
                  } else {
                      //display questionCount
                      countOfQuestion.innerHTML =
                          questionCount + 1 + " of " + quizArray.length + " Question";
                      //display quiz
                      quizDisplay(questionCount);
                      count = 11;
                      clearInterval(countdown);
                      timerDisplay();
                  }
              })
          );
          
          
          //Timer
          const timerDisplay = () => {
              countdown = setInterval(() => {
                  count--;
                  timeLeft.innerHTML = `${count}s`;
                  if (count == 0) {
                      clearInterval(countdown);
                      displayNext();
                  }
              }, 1000);
          };
          
          
          //Display quiz
          const quizDisplay = (questionCount) => {
              let quizCards = document.querySelectorAll(".container-mid");
              //Hide other cards
              quizCards.forEach((card) => {
                  card.classList.add("hide");
              });
              //display current question card
              quizCards[questionCount].classList.remove("hide");
          };
          
          
          //Quiz Creation
          function quizCreator() {
              //randomly sort questions
              quizArray.sort(() => Math.random() - 0.5);
              //generate quiz
              for (let i of quizArray) {
                  //randomly sort options
                  i.options.sort(() => Math.random() - 0.5);
                  //quiz card creation
                  let div = document.createElement("div");
                  div.classList.add("container-mid", "hide");
                  //question number
                  countOfQuestion.innerHTML = 1 + " of " + quizArray.length + " Question";
                  //question
                  let question_DIV = document.createElement("p");
                  question_DIV.classList.add("question");
                  question_DIV.innerHTML = i.question;
                  div.appendChild(question_DIV);
                  //options
                  div.innerHTML += `
              <button class="option-div" onclick="checker(this)">${i.options[0]}</button>
               <button class="option-div" onclick="checker(this)">${i.options[1]}</button>
                <button class="option-div" onclick="checker(this)">${i.options[2]}</button>
                 <button class="option-div" onclick="checker(this)">${i.options[3]}</button>
              `;
                  quizContainer.appendChild(div);
              }
          }
          
          
          //Checker Function to check if option is correct or not
          function checker(userOption) {
              let userSolution = userOption.innerText;
              let question =
                  document.getElementsByClassName("container-mid")[questionCount];
              let options = question.querySelectorAll(".option-div");
          
          
              //if user clicked answer == correct option stored in object
              if (userSolution === quizArray[questionCount].correct) {
                  userOption.classList.add("correct");
                  scoreCount++;
              } else {
                  userOption.classList.add("incorrect");
                  //For marking the correct option
                  options.forEach((element) => {
                      if (element.innerText == quizArray[questionCount].correct) {
                          element.classList.add("correct");
                      }
                  });
              }
          
          
              //clear interval(stop timer)
              clearInterval(countdown);
              //disable all options
              options.forEach((element) => {
                  element.disabled = true;
              });
          }
          
          
          //initial setup
          function initial() {
              quizContainer.innerHTML = "";
              questionCount = 0;
              scoreCount = 0;
              count = 11;
              clearInterval(countdown);
              timerDisplay();
              quizCreator();
              quizDisplay(questionCount);
          }
          
          
          //when user click on start button
          startButton.addEventListener("click", () => {
              startScreen.classList.add("hide");
              displayContainer.classList.remove("hide");
              initial();
          });
          
          
          //hide quiz and display start screen
          window.onload = () => {
              startScreen.classList.remove("hide");
              displayContainer.classList.add("hide");
          };
          
          
     </script>
</body>

</html>    

        
        
        
        
 

Normal text

 <!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
  html{
    background: black;
  }
    pre{
      background-color: black;
    
     font-weight: 200;
     font-size: 20px;
     width: 90%;
      text-align: center;
     font-family: normal;
     padding: 0 20px;
      color: white;
     white-space: pre-wrap;
    }
    
  </style>
</head>
<body>
  <pre>
 


  </pre>
  
</body>
</html>


  
  
  
 
 

Square root , power

                    <!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
  <style>
    .array-container {
      position: relative;
    }

    .array-box {
      width: 90vw;
      height: auto;
      border: 1px solid #000;
      margin: 5px;
      text-align: center;
      line-height: 28px;
      display: none;
      position: absolute;
      top: 5px;
      margin-top: 20px;
      z-index: 1;
      background-color: #fff;

    }

    button {
      margin: 5px;
    }

    .cut-button {
      margin-top: 5px;
      display: none;

    }

    .cut-button {
      margin-top: 5px;
      z-index: 100000;
      position: absolute;
      top: 5px;
      right: 4px;
      display: none;
    }

    /* Style for each word */
    .array-word {
      cursor: pointer;
      padding: 7px;

      border: 0.51px solid #000;
      margin: 3px;
      border-radius: 5px;
      display: inline-block;
      min-width: 80px;
    }

    textarea {
      width: 90vw;
      line-height: 30px;
      margin: auto;
      margin-left: 20px;
      margin-top: 10px;
      
    }
  </style>
  <title>Array Display</title>
</head>

<body>

  <textarea wrap="off" name="" id="copiedInput" cols="20" rows="5"></textarea>
  <div class="array-container">
    <button onclick="showArray(0)">Niche</button>
    <button onclick="showArray(1)">Upr</button>
    <button onclick="showArray(2)">Root or bar</button>
    <button onclick="showArray(3)">Root ke andr root</button>
    <button onclick="showArray(9)">Preset</button>


    <div id="array-box" class="array-box"></div>
    <button class="cut-button" onclick="cutArray()">Cut</button>
  </div>

  <!-- Existing input field -->

  <script>
    var currentArrayIndex = null;

    arrays = [
 [

    ' '  ,  'โ‚', 'โ‚‚', 'โ‚ƒ', 'โ‚„', 'โ‚…', 'โ‚†', 'โ‚‡', 'โ‚ˆ', 'โ‚‰', 'โ‚€', 'โ‚Š', 'โ‚‹', 'โ‚“'  ,'โ‚Œ'
    
    
    ,'โ„' , 'โ‚'      ,    'โ‚Ž'  ,
        
    
    
    
    
    'โ‚' ,
'แตฆ' ,
'โ‚‘' ,
'โ‚•' ,
'แตข' ,
'โ‚–' ,
'โ‚—' ,
'โ‚˜' ,
'โ‚™' ,
'โ‚’' ,
'โ‚š' ,
'โ‚›' ,
'โ‚œ' ,
'แตค' ,
'แตฅ' ,
'โ‚“' ,
'แตง' ,



    

],





      ['ยน', 'ยฒ', 'ยณ', 'โด', 'โต', 'โถ', 'โท', 'โธ', 'โน', 'โฐ', 'โบ', 'ยท'
 , 'โป', 'หฃ'

 , ' ' ,'โผ','โฝ', 'โพ'

,
'แตƒ', 'แต‡', 'แถœ', 'แตˆ', 'แต‰', 'แถ ', 'แต', 'สฐ', 'โฑ', 'สฒ', 'แต', 'หก', 'แต', 'โฟ', 'แต’', 'แต–', 'แต ', 'สณ', 'หข', 'แต—', 'แต˜', 'แต›', 'สท', 'หฃ', 'สธ', 'แถป'


 ],











      [

        'โˆš', ' ฬ…', 'โ‚ฬ…', 'โ‚‚ฬ…', 'โ‚ƒฬ…', 'โ‚„ฬ…', 'โ‚…ฬ…', 'โ‚†ฬ…', 'โ‚‡ฬ…', 'โ‚ˆฬ…', 'โ‚‰ฬ…', 'โ‚€ฬ…'
      , 'โ‚Šฬ…', 'โ‚‹ฬ…'


,'โ‚“ฬ…'  ,'โ‚ฬ…' , 'โ‚Žฬ…'  ,'โฝฬ…' , 'โพฬ…'



, 'ยนฬ…', 'ยฒฬ…', 'ยณฬ…', 'โดฬ…', 'โตฬ…', 'โถฬ…', 'โทฬ…', 'โธฬ…', 'โนฬ…', 'โฐฬ…'


,'โบฬ…'  ,'โปฬ…' ,'โ€ขฬ…' ,'หฃฬ…'


,'โ„ฬ…'










      ],








      [ 

'โ‚ฬถฬ…', 'โ‚‚ฬถฬ…', 'โ‚ƒฬถฬ…', 'โ‚„ฬถฬ…', 'โ‚…ฬถฬ…', 'โ‚†ฬถฬ…', 'โ‚‡ฬถฬ…', 'โ‚ˆฬถฬ…', 'โ‚‰ฬถฬ…', 'โ‚€ฬถฬ…', ' ฬถฬ…'        
,'โ‚Šฬถฬ…'

,'โ‚‹ฬ…ฬถ'
,'.ฬ…ฬถ'

,'โ‚“ฬ…ฬถ'
],
      
      
      
      
      
      
      
      
      
      [          
        'โˆšโ‚ฬ…โ‚ฬ…โ‚ฬ…โ‚ฬ…โ‚ฬ…โ‚ฬ… ฬ…โ‚Šฬ… ฬ…โ‚‰ฬ…โ‚ƒฬ…โ‚‰ฬ…โ‚ƒฬ…โ‚‰ฬ… ' 
        
        ,' โˆš ฬ…ยณฬ…ยณฬ…ยณฬ…ยณฬ…ยณฬ…ยณฬ…ยณฬ…ยณฬ…ยณฬ… ฬ…โบฬ… ฬ…โถฬ…โทฬ…โทฬ…โธฬ…โธฬ…โธฬ…โธฬ… '
        
        ,'(โˆšโดฬ…โฐฬ… + 2)ยฒ  '
        
        
        ,' โˆš ฬ…โ‚ฬ… ฬ…โ‚„ฬ…โ‚…ฬ…โ‚‡ฬ…โ‚…ฬ… ฬ…โ‚Šฬ… ฬ…โ‚†ฬ…โ‚‡ฬ…โ‚‡ฬ… ฬ…โ‚Žฬ…โตฬ…โถฬ…โทฬ…โถฬ…โทฬ…โทฬ…โทฬ… ฬ… ฬ… '
        
        ,' Logโ‚ƒ45โตโตโต '
        
        ,'  โˆš ฬ…(ฬ…โ‚„ฬ…โ‚…ฬ…โ‚‡ฬ…โ‚…ฬ… ฬ…โ‚Šฬ… ฬ…โ‚†ฬ…โ‚‡ฬ…โ‚‡ฬ…)ฬ…โตฬ…โถฬ…โทฬ…โถฬ…โทฬ…โทฬ…โทฬ… ฬ… '
        
        ,'โ‚…โ‚†โ‚…โตโทโถ   โ‚“   โ‚‰โ‚‡โ‚ƒโดโตยณโดยฒ  โ‚Š  โ‚„โ‚ˆโ‚€โ‚โนโธโท '
        
        
        ,' โ‚ƒโ‚‡45โดโต '
        ],
    ];

    function showArray(index) {
      var arrayBox = document.getElementById('array-box');
      var cutButton = document.querySelector('.cut-button');
      var copiedInput = document.getElementById('copiedInput');

      // Set new array text
      arrayBox.innerHTML = arrays[index].map(word => `<span class="array-word">${word}</span>`).join('');

      // Position array box above the button
      var buttonPosition = document.querySelector('button').getBoundingClientRect();
      arrayBox.style.top = buttonPosition.top - arrayBox.clientHeight - 5 + 'px';
      arrayBox.style.left = buttonPosition.left + 'px';

     // Add click event listener to each word
document.querySelectorAll('.array-word').forEach(wordElement => {
    wordElement.addEventListener('click', function() {
        // Get cursor position
        const cursorStart = copiedInput.selectionStart;
        const cursorEnd = copiedInput.selectionEnd;

        // Insert the clicked word at the cursor position
        const currentValue = copiedInput.value;
        const newValue = currentValue.substring(0, cursorStart) + this.textContent + currentValue.substring(cursorEnd);
        copiedInput.value = newValue;

        // Move the cursor to the end of the inserted word
        copiedInput.setSelectionRange(cursorStart + this.textContent.length, cursorStart + this.textContent.length);
    });
});

      // Toggle visibility
      arrayBox.style.display = 'block';
      cutButton.style.display = 'block';
      currentArrayIndex = index;
    }

    function cutArray() {
      var arrayBox = document.getElementById('array-box');
      var cutButton = document.querySelector('.cut-button');

      arrayBox.style.display = 'none';
      cutButton.style.display = 'none';
    }
  </script>
</body>

</html>    

        
        
        
        
 

Full screen button

                    
<button id="fullscreen-button" style="padding: 1px; font-size: 16px;" onclick="var isFullscreen=!1;function toggleFullscreen(){isFullscreen?document.exitFullscreen?.():document.documentElement.requestFullscreen?.(),isFullscreen=!isFullscreen};toggleFullscreen()">Toggle Fullscreen</button>
    

        
        
        
        
 

Math notes

 
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Your Website</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            background: #3498db; /* Blue background color */
        }

        .content-box {
            width: 200px;
            
            background: rgba(255, 255, 255, 0.25);
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            padding: 20px;
            
            position: relative;
            overflow: hidden;
            transition: height 0.5s ease;
            margin-top: 20px; /* Added margin for spacing between boxes */
             width: 300px;
            margin: 50px auto;
           
            white-space: pre-wrap;
            word-wrap: break-word;
            font-size: 18px;
            font-family:normal;
            
  
        }

        .additional-content {
            display: none;
            margin-top: 10px;
        }

        .show-more-btn {
            background-color: #3498db;
            color: #fff;
            padding: 8px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px;
        }
    </style>
</head>
<body>


    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>




    <pre class="content-box">
 
    <button class="show-more-btn" onclick="toggleContent(this)">Show Answer</button><div class="additional-content">     </div></pre>

    
    <script>
        function toggleContent(btn) {
            var contentBox = btn.parentNode;
            var additionalContent = contentBox.querySelector('.additional-content');
            var buttonText = btn.innerText;

            if (additionalContent.style.display === 'none' || additionalContent.style.display === '') {
                additionalContent.style.display = 'block';
                btn.innerText = 'Hide answer';
            } else {
                additionalContent.style.display = 'none';
                btn.innerText = 'Show Answer';
            }
        }
    </script>
</body>
</html>


  
  
  
 
 

Apply custom css on a class by button

 
<style>
    .special-style {
      color: red;
      background: white;
      text-align: center;
      
      /* Add other styles you want to apply on button click */
    }
   
</style>


<button onclick="addSpecialStyle()">Add Special Style</button>

<script>
  function addSpecialStyle() {
    var elements = document.getElementsByClassName('content-box');

    for (var i = 0; i < elements.length; i++) {
      elements[i].classList.toggle('special-style');
    }
  }
</script>