Difference between revisions of "Test Marko"

From The Embassy of Good Science
Line 1: Line 1:
*Prepare the cases to be shared with the players (print them, put them on slides or other visuals to be used in the activity).
+
<!DOCTYPE html>
*<span lang="EN-US">Decide whether to hold joint discussions about particular cases across groups or have each group discuss separately.</span>
+
<html lang="en">
<div><div><div><span name="_msocom_1"></span></div></div></div>
+
<head>
|Instruction Step Interactive Content=Resource:H5P-525
+
  <meta charset="UTF-8">
}}
+
  <title>H5P Test Page</title>
{{Instruction Step Trainer
+
  <style>
|Instruction Step Title=Introduce the game
+
    /* Minimal styling for H5P wrapper */
|Instruction Step Text=First, group the players into groups of 3–6 players:.
+
    .h5p-wrapper {
 +
      width: auto !important;
 +
      height: 300px !important; /* privremena visina */
 +
      font-size: 14px !important;
 +
      border: 1px solid #ccc;
 +
      margin: 20px auto;
 +
    }
 +
 
 +
    body {
 +
      font-family: Arial, sans-serif;
 +
      padding: 20px;
 +
    }
 +
  </style>
 +
</head>
 +
<body>
 +
  <h1>H5P Test Container</h1>
 +
 
 +
  <!-- H5P iframe -->
 +
  <iframe
 +
    class="h5p-iframe"
 +
    src="https://your-h5p-url/h5p-525"
 +
    width="100%"
 +
    height="300"
 +
    frameborder="0"
 +
    allowfullscreen
 +
  ></iframe>
 +
 
 +
  <script>
 +
    // Privremena JS da popup visinu dok H5P ne load-uje
 +
    function fixH5PWrapper() {
 +
      document.querySelectorAll('iframe.h5p-iframe').forEach(iframe => {
 +
        try {
 +
          const doc = iframe.contentDocument || iframe.contentWindow.document;
 +
          if (!doc) return;
 +
 
 +
          const wrapper = doc.querySelector('.h5p-wrapper');
 +
          if (!wrapper) return;
 +
 
 +
          console.log('H5P wrapper found:', wrapper);
 +
 
 +
          const height = parseFloat(wrapper.style.height);
 +
          const fontSize = parseFloat(wrapper.style.fontSize);
 +
 
 +
          if (!height || height < 20 || !fontSize || fontSize < 5) {
 +
            wrapper.style.height = '300px';
 +
            wrapper.style.fontSize = '14px';
 +
            console.log('Wrapper style updated');
 +
          }
 +
        } catch(e) {
 +
          console.warn('Cannot access iframe (cross-origin?):', e);
 +
        }
 +
      });
 +
    }
 +
 
 +
    // Check mehrfach, da iframe loading verzögert sein kann
 +
    setTimeout(fixH5PWrapper, 300);
 +
    setTimeout(fixH5PWrapper, 800);
 +
    setTimeout(fixH5PWrapper, 1500);
 +
  </script>
 +
</body>
 +
</html>

Revision as of 12:32, 9 December 2025

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

 <meta charset="UTF-8">
 <title>H5P Test Page</title>
 <style>
   /* Minimal styling for H5P wrapper */
   .h5p-wrapper {
     width: auto !important;
     height: 300px !important; /* privremena visina */
     font-size: 14px !important;
     border: 1px solid #ccc;
     margin: 20px auto;
   }
   body {
     font-family: Arial, sans-serif;
     padding: 20px;
   }
 </style>

</head> <body>

H5P Test Container

 <iframe
   class="h5p-iframe"
   src="https://your-h5p-url/h5p-525"
   width="100%"
   height="300"
   frameborder="0"
   allowfullscreen
 ></iframe>
 <script>
   // Privremena JS da popup visinu dok H5P ne load-uje
   function fixH5PWrapper() {
     document.querySelectorAll('iframe.h5p-iframe').forEach(iframe => {
       try {
         const doc = iframe.contentDocument || iframe.contentWindow.document;
         if (!doc) return;
         const wrapper = doc.querySelector('.h5p-wrapper');
         if (!wrapper) return;
         console.log('H5P wrapper found:', wrapper);
         const height = parseFloat(wrapper.style.height);
         const fontSize = parseFloat(wrapper.style.fontSize);
         if (!height || height < 20 || !fontSize || fontSize < 5) {
           wrapper.style.height = '300px';
           wrapper.style.fontSize = '14px';
           console.log('Wrapper style updated');
         }
       } catch(e) {
         console.warn('Cannot access iframe (cross-origin?):', e);
       }
     });
   }
   // Check mehrfach, da iframe loading verzögert sein kann
   setTimeout(fixH5PWrapper, 300);
   setTimeout(fixH5PWrapper, 800);
   setTimeout(fixH5PWrapper, 1500);
 </script>

</body> </html>

Cookies help us deliver our services. By using our services, you agree to our use of cookies.
5.2.9