jeter20131220 3 jaren geleden
bovenliggende
commit
ff4646d398
2 gewijzigde bestanden met toevoegingen van 12 en 1 verwijderingen
  1. 11 0
      goto.js
  2. 1 1
      index.html

+ 11 - 0
goto.js

@@ -295,6 +295,17 @@ $('.btn-close').click(function() {
   });
 });
 
+$('#exampleModal').click(function() {
+  $('.youtube-video').each(function() {
+    this.contentWindow.postMessage('{"event": "command", "func": "stopVideo", "args": ""}', '*');
+  });
+});
+
 $('.stopplay').click(function() {
   document.getElementById("videotest").pause();
+});
+
+$('#exampleModal1').click(function() {
+  document.getElementById("videotest").pause();
+ 
 });

+ 1 - 1
index.html

@@ -1029,7 +1029,7 @@
 
 
 
-    <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
+    <div class="closeplay modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
         <div class="modal-dialog modal-lg">
             <div class="modal-content bg-transparent">
                 <div class="modal-header border-0">