* Created js popup for some of the secondary links in the main navbar
* aliases/implications must now be approved * anyone can now submit an alias
This commit is contained in:
@@ -16,6 +16,18 @@ $(document).ready(function() {
|
||||
$(this).hide();
|
||||
});
|
||||
|
||||
// More link
|
||||
$("#site-map-link").click(function(e) {
|
||||
$("#more-links").toggle();
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
});
|
||||
$("#more-links").hide().offset({top: $("#site-map-link").offset().top + $("#site-map-link").height() + 10, left: $("#site-map-link").offset().left});
|
||||
|
||||
$(document).click(function(e) {
|
||||
$("#more-links").hide();
|
||||
});
|
||||
|
||||
// Ajax links
|
||||
$("a[data-remote=true]").click(function(e) {
|
||||
Danbooru.ajax_start(e.target);
|
||||
|
||||
@@ -48,3 +48,16 @@ footer#page-footer {
|
||||
div.clearfix {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
div#more-links {
|
||||
z-index: 5000;
|
||||
position: absolute;
|
||||
background: white;
|
||||
border: 1px solid #999;
|
||||
width: 8em;
|
||||
line-height: 1.3em;
|
||||
padding: 0.2em 0.6em;
|
||||
-moz-box-shadow: 2px 2px 2px #ccc;
|
||||
-webkit-box-shadow: 2px 2px 2px #ccc;
|
||||
box-shadow: 2px 2px 2px #ccc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user