This commit is contained in:
16
skins/posart/js/jquery.masonry.min.js
vendored
16
skins/posart/js/jquery.masonry.min.js
vendored
File diff suppressed because one or more lines are too long
19
skins/posart/js/jquery.min.js
vendored
19
skins/posart/js/jquery.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,17 +1,19 @@
|
||||
/*
|
||||
* Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
|
||||
* Solo - A small and beautiful blogging system written in Java.
|
||||
* Copyright (c) 2010-2019, b3log.org & hacpai.com
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/**
|
||||
* @fileoverview ease js.
|
||||
|
2
skins/posart/js/posart.min.js
vendored
2
skins/posart/js/posart.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,17 +1,19 @@
|
||||
/*
|
||||
* Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
|
||||
* Solo - A small and beautiful blogging system written in Java.
|
||||
* Copyright (c) 2010-2019, b3log.org & hacpai.com
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
if($.browser.msie&&($.browser.version < "9.0")){
|
||||
$('html').addClass('ie');
|
||||
|
2
skins/posart/js/themes.min.js
vendored
2
skins/posart/js/themes.min.js
vendored
@@ -1 +1 @@
|
||||
if($.browser.msie&&$.browser.version<"9.0"){$("html").addClass("ie")}$(document).ready(function(){$(".sidebar").masonry({singleMode:true});arrivedAtBottom=$(window).scrollTop()>=$(document).height()-$(window).height()-30;$(window).scroll(function(event){event.stopPropagation();arrivedAtBottom=$(window).scrollTop()>=$(document).height()-$(window).height()-30;if(arrivedAtBottom){$(".totop").removeClass("go_bottom");$(".totop").addClass("go_top")}else{$(".totop").removeClass("go_top");$(".totop").addClass("go_bottom")}});$(".totop").click(function(){if(arrivedAtBottom){$("html,body").animate({scrollTop:0},500)}else{$("html,body").animate({scrollTop:$(document).height()-$(window).height()},500)}});$(".tocomments").click(function(){$("html,body").animate({scrollTop:$(".comments").offset().top-40},500)});$body=window.opera?document.compatMode=="CSS1Compat"?$("html"):$("body"):$("html,body");$(document).on("click","#comments-nav a",function(e){e.preventDefault();$.ajax({type:"GET",url:$(this).attr("href"),beforeSend:function(){$("#comments-nav").remove();$("#loading-comments").slideDown()},dataType:"html",success:function(out){$(".comment-list").remove();result=$(out).find(".comment-list");nextlink=$(out).find("#comments-nav");$("#loading-comments").slideUp(550);$("#loading-comments").after(result.fadeIn(800));$(".comment-list").after(nextlink)}})});$(document).on("click","#posts-nav a",function(e){e.preventDefault();$.ajax({type:"GET",url:$(this).attr("href"),beforeSend:function(){$("#posts-nav").remove();$("#loading-posts").slideDown()},dataType:"html",success:function(out){$(".posts-list").remove();result=$(out).find(".posts-list");nextlink=$(out).find("#posts-nav");$("#loading-posts").slideUp(550);$("#loading-posts").after(result.fadeIn(800));$(".posts-list").after(nextlink)}})})});
|
||||
$.browser.msie&&$.browser.version<"9.0"&&$("html").addClass("ie"),$(document).ready(function(){$(".sidebar").masonry({singleMode:!0}),arrivedAtBottom=$(window).scrollTop()>=$(document).height()-$(window).height()-30,$(window).scroll(function(o){o.stopPropagation(),arrivedAtBottom=$(window).scrollTop()>=$(document).height()-$(window).height()-30,arrivedAtBottom?($(".totop").removeClass("go_bottom"),$(".totop").addClass("go_top")):($(".totop").removeClass("go_top"),$(".totop").addClass("go_bottom"))}),$(".totop").click(function(){arrivedAtBottom?$("html,body").animate({scrollTop:0},500):$("html,body").animate({scrollTop:$(document).height()-$(window).height()},500)}),$(".tocomments").click(function(){$("html,body").animate({scrollTop:$(".comments").offset().top-40},500)}),$body=window.opera?"CSS1Compat"==document.compatMode?$("html"):$("body"):$("html,body"),$(document).on("click","#comments-nav a",function(o){o.preventDefault(),$.ajax({type:"GET",url:$(this).attr("href"),beforeSend:function(){$("#comments-nav").remove(),$("#loading-comments").slideDown()},dataType:"html",success:function(o){$(".comment-list").remove(),result=$(o).find(".comment-list"),nextlink=$(o).find("#comments-nav"),$("#loading-comments").slideUp(550),$("#loading-comments").after(result.fadeIn(800)),$(".comment-list").after(nextlink)}})}),$(document).on("click","#posts-nav a",function(o){o.preventDefault(),$.ajax({type:"GET",url:$(this).attr("href"),beforeSend:function(){$("#posts-nav").remove(),$("#loading-posts").slideDown()},dataType:"html",success:function(o){$(".posts-list").remove(),result=$(o).find(".posts-list"),nextlink=$(o).find("#posts-nav"),$("#loading-posts").slideUp(550),$("#loading-posts").after(result.fadeIn(800)),$(".posts-list").after(nextlink)}})})});
|
Reference in New Issue
Block a user