mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-02 01:39:29 +01:00
CSS Gradient
This commit is contained in:
@@ -1,8 +1,24 @@
|
||||
$(document).ready(function () {
|
||||
//Mark current active link
|
||||
$(document).ready(function () {
|
||||
$("#nav li a").each(function () {
|
||||
var hreflink = $(this).attr("href");
|
||||
if (hreflink == location.href.split("/").pop()) {
|
||||
$(this).parent().addClass("selected");
|
||||
}
|
||||
});
|
||||
});
|
||||
//Resize #main to fit window size
|
||||
$(document).ready(function () {
|
||||
windowWidth = $(window).width();
|
||||
windowHeight = $(window).height();
|
||||
menuWidth = $("#nav").width();
|
||||
$("#main").width(windowWidth - menuWidth - 40);
|
||||
});
|
||||
|
||||
//On window resize
|
||||
$(window).resize(function () {
|
||||
windowWidth = $(window).width();
|
||||
windowHeight = $(window).height();
|
||||
menuWidth = $("#nav").width();
|
||||
$("#main").width(windowWidth - menuWidth - 40);
|
||||
});
|
||||
Reference in New Issue
Block a user