From 43a6690902e70d2302c796064ce7939a601da4c0 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Wed, 19 Jul 2017 14:20:03 +0200 Subject: [PATCH] Ajout Vimeo --- index.html | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 3e1d1a5..c8462bb 100644 --- a/index.html +++ b/index.html @@ -124,7 +124,7 @@ -
+
@@ -173,6 +173,19 @@
+ + @@ -223,6 +236,16 @@ $('#youtubeModal').on('hidden.bs.modal', function () { $(this).find('.modal-body iframe')[0].src = ""; }); + + $('#vimeoModal').on('show.bs.modal', function (event) { + var button = $(event.relatedTarget); + var vimeo_id = button.data('vimeoid'); + var modal = $(this); + modal.find('.modal-body iframe')[0].src = 'https://player.vimeo.com/video/' + vimeo_id; + }); + $('#vimeoModal').on('hidden.bs.modal', function () { + $(this).find('.modal-body iframe')[0].src = ""; + });