-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
126 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,24 @@ function switchNightMode(){ | |
} | ||
})(); | ||
|
||
//相册排版by 熊猫小A | ||
(function(){ | ||
var base = 50; | ||
$.each($('.photos'), function(i, photoSet){ | ||
$.each($(photoSet).children(), function(j, item){ | ||
var img = new Image(); | ||
img.src = $(item).find('img').attr('src'); | ||
img.onload = function(){ | ||
var w = parseFloat(img.width); | ||
var h = parseFloat(img.height); | ||
$(item).css('width', w*base/h +'px'); | ||
$(item).css('flex-grow', w*base/h); | ||
$(item).find('div').css('padding-top', h/w*100+'%'); | ||
}; | ||
}); | ||
}); | ||
})(); | ||
|
||
|
||
|
||
//pjax 刷新 | ||
|
@@ -113,14 +131,10 @@ function pjax_complete(){ | |
function PreFancybox(){ | ||
$("#post img").each(function(){ | ||
$(this).wrap(function(){ | ||
if($(this).is(".bq")) | ||
if($(this).is(".bq") || $(this).is("#feedme-content img")) | ||
{ | ||
return ''; | ||
} | ||
if($(this).is("#feedme-content img")) | ||
{ | ||
return ''; | ||
} | ||
return '<a data-fancybox="gallery" no-pjax data-type="image" href="' + $(this).attr("src") + '" class="light-link"></a>'; | ||
}); | ||
}); | ||
|
@@ -129,12 +143,15 @@ function PreFancybox(){ | |
function imageinfo(){ | ||
$("#post img").each(function(){ | ||
$(this).wrap(function(){ | ||
if($(this).is(".bq")) | ||
if($(this).is(".bq") || $(this).is("#feedme-content img")) | ||
{ | ||
return ''; | ||
} | ||
if($(this).is("#feedme-content img")) | ||
if($(this).is("div.photos figure div img")) | ||
{ | ||
$(this).addClass("lazyload"); | ||
$(this).attr('data-original',$(this).attr("src")); | ||
$(this).attr('src','https://cdn.jsdelivr.net/gh/youranreus/[email protected]/G/IMG/loading2.gif'); | ||
return ''; | ||
} | ||
$(this).addClass("lazyload"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/jquery.pjax.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/jquery-lazyload/jquery.lazyload.min.js"></script> | ||
<script src="<?php $this->options->themeUrl('JS/message.min.js'); ?>"></script> | ||
<script src="<?php $this->options->themeUrl('JS/X.js'); ?>?v=2.3.1"></script> | ||
<script src="<?php $this->options->themeUrl('JS/X.js'); ?>?v=2.3.2"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/prism.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/tocbot.min.js"></script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,9 @@ | |
<title><?php $this->archiveTitle(' » ', '', ' | '); ?><?php $this->options->title(); ?></title> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script> | ||
<link rel="stylesheet" href="<?php $this->options->themeUrl('CSS/G.css'); ?>?v=2.3.1" rel="stylesheet" /> | ||
<link rel="stylesheet" href="<?php $this->options->themeUrl('CSS/G.css'); ?>?v=2.3.5" rel="stylesheet" /> | ||
<link rel="stylesheet" href="<?php $this->options->themeUrl('CSS/message.css'); ?>" rel="stylesheet" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/youranreus/G/CSS/shortcode.G.css" rel="stylesheet" /> | ||
<link rel="stylesheet" href="<?php $this->options->themeUrl('CSS/shortcode.G.css'); ?>" rel="stylesheet" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/youranreus/G/CSS/OwO.min.css" rel="stylesheet" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/themes/prism.css" rel="stylesheet" /> | ||
<?php if ($this->options->enablenprogress == 1): ?> | ||
|
@@ -23,7 +23,7 @@ | |
window.QMSG_GLOBALS = { | ||
DEFAULTS:{ | ||
showClose:false, | ||
timeout:15000, | ||
timeout:1000, | ||
html: false | ||
} | ||
} | ||
|
@@ -167,7 +167,7 @@ | |
<script> | ||
<?php echo $this->options->CustomJSh;?> | ||
</script> | ||
<link href="<?php $this->options->themeUrl('CSS/dark.css'); ?>" rel="<?php if($_COOKIE['night'] != '1'){echo 'alternate ';} ?>stylesheet" type="text/css" title="dark"> | ||
<link href="<?php $this->options->themeUrl('CSS/dark.css'); ?>?v=2.3.3" rel="<?php if($_COOKIE['night'] != '1'){echo 'alternate ';} ?>stylesheet" type="text/css" title="dark"> | ||
<link rel="icon" type="image/png" href="<?php $this->options->favicon(); ?>"> | ||
<link href="<?php $this->options->favicon(); ?>" rel="icon"> | ||
<link rel='dns-prefetch' href='//s.w.org'> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters