Widget:GOV-Test: Unterschied zwischen den Versionen
Aus Altes Köln
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 3: | Zeile 3: | ||
<p>Hello <b>World</b></p> | <p>Hello <b>World</b></p> | ||
<p>Die GOV-Daten <a href="https://gov.genealogy.net/item/show/HOHAUSJO30MX">finden Sie hier</a>.</p> | <p>Die GOV-Daten <a href="https://gov.genealogy.net/item/show/HOHAUSJO30MX">finden Sie hier</a>.</p> | ||
<h1>Object</h1> | |||
<object data="https://gov.genealogy.net/item/show/HOHAUSJO30MX" width="600" height="400"></object> | <object data="https://gov.genealogy.net/item/show/HOHAUSJO30MX" width="600" height="400"></object> | ||
<h1>Iframe</h1> | |||
<iframe src="https://www.example.com" width="600" height="400"></iframe> | <iframe src="https://www.example.com" width="600" height="400"></iframe> | ||
<h1>Javascript</h1> | |||
<div id="external-content"></div> | |||
<script> | |||
fetch('https://gov.genealogy.net/item/show/HOHAUSJO30MX') | |||
.then(response => response.text()) | |||
.then(data => { | |||
document.getElementById('external-content').innerHTML = data; | |||
}) | |||
.catch(error => { | |||
console.error('Error loading external content:', error); | |||
}); | |||
</script> |
Version vom 12. Januar 2025, 15:44 Uhr
Test
Hello World
Die GOV-Daten <a href="https://gov.genealogy.net/item/show/HOHAUSJO30MX">finden Sie hier</a>.
Object
<object data="https://gov.genealogy.net/item/show/HOHAUSJO30MX" width="600" height="400"></object>
Iframe
Javascript
<script>
fetch('https://gov.genealogy.net/item/show/HOHAUSJO30MX') .then(response => response.text()) .then(data => { document.getElementById('external-content').innerHTML = data; }) .catch(error => { console.error('Error loading external content:', error); });
</script>