Code layout change.
[wolnelektury.git] / src / wolnelektury / static / js / widget.js
diff --git a/src/wolnelektury/static/js/widget.js b/src/wolnelektury/static/js/widget.js
new file mode 100644 (file)
index 0000000..3b680fc
--- /dev/null
@@ -0,0 +1,8 @@
+var WOLNELEKTURY_LOADED;
+if (WOLNELEKTURY_LOADED == undefined) {
+    var iframe = document.createElement('iframe');
+    iframe.setAttribute('style', 'width: 100%; height: 140px; border: none; box-shadow: 0 0 .5rem #191919;');
+    iframe.setAttribute('src', '//wolnelektury.pl/widget.html');
+    document.getElementById('wl').appendChild(iframe);
+    WOLNELEKTURY_LOADED = true;
+}
\ No newline at end of file