Commit 3e255749 authored by fred's avatar fred
Browse files

dynamically create link to go back to panikdb

parent d1207dc0
......@@ -1195,6 +1195,21 @@ nav#program li {
font-size: 1em;
}
#panikdb {
position: absolute;
top: 0px;
right: 25px;
background: #3a3a3a;
color: white;
padding: 10px 10px;
-webkit-transform-origin: top right;
-webkit-transform: rotate(270deg);
-moz-transform-origin: top right;
-moz-transform: rotate(270deg);
transform-origin: top right;
transform: rotate(270deg);
}
/*******************************/
/**** VARIANTES ****************/
/*******************************/
......
......@@ -411,6 +411,17 @@ $(function() {
$('#nav-search a').unbind('click').on('click', navsearch_click);
$('#nav-search form').unbind('submit').on('submit', navsearch_click);
if (document.cookie.indexOf('panikdb=on')) {
panikdb_path = null;
if (window.location.pathname.indexOf('/emissions/') == 0) {
panikdb_path = window.location.pathname;
} else if (window.location.pathname.indexOf('/news/') == 0) {
panikdb_path = '/emissions' + window.location.pathname;
}
if (panikdb_path) {
$('<a id="panikdb" href="http://panikdb.radiopanik.org' + panikdb_path + '">Voir dans PanikDB</a>').appendTo($main);
}
}
}
init();
});
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment