Skip to content

Commit

Permalink
修正jquery库引用为CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
jzwalk committed Feb 2, 2017
1 parent cde1568 commit ae4ec0f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SlimBox2/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public static function headlink($cssUrl) {
$links = '<link rel="stylesheet" type="text/css" href="'.$SlimBox2_url.'css/slimbox2.css" />
';
if($Settings->jquerySelect != "false"){
$links .= '<script type="text/javascript" src="'.$Options->adminUrl.'js/jquery.js"></script>
$links .= '<script type="text/javascript" src="http://cdn.staticfile.org/jquery/1.8.3/jquery.min.js"></script>
';
}
echo $links;
Expand Down
2 changes: 1 addition & 1 deletion SlimBox2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

## 更新记录 ##

- jquery库从google改为typecho本地,默认选择.post-content适应1.0主题。([@羽中](https://github.com/jzwalk)
- jquery库从google改为staticfile.org,默认选择.post-content适应1.0主题。([@羽中](https://github.com/jzwalk)

#### v1.0.5
- 使用[林木木的代码](http://immmmm.com/slimbox2-js-picture-box-adaptive.html)修复`图片灯箱自适应`功能;
Expand Down
3 changes: 2 additions & 1 deletion Zan/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ public static function headlink() {
}
public static function footlink() {
//echo Typecho_Common::url('action/WeChat?customreply', '');
$script = '<script type="text/javascript" src="'.Helper::options()->adminUrl.'js/jquery.js"></script>
$script = '<script type="text/javascript">//<![CDATA[
window.jQuery || document.write("<script type=\"text/javascript\" src=\"http://cdn.staticfile.org/jquery/1.8.3/jquery.min.js\"><\/script>")//]]></script>
';
$script .= "<script type=\"text/javascript\">";
$script .= '$(document).ready(function(){
Expand Down

0 comments on commit ae4ec0f

Please sign in to comment.