forked from miluluyo/cute-cnblogs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimpleMemory.min.js
187 lines (183 loc) · 11.1 KB
/
simpleMemory.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
/**
* Minified by jsDelivr using Terser v3.14.1.
* Original file: /gh/BNDong/[email protected]/src/script/simpleMemory.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
function showpage(){
$(".showpage").show();
}
function info_close(){
$(".showpage").hide();
}
if (initCheck()) {
var sidebarHtml =
'<div class="container"> <div class="menu-wrap optiscroll" id="menuWrap" style="display:none"> <nav class="menu"> \x3c!-- 个人简介 --\x3e <div class="introduce-box"> <div class="introduce-head"> <div class="introduce-via" id="menuBlogAvatar"></div> </div> <div id="introduce"></div> </div> \x3c!-- 导航 --\x3e <div class="nav-title"></div> <div class="icon-list"> <ul id="m-nav-list"> </ul> </div> \x3c!-- 访客来源 --\x3e <div class="m-list-title"><span>访客来源</span></div> <a href="https://clustrmaps.com/site/1atel" title="Visit tracker"><img src="//clustrmaps.com/map_v2.png?cl=ffffff&w=268&t=t&d=2nFOYwZsX5_B0_NrCvyQhSlS_54ETc9aRh4m89QWddo&co=000000" /></a> \x3c!-- 最新随笔 --\x3e <div class="m-list-title"><span>最新随笔</span></div> <div class="m-icon-list" id="sb-sidebarRecentposts"></div> \x3c!-- 我的标签 --\x3e <div class="m-list-title"><span>我的标签</span></div> <div class="m-icon-list" id="sb-toptags"></div> \x3c!-- 随笔分类 --\x3e <div class="m-list-title"><span>随笔分类</span></div> <div class="m-icon-list" id="sb-classify"></div> \x3c!-- 随笔档案 --\x3e <div class="m-list-title"><span>随笔档案</span></div> <div class="m-icon-list" id="sb-record"></div> \x3c!-- 阅读排行 --\x3e <div class="m-list-title"><span>阅读排行</span></div> <div class="m-icon-list" id="sb-topview"></div> \x3c!-- 推荐排行 --\x3e <div class="m-list-title"><span>推荐排行</span></div> <div class="m-icon-list" id="sb-topDiggPosts"></div> \x3c!-- 联系方式 --\x3e <div class="m-list-title" style="display: block;"><span>订阅号</span></div> <div class="m-icon-list" style="text-align:center"><img src="https://files-cdn.cnblogs.com/files/miluluyo/dyh.ico" style="width:150px"></div> \x3c!-- 微信号 --\x3e <div class="m-list-title" style="display: block;"><span>微信号</span></div> <div class="m-icon-list" style="text-align:center"><img src="https://images.cnblogs.com/cnblogs_com/miluluyo/1493340/o_wxh.jpg" style="width:150px"></div> \x3c!-- 自定义列表 --\x3e <span id="menuCustomList"></span> </nav> <button class="close-button" id="close-button">Close Menu</button> <div class="morph-shape" id="morph-shape" data-morph-open="M-7.312,0H15c0,0,66,113.339,66,399.5C81,664.006,15,800,15,800H-7.312V0z;M-7.312,0H100c0,0,0,113.839,0,400c0,264.506,0,400,0,400H-7.312V0z"> <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 100 800" preserveAspectRatio="none"> <path d="M-7.312,0H0c0,0,0,113.839,0,400c0,264.506,0,400,0,400h-7.312V0z"/> </svg> </div> </div> <button class="menu-button" id="open-button">MENU</button> <div class="content-wrap" id="content-wrap"></div>\x3c!-- /content-wrap --\x3e</div><div class="main-header"> <canvas id="notHomeTopCanvas" style=" position: absolute;margin: auto;width: 100%;height: 100%;top: 0;bottom: 0;left: 0;right: 0;"></canvas> <div class="vertical"> <div class="main-header-content inner"> <link href="https://fonts.googleapis.com/css?family=Playball" rel="stylesheet"> <h1 class="page-title" style="font-family: \'Playball\', cursive;" id="homeTopTitle"></h1> <h2 class="page-description" id="hitokoto"></h2> <h3 class="page-author" id="hitokotoAuthor"></h3> </div> </div> <a class="scroll-down" href="javascript:void(0);" data-offset="-45"> <span class="hidden">Scroll Down</span> <i class="scroll-down-icon iconfont icon-fanhui"></i> </a></div><div id="loading"></div><div id="bottomProgressBar"></div><div id="rightMenu"></div>';
window.cnblogsConfigDefault = {
GhUserName: "BNDong",
GhRepositories: "Cnblogs-Theme-SimpleMemory",
GhVersions: "v1.1.2",
blogUser: "",
blogAvatar: "",
blogStartDate: "2019-01-01",
menuCustomList: {},
menuNavList: [],
webpageTitleOnblur: "(o゚v゚)ノ Hi",
webpageTitleOnblurTimeOut: 500,
webpageTitleFocus: "(*´∇`*) 欢迎回来!",
webpageTitleFocusTimeOut: 1e3,
webpageIcon: "",
fontIconExtend: "",
progressBar: {
id: "top-progress-bar",
color: "#77b6ff",
height: "2px",
duration: .2
},
loading: {
rebound: {
tension: 16,
friction: 5
},
spinner: {
id: "spinner",
radius: 90,
sides: 3,
depth: 4,
colors: {
background: "#f0f0f0",
stroke: "#272633",
base: null,
child: "#272633"
},
alwaysForward: !0,
restAt: .5,
renderBase: !1
}
},
homeTopAnimationRendered: !0,
homeTopAnimation: {
radius: 15,
density: .2,
color: "rgba(255,255,255, .2)",
clearOffset: .3
},
essayTopAnimationRendered: !0,
essayTopAnimation: {
triW: 14,
triH: 20,
neighbours: ["side", "top", "bottom"],
speedTrailAppear: .1,
speedTrailDisappear: .1,
speedTriOpen: 1,
trailMaxLength: 30,
trailIntervalCreation: 100,
delayBeforeDisappear: 2,
colors: ["#D9B6D4", "#A29AC3", "#9091BF", "#9394C2", "#FBCACE", "#7E84B8", "#FCD5CE", "#6C79B5"]
},
bgAnimationRendered: !0,
backgroundAnimation: {
colorSaturation: "60%",
colorBrightness: "50%",
colorAlpha: .5,
colorCycleSpeed: 5,
verticalPosition: "random",
horizontalSpeed: 200,
ribbonCount: 3,
strokeSize: 0,
parallaxAmount: -.2,
animateSections: !0
},
homeTopImg: [
"http://img.xjh.me/random_img.php?type=bg&ctype=nature&return=302"],
homeBannerText: "",
essayTopImg: ["http://img.xjh.me/random_img.php?type=bg&ctype=nature&return=302"],
essayCodeHighlightingType: "cnblogs",
essayCodeHighlighting: "",
essaySuffix: {
aboutHtml: "",
copyrightHtml: "",
supportHtml: ""
},
bottomBlogroll: [],
bottomText: {
icon: "❤️",
left: "大道至简",
right: "知易行难"
},
consoleList: [],
themeAuthor: !1
}, window.cnblogsConfig = $.extend(!0, window.cnblogsConfigDefault, window.cnblogsConfig);
var url = window.location.href,
tmp = [],
user = (tmp = url.split("/"))[3],
navListHtml = '<li><a href="https://www.cnblogs.com/' + user +
'/" target="_self">首页</a></li></li><li><a href="https://www.cnblogs.com/' + user +
'/p/" target="_self">随笔</a></li><li><a href="https://msg.cnblogs.com/send/' + user +
'" target="_blank">联系</a></li><li><a href="https://www.cnblogs.com/miluluyo/?resume">简历</a></li><li><a href="https://miluluyo.github.io/" target="_black">技能树</a></li><li><a href="https://www.cnblogs.com/miluluyo/p/11578505.html">留言板</a></li><!--<li><a href="https://www.cnblogs.com/' + user +
'/rss" target="_blank">订阅</a></li>--><li><a href="https://i.cnblogs.com/" target="_blank">管理</a>',
menuNavList = window.cnblogsConfig.menuNavList;
menuNavList.length > 0 && $.each(menuNavList, function (i) {
navListHtml += '<li><a href="' + menuNavList[i][1] + '" target="_blank">' + menuNavList[i][0] +
"</a></li>"
}), $("#blog-news").prepend(sidebarHtml), $("#m-nav-list").append(navListHtml), "" === window.cnblogsConfig.blogUser &&
(window.cnblogsConfig.blogUser = user), $.ajaxSetup({
cache: !0
}), $.getScript(getJsDelivrUrl("loading.js"), function () {
pageLoading.initRebound(), pageLoading.initSpinner(), pageLoading.spinner.init(pageLoading.spring, !0),
$.getScript(getJsDelivrUrl("jquery.mCustomScrollbar.min.js"), function () {
$.getScript(getJsDelivrUrl("require.min.js"), function () {
$.getScript(getJsDelivrUrl("config.js"), function () {
require(["optiscroll", "ToProgress", "rotate", "snapSvg", "classie",
"main4", "tools"], function () {
require(["base"], function () {
(new Base).init()
})
})
})
})
})
})
} else $('a[name="top"]').text("SimpleMemory:基础配置有误,请阅读文档,检查配置!").css({
display: "block",
"text-align": "center",
"padding-top": "45vh",
"font-size": "20px",
color: "#333"
});
function initCheck() {
var i = $("#mobile-style").attr("href");
if (void 0 !== i) {
var e = i.split("/");
if (-1 !== $.inArray("SimpleMemory", e)) return !0
}
return !1
}
function getJsDelivrUrl(i, e) {
return i = setFileNameMin(i, e), "https://cdn.jsdelivr.net/gh/" + window.cnblogsConfig.GhUserName + "/" + window.cnblogsConfig
.GhRepositories + "@" + window.cnblogsConfig.GhVersions + "/" + (i || "")
}
function setFileNameMin(i, e) {
if (void 0 === i) return "";
var s = null,
t = i.split(".");
if (t.length > 0 && -1 !== $.inArray(t[t.length - 1], ["js", "css"])) switch (s = t.pop()) {
case "js":
e = "script";
break;
case "css":
e = "style"
} else {
if (void 0 === e) return "";
switch (e) {
case "js":
e = "script";
break;
case "css":
e = "style"
}
}
return -1 === i.search(".min") && t.push("min"), null != s && t.push(s), void 0 !== e ? "src/" + e + "/" + t.join(
".") : t.join(".")
}
//# sourceMappingURL=/sm/ae5a21a598a772a89366b55636becec8c0f33183c204ca4afb6128f656cad765.map