Skip to content

Commit 33c1833

Browse files
committed
css和js文件移除type;
添加:文件引用.txt
1 parent 56f72dd commit 33c1833

File tree

6 files changed

+30
-16
lines changed

6 files changed

+30
-16
lines changed

cnblogs-article-nav.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
/**
1+
/**
22
功能: 博客园自动生成的目录,样式表
33
参考: http://www.cnblogs.com/marvin/p/ExtendWizNoteAutoNnavigation.html
44
http://www.cnblogs.com/asxinyu/p/Bolg_Category_For_BlogBeauty.html
55
*/
66

7-
<style type="text/css">
87
#sideToolbar {
98
position: fixed;
109
bottom: -12px;
@@ -152,5 +151,4 @@
152151
}
153152
#sideToolbar-up: hover {
154153
background: url("http://files.cnblogs.com/files/zhaoqingqing/sideToolbar.gif") no-repeat scroll -74px -62px transparent
155-
}
156-
</style>
154+
}

cnblogs-article-nav.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
/*
1+
/*
22
功能: 为博客园文章自动生成目录
33
原理: 抓取页面中的h1,h2,h3,生成<li>
44
参考: http://www.cnblogs.com/marvin/p/ExtendWizNoteAutoNnavigation.html
55
http://www.cnblogs.com/asxinyu/p/Bolg_Category_For_BlogBeauty.html
66
*/
77

8-
<script type='text/javascript'>
98
var a = $(document);
109
a.ready(function () {
1110
var b = $('body'),
@@ -104,4 +103,3 @@ a.ready(function () {
104103
}
105104
})
106105
});
107-
</script>

cnblogs-customfunc.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
/*
1+
/*
22
功能: 为博客自定义功能,比如推荐此文,Scrollbar;新功能添加在此
33
参考: http://www.cnblogs.com/marvin/p/ExtendWizNoteAutoNnavigation.html
44
http://www.cnblogs.com/asxinyu/p/Bolg_Category_For_BlogBeauty.html
55
*/
66

7-
<script type='text/javascript'>
87
jQuery.fn.wait = function (func, times, interval) {
98
var _times = times || -1,
109
//100次
@@ -99,4 +98,3 @@ function cutstr(str, len) {
9998
return str;
10099
}
101100
}
102-
</script>

cnblogs-markdown.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
来源:http://www.cnblogs.com/MicroTeam/p/improve-cnblogs-markdown-css.html
44
*/
55

6-
<style type="text/css">
76
.cnblogs-markdown {
87
-ms-text-size-adjust: 100%;
98
-webkit-text-size-adjust: 100%;
@@ -639,5 +638,4 @@
639638
z-index: 1;
640639
position: relative;
641640
border-color: #4183c4;
642-
}
643-
</style>
641+
}

simplememory-qingqing.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
http://www.cnblogs.com/asxinyu/p/Bolg_Category_For_BlogBeauty.html
55
*/
66

7-
<style type="text/css">
87
body {
98
line-height: 1.8em;/*设置所有字体的行间距*/
109
}
@@ -252,5 +251,4 @@ div.feedbackCon{
252251
border-radius:8px;
253252
padding:5px;
254253
max-width:100%;
255-
}
256-
</style>
254+
}

文件引用.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- release for cnblogs -->
2+
<link href="http://files.cnblogs.com/zhaoqingqing/cnblogs-article-nav.css" rel="stylesheet" type="text/css">
3+
<link href="http://files.cnblogs.com/zhaoqingqing/cnblogs-markdown.css" rel="stylesheet" type="text/css">
4+
<link href="http://files.cnblogs.com/zhaoqingqing/simplememory-qingqing.css" rel="stylesheet" type="text/css">
5+
6+
<script src="http://cdn.bootcss.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
7+
<script type="text/javascript" src="http://files.cnblogs.com/zhaoqingqing/cnblogs-customfunc.js"></script>
8+
<script type="text/javascript" src="http://files.cnblogs.com/zhaoqingqingcnblogs-article-nav.js"></script>
9+
10+
<!--
11+
如果在cnblogs中引用github库中的文件,chrome报以下错:
12+
Resource interpreted as Stylesheet but transferred with MIME type text/html
13+
Refused to execute script from ecause its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
14+
表现:css和js 无法加载出来 ,暂时未解决
15+
-->
16+
<!-- debug from github -->
17+
<!-- https://github.com/zhaoqingqing/cnblogs/blob/master/ -->
18+
<link href="https://github.com/zhaoqingqing/cnblogs/blob/master/cnblogs-article-nav.css" rel="stylesheet" type="text/css">
19+
<link href="https://github.com/zhaoqingqing/cnblogs/blob/master/cnblogs-markdown.css" rel="stylesheet" type="text/css">
20+
<link href="https://github.com/zhaoqingqing/cnblogs/blob/master/simplememory-qingqing.css" rel="stylesheet" type="text/css">
21+
22+
<script src="http://cdn.bootcss.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
23+
<script type="text/javascript" src="https://github.com/zhaoqingqing/cnblogs/blob/master/cnblogs-customfunc.js"></script>
24+
<script type="text/javascript" src="https://github.com/zhaoqingqing/cnblogs/blob/master/cnblogs-article-nav.js"></script>

0 commit comments

Comments
 (0)