Pause on lightbox and minor corrections
authorveltr
Tue, 05 Feb 2013 18:41:29 +0100
changeset 118 124f7745a3d6
parent 117 8197ce074d6d
child 119 e40392f60149
Pause on lightbox and minor corrections
integration/js/contentplayer.js
integration/js/tagplayer.js
src/theend/static/theend/js/contentplayer.js
src/theend/static/theend/js/tagplayer.js
src/theend/templates/theend/home.html
src/theend/templates/theend/tag.html
--- 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;
     });
     
--- 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;
     });
     
--- 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;
     });
     
--- 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;
     });
     
--- 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 @@
                     <p>
                         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.
                         <br />
-                        Fin du monde ?
+                        Fin du monde&nbsp;?
                         <br />
-                        Fin d'une ère ? 
+                        Fin d'une ère&nbsp;? 
                         <br />
-                        Fin d'un idéal ? 
+                        Fin d'un idéal&nbsp;? 
                         <br />
-                        Début d'autre chose ? 
+                        Début d'autre chose&nbsp;? 
                         <br />
                         Ceci est votre expérience.
                     </p>
@@ -95,7 +95,7 @@
                         <br />
                         Vous pouvez recommencer à l’infini. 
                         <br />
-                        Autant de propositions que de spectateurs...
+                        Autant de propositions que de spectateurs…
                     </p>            
                     <h4>THE END, ETC.</h4>
                     <p>
--- 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 @@
             <div id="tag_container">
 
                 <form id="form_tag">
-                    <input type="text" name="tag" placeholder="Entrez vos tags ici" />
+                    <input type="text" name="tag" placeholder="Entrez vos mots-clés ici" />
                     <input type="submit" value="OK" />
                 </form>