diff --git a/Gulpfile.js b/Gulpfile.js
index e0c4f6c..7d328ee 100644
--- a/Gulpfile.js
+++ b/Gulpfile.js
@@ -28,7 +28,7 @@ gulp.task('concatDepJs', function() {
'js/jQuery-slimScroll-1.3.0/jquery.slimscroll-min.js',
'js/contextmenu/jquery.contextmenu-min.js',
'js/bootstrap-min.js',
- 'js/object_id-min.js',
+ 'js/object_id.js',
];
for(var i in jss) {
diff --git a/app/views/note/note-dev.html b/app/views/note/note-dev.html
index c63506d..85c2627 100644
--- a/app/views/note/note-dev.html
+++ b/app/views/note/note-dev.html
@@ -893,7 +893,7 @@ var GlobalConfigs = {{.globalConfigs|jsonJs}};
-
+
diff --git a/public/css/blog/p.css b/public/css/blog/p.css
deleted file mode 100644
index 34c9f23..0000000
--- a/public/css/blog/p.css
+++ /dev/null
@@ -1,600 +0,0 @@
-@font-face {
- font-family: 'leanote';
- src: url('../../fonts/leanote-font3/leanote.eot?-vcf23i');
- src: url('../../fonts/leanote-font3/leanote.eot?#iefix-vcf23i') format('embedded-opentype'), url('../../fonts/leanote-font3/leanote.ttf?-vcf23i') format('truetype'), url('../../fonts/leanote-font3/leanote.woff?-vcf23i') format('woff'), url('../../fonts/leanote-font3/leanote.svg?-vcf23i#leanote') format('svg');
- font-weight: normal;
- font-style: normal;
-}
-#logo,
-.mce-i-mind,
-.mce-i-ace-pre,
-.lea-icon {
- font-family: 'leanote' !important;
- speak: none;
- font-style: normal;
- font-weight: normal;
- font-variant: normal;
- text-transform: none;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-.icon-markdown:before {
- content: "\e604";
-}
-.mce-i-mind:before {
- content: "\e602";
-}
-.mce-i-ace-pre:before {
- content: "\e603";
-}
-#logo:before {
- content: "\e901";
- line-height: 1;
- margin-top: 5px;
- display: inline-block;
- vertical-align: top;
-}
-#logo.icon-only:before {
- content: "\e902";
-}
-.lang-zh-cn #logo:before {
- content: "\e900";
-}
-#logo {
- font-size: 24px;
-}
-#logo:before {
- line-height: 40px;
-}
-#subTitle {
- padding: 0 0 0 5px;
-}
-::selection {
- background: #000000;
- color: #ffffff;
-}
-::-moz-selection {
- background: #000000;
- color: #ffffff;
-}
-::-webkit-selection {
- background: #000000;
- color: #ffffff;
-}
-*,
-body {
- font-family: "lucida grande", "lucida sans unicode", lucida, helvetica, "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
- font-weight: 300;
- font-size: 14px;
-}
-h1,
-h2,
-h3 {
- font-family: "lucida grande", "lucida sans unicode", lucida, helvetica, "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
- font-weight: 300 !important;
-}
-ul,
-ol {
- list-style: none;
-}
-a {
- color: #000;
- cursor: pointer;
-}
-a:hover {
- text-decoration: none !important;
-}
-.navbar-brand {
- display: block;
- line-height: 50px;
- padding: 0;
- padding-left: 10px;
-}
-.navbar-brand span {
- float: left;
-}
-#navbar {
- width: 650px;
- margin: auto;
- padding: 0;
-}
-.navbar,
-.navbar-default {
- margin: 0;
- border-bottom: 1px solid #DEDDDF;
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 #ffffff;
- background-color: #fafbfc;
-}
-.navbar a,
-.navbar-default a {
- font-size: 16px;
-}
-.navbar-default .navbar-nav > .active > a,
-.navbar-default .navbar-nav > .active > a:hover,
-.navbar-default .navbar-nav > .active > a:focus {
- background: none;
- border-bottom: 2px solid #65bd77;
-}
-.navbar-form {
- padding: 0;
-}
-#keywords {
- font-size: 12px;
- padding: 7px 20px;
- border-radius: 30px;
- box-shadow: inset 0 0 4px 0 rgba(0, 0, 0, 0.1);
- -webkit-transform: translate3d(0, 0, 0);
- -webkit-transition: 0.3s ease;
- -moz-transition: 0.3s ease;
- transition: 0.3s ease;
- background-clip: padding-box;
- width: 65%;
- height: auto;
- margin-top: 3px;
- border-color: #ccc;
- float: right;
-}
-#keywords:focus {
- outline: none;
- width: 100%;
-}
-#content {
- width: 650px;
- margin: auto;
- margin-top: 60px;
-}
-.sort-nav {
- list-style: none;
- margin: 0;
- padding: 0;
-}
-.sort-nav li {
- float: left;
- margin: 10px 15px 5px 0;
-}
-.sort-nav li a {
- padding: 5px 10px;
- border: 1px solid #cccccc;
- font-size: 12px;
- font-weight: normal;
- line-height: 25px;
- border-radius: 14px;
-}
-.sort-nav li.active a {
- color: white;
- background: #65bd77;
- border-color: #65bd77;
-}
-.thumbnails {
- padding: 0;
- padding-top: 25px;
-}
-.thumbnails > li {
- position: relative;
- width: 100%;
- margin: 0 0 10px;
- padding-bottom: 15px;
- border-bottom: 1px dashed #d9d9d9;
-}
-a:hover {
- color: #2a6496;
-}
-.article .title {
- display: inline-block;
- margin-right: 40px;
- color: #3b3b3b;
- font-size: 24px;
- font-weight: bold;
- line-height: 36px;
-}
-.article .title:hover {
- color: #2a6496;
-}
-.article .content {
- color: #717171;
- font-size: 14px;
- font-weight: 100;
- line-height: 24px;
- word-wrap: break-word;
-}
-.article .article-info {
- margin-top: 5px;
- color: #999999;
-}
-.article .article-info a {
- color: #999999;
-}
-.article .article-info > a {
- margin-right: 10px;
-}
-.user-card {
- position: absolute;
- top: 1px;
- padding-right: 50px;
- right: -50px;
-}
-.user-card .dropdown-menu {
- width: 310px;
- left: -140px;
-}
-.user-card .dropdown-menu:before {
- content: "";
- width: 0;
- height: 0;
- border-left: 10px solid transparent;
- border-right: 10px solid transparent;
- border-bottom: 10px solid #eaedef;
- background: none;
- background-image: none;
- top: -7px;
- left: 145px;
- right: auto;
-}
-.user-card-content {
- width: 310px;
- padding: 0;
- background: #eaedef;
- top: 35px;
- border-radius: 6px;
- word-break: break-all;
-}
-.user-card-content .loading {
- display: none;
-}
-.user-card-content.loading .loading {
- display: block;
-}
-.user-card-content.loading .header,
-.user-card-content.loading .content {
- display: none;
-}
-.user-card-content .loading {
- text-align: center;
- padding: 10px 0;
-}
-.user-card-content .loading:before {
- content: "";
- width: 17px;
- height: 11px;
- background: url(http://7xj51o.com1.z0.glb.clouddn.com/bar-loading.gif);
- background-size: 17px 11px;
- display: inline-block;
-}
-.user-card-content .header,
-.relation-btn {
- padding: 10px;
- overflow: hidden;
- border-bottom: 1px solid #d9d9d9;
- border-radius: 6px 6px 0 0;
-}
-.user-card-content .header .btn,
-.relation-btn .btn {
- box-sizing: border-box;
- width: 95px;
-}
-.user-card-content .header .follow-btn,
-.relation-btn .follow-btn {
- display: none;
-}
-.user-card-content .header.not-followed .follow-btn,
-.relation-btn.not-followed .follow-btn {
- display: block;
-}
-.user-card-content .header.not-followed .following-btn,
-.relation-btn.not-followed .following-btn {
- display: none;
-}
-.following-btn .unfollow {
- display: none;
-}
-.following-btn:hover .following {
- display: none;
-}
-.following-btn:hover .unfollow {
- display: block;
-}
-.user-card-content .header .follow-btn,
-.user-card-content .header .following-btn {
- float: right;
- padding: 4px 10px 2px;
- margin: 0;
-}
-.user-card-content .header .avatar {
- float: left;
-}
-.user-card-content .username {
- line-height: 32px;
- padding-left: 10px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- margin-right: 100px;
- display: block;
-}
-.user-card-content .header > span {
- position: relative;
- top: 6px;
- font-weight: bold;
-}
-.user-card-content .content {
- padding: 0 10px 10px;
- font-size: 12px;
-}
-.user-card-content .content p {
- margin-bottom: 0;
-}
-.user-card-content .content .intro {
- padding: 10px 12px 7px;
- margin: 0 -10px 0;
- background: white;
- border-bottom: 1px solid #d9d9d9;
-}
-.user-card-content .content ul {
- padding: 1px 10px 2px 10px;
- margin: 0 -10px 10px;
- background: #ffffff;
-}
-.user-card-content .content ul li {
- border-bottom: 1px dashed #d9d9d9;
-}
-.user-card-content .content ul li a {
- margin: 5px 0;
- line-height: 20px;
- display: block;
-}
-.user-card-content .content ul li.no-post {
- border: none;
- color: #ccc;
-}
-.user-card-content .content ul time {
- position: absolute;
- right: 10px;
- color: #999999;
- font-size: 12px;
-}
-.user-card-content .content h5 {
- margin: 0;
- padding-top: 3px;
- margin-right: 63px;
- font-size: 12px;
- font-weight: normal;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-.user-card-content .content a {
- color: #999999;
-}
-.avatar {
- width: 32px;
- height: 32px;
- line-height: 32px;
- text-align: center;
- -webkit-border-radius: 50%;
- -moz-border-radius: 50%;
- border-radius: 50%;
- overflow: hidden;
- display: inline-block;
- box-sizing: border-box;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
-}
-.avatar img {
- width: 30px;
- /*
- border-radius: 50%;
- -webkit-border-radius: 50%;
- -moz-border-radius: 50%;
- */
-}
-#pagination {
- text-align: center;
-}
-#pagination ul {
- margin: 0;
- margin-top: 10px;
-}
-.pagination > .active > a,
-.pagination > .active > span,
-.pagination > .active > a:hover,
-.pagination > .active > span:hover,
-.pagination > .active > a:focus,
-.pagination > .active > span:focus {
- background-color: #65bd77;
- border-color: #65bd77;
-}
-#footer {
- text-align: center;
- margin: 20px 0;
- margin-top: 20px;
- color: #ccc;
-}
-#footer a {
- color: #ccc;
-}
-#navbarUser {
- float: right;
- line-height: 50px;
- margin-right: 10px;
-}
-#navbarUser a {
- color: #666;
-}
-#navbarUser .my-logo {
- max-height: 32px;
- border: 2px solid white;
- max-width: 100px;
- border-radius: 50%;
- margin-top: -3px;
-}
-.dropdown-menu:before {
- content: "";
- width: 20px;
- height: 12px;
- position: absolute;
- top: -12px;
- right: 20px;
- background-image: url("../../images/triangle_2x.png");
- background-size: 20px 12px;
-}
-.open > .dropdown-menu,
-.dropdown-submenu:hover > .dropdown-menu {
- opacity: 1;
- transform: scale(1, 1);
- -webkit-transform: scale(1, 1);
- -moz-transform: scale(1, 1);
- -o-transform: scale(1, 1);
-}
-.dropdown-menu {
- opacity: 0;
- display: block;
- -webkit-transform: scale(0, 0);
- -webkit-transform-origin: top;
- -webkit-animation-fill-mode: forwards;
- -webkit-transition: all 0.2s cubic-bezier(0.34, 1.21, 0.4, 1);
- -o-transform: scale(0, 0);
- -o-transform-origin: top;
- -o-animation-fill-mode: forwards;
- -o-transition: all 0.2s cubic-bezier(0.34, 1.21, 0.4, 1);
- -moz-transform: scale(0, 0);
- -moz-transform-origin: top;
- -moz-animation-fill-mode: forwards;
- -moz-transition: all 0.2s cubic-bezier(0.34, 1.21, 0.4, 1);
- transform: scale(0, 0);
- transform-origin: top;
- animation-fill-mode: forwards;
- transition: all 0.2s cubic-bezier(0.34, 1.21, 0.4, 1);
-}
-a:focus {
- text-decoration: none;
-}
-@media screen and (max-width: 780px) {
- #navbarUser {
- display: none;
- }
- #keywords {
- float: none;
- width: 100%;
- }
- #navbar {
- padding: 0 10px;
- width: 100%;
- }
-}
-@media screen and (max-width: 600px) {
- #content {
- width: 100%;
- padding: 0 10px;
- }
- .user-card {
- padding-right: 0;
- right: 0;
- }
-}
-#searchInfo {
- margin-top: 20px;
-}
-#searchInfo .keywords-info,
-#searchInfo .keywords-title {
- display: inline-block;
- margin-right: 10px;
- font-size: 18px;
-}
-#searchInfo .keywords-title {
- font-weight: bold;
-}
-#searchInfo .clear-search {
- display: inline-block;
- color: #a94442;
-}
-.article .article-info .label-post {
- background: #fff;
- margin: 0;
- font-size: 14px;
- padding: 0 2px;
-}
-.article .article-info .label-post:hover {
- background: #000;
-}
-.article .article-info .label-yellow:hover {
- background: #f0ad4e;
-}
-.article .article-info .label-green:hover {
- background: #5cb85c;
-}
-.article .article-info .label-blue:hover {
- background: #428bca;
-}
-.article .article-info .label-red:hover {
- background: #d9534f;
-}
-.no-author {
- border: 2px dashed #ccc;
- border-radius: 20px;
- padding: 20px;
- height: 450px;
- margin-top: 80px;
- text-align: center;
- font-size: 16px;
- color: #666;
- padding-top: 100px;
-}
-.followers {
- margin-top: 70px !important;
-}
-.followers .followers-nav {
- margin-bottom: 20px;
-}
-.followers .user-list {
- margin: 0;
- padding: 0;
-}
-.followers .each-user {
- width: 215px;
- float: left;
- margin-bottom: 30px;
-}
-.followers .avatar-wrap {
- position: relative;
-}
-.followers .avatar-wrap .user-card {
- right: 0;
- left: 0;
- top: 0;
-}
-.followers .avatar-outer {
- width: 60px;
- height: 60px;
- line-height: 56px;
- border: 1px solid #eee;
- margin-right: 10px;
-}
-.followers .avatar-outer img {
- width: 60px;
-}
-.followers .username-btn {
- margin-left: 70px;
-}
-.followers .username-btn button {
- padding: 3px 4px;
- width: 85px;
- margin-top: 1px;
-}
-.followers .username {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- max-width: 140px;
-}
-.followers .relation-btn {
- padding: 0;
- border: 0;
- margin-top: 3px;
-}
-.followers .user-card .dropdown-menu {
- left: -125px;
- top: 60px;
-}
-.followers .no-author {
- margin-top: 30px;
-}
diff --git a/public/css/blog/p.less b/public/css/blog/p.less
deleted file mode 100644
index 0297f95..0000000
--- a/public/css/blog/p.less
+++ /dev/null
@@ -1,629 +0,0 @@
-@bgColor: #fff;
-@headerBgColor: #fff;
-@fontFamily: "lucida grande", "lucida sans unicode", lucida, helvetica, "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
-@aWhiteColor: #fff;
-@aBlackColor: #000;
-@borderColor: #EBEFF2;
-@border: 1px solid #EBEFF2;
-@borderMore: 1px solid #ccc; // 颜色更深
-@headerHeight: 60px;
-@hColor: #0fb264;
-@fontSize: 14px;
-@containerWidth: 845px;
-@titleColor: @hColor; // #5AD4A0;
-
-@pwidth: 650px;
-@green: #65bd77;
-@gray: #ccc;
-
-@import "../theme/includes/icon.less";
-
-#logo {
- font-size: 24px;
- &:before {
- line-height: 40px;
- }
-}
-#subTitle {
- padding: 0 0 0 5px;
-}
-
-@selectionBg: @aBlackColor;
-@selectionColor: #fff;
-::selection { background:@selectionBg; color:@selectionColor; }
-::-moz-selection { background:@selectionBg; color:@selectionColor; }
-::-webkit-selection { background:@selectionBg; color:@selectionColor; }
-html,body {
-}
-*, body {
- font-family: @fontFamily;
- font-weight: 300;
- font-size: @fontSize;
-}
-h1, h2, h3 {
- font-family: @fontFamily;
- font-weight: 300 !important;
-}
-ul, ol {
- list-style: none;
-}
-
-a {
- color: #000;
- cursor: pointer;
-}
-
-a:hover {
- text-decoration: none !important;
-}
-.navbar-brand {
- display: block;
- line-height: 50px;
- padding: 0;
- padding-left: 10px;
- span {
- float: left;
- }
-}
-
-#navbar {
- width: @pwidth;
- margin: auto;
- padding: 0;
-}
-@navbarBg: #fafbfc;
-.navbar, .navbar-default {
- margin: 0;
- border-bottom: 1px solid #DEDDDF;
- box-shadow: 0 1px 2px rgba(0,0,0,.04),inset 0 1px 0 #fff;
- background-color: @navbarBg;
- a {
- font-size: 16px;
- }
-}
-.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
- background: none;
- border-bottom: 2px solid @green;
-}
-.navbar-form {
- padding: 0;
-}
-#keywords {
- font-size: 12px;
- padding: 7px 20px;
- border-radius: 30px;
- box-shadow: inset 0 0 4px 0 rgba(0,0,0,0.1);
- // background: #e6eaed;
- -webkit-transform: translate3d(0, 0, 0);
- -webkit-transition: 0.3s ease;
- -moz-transition: 0.3s ease;
- transition: 0.3s ease;
- background-clip: padding-box;
- width: 65%;
- height: auto;
- margin-top: 3px;
- border-color: #ccc;
- float: right;
-}
-#keywords:focus {
- outline: none;
- width: 100%;
-}
-#content {
- width: @pwidth;
- margin: auto;
- margin-top: 60px;
-}
-
-// 分类
-.sort-nav {
- list-style: none;
- margin: 0;
- padding: 0;
- li {
- float: left;
- margin: 10px 15px 5px 0;
- }
-}
-
-.sort-nav li a {
- padding: 5px 10px;
- border: 1px solid @gray;
- font-size: 12px;
- font-weight: normal;
- line-height: 25px;
- border-radius: 14px;
-}
-.sort-nav li.active a {
- color: white;
- background: @green;
- border-color: @green;
-}
-
-// 文章列表
-.thumbnails {
- padding: 0;
- padding-top: 25px;
-}
-.thumbnails > li {
- position: relative;
- width: 100%;
- margin: 0 0 10px;
- padding-bottom: 15px;
- border-bottom: 1px dashed #d9d9d9;
-}
-a:hover {
- color: #2a6496;
-}
-.article {
- .title {
- display: inline-block;
- margin-right: 40px;
- color: #3b3b3b;
- font-size: 24px;
- font-weight: bold;
- line-height: 36px;
- &:hover {
- color: #2a6496;
- }
- }
- .content {
- color: #717171;
- font-size: 14px;
- font-weight: 100;
- line-height: 24px;
- word-wrap: break-word;
- }
- .article-info {
- margin-top: 5px;
- color: #999999;
- a {
- color: #999999;
-
- }
-
- }
- .article-info>a {
- margin-right: 10px;
- }
-}
-
-@cardBg: #EAEDEF;
-.user-card {
- position: absolute;
- top: 1px;
- padding-right: 50px;
- right: -50px;
- .dropdown-menu {
- width: 310px;
- left: -140px;
- &:before {
-
- content: "";
- width: 0;
- height: 0;
- border-left: 10px solid transparent;
- border-right: 10px solid transparent;
- border-bottom: 10px solid @cardBg;
- background: none;
- background-image: none;
- top: -7px;
-
- left: 145px;
- right: auto;
- }
- }
-}
-
-.user-card-content {
- width: 310px;
- padding: 0;
- background: @cardBg;
- top: 35px;
- border-radius: 6px;
- word-break: break-all;
-
- .loading {
- display: none;
- }
-
- &.loading {
- .loading {
- display: block;
- }
- .header,
- .content {
- display: none;
- }
- }
-}
-
-.user-card-content .loading {
- text-align: center;
- padding: 10px 0;
- &:before {
- content: "";
- width: 17px;
- height: 11px;
- background: url(http://7xj51o.com1.z0.glb.clouddn.com/bar-loading.gif);
- background-size: 17px 11px;
- display: inline-block;
- }
-}
-
-.user-card-content .header, .relation-btn {
- padding: 10px;
- overflow: hidden;
- border-bottom: 1px solid #d9d9d9;
- border-radius: 6px 6px 0 0;
-
- .btn {
- box-sizing: border-box;
- width: 95px;
- }
-
- .follow-btn {
- display: none;
- }
-
- &.not-followed {
- .follow-btn {
- display: block;
- }
- .following-btn {
- display: none;
- }
- }
-
-}
-.following-btn {
- .unfollow {
- display: none;
- }
- &:hover {
- .following {
- display: none;
- }
- .unfollow {
- display: block;
- }
- }
-}
-
-.user-card-content .header .follow-btn,
-.user-card-content .header .following-btn {
- float: right;
- padding: 4px 10px 2px;
- margin: 0
-}
-
-.user-card-content .header .avatar {
- float: left;
-}
-
-.user-card-content .username {
- line-height: 32px;
- padding-left: 10px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- margin-right: 100px;
- display: block;
-}
-
-.user-card-content .header>span {
- position: relative;
- top: 6px;
- font-weight: bold
-}
-
-.user-card-content .content {
- padding: 0 10px 10px;
- font-size: 12px;
-}
-
-.user-card-content .content p {
- margin-bottom: 0
-}
-
-.user-card-content .content .intro {
- padding: 10px 12px 7px;
- margin: 0 -10px 0;
- background: white;
- border-bottom: 1px solid #d9d9d9
-}
-
-.user-card-content .content ul {
- padding: 1px 10px 2px 10px;
- margin: 0 -10px 10px;
- background: white
-}
-
-.user-card-content .content ul li {
- border-bottom: 1px dashed #d9d9d9;
- a {
- margin: 5px 0;
- line-height: 20px;
- display: block;
- }
- &.no-post {
- border: none;
- color: #ccc;
- }
-}
-
-.user-card-content .content ul time {
- position: absolute;
- right: 10px;
- color: #999999;
- font-size: 12px;
-}
-
-.user-card-content .content h5 {
- margin: 0;
- padding-top: 3px;
- margin-right: 63px;
- font-size: 12px;
- font-weight: normal;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap
-}
-
-.user-card-content .content a {
- color: #999999
-}
-
-
-.avatar {
- width: 32px;
- height: 32px;
- line-height: 32px;
- text-align: center;
- -webkit-border-radius: 50%;
- -moz-border-radius: 50%;
- border-radius: 50%;
- overflow: hidden;
- display: inline-block;
- box-sizing: border-box;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- img {
- width: 30px;
- /*
- border-radius: 50%;
- -webkit-border-radius: 50%;
- -moz-border-radius: 50%;
- */
- }
-}
-
-
-#pagination {
- text-align: center;
- ul {
- margin: 0;
- margin-top: 10px;
- }
-}
-.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus {
- background-color: @green;
- border-color: @green;
-}
-
-#footer {
- text-align: center;
- margin: 20px 0;
- margin-top: 20px;
- color: #ccc;
- a {
- color: #ccc;
- }
-}
-
-#navbarUser {
- a {
- color: #666;
- }
- float: right;
- line-height: 50px;
- margin-right: 10px;
- .my-logo {
- max-height: 32px;
- border: 2px solid white;
- max-width: 100px;
- border-radius: 50%;
- margin-top: -3px;
- }
-}
-.dropdown-menu:before {
- content: "";
- width: 20px;
- height: 12px;
- position: absolute;
- top: -12px;
- right: 20px;
- background-image: url("../../images/triangle_2x.png");
- background-size: 20px 12px;
-}
-// 动画
-.open > .dropdown-menu, .dropdown-submenu:hover > .dropdown-menu {
- opacity: 1;
- transform: scale(1, 1);
- -webkit-transform: scale(1, 1);
- -moz-transform: scale(1, 1);
- -o-transform: scale(1, 1);
-}
-.dropdown-menu {
- opacity: 0;
- display: block;
-
- -webkit-transform: scale(0, 0);
- -webkit-transform-origin: top;
- -webkit-animation-fill-mode: forwards;
- -webkit-transition: all 0.2s cubic-bezier(0.34, 1.21, 0.4, 1);
-
- -o-transform: scale(0, 0);
- -o-transform-origin: top;
- -o-animation-fill-mode: forwards;
- -o-transition: all 0.2s cubic-bezier(0.34, 1.21, 0.4, 1);
-
- -moz-transform: scale(0, 0);
- -moz-transform-origin: top;
- -moz-animation-fill-mode: forwards;
- -moz-transition: all 0.2s cubic-bezier(0.34, 1.21, 0.4, 1);
-
- transform: scale(0, 0);
- transform-origin: top;
- animation-fill-mode: forwards;
- transition: all 0.2s cubic-bezier(0.34, 1.21, 0.4, 1);
-
-}
-a:focus {
- text-decoration: none;
-}
-
-@media screen and (max-width: 780px) {
- #navbarUser {
- display: none;
- }
- #keywords {
- float: none;
- width: 100%;
- }
- #navbar {
- padding: 0 10px;
- width: 100%;
- }
-}
-
-@media screen and (max-width: 600px) {
- #content {
- width: 100%;
- padding: 0 10px;
- }
-
- .user-card {
- padding-right: 0;
- right: 0;
- }
-}
-
-#searchInfo {
- margin-top: 20px;
- .keywords-info, .keywords-title {
- display: inline-block;
- margin-right: 10px;
- font-size: 18px;
- }
- .keywords-title {
- font-weight: bold;
- }
- .clear-search {
- display: inline-block;
- color: #a94442;
- }
-}
-
-.article .article-info {
- .label-post {
- background: #fff;
- margin: 0;
- font-size: 14px;
- padding: 0 2px;
- &:hover {
- background: #000;
- }
- }
- .label-yellow:hover {
- background: #f0ad4e;
- }
- .label-green:hover {
- background: #5cb85c;
- }
- .label-blue:hover {
- background: #428bca;
- }
- .label-red:hover {
- background: #d9534f;
- }
-}
-
-.no-author {
- border: 2px dashed #ccc;
- border-radius: 20px;
- padding: 20px;
- height: 450px;
- margin-top: 80px;
- text-align: center;
- font-size: 16px;
- color: #666;
- padding-top: 100px;
-}
-
-// followers
-
-.followers {
- margin-top: 70px !important;
-
- .followers-nav {
- margin-bottom: 20px;
- }
-
- .user-list {
- margin: 0;
- padding: 0;
- }
- .each-user {
- width: 215px;
- float: left;
- margin-bottom: 30px;
- }
- .avatar-wrap {
- position: relative;
- .user-card {
- right: 0;
- left: 0;
- top: 0;
- }
- }
- .avatar-outer {
- width: 60px;
- height: 60px;
- line-height: 56px;
- border: 1px solid #eee;
- margin-right: 10px;
- img {
- width: 60px;
- }
- }
- .username-btn {
- margin-left: 70px;
- button {
- padding: 3px 4px;
- width: 85px;
- margin-top: 1px;
- }
- }
- .username {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- max-width: 140px;
- }
-
- .relation-btn {
- padding: 0;
- border: 0;
- margin-top: 3px;
- }
-
- .user-card .dropdown-menu {
- left: -125px;
- top: 60px;
- }
-
- .no-author {
- margin-top: 30px;
- }
-}
\ No newline at end of file
diff --git a/public/css/bootstrap修改 b/public/css/bootstrap修改
deleted file mode 100644
index 10e0ab9..0000000
--- a/public/css/bootstrap修改
+++ /dev/null
@@ -1,3 +0,0 @@
-css最后
-
-.btn 没有圆角
\ No newline at end of file
diff --git a/public/images/home/preview.png b/public/images/home/preview.png
deleted file mode 100644
index 883ef21..0000000
Binary files a/public/images/home/preview.png and /dev/null differ
diff --git a/public/images/sprites.png b/public/images/sprites.png
deleted file mode 100644
index 10fd44a..0000000
Binary files a/public/images/sprites.png and /dev/null differ
diff --git a/public/js/all.js b/public/js/all.js
deleted file mode 100644
index fb8172d..0000000
--- a/public/js/all.js
+++ /dev/null
@@ -1,2 +0,0 @@
-(function(factory){factory(jQuery)})(function($){var pluses=/\+/g;function encode(s){return config.raw?s:encodeURIComponent(s)}function decode(s){return config.raw?s:decodeURIComponent(s)}function stringifyCookieValue(value){return encode(config.json?JSON.stringify(value):String(value))}function parseCookieValue(s){if(s.indexOf('"')===0){s=s.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")}try{s=decodeURIComponent(s.replace(pluses," "));return config.json?JSON.parse(s):s}catch(e){}}function read(s,converter){var value=config.raw?s:parseCookieValue(s);return $.isFunction(converter)?converter(value):value}var config=$.cookie=function(key,value,options){if(value!==undefined&&!$.isFunction(value)){options=$.extend({},config.defaults,options);if(typeof options.expires==="number"){var days=options.expires,t=options.expires=new Date;t.setTime(+t+days*864e5)}return document.cookie=[encode(key),"=",stringifyCookieValue(value),options.expires?"; expires="+options.expires.toUTCString():"",options.path?"; path="+options.path:"",options.domain?"; domain="+options.domain:"",options.secure?"; secure":""].join("")}var result=key?undefined:{};var cookies=document.cookie?document.cookie.split("; "):[];for(var i=0,l=cookies.length;ithis.$items.length-1||pos<0)return;if(this.sliding)return this.$element.one("slid",function(){that.to(pos)});if(activeIndex==pos)return this.pause().cycle();return this.slide(pos>activeIndex?"next":"prev",$(this.$items[pos]))};Carousel.prototype.pause=function(e){e||(this.paused=true);if(this.$element.find(".next, .prev").length&&$.support.transition.end){this.$element.trigger($.support.transition.end);this.cycle(true)}this.interval=clearInterval(this.interval);return this};Carousel.prototype.next=function(){if(this.sliding)return;return this.slide("next")};Carousel.prototype.prev=function(){if(this.sliding)return;return this.slide("prev")};Carousel.prototype.slide=function(type,next){var $active=this.$element.find(".item.active");var $next=next||$active[type]();var isCycling=this.interval;var direction=type=="next"?"left":"right";var fallback=type=="next"?"first":"last";var that=this;if(!$next.length){if(!this.options.wrap)return;$next=this.$element.find(".item")[fallback]()}this.sliding=true;isCycling&&this.pause();var e=$.Event("slide.bs.carousel",{relatedTarget:$next[0],direction:direction});if($next.hasClass("active"))return;if(this.$indicators.length){this.$indicators.find(".active").removeClass("active");this.$element.one("slid",function(){var $nextIndicator=$(that.$indicators.children()[that.getActiveIndex()]);$nextIndicator&&$nextIndicator.addClass("active")})}if($.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(e);if(e.isDefaultPrevented())return;$next.addClass(type);$next[0].offsetWidth;$active.addClass(direction);$next.addClass(direction);$active.one($.support.transition.end,function(){$next.removeClass([type,direction].join(" ")).addClass("active");$active.removeClass(["active",direction].join(" "));that.sliding=false;setTimeout(function(){that.$element.trigger("slid")},0)}).emulateTransitionEnd(600)}else{this.$element.trigger(e);if(e.isDefaultPrevented())return;$active.removeClass("active");$next.addClass("active");this.sliding=false;this.$element.trigger("slid")}isCycling&&this.cycle();return this};var old=$.fn.carousel;$.fn.carousel=function(option){return this.each(function(){var $this=$(this);var data=$this.data("bs.carousel");var options=$.extend({},Carousel.DEFAULTS,$this.data(),typeof option=="object"&&option);var action=typeof option=="string"?option:options.slide;if(!data)$this.data("bs.carousel",data=new Carousel(this,options));if(typeof option=="number")data.to(option);else if(action)data[action]();else if(options.interval)data.pause().cycle()})};$.fn.carousel.Constructor=Carousel;$.fn.carousel.noConflict=function(){$.fn.carousel=old;return this};$(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(e){var $this=$(this),href;var $target=$($this.attr("data-target")||(href=$this.attr("href"))&&href.replace(/.*(?=#[^\s]+$)/,""));var options=$.extend({},$target.data(),$this.data());var slideIndex=$this.attr("data-slide-to");if(slideIndex)options.interval=false;$target.carousel(options);if(slideIndex=$this.attr("data-slide-to")){$target.data("bs.carousel").to(slideIndex)}e.preventDefault()});$(window).on("load",function(){$('[data-ride="carousel"]').each(function(){var $carousel=$(this);$carousel.carousel($carousel.data())})})}(jQuery);+function($){"use strict";var Collapse=function(element,options){this.$element=$(element);this.options=$.extend({},Collapse.DEFAULTS,options);this.transitioning=null;if(this.options.parent)this.$parent=$(this.options.parent);if(this.options.toggle)this.toggle()};Collapse.DEFAULTS={toggle:true};Collapse.prototype.dimension=function(){var hasWidth=this.$element.hasClass("width");return hasWidth?"width":"height"};Collapse.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in"))return;var startEvent=$.Event("show.bs.collapse");this.$element.trigger(startEvent);if(startEvent.isDefaultPrevented())return;var actives=this.$parent&&this.$parent.find("> .panel > .in");if(actives&&actives.length){var hasData=actives.data("bs.collapse");if(hasData&&hasData.transitioning)return;actives.collapse("hide");hasData||actives.data("bs.collapse",null)}var dimension=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[dimension](0);this.transitioning=1;var complete=function(){this.$element.removeClass("collapsing").addClass("in")[dimension]("auto");this.transitioning=0;this.$element.trigger("shown.bs.collapse")};if(!$.support.transition)return complete.call(this);var scrollSize=$.camelCase(["scroll",dimension].join("-"));this.$element.one($.support.transition.end,$.proxy(complete,this)).emulateTransitionEnd(350)[dimension](this.$element[0][scrollSize])};Collapse.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in"))return;var startEvent=$.Event("hide.bs.collapse");this.$element.trigger(startEvent);if(startEvent.isDefaultPrevented())return;var dimension=this.dimension();this.$element[dimension](this.$element[dimension]())[0].offsetHeight;this.$element.addClass("collapsing").removeClass("collapse").removeClass("in");this.transitioning=1;var complete=function(){this.transitioning=0;this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};if(!$.support.transition)return complete.call(this);this.$element[dimension](0).one($.support.transition.end,$.proxy(complete,this)).emulateTransitionEnd(350)};Collapse.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var old=$.fn.collapse;$.fn.collapse=function(option){return this.each(function(){var $this=$(this);var data=$this.data("bs.collapse");var options=$.extend({},Collapse.DEFAULTS,$this.data(),typeof option=="object"&&option);if(!data)$this.data("bs.collapse",data=new Collapse(this,options));if(typeof option=="string")data[option]()})};$.fn.collapse.Constructor=Collapse;$.fn.collapse.noConflict=function(){$.fn.collapse=old;return this};$(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(e){var $this=$(this),href;var target=$this.attr("data-target")||e.preventDefault()||(href=$this.attr("href"))&&href.replace(/.*(?=#[^\s]+$)/,"");var $target=$(target);var data=$target.data("bs.collapse");var option=data?"toggle":$this.data();var parent=$this.attr("data-parent");var $parent=parent&&$(parent);if(!data||!data.transitioning){if($parent)$parent.find('[data-toggle=collapse][data-parent="'+parent+'"]').not($this).addClass("collapsed");$this[$target.hasClass("in")?"addClass":"removeClass"]("collapsed")}$target.collapse(option)})}(jQuery);+function($){"use strict";var backdrop=".dropdown-backdrop";var toggle="[data-toggle=dropdown]";var Dropdown=function(element){var $el=$(element).on("click.bs.dropdown",this.toggle)};Dropdown.prototype.toggle=function(e){var $this=$(this);if($this.is(".disabled, :disabled"))return;var $parent=getParent($this);var isActive=$parent.hasClass("open");clearMenus();if(!isActive){if("ontouchstart"in document.documentElement&&!$parent.closest(".navbar-nav").length){$('').insertAfter($(this)).on("click",clearMenus)}$parent.trigger(e=$.Event("show.bs.dropdown"));if(e.isDefaultPrevented())return;$parent.toggleClass("open").trigger("shown.bs.dropdown");$this.focus()}return false};Dropdown.prototype.keydown=function(e){if(!/(38|40|27)/.test(e.keyCode))return;var $this=$(this);e.preventDefault();e.stopPropagation();if($this.is(".disabled, :disabled"))return;var $parent=getParent($this);var isActive=$parent.hasClass("open");if(!isActive||isActive&&e.keyCode==27){if(e.which==27)$parent.find(toggle).focus();return $this.click()}var $items=$("[role=menu] li:not(.divider):visible a",$parent);if(!$items.length)return;var index=$items.index($items.filter(":focus"));if(e.keyCode==38&&index>0)index--;if(e.keyCode==40&&index<$items.length-1)index++;if(!~index)index=0;$items.eq(index).focus()};function clearMenus(){$(backdrop).remove();$(toggle).each(function(e){var $parent=getParent($(this));if(!$parent.hasClass("open"))return;$parent.trigger(e=$.Event("hide.bs.dropdown"));if(e.isDefaultPrevented())return;$parent.removeClass("open").trigger("hidden.bs.dropdown")})}function getParent($this){var selector=$this.attr("data-target");if(!selector){selector=$this.attr("href");selector=selector&&/#/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/,"")}var $parent=selector&&$(selector);return $parent&&$parent.length?$parent:$this.parent()}var old=$.fn.dropdown;$.fn.dropdown=function(option){return this.each(function(){var $this=$(this);var data=$this.data("dropdown");if(!data)$this.data("dropdown",data=new Dropdown(this));if(typeof option=="string")data[option].call($this)})};$.fn.dropdown.Constructor=Dropdown;$.fn.dropdown.noConflict=function(){$.fn.dropdown=old;return this};$(document).on("click.bs.dropdown.data-api",clearMenus).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",toggle,Dropdown.prototype.toggle).on("keydown.bs.dropdown.data-api",toggle+", [role=menu]",Dropdown.prototype.keydown)}(jQuery);+function($){"use strict";var Modal=function(element,options){this.options=options;this.$element=$(element);this.$backdrop=this.isShown=null;if(this.options.remote){this.$element.load(this.options.remote)}};Modal.DEFAULTS={backdrop:true,keyboard:true,show:true};Modal.prototype.toggle=function(_relatedTarget){return this[!this.isShown?"show":"hide"](_relatedTarget)};Modal.prototype.show=function(_relatedTarget){var that=this;var e=$.Event("show.bs.modal",{relatedTarget:_relatedTarget});this.$element.trigger(e);if(this.isShown||e.isDefaultPrevented())return;this.isShown=true;this.escape();this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',$.proxy(this.hide,this));this.backdrop(function(){var transition=$.support.transition&&that.$element.hasClass("fade");if(!that.$element.parent().length){that.$element.appendTo(document.body)}that.$element.show();if(transition){that.$element[0].offsetWidth}that.$element.addClass("in").attr("aria-hidden",false);that.enforceFocus();var e=$.Event("shown.bs.modal",{relatedTarget:_relatedTarget});transition?that.$element.find(".modal-dialog").one($.support.transition.end,function(){that.$element.focus().trigger(e)}).emulateTransitionEnd(300):that.$element.focus().trigger(e)})};Modal.prototype.hide=function(e){if(e)e.preventDefault();e=$.Event("hide.bs.modal");this.$element.trigger(e);if(!this.isShown||e.isDefaultPrevented())return;this.isShown=false;this.escape();$(document).off("focusin.bs.modal");this.$element.removeClass("in").attr("aria-hidden",true).off("click.dismiss.modal");$.support.transition&&this.$element.hasClass("fade")?this.$element.one($.support.transition.end,$.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal()};Modal.prototype.enforceFocus=function(){$(document).off("focusin.bs.modal").on("focusin.bs.modal",$.proxy(function(e){if(this.$element[0]!==e.target&&!this.$element.has(e.target).length){this.$element.focus()}},this))};Modal.prototype.escape=function(){if(this.isShown&&this.options.keyboard){this.$element.on("keyup.dismiss.bs.modal",$.proxy(function(e){e.which==27&&this.hide()},this))}else if(!this.isShown){this.$element.off("keyup.dismiss.bs.modal")}};Modal.prototype.hideModal=function(){var that=this;this.$element.hide();this.backdrop(function(){that.removeBackdrop();that.$element.trigger("hidden.bs.modal")})};Modal.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};Modal.prototype.backdrop=function(callback){var that=this;var animate=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var doAnimate=$.support.transition&&animate;this.$backdrop=$('').appendTo(document.body);this.$element.on("click.dismiss.modal",$.proxy(function(e){if(e.target!==e.currentTarget)return;this.options.backdrop=="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this)},this));if(doAnimate)this.$backdrop[0].offsetWidth;this.$backdrop.addClass("in");if(!callback)return;doAnimate?this.$backdrop.one($.support.transition.end,callback).emulateTransitionEnd(150):callback()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");$.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one($.support.transition.end,callback).emulateTransitionEnd(150):callback()}else if(callback){callback()}};var old=$.fn.modal;$.fn.modal=function(option,_relatedTarget){return this.each(function(){var $this=$(this);var data=$this.data("bs.modal");var options=$.extend({},Modal.DEFAULTS,$this.data(),typeof option=="object"&&option);if(options.remote){data=null}if(!data)$this.data("bs.modal",data=new Modal(this,options));if(typeof option=="string")data[option](_relatedTarget);else if(options.show)data.show(_relatedTarget);if(options.postShow){options.postShow();$this.find(".alert").hide()}})};$.fn.modal.Constructor=Modal;$.fn.modal.noConflict=function(){$.fn.modal=old;return this};$(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var $this=$(this);var href=$this.attr("href");var $target=$($this.attr("data-target")||href&&href.replace(/.*(?=#[^\s]+$)/,""));var option=$target.data("modal")?"toggle":$.extend({remote:!/#/.test(href)&&href},$target.data(),$this.data());e.preventDefault();$target.modal(option,this).one("hide",function(){$this.is(":visible")&&$this.focus()})});$(document).on("show.bs.modal",".modal",function(){$(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){$(document.body).removeClass("modal-open")})}(jQuery);+function($){"use strict";var Tooltip=function(element,options){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",element,options)};Tooltip.DEFAULTS={animation:true,placement:"top",selector:false,template:'',trigger:"hover focus",title:"",delay:0,html:false,container:false};Tooltip.prototype.init=function(type,element,options){this.enabled=true;this.type=type;this.$element=$(element);this.options=this.getOptions(options);var triggers=this.options.trigger.split(" ");for(var i=triggers.length;i--;){var trigger=triggers[i];if(trigger=="click"){this.$element.on("click."+this.type,this.options.selector,$.proxy(this.toggle,this))}else if(trigger!="manual"){var eventIn=trigger=="hover"?"mouseenter":"focus";var eventOut=trigger=="hover"?"mouseleave":"blur";this.$element.on(eventIn+"."+this.type,this.options.selector,$.proxy(this.enter,this));this.$element.on(eventOut+"."+this.type,this.options.selector,$.proxy(this.leave,this))}}this.options.selector?this._options=$.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};Tooltip.prototype.getDefaults=function(){return Tooltip.DEFAULTS};Tooltip.prototype.getOptions=function(options){options=$.extend({},this.getDefaults(),this.$element.data(),options);if(options.delay&&typeof options.delay=="number"){options.delay={show:options.delay,hide:options.delay}}return options};Tooltip.prototype.getDelegateOptions=function(){var options={};var defaults=this.getDefaults();this._options&&$.each(this._options,function(key,value){if(defaults[key]!=value)options[key]=value});return options};Tooltip.prototype.enter=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);clearTimeout(self.timeout);self.hoverState="in";if(!self.options.delay||!self.options.delay.show)return self.show();self.timeout=setTimeout(function(){if(self.hoverState=="in")self.show()},self.options.delay.show)};Tooltip.prototype.leave=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);clearTimeout(self.timeout);self.hoverState="out";if(!self.options.delay||!self.options.delay.hide)return self.hide();self.timeout=setTimeout(function(){if(self.hoverState=="out")self.hide()},self.options.delay.hide)};Tooltip.prototype.show=function(){var e=$.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);if(e.isDefaultPrevented())return;var $tip=this.tip();this.setContent();if(this.options.animation)$tip.addClass("fade");var placement=typeof this.options.placement=="function"?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement;var autoToken=/\s?auto?\s?/i;var autoPlace=autoToken.test(placement);if(autoPlace)placement=placement.replace(autoToken,"")||"top";$tip.detach().css({top:0,left:0,display:"block"}).addClass(placement);this.options.container?$tip.appendTo(this.options.container):$tip.insertAfter(this.$element);var pos=this.getPosition();var actualWidth=$tip[0].offsetWidth;var actualHeight=$tip[0].offsetHeight;if(autoPlace){var $parent=this.$element.parent();var orgPlacement=placement;var docScroll=document.documentElement.scrollTop||document.body.scrollTop;var parentWidth=this.options.container=="body"?window.innerWidth:$parent.outerWidth();var parentHeight=this.options.container=="body"?window.innerHeight:$parent.outerHeight();var parentLeft=this.options.container=="body"?0:$parent.offset().left;placement=placement=="bottom"&&pos.top+pos.height+actualHeight-docScroll>parentHeight?"top":placement=="top"&&pos.top-docScroll-actualHeight<0?"bottom":placement=="right"&&pos.right+actualWidth>parentWidth?"left":placement=="left"&&pos.left-actualWidth'});Popover.prototype=$.extend({},$.fn.tooltip.Constructor.prototype);Popover.prototype.constructor=Popover;Popover.prototype.getDefaults=function(){return Popover.DEFAULTS};Popover.prototype.setContent=function(){var $tip=this.tip();var title=this.getTitle();var content=this.getContent();$tip.find(".popover-title")[this.options.html?"html":"text"](title);$tip.find(".popover-content")[this.options.html?"html":"text"](content);$tip.removeClass("fade top bottom left right in");if(!$tip.find(".popover-title").html())$tip.find(".popover-title").hide()};Popover.prototype.hasContent=function(){return this.getTitle()||this.getContent()};Popover.prototype.getContent=function(){var $e=this.$element;var o=this.options;return $e.attr("data-content")||(typeof o.content=="function"?o.content.call($e[0]):o.content)};Popover.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};Popover.prototype.tip=function(){if(!this.$tip)this.$tip=$(this.options.template);return this.$tip};var old=$.fn.popover;$.fn.popover=function(option){return this.each(function(){var $this=$(this);var data=$this.data("bs.popover");var options=typeof option=="object"&&option;if(!data)$this.data("bs.popover",data=new Popover(this,options));if(typeof option=="string")data[option]()})};$.fn.popover.Constructor=Popover;$.fn.popover.noConflict=function(){$.fn.popover=old;return this}}(jQuery);+function($){"use strict";function ScrollSpy(element,options){var href;var process=$.proxy(this.process,this);this.$element=$(element).is("body")?$(window):$(element);this.$body=$("body");this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",process);this.options=$.extend({},ScrollSpy.DEFAULTS,options);this.selector=(this.options.target||(href=$(element).attr("href"))&&href.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a";this.offsets=$([]);this.targets=$([]);this.activeTarget=null;this.refresh();this.process()}ScrollSpy.DEFAULTS={offset:10};ScrollSpy.prototype.refresh=function(){var offsetMethod=this.$element[0]==window?"offset":"position";this.offsets=$([]);this.targets=$([]);var self=this;var $targets=this.$body.find(this.selector).map(function(){var $el=$(this);var href=$el.data("target")||$el.attr("href");var $href=/^#\w/.test(href)&&$(href);return $href&&$href.length&&[[$href[offsetMethod]().top+(!$.isWindow(self.$scrollElement.get(0))&&self.$scrollElement.scrollTop()),href]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){self.offsets.push(this[0]);self.targets.push(this[1])})};ScrollSpy.prototype.process=function(){var scrollTop=this.$scrollElement.scrollTop()+this.options.offset;var scrollHeight=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight;var maxScroll=scrollHeight-this.$scrollElement.height();var offsets=this.offsets;var targets=this.targets;var activeTarget=this.activeTarget;var i;if(scrollTop>=maxScroll){return activeTarget!=(i=targets.last()[0])&&this.activate(i)}for(i=offsets.length;i--;){activeTarget!=targets[i]&&scrollTop>=offsets[i]&&(!offsets[i+1]||scrollTop<=offsets[i+1])&&this.activate(targets[i])}};ScrollSpy.prototype.activate=function(target){this.activeTarget=target;$(this.selector).parents(".active").removeClass("active");var selector=this.selector+'[data-target="'+target+'"],'+this.selector+'[href="'+target+'"]';var active=$(selector).parents("li").addClass("active");if(active.parent(".dropdown-menu").length){active=active.closest("li.dropdown").addClass("active")}active.trigger("activate")};var old=$.fn.scrollspy;$.fn.scrollspy=function(option){return this.each(function(){var $this=$(this);var data=$this.data("bs.scrollspy");var options=typeof option=="object"&&option;if(!data)$this.data("bs.scrollspy",data=new ScrollSpy(this,options));if(typeof option=="string")data[option]()})};$.fn.scrollspy.Constructor=ScrollSpy;$.fn.scrollspy.noConflict=function(){$.fn.scrollspy=old;return this};$(window).on("load",function(){$('[data-spy="scroll"]').each(function(){var $spy=$(this);$spy.scrollspy($spy.data())})})}(jQuery);+function($){"use strict";var Tab=function(element){this.element=$(element)};Tab.prototype.show=function(){var $this=this.element;var $ul=$this.closest("ul:not(.dropdown-menu)");var selector=$this.data("target");if(!selector){selector=$this.attr("href");selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,"")}if($this.parent("li").hasClass("active"))return;var previous=$ul.find(".active:last a")[0];var e=$.Event("show.bs.tab",{relatedTarget:previous});$this.trigger(e);if(e.isDefaultPrevented())return;var $target=$(selector);this.activate($this.parent("li"),$ul);this.activate($target,$target.parent(),function(){$this.trigger({type:"shown.bs.tab",relatedTarget:previous})})};Tab.prototype.activate=function(element,container,callback){var $active=container.find("> .active");var transition=callback&&$.support.transition&&$active.hasClass("fade");function next(){$active.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");element.addClass("active");if(transition){element[0].offsetWidth;element.addClass("in")}else{element.removeClass("fade")}if(element.parent(".dropdown-menu")){element.closest("li.dropdown").addClass("active")}callback&&callback()}transition?$active.one($.support.transition.end,next).emulateTransitionEnd(150):next();$active.removeClass("in")};var old=$.fn.tab;$.fn.tab=function(option){return this.each(function(){var $this=$(this);var data=$this.data("bs.tab");if(!data)$this.data("bs.tab",data=new Tab(this));if(typeof option=="string")data[option]()
-})};$.fn.tab.Constructor=Tab;$.fn.tab.noConflict=function(){$.fn.tab=old;return this};$(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(e){e.preventDefault();$(this).tab("show")})}(jQuery);+function($){"use strict";var Affix=function(element,options){this.options=$.extend({},Affix.DEFAULTS,options);this.$window=$(window).on("scroll.bs.affix.data-api",$.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",$.proxy(this.checkPositionWithEventLoop,this));this.$element=$(element);this.affixed=this.unpin=null;this.checkPosition()};Affix.RESET="affix affix-top affix-bottom";Affix.DEFAULTS={offset:0};Affix.prototype.checkPositionWithEventLoop=function(){setTimeout($.proxy(this.checkPosition,this),1)};Affix.prototype.checkPosition=function(){if(!this.$element.is(":visible"))return;var scrollHeight=$(document).height();var scrollTop=this.$window.scrollTop();var position=this.$element.offset();var offset=this.options.offset;var offsetTop=offset.top;var offsetBottom=offset.bottom;if(typeof offset!="object")offsetBottom=offsetTop=offset;if(typeof offsetTop=="function")offsetTop=offset.top();if(typeof offsetBottom=="function")offsetBottom=offset.bottom();var affix=this.unpin!=null&&scrollTop+this.unpin<=position.top?false:offsetBottom!=null&&position.top+this.$element.height()>=scrollHeight-offsetBottom?"bottom":offsetTop!=null&&scrollTop<=offsetTop?"top":false;if(this.affixed===affix)return;if(this.unpin)this.$element.css("top","");this.affixed=affix;this.unpin=affix=="bottom"?position.top-scrollTop:null;this.$element.removeClass(Affix.RESET).addClass("affix"+(affix?"-"+affix:""));if(affix=="bottom"){this.$element.offset({top:document.body.offsetHeight-offsetBottom-this.$element.height()})}};var old=$.fn.affix;$.fn.affix=function(option){return this.each(function(){var $this=$(this);var data=$this.data("bs.affix");var options=typeof option=="object"&&option;if(!data)$this.data("bs.affix",data=new Affix(this,options));if(typeof option=="string")data[option]()})};$.fn.affix.Constructor=Affix;$.fn.affix.noConflict=function(){$.fn.affix=old;return this};$(window).on("load",function(){$('[data-spy="affix"]').each(function(){var $spy=$(this);var data=$spy.data();data.offset=data.offset||{};if(data.offsetBottom)data.offset.bottom=data.offsetBottom;if(data.offsetTop)data.offset.top=data.offsetTop;$spy.affix(data)})})}(jQuery);var LEA={};var Notebook={cache:{}};var Note={cache:{}};var Tag={};var Notebook={};var Share={};var Mobile={};var LeaAce={};var Converter;var MarkdownEditor;var ScrollLink;var MD;function trimLeft(str,substr){if(!substr||substr==" "){return $.trim(str)}while(str.indexOf(substr)==0){str=str.substring(substr.length)}return str}function json(str){return eval("("+str+")")}function t(){var args=arguments;if(args.length<=1){return args[0]}var text=args[0];if(!text){return text}var pattern="LEAAEL";text=text.replace(/\?/g,pattern);for(var i=1;i<=args.length;++i){text=text.replace(pattern,args[i])}return text}var tt=t;function arrayEqual(a,b){a=a||[];b=b||[];return a.join(",")==b.join(",")}function isArray(obj){return Object.prototype.toString.call(obj)==="[object Array]"}function isEmpty(obj){if(!obj){return true}if(isArray(obj)){if(obj.length==0){return true}}return false}function getFormJsonData(formId){var data=formArrDataToJson($("#"+formId).serializeArray());return data}function formArrDataToJson(arrData){var datas={};var arrObj={};for(var i in arrData){var attr=arrData[i].name;var value=arrData[i].value;if(attr.substring(attr.length-2,attr.length)=="[]"){attr=attr.substring(0,attr.length-2);if(arrObj[attr]==undefined){arrObj[attr]=[value]}else{arrObj[attr].push(value)}continue}datas[attr]=value}return $.extend(datas,arrObj)}function formSerializeDataToJson(formSerializeData){var arr=formSerializeData.split("&");var datas={};var arrObj={};for(var i=0;i/g,">");pre.removeAttr("style","").removeAttr("contenteditable").removeClass("ace_editor");pre.html(val)}}}content.find("pinit").remove();content.find(".thunderpin").remove();content.find(".pin").parent().remove();content=$(content).html();if(content){while(true){var lastEndScriptPos=content.lastIndexOf("");if(lastEndScriptPos==-1){return content}var length=content.length;if(length-9==lastEndScriptPos){var lastScriptPos=content.lastIndexOf("");if(lastEndScriptPos==-1){return content}var length=content.length;if(length-9==lastEndScriptPos){var lastScriptPos=content.lastIndexOf("