--- a/web/mindex.html Thu Jan 24 16:28:04 2013 +0100
+++ b/web/mindex.html Thu Jan 24 16:30:41 2013 +0100
@@ -3,10 +3,13 @@
xmlns:og="http://ogp.me/ns#"
xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
- <meta charset="utf-8">
- <title>The End, etc.</title>
+ <meta charset="UTF-8">
+ <title>THE END, ETC. UNE EXPÉRIENCE WEB DE LAETITIA MASSON</title>
- <meta name="description" content="Géraldine Michelon présente The End, etc. Un projet écrit et réalisé par Laetitia Masson. Une coproduction France Télévisions - Memo Prod avec la participation du Centre national du cinéma et de l'image animée, Incandescence et Institut de recherche et de l'innovation du Centre Georges Pompidou, en participation avec France Inter.">
+ <meta name="description" content="Géraldine Michelon présente The End, etc. Un projet écrit et réalisé par Laetitia Masson. Une coproduction France Télévisions - Memo Prod avec la participation du Centre national du cinéma et de l'image animée, Incandescence et Institut de recherche et de l'innovation du Centre Georges Pompidou, en association avec France Inter.">
+
+ <meta name="keywords" content="The End, etc, The End, Laetitia Masson, France Télévisions, CNC, Centre national du cinéma et de l'image animée, Nouvelles écritures, Memo Prod, Incandescence, IRI, Institut de recherche et de l'innovation du Centre Georges Pompidou, France Inter, expérience, une expérience de cinéma, film, production Géraldine Michelon, Œuvre en ligne, musique Jean-Louis Murat, engagement, désangagement, Élodie Bouchez, Aurore Clément, Haïm Cohen, Fred et Farid, Denis Jeambar, Jérôme Kircher, Elliot Perlman, Christian Tortu, Philippe Venere, André Wilms, La Marseillaise, L'Internationale, l'idée, Ni Dieu ni maître, Fiction, Portraits ">
+
<link rel="icon" href="static/res/img/favicon.ico" />
<!-- Mobile Specific Metas -->
@@ -102,8 +105,8 @@
</ul>
<ul id="socialMedia" class="floatR">
<li><a class="pointer" onclick="popup('popUpDiv', 'content')">Mentions légales</a></li><!--
- --><li class="socialLogo"><a href="http://www.facebook.com/share.php?u=http://www.clients.incandescence.com/theend/" target="_blank"><img alt="Partager The End sur Facebook" src="static/res/img/footer/facebook.png"/></a></li><!--
- --><li class="socialLogo"><a href="https://twitter.com/share?url=https%3A%2F%2Fwww.clients.incandescence.com%2Ftheend%2F" target="_blank"><img alt="Partager The End sur Twitter" src="static/res/img/footer/twitter.png"/></a></li>
+ --><li class="socialLogo"><a id="sharefb" target="_blank"><img alt="Partager The End sur Facebook" src="static/res/img/footer/facebook.png"/></a></li><!--
+ --><li class="socialLogo"><a id="sharetw" target="_blank"><img alt="Partager The End sur Twitter" src="static/res/img/footer/twitter.png"/></a></li>
</ul>
</footer>
<section id="popUpDiv" style="display:none;">
@@ -147,6 +150,18 @@
}
$(window).resize(resize);
window.onorientationchange = resize;
+
+ // Set the share url
+ var replaceAll = function(txt, replace, with_this) {
+ return txt.replace(new RegExp(replace, 'g'),with_this);
+ }
+ var urlToShare = document.URL.replace("mindex.html", "");
+ var urlToShareTw = replaceAll(urlToShare, ":", "%3A");
+ urlToShareTw = replaceAll(urlToShareTw, "/", "%2F");
+ $("#sharefb").attr('href', "http://www.facebook.com/share.php?u=" + urlToShare);
+ $("#sharetw").attr('href', "https://twitter.com/share?url=" + urlToShareTw);
+ console.log(urlToShare);
+ console.log(urlToShareTw);
});
</script>
</body>