# HG changeset patch # User veltr # Date 1360086089 -3600 # Node ID 124f7745a3d6668d33020064f1e84ef7044df4fb # Parent 8197ce074d6d746b290e433049f920cf02f5ac74 Pause on lightbox and minor corrections diff -r 8197ce074d6d -r 124f7745a3d6 integration/js/contentplayer.js --- a/integration/js/contentplayer.js Fri Jan 25 18:55:07 2013 +0100 +++ b/integration/js/contentplayer.js Tue Feb 05 18:41:29 2013 +0100 @@ -514,6 +514,13 @@ $("#btnInfo, .lightBoxClose").click(function() { $(".lightBoxWrap").toggle(); + if (currentMedia) { + if ($(".lightBoxWrap").is(":visible")) { + currentMedia.pause(); + } else { + currentMedia.play(); + } + } return false; }); diff -r 8197ce074d6d -r 124f7745a3d6 integration/js/tagplayer.js --- a/integration/js/tagplayer.js Fri Jan 25 18:55:07 2013 +0100 +++ b/integration/js/tagplayer.js Tue Feb 05 18:41:29 2013 +0100 @@ -593,6 +593,14 @@ $("#btnInfo, .lightBoxClose").click(function() { $(".lightBoxWrap").toggle(); + if (currentMedia) { + if ($(".lightBoxWrap").is(":visible")) { + currentMedia.pause(); + } else { + currentMedia.play(); + } + } + return false; }); diff -r 8197ce074d6d -r 124f7745a3d6 src/theend/static/theend/js/contentplayer.js --- a/src/theend/static/theend/js/contentplayer.js Fri Jan 25 18:55:07 2013 +0100 +++ b/src/theend/static/theend/js/contentplayer.js Tue Feb 05 18:41:29 2013 +0100 @@ -513,6 +513,13 @@ $("#btnInfo, .lightBoxClose").click(function() { $(".lightBoxWrap").toggle(); + if (currentMedia) { + if ($(".lightBoxWrap").is(":visible")) { + currentMedia.pause(); + } else { + currentMedia.play(); + } + } return false; }); diff -r 8197ce074d6d -r 124f7745a3d6 src/theend/static/theend/js/tagplayer.js --- a/src/theend/static/theend/js/tagplayer.js Fri Jan 25 18:55:07 2013 +0100 +++ b/src/theend/static/theend/js/tagplayer.js Tue Feb 05 18:41:29 2013 +0100 @@ -593,6 +593,14 @@ $("#btnInfo, .lightBoxClose").click(function() { $(".lightBoxWrap").toggle(); + if (currentMedia) { + if ($(".lightBoxWrap").is(":visible")) { + currentMedia.pause(); + } else { + currentMedia.play(); + } + } + return false; }); diff -r 8197ce074d6d -r 124f7745a3d6 src/theend/templates/theend/home.html --- a/src/theend/templates/theend/home.html Fri Jan 25 18:55:07 2013 +0100 +++ b/src/theend/templates/theend/home.html Tue Feb 05 18:41:29 2013 +0100 @@ -77,13 +77,13 @@

Dans une expérience de cinéma inédite sur internet, la cinéaste propose à chacun de s’approprier sa matière première. Pas d’histoire prédéfinie, pas de fin imposée.
- Fin du monde ? + Fin du monde ?
- Fin d'une ère ? + Fin d'une ère ?
- Fin d'un idéal ? + Fin d'un idéal ?
- Début d'autre chose ? + Début d'autre chose ?
Ceci est votre expérience.

@@ -95,7 +95,7 @@
Vous pouvez recommencer à l’infini.
- Autant de propositions que de spectateurs... + Autant de propositions que de spectateurs…

THE END, ETC.

diff -r 8197ce074d6d -r 124f7745a3d6 src/theend/templates/theend/tag.html --- a/src/theend/templates/theend/tag.html Fri Jan 25 18:55:07 2013 +0100 +++ b/src/theend/templates/theend/tag.html Tue Feb 05 18:41:29 2013 +0100 @@ -1,7 +1,7 @@ {% extends "theend/home.html" %} {% load static %} -{% block title_page_specific %}Tag "{{tag}}"{% endblock %} +{% block title_page_specific %}Mot-clé "{{tag}}"{% endblock %} {% block body_class %}player{% endblock %} @@ -57,7 +57,7 @@

- +