Move edit JS to page-specific script file

This commit is contained in:
John Firebaugh 2012-09-29 09:23:32 -07:00 committed by Tom Hughes
parent d62e8c43f3
commit e83d43ca82
3 changed files with 37 additions and 36 deletions

View file

@ -0,0 +1,32 @@
function maximiseMap() {
$("#left").hide();
$("#greeting").hide();
$("#tabnav").hide();
$("#content").css("top", "0px");
if ($("html").attr("dir") == "ltr") {
$("#content").css("left", "0px");
} else {
$("#content").css("right", "0px");
}
handleResize();
}
function minimiseMap() {
$("#left").show();
$("#greeting").show();
$("#tabnav").show();
$("#content").css("top", "30px");
if ($("html").attr("dir") == "ltr") {
$("#content").css("left", "185px");
} else {
$("#content").css("right", "185px");
}
handleResize();
}
$(document).ready(handleResize);
$(window).resize(handleResize);