Zum Inhalt springen

Widget:Cusdis: Unterschied zwischen den Versionen

Aus Tech-Wiki
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
Zeile 1: Zeile 1:
<div id="cusdis_container" style="width: 100%; min-height: 700px; border: 1px solid #eee; padding: 10px;">
<div class="cusdis-wrapper" style="display: block; width: 100%; height: 600px !important; min-height: 600px !important; overflow: hidden !important; border: 1px solid #ddd; position: relative;">
 
   <div id="cusdis_thread"
   <div id="cusdis_thread"
     data-host="https://cusdis.com"
     data-host="https://cusdis.com"
Zeile 6: Zeile 7:
     data-page-url=""
     data-page-url=""
     data-page-title=""
     data-page-title=""
    style="height: 100% !important;"
   ></div>
   ></div>
</div>
</div>


<script>
  // Force height after a short delay to ensure it's loaded
  window.onload = function() {
    setTimeout(function() {
      var iframe = document.querySelector('#cusdis_thread iframe');
      if (iframe) {
        iframe.style.height = '700px';
        iframe.style.minHeight = '700px';
      }
    }, 2000); // 2 second delay
  };
</script>
<script async defer src="https://cusdis.com/js/cusdis.es.js"></script>
<script async defer src="https://cusdis.com/js/cusdis.es.js"></script>
<style>
/* This targets the iframe specifically if the browser allows it */
#cusdis_thread iframe {
    height: 600px !important;
    width: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
}
</style>

Aktuelle Version vom 19. Februar 2026, 08:39 Uhr

<script async defer src="https://cusdis.com/js/cusdis.es.js"></script>

<style> /* This targets the iframe specifically if the browser allows it */

  1. cusdis_thread iframe {
   height: 600px !important;
   width: 100% !important;
   position: absolute;
   top: 0;
   left: 0;

} </style>