Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: includes/scripts/initialize-videos.html

Issue 29703633: Noissue - Abstracted embedded video for use in blog (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Created Feb. 20, 2018, 10:13 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « includes/index.tmpl ('k') | pages/test.html » ('j') | pages/test.html » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: includes/scripts/initialize-videos.html
===================================================================
new file mode 100644
--- /dev/null
+++ b/includes/scripts/initialize-videos.html
@@ -0,0 +1,7 @@
+<script>
+ document.addEventListener("DOMContentLoaded", function(event)
+ {
+ window.videos = [].slice.call(document.querySelectorAll(".video-parent"))
+ .map(function(parent) {return new Video(parent);});
+ });
+</script>
« no previous file with comments | « includes/index.tmpl ('k') | pages/test.html » ('j') | pages/test.html » ('J')

Powered by Google App Engine
This is Rietveld