From 1c99d7ed61b1bb4c5b84e5308aa82951fd184bf3 Mon Sep 17 00:00:00 2001 From: Svein-Tore Griff With Date: Tue, 22 Sep 2015 17:58:55 +0200 Subject: [PATCH 1/3] Remove the https since there are some servers that doesn't support it --- h5p.classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5p.classes.php b/h5p.classes.php index d4aed45..06cd47c 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -2377,7 +2377,7 @@ class H5PCore { $platformInfo['uuid'] = $this->h5pF->getOption('site_uuid', ''); // Adding random string to GET to be sure nothing is cached $random = substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 5); - $json = $this->h5pF->fetchExternalData('https://h5p.org/libraries-metadata.json?api=1&platform=' . urlencode(json_encode($platformInfo)) . '&x=' . urlencode($random)); + $json = $this->h5pF->fetchExternalData('http://h5p.org/libraries-metadata.json?api=1&platform=' . urlencode(json_encode($platformInfo)) . '&x=' . urlencode($random)); if ($json !== NULL) { $json = json_decode($json); if (isset($json->libraries)) { From ef3cbd92c5131ebd56b9a835b68177a36f15944a Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Mon, 28 Sep 2015 15:30:25 +0200 Subject: [PATCH 2/3] Improved semi-fullscreen? --- styles/h5p.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/styles/h5p.css b/styles/h5p.css index d95af3e..8d8e9a0 100644 --- a/styles/h5p.css +++ b/styles/h5p.css @@ -49,6 +49,11 @@ html.h5p-iframe .h5p-semi-fullscreen .h5p-content { position: relative; z-index: 1; } +body.h5p-semi-fullscreen { + position: fixed; + width: 100%; + height: 100%; +} .h5p-container.h5p-semi-fullscreen { position: fixed; top: 0; From cb8640195ebd8b0f8c3903ae6a831a7bc66966a1 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Fri, 2 Oct 2015 08:52:11 +0200 Subject: [PATCH 3/3] Avoid thin grey lines around the iframe when using fullscreen on high-res devices. --- styles/h5p.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/styles/h5p.css b/styles/h5p.css index 8d8e9a0..2ccef8e 100644 --- a/styles/h5p.css +++ b/styles/h5p.css @@ -49,6 +49,9 @@ html.h5p-iframe .h5p-semi-fullscreen .h5p-content { position: relative; z-index: 1; } +.h5p-iframe-wrapper.h5p-fullscreen { + background-color: #000; +} body.h5p-semi-fullscreen { position: fixed; width: 100%;