mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-14 13:16:37 +00:00
Update header script to improve SEO support.
This commit is contained in:
parent
cf5e6b9f48
commit
337f90ef26
|
@ -2,10 +2,10 @@
|
|||
z-index: 1000;
|
||||
width: auto;
|
||||
|
||||
height: 42px;
|
||||
|
||||
box-shadow: 1px 1px 2px #000;
|
||||
}
|
||||
|
||||
.pvl-navbar,
|
||||
.pvl-navbar-inner,
|
||||
.pvl-navbar-inner a {
|
||||
height: 42px;
|
||||
|
@ -20,6 +20,9 @@
|
|||
}
|
||||
|
||||
.pvl-navbar-inner a {
|
||||
height: 42px;
|
||||
overflow: hidden;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.pvl-navbar-inner a img {
|
||||
border: 0 !important;
|
||||
}
|
|
@ -1,6 +1,11 @@
|
|||
/**
|
||||
* Ponyville Live! Header Banner Include
|
||||
* Requires jQuery 1.8+
|
||||
*
|
||||
* Usage:
|
||||
* Immediately after <body> tag, add:
|
||||
* <a id="pvl_header_link" href="http://www.ponyvillelive.com/" target="_blank">Ponyville Live!</a>
|
||||
* <script type="text/javascript" src="http://www.ponyvillelive.com/static/header/script.js"></script>
|
||||
*/
|
||||
|
||||
if (jQuery) {
|
||||
|
@ -10,7 +15,16 @@ if (jQuery) {
|
|||
// Load supporting CSS.
|
||||
$("head").append("<link rel='stylesheet' href='//static.ponyvillelive.com/header/header.css' type='text/css' media='screen'>");
|
||||
|
||||
$("body").prepend('<div class="pvl-navbar" style="height: 42px; overflow: hidden;"><div class="pvl-navbar-inner"><div class="pvl-container"><a href="http://www.ponyvillelive.com/" target="_blank"><img src="//static.ponyvillelive.com/header/header_dark.png" alt="This station is a proud partner of Ponyville Live! - Ponyville Live, Bringing Pony People Together."></div></div></div>');
|
||||
// Move existing link to top of body if detected, or recreate.
|
||||
if ($('#pvl_header_link').length > 0)
|
||||
$(document.body).prepend($('#pvl_header_link').detach());
|
||||
else
|
||||
$(document.body).prepend('<a id="pvl_header_link" href="http://www.ponyvillelive.com/" target="_blank">Ponyville Live!</a>');
|
||||
|
||||
var header_link = $('#pvl_header_link');
|
||||
header_link.wrap('<div class="pvl-navbar-inner" />').wrap('<div class="pvl-navbar" />');
|
||||
header_link.html('<img src="//ponyvillelive.com/static/header/header_dark.png" alt="This station is a proud partner of Ponyville Live! - Ponyville Live, Bringing Pony People Together.">');
|
||||
|
||||
})(jQuery);
|
||||
|
||||
})(jQuery)
|
||||
}
|
Loading…
Reference in New Issue
Block a user