Changes

Jump to navigation Jump to search
332 bytes removed ,  19:37, 22 May 2023
no edit summary
Line 41: Line 41:  
   <body>
 
   <body>
 
     <div id="video-container">
 
     <div id="video-container">
       <button onclick="loadVideo('efR1C6CvhmE')">SVM: Main Ideas</button>
+
       <button onclick="loadVideo('efR1C6CvhmE')">SVM: Main Ideas</button> <font size="1" color="blue">&larr; Click-to-play</font>
 
     </div>
 
     </div>
  −
    <script>
  −
      function loadVideo(videoId) {
  −
        var container = document.getElementById('video-container');
  −
        var videoUrl = 'https://www.youtube.com/embed/' + videoId;
  −
  −
        var iframe = document.createElement('iframe');
  −
        iframe.src = videoUrl;
  −
        iframe.width = 960;
  −
        iframe.height = 540;
  −
        iframe.setAttribute('allow', 'autoplay');
  −
        container.innerHTML = ''; // Clear existing content
  −
        container.appendChild(iframe);
  −
      }
  −
    </script>
   
   </body>
 
   </body>
 
</html>
 
</html>
Line 72: Line 57:  
   <body>
 
   <body>
 
     <div id="video-container">
 
     <div id="video-container">
       <button onclick="loadVideo('Toet3EiSFcM')">SVM: The Polynomial Kernel</button>
+
       <button onclick="loadVideo('Toet3EiSFcM')">SVM: The Polynomial Kernel</button> <font size="1" color="blue">&larr; Click-to-play</font>
 
     </div>
 
     </div>
   Line 103: Line 88:  
   <body>
 
   <body>
 
     <div id="video-container">
 
     <div id="video-container">
       <button onclick="loadVideo('Qc5IyLW_hns')">SVM: The Radial (RBF) Kernel</button>
+
       <button onclick="loadVideo('Qc5IyLW_hns')">SVM: The Radial (RBF) Kernel</button> <font size="1" color="blue">&larr; Click-to-play</font>
 
     </div>
 
     </div>
  
581

edits

Navigation menu