Skip to content

Commit 498121c

Browse files
committed
更新jQuery库
1 parent 8c5639d commit 498121c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

page-steam.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
/**
44
Template Name: Steam游戏库
5-
Template Author:老蘑菇&梨花镇的阿肾
5+
Template Author:蘑菇君&阿肾
66
*/
77

88
get_header(); ?>
9+
910
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
1011
<style>
1112
#steam-game-div {
@@ -206,7 +207,9 @@
206207
</ul>
207208
</div>
208209

209-
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.0/dist/jquery.min.js"></script>
210+
<script type="text/javascript">
211+
window.jQuery || document.write('<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"><\/script>')
212+
</script>
210213
<script src="https://cdn.jsdelivr.net/npm/lazyload@2.0.0-rc.2/lazyload.js"></script>
211214
<script type="text/javascript">
212215
$(document).ready(function() {
@@ -259,5 +262,6 @@ function GetSteamData(limit, page) {
259262
});
260263
}
261264
</script>
265+
262266
<?php endwhile; else: endif;?>
263267
<?php get_footer();

0 commit comments

Comments
 (0)