diff options
-rw-r--r-- | assets/js/ps-app.js | 42 | ||||
-rw-r--r-- | ps/gfx/index.html | 4 | ||||
-rw-r--r-- | ps/index-002.html | 6 |
3 files changed, 28 insertions, 24 deletions
diff --git a/assets/js/ps-app.js b/assets/js/ps-app.js index 7bb4b9c..c599cf2 100644 --- a/assets/js/ps-app.js +++ b/assets/js/ps-app.js @@ -2,26 +2,28 @@ $(document).ready(function() { - // Make each .media section clickable to reach ./<id>/ - [ 'gfx', 'txt', 'vdo' ].forEach(function(id) { - $('#' + id) - .click(function(e) { - window.location = `/${id}/`; - return false - }) - .mouseover(function(e) { - e.target.style.cursor = 'pointer' - return false - }) - .mouseout(function(e) { - e.target.style.cursor = 'not-allowed' - return false - }) - }) - $('.media').mouseout(function(e) { - e.target.style.cursor = 'auto' - return false - }) + if ($('body.ps.home')) { + // Make each .media section clickable to reach ./<id>/ + [ 'gfx', 'txt', 'vdo' ].forEach(function(id) { + $('#' + id) + .click(function(e) { + window.location = `/${id}/`; + return false + }) + .mouseover(function(e) { + e.target.style.cursor = 'pointer' + return false + }) + .mouseout(function(e) { + e.target.style.cursor = 'not-allowed' + return false + }) + }) + $('.media').mouseout(function(e) { + e.target.style.cursor = 'auto' + return false + }) + } // EN/FR switch $('footer') diff --git a/ps/gfx/index.html b/ps/gfx/index.html index ead1a1e..58202b7 100644 --- a/ps/gfx/index.html +++ b/ps/gfx/index.html @@ -200,7 +200,9 @@ Nous faisons <3 </p> </footer> + <script type="text/javascript" src="/assets/js/jquery.min.js"></script> <script type="text/javascript" src="/assets/js/d3.v4.min.js"></script> - <script src="sine.js"></script> + <script type="text/javascript" src="/assets/js/ps-app.js"></script> + <script type="text/javascript" src="sine.js"></script> </body> </html> diff --git a/ps/index-002.html b/ps/index-002.html index 7a1853e..a9ea39b 100644 --- a/ps/index-002.html +++ b/ps/index-002.html @@ -5,9 +5,6 @@ <title> Petites Singularités </title> <link rel="stylesheet" href="../assets/css/home.css"> <!link rel="stylesheet" href="ui/css/mobile.css"> - <script type="text/javascript" src="../assets/js/jquery.min.js"></script> - <script type="text/javascript" src="../assets/js/d3.v4.min.js"></script> - <script type="text/javascript" src="../assets/js/ps-app.js"></script> <!-- Onebox rich link --> <meta property="og:site_name" content="Petites Singularités"> <meta property="og:description" content="Petites Singularités est une association sans but lucratif établie à Bruxelles. Nous pensons l’organisation et l’action collectives dans la production du sens au regard de la localité et de l’hybridation des humains et des technologies libres."> @@ -310,5 +307,8 @@ </section> </article> </main> + <script type="text/javascript" src="../assets/js/jquery.min.js"></script> + <script type="text/javascript" src="../assets/js/d3.v4.min.js"></script> + <script type="text/javascript" src="../assets/js/ps-app.js"></script> </body> </html> |