-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfindthewords.html
28 lines (27 loc) · 1.18 KB
/
findthewords.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<title>Meine H5P-Seite</title>
<link rel="stylesheet" href="https://h5p.org/sites/all/modules/h5p/library/styles/h5p.css" />
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://h5p.org/sites/all/modules/h5p/library/js/h5p-resizer.js"></script>
</head>
<body>
<div class="h5p-content">
<iframe src="https://www.einstiegh5p.de/h5p/embed/41962" width="450" height="450" frameborder="0" allowfullscreen="allowfullscreen" allow="geolocation *; microphone *; camera *; midi *; encrypted-media *" title="Wortgitter - Organisationslehre"></iframe><script src="https://www.einstiegh5p.de/sites/all/modules/h5p/library/js/h5p-resizer.js" charset="UTF-8"></script>
</div>
</div>
<script>
// Code zum Einbetten und Anpassen der H5P-Größe
H5P.externalDispatcher.on('resize', function() {
H5P.jQuery('.h5p-content').each(function() {
H5P.jQuery(this).height(H5P.jQuery(this).width() * 0.5625); // 16:9 aspect ratio
});
});
H5P.jQuery(window).resize(function() {
H5P.externalDispatcher.trigger('resize');
});
H5P.externalDispatcher.trigger('resize');
</script>
</body>
</html>