From ebb26eabf21a0946cbecf316d704a890adfd75ef Mon Sep 17 00:00:00 2001
From: laurentheirendt <laurent.heirendt@uni.lu>
Date: Wed, 24 Apr 2019 22:52:16 +0200
Subject: [PATCH] remove extra js

---
 theme/js/loadhtmlslides.js | 41 --------------------------------------
 1 file changed, 41 deletions(-)
 delete mode 100644 theme/js/loadhtmlslides.js

diff --git a/theme/js/loadhtmlslides.js b/theme/js/loadhtmlslides.js
deleted file mode 100644
index 8f92a6ca..00000000
--- a/theme/js/loadhtmlslides.js
+++ /dev/null
@@ -1,41 +0,0 @@
-// Modified from markdown.js from Hakim to handle external html files
-(function () {
-    /*jslint loopfunc: true, browser: true*/
-    /*globals alert*/
-    'use strict';
-
-    var querySlidingHtml = function () {
-        var sections = document.querySelectorAll('[data-html]'),
-            section, j, jlen;
-
-        for (j = 0, jlen = sections.length; j < jlen; j++) {
-            section = sections[j];
-
-            if (section.getAttribute('data-html').length) {
-
-                var xhr = new XMLHttpRequest(),
-                    url = section.getAttribute('data-html'),
-                    cb = function () {
-                        if (xhr.readyState === 4) {
-                            if (xhr.status >= 200 && xhr.status < 300) {
-                                section.innerHTML = xhr.responseText;
-                            } else {
-                                section.outerHTML = '<section data-state="alert">ERROR: The attempt to fetch ' + url + ' failed with the HTTP status ' + xhr.status + '. Check your browser\'s JavaScript console for more details.</p></section>';
-                            }
-                        }
-                    };
-
-                xhr.onreadystatechange = cb;
-
-                xhr.open('GET', url, false);
-                try {
-                    xhr.send();
-                } catch (e) {
-                    alert('Failed to get file' + url + '.' + e);
-                }
-            }
-        }
-    };
-
-    querySlidingHtml();
-})();
-- 
GitLab