Merge branch 'master' of https://github.com/r888888888/danbooru
This commit is contained in:
@@ -341,13 +341,16 @@
|
|||||||
$("#image-resize-link").click(function(e) {
|
$("#image-resize-link").click(function(e) {
|
||||||
var $link = $(e.target);
|
var $link = $(e.target);
|
||||||
var $image = $("#image");
|
var $image = $("#image");
|
||||||
$image.removeAttr("src");
|
|
||||||
$image.attr("src", "https://www.google.com")
|
|
||||||
$image.attr("src", $link.attr("href"));
|
$image.attr("src", $link.attr("href"));
|
||||||
|
$image.css("opacity", "0.25");
|
||||||
$image.width($image.data("original-width"));
|
$image.width($image.data("original-width"));
|
||||||
$image.height($image.data("original-height"));
|
$image.height($image.data("original-height"));
|
||||||
|
$image.on("load", function() {
|
||||||
|
$image.css("opacity", "1");
|
||||||
|
$("#image-resize-notice").hide();
|
||||||
|
});
|
||||||
|
$("#image-resize-notice").html("Loading...");
|
||||||
Danbooru.Note.Box.scale_all();
|
Danbooru.Note.Box.scale_all();
|
||||||
$("#image-resize-notice").hide();
|
|
||||||
$image.data("scale_factor", 1);
|
$image.data("scale_factor", 1);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,12 +12,14 @@
|
|||||||
|
|
||||||
<p style="text-align: center;">Type in your favorite anime, manga, or character (last name first). Here are some examples:</p>
|
<p style="text-align: center;">Type in your favorite anime, manga, or character (last name first). Here are some examples:</p>
|
||||||
|
|
||||||
<% @presenter.each do |tag, post_set| %>
|
<% cache("intro-page", :expires_in => 1.hour) do %>
|
||||||
<div class="posts">
|
<% @presenter.each do |tag, post_set| %>
|
||||||
<h2><%= link_to tag, posts_path(:tags => tag) %></h2>
|
<div class="posts">
|
||||||
<%= post_set.presenter.post_previews_html(self) %>
|
<h2><%= link_to tag, posts_path(:tags => tag) %></h2>
|
||||||
<div class="clearfix"></div>
|
<%= post_set.presenter.post_previews_html(self) %>
|
||||||
</div>
|
<div class="clearfix"></div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ module Danbooru
|
|||||||
class Configuration
|
class Configuration
|
||||||
# The version of this Danbooru.
|
# The version of this Danbooru.
|
||||||
def version
|
def version
|
||||||
"2.23.0"
|
"2.23.1"
|
||||||
end
|
end
|
||||||
|
|
||||||
# The name of this Danbooru.
|
# The name of this Danbooru.
|
||||||
|
|||||||
Reference in New Issue
Block a user