feat: change to Hugo-generated site
This commit is contained in:
1732 files changed
+62027
-134
No files matched your search
@@ -0,0 +1 @@
|
|||||||
|
k8s
|
||||||
+11
-8
@@ -1,6 +1,9 @@
|
|||||||
|
include:
|
||||||
|
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- deploy-prod
|
- deploy-prod
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
DOCKER_HOST: tcp://docker:2376
|
DOCKER_HOST: tcp://docker:2376
|
||||||
@@ -11,21 +14,21 @@ variables:
|
|||||||
|
|
||||||
image: buildtool/build-tools:${BUILDTOOLS_VERSION}
|
image: buildtool/build-tools:${BUILDTOOLS_VERSION}
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- build
|
- build
|
||||||
- push
|
- push
|
||||||
|
|
||||||
deploy-to-prod:
|
deploy-to-prod:
|
||||||
stage: deploy-prod
|
stage: deploy-prod
|
||||||
when: on_success
|
when: on_success
|
||||||
script:
|
script:
|
||||||
- echo Deploy to PROD.
|
- echo Deploy to PROD.
|
||||||
- deploy prod
|
- deploy prod
|
||||||
environment:
|
environment:
|
||||||
name: prod
|
name: prod
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
Whitespace-only changes.
+15
-6
@@ -1,11 +1,20 @@
|
|||||||
FROM nginx
|
FROM nginx:alpine as build
|
||||||
MAINTAINER Joakim Olsson <joakim@unbound.se>
|
|
||||||
|
|
||||||
ADD files/*.html /usr/share/nginx/html/
|
RUN apk add --update \
|
||||||
|
wget
|
||||||
|
|
||||||
ADD files/styles/*.css /usr/share/nginx/html/styles/
|
ARG HUGO_VERSION="0.89.4"
|
||||||
|
RUN wget --quiet "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz" && \
|
||||||
|
tar xzf hugo_${HUGO_VERSION}_Linux-64bit.tar.gz && \
|
||||||
|
rm -r hugo_${HUGO_VERSION}_Linux-64bit.tar.gz && \
|
||||||
|
mv hugo /usr/bin
|
||||||
|
|
||||||
|
COPY ./ /site
|
||||||
|
WORKDIR /site
|
||||||
|
RUN hugo
|
||||||
|
|
||||||
|
FROM nginx:alpine
|
||||||
ADD default.conf /etc/nginx/conf.d/default.conf
|
ADD default.conf /etc/nginx/conf.d/default.conf
|
||||||
|
COPY --from=build /site/public /usr/share/nginx/html
|
||||||
|
|
||||||
ENV ALLOW_HUP true
|
WORKDIR /usr/share/nginx/html
|
||||||
ENV ROTATE_LOGS true
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
title: "{{ replace .Name "-" " " | title }}"
|
||||||
|
date: {{ .Date }}
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 87 KiB |
+44
@@ -0,0 +1,44 @@
|
|||||||
|
baseURL = 'http://unbound.se/'
|
||||||
|
defaultContentLanguage = "sv"
|
||||||
|
languageCode = 'sv'
|
||||||
|
title = 'Unbound Software Development'
|
||||||
|
theme = "LoveIt"
|
||||||
|
|
||||||
|
[params]
|
||||||
|
# LoveIt theme version
|
||||||
|
version = "0.2.X"
|
||||||
|
|
||||||
|
|
||||||
|
[languages]
|
||||||
|
[languages.sv]
|
||||||
|
weight = 1
|
||||||
|
# language code
|
||||||
|
languageCode = "sv"
|
||||||
|
# language name
|
||||||
|
languageName = "Swedish"
|
||||||
|
[languages.sv.params]
|
||||||
|
[languages.sv.params.home]
|
||||||
|
# Home page profile
|
||||||
|
[languages.sv.params.home.profile]
|
||||||
|
enable = true
|
||||||
|
# Gravatar Email for preferred avatar in home page
|
||||||
|
gravatarEmail = "joakim@unbound.se"
|
||||||
|
# URL of avatar shown in home page
|
||||||
|
avatarURL = "/images/Jocke.png"
|
||||||
|
title = "Joakim Olsson"
|
||||||
|
subtitle = "Jack of all trades, master of none"
|
||||||
|
social = true
|
||||||
|
content = true
|
||||||
|
[languages.sv.params.social]
|
||||||
|
GitHub = "argoyle"
|
||||||
|
Linkedin = "joakim-olsson-78a9641"
|
||||||
|
Gitlab = "unboundsoftware"
|
||||||
|
Keybase = "argoyle"
|
||||||
|
Email = "joakim@unbound.se"
|
||||||
|
|
||||||
|
# Markup related configuration in Hugo
|
||||||
|
[markup]
|
||||||
|
# Syntax Highlighting (https://gohugo.io/content-management/syntax-highlighting)
|
||||||
|
[markup.highlight]
|
||||||
|
# false is a necessary configuration (https://github.com/dillonzq/LoveIt/issues/158)
|
||||||
|
noClasses = false
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
I am a highly motivated, very experienced and driven systems architect and developer with a passion for technology and
|
||||||
|
everything related to software development. Always looking for a challenge that can improve my technical and business
|
||||||
|
knowledge.
|
||||||
|
|
||||||
|
My experience and technical interest has lead me towards Team Lead/Architect roles. I've been mentoring development
|
||||||
|
teams, teaching Test Driven Development and the importance of Continuous Integration and Delivery at all the businesses
|
||||||
|
I've worked with. My goal is always to develop systems better and faster, using agile methodologies to improve the teams
|
||||||
|
performance in order to build high quality software.
|
||||||
|
|
||||||
|
My tech-stack of choice currently is Kubernetes for container orchestration, Go for backend services, RabbitMQ for
|
||||||
|
messaging between backend services, GraphQL for APIs and Vue or React for frontends.
|
||||||
|
|
||||||
|
If you need a senior consultant in the DevOps area don't hesitate to send me a message!
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Unbound Software Development</title>
|
|
||||||
<link rel="stylesheet" type="text/css" href="styles/default.css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<span class="title">Unbound</span><br>
|
|
||||||
<span class="subtitle">Software Development</span><br>
|
|
||||||
<br>
|
|
||||||
Denna site är under uppbyggnad.<br><br>
|
|
||||||
<a href=mailto:joakim@unbound.se>Joakim Olsson</a>
|
|
||||||
<script type="text/javascript">
|
|
||||||
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
|
||||||
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
try {
|
|
||||||
var pageTracker = _gat._getTracker("UA-10302082-2");
|
|
||||||
pageTracker._trackPageview();
|
|
||||||
} catch(err) {}</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
||||||
@@ -1,97 +0,0 @@
|
|||||||
body {
|
|
||||||
background: #203050;
|
|
||||||
color: #D0D0D0;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:link {
|
|
||||||
color: #D0D0D0;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:visited {
|
|
||||||
color: #F0C000;
|
|
||||||
}
|
|
||||||
|
|
||||||
div#logo {
|
|
||||||
position: absolute;
|
|
||||||
top: 10px;
|
|
||||||
right: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.title {
|
|
||||||
color: #D0D0D0;
|
|
||||||
font-family: impact;
|
|
||||||
font-size: 40px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.subtitle {
|
|
||||||
color: #D0D0D0;
|
|
||||||
font-family: impact;
|
|
||||||
font-size: 15px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul#nav {
|
|
||||||
list-style: none;
|
|
||||||
margin-top: 10px;
|
|
||||||
margin-left: 0px;
|
|
||||||
padding: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul#nav li {
|
|
||||||
float: left;
|
|
||||||
width: 80px;
|
|
||||||
height: 30px;
|
|
||||||
/*border-left: 2px solid #D0D0D0;
|
|
||||||
border-top: 2px solid #D0D0D0;
|
|
||||||
border-right: 2px solid #A0A0A0;
|
|
||||||
border-bottom: 0px; */
|
|
||||||
background-color: #B8B8B8;
|
|
||||||
color: #000000;
|
|
||||||
font-family: verdana, sans;
|
|
||||||
font-size: 0.8em;
|
|
||||||
font-weight: 700;
|
|
||||||
text-align: center;
|
|
||||||
text-vertical-align: middle;
|
|
||||||
margin: 1px;
|
|
||||||
/*border-radius: 4px;
|
|
||||||
-moz-border-radius: 4px; */
|
|
||||||
}
|
|
||||||
|
|
||||||
ul#nav li.selected {
|
|
||||||
border-left: 2px solid #D00000;
|
|
||||||
border-top: 2px solid #D00000;
|
|
||||||
border-right: 2px solid #A00000;
|
|
||||||
background-color: #B80000;
|
|
||||||
color: #FFFFFF;
|
|
||||||
}
|
|
||||||
|
|
||||||
.rtop, .rbottom {
|
|
||||||
display:block;
|
|
||||||
background-color: #203050;
|
|
||||||
}
|
|
||||||
|
|
||||||
.rtop *, .rbottom * {
|
|
||||||
display: block;
|
|
||||||
background-color: #B8B8B8;
|
|
||||||
height: 1px;
|
|
||||||
overflow: hidden
|
|
||||||
}
|
|
||||||
|
|
||||||
.r1 {
|
|
||||||
margin: 0 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.r2 {
|
|
||||||
margin: 0 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.r3 {
|
|
||||||
margin: 0 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.r4 {
|
|
||||||
margin: 0 1px;
|
|
||||||
height: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
html{font-family:system-ui,-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei UI,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;font-display:swap;font-size:16px;line-height:1.5rem;width:100%}::-webkit-scrollbar{width:.5rem;height:.5rem}::-webkit-scrollbar-thumb{background-color:#87878d}::-webkit-scrollbar-thumb:hover{background-color:#a9a9b3}::selection{background-color:rgba(53,166,247,0.25)}[theme=dark] ::selection{background-color:rgba(50,112,194,0.4)}body{background-color:#fff;color:#161209;word-wrap:break-word;overflow-wrap:break-word;scrollbar-color:auto}body[theme=dark]{color:#a9a9b3;background-color:#292a2d}input::-ms-clear{display:none}a,a::before,a::after{text-decoration:none;color:#161209}[theme=dark] a,[theme=dark] a::before,[theme=dark] a::after{color:#a9a9b3}a:active,a:hover{color:#2d96bd}[theme=dark] a:active,[theme=dark] a:hover{color:#fff}#mask{background-repeat:no-repeat;background-position:center;position:fixed;top:0;left:0;width:100%;height:100%;z-index:-1;background-color:rgba(0,0,0,0)}.blur #mask{z-index:100;background-color:rgba(0,0,0,0.25)}svg.icon{display:inline-block;width:1.25em;height:1em;text-align:center}svg.icon path{fill:currentColor}img.emoji{height:1em;width:1em;margin:0 .05em 0 .1em;vertical-align:-.1em}.details .details-summary:hover{cursor:pointer}.details i.details-icon{color:#a9a9b3;-webkit-transition:transform 0.2s ease;-moz-transition:transform 0.2s ease;-o-transition:transform 0.2s ease;transition:transform 0.2s ease}[theme=dark] .details i.details-icon{color:#5d5d5f}.details .details-content{max-height:0;overflow-y:hidden;-webkit-transition:max-height 0.8s cubic-bezier(0, 1, 0, 1) -0.1s;-moz-transition:max-height 0.8s cubic-bezier(0, 1, 0, 1) -0.1s;-o-transition:max-height 0.8s cubic-bezier(0, 1, 0, 1) -0.1s;transition:max-height 0.8s cubic-bezier(0, 1, 0, 1) -0.1s}.details.open i.details-icon{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.details.open .details-content{max-height:12000px;-webkit-transition:max-height 0.8s cubic-bezier(0.5, 0, 1, 0) 0s;-moz-transition:max-height 0.8s cubic-bezier(0.5, 0, 1, 0) 0s;-o-transition:max-height 0.8s cubic-bezier(0.5, 0, 1, 0) 0s;transition:max-height 0.8s cubic-bezier(0.5, 0, 1, 0) 0s}#fixed-buttons{display:none}.fixed-button{display:none;z-index:100;position:fixed;right:1.5rem;font-size:1rem;line-height:1.3rem;padding:.6rem .6rem;color:#a9a9b3;background:#f8f8f8;-webkit-border-radius:2rem;-moz-border-radius:2rem;border-radius:2rem;-webkit-transition:color 0.4s ease;-moz-transition:color 0.4s ease;-o-transition:color 0.4s ease;transition:color 0.4s ease}.blur .fixed-button{-webkit-filter:blur(1.5px);-moz-filter:blur(1.5px);-ms-filter:blur(1.5px);filter:blur(1.5px)}.fixed-button:hover,.fixed-button:active{color:#161209;cursor:pointer}.fixed-button:active,.fixed-button:focus,.fixed-button:hover{outline:none}[theme=dark] .fixed-button{color:#5d5d5f;background:#252627}[theme=dark] .fixed-button:hover,[theme=dark] .fixed-button:active{color:#a9a9b3}#back-to-top{display:block;bottom:1.5rem}#view-comments{bottom:4.5rem}.cc-window.cc-banner .cc-btn{color:#161209}.cc-window.cc-banner .cc-btn:hover,.cc-window.cc-banner .cc-btn:focus{background-color:#ccc}[theme=dark] .cc-window.cc-banner .cc-btn{color:#161209}[theme=dark] .cc-window.cc-banner .cc-btn:hover,[theme=dark] .cc-window.cc-banner .cc-btn:focus{background-color:#fff}img{-o-object-fit:contain;object-fit:contain;font-family:"object-fit: contain;"}.wrapper{display:flex;flex-direction:column;min-height:100vh;width:100%}.wrapper main{flex:1 0 auto}.wrapper main .container{padding:0 1rem}.page{position:relative;max-width:800px;width:60%;margin:0 auto}[header-desktop] .page{padding-top:3.5rem}[header-desktop=normal] .page{padding-top:0}.blur .page{-webkit-filter:blur(1.5px);-moz-filter:blur(1.5px);-ms-filter:blur(1.5px);filter:blur(1.5px)}.toc .toc-title{font-size:1.2rem;font-weight:bold;text-transform:uppercase}.toc .toc-content{font-size:1rem}.toc .toc-content ul{text-indent:-0.85rem;padding-left:.8rem;list-style:none}.toc .toc-content ul a:first-child::before{content:"|";font-weight:bolder;margin-right:.5rem;color:#2d96bd}[theme=dark] .toc .toc-content ul a:first-child::before{color:#55bde2}.toc .toc-content ul ul{padding-left:1.5rem}.toc ruby{background:#f5f5f5}.toc ruby rt{color:#a9a9b3}[theme=dark] .toc ruby{background:#272C34}[theme=dark] .toc ruby rt{color:#5d5d5f}#toc-auto{display:block;position:absolute;width:12000px;max-width:0;padding:0 .8rem;border-left:4px solid #f0f0f0;word-wrap:break-word;overflow-wrap:break-word;box-sizing:border-box;top:10rem;left:0;visibility:hidden}[header-desktop=normal] #toc-auto{top:5rem}.blur #toc-auto{-webkit-filter:blur(1.5px);-moz-filter:blur(1.5px);-ms-filter:blur(1.5px);filter:blur(1.5px)}[theme=dark] #toc-auto{border-left-color:#363636}#toc-auto .toc-title{margiLine truncated
|
||||||
|
|
||||||
|
/*# sourceMappingURL=style.min.css.map */
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"Target":"css/style.min.css","MediaType":"text/css","Data":{}}
|
||||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"presets": [
|
||||||
|
[
|
||||||
|
"@babel/preset-env",
|
||||||
|
{
|
||||||
|
"targets": "> 0.25%, not dead"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"minify"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
version: 2.1
|
||||||
|
jobs:
|
||||||
|
build-check:
|
||||||
|
docker:
|
||||||
|
- image: cibuilds/hugo:0.62
|
||||||
|
working_directory: ~/LoveIt
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run: git submodule sync
|
||||||
|
- run: git submodule update --init
|
||||||
|
- run: hugo --source=exampleSite -v --gc
|
||||||
|
- run: htmlproofer exampleSite/public --check-html --allow-hash-href --empty-alt-ignore --disable-external
|
||||||
|
|
||||||
|
workflows:
|
||||||
|
build-check-exampleSite:
|
||||||
|
jobs:
|
||||||
|
- build-check
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
custom: https://paypal.me/dillonzq
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
---
|
||||||
|
name: Bug Report 错误报告
|
||||||
|
about: Create a bug report 创建一个错误报告
|
||||||
|
title: "[BUG] Some problem..."
|
||||||
|
labels: bug
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Describe the bug 描述你遇到的错误
|
||||||
|
|
||||||
|
A clear and concise description of what the bug is.
|
||||||
|
一段简短的对于你遇到的错误的描述.
|
||||||
|
|
||||||
|
### Expected behavior 期待的行为
|
||||||
|
|
||||||
|
A clear and concise description of what you expected to happen.
|
||||||
|
一段简短的对于你期待的行为的描述.
|
||||||
|
|
||||||
|
### Screenshots 屏幕截图
|
||||||
|
|
||||||
|
If applicable, add screenshots to help explain your problem.
|
||||||
|
如果可以的话, 提供屏幕截图对解决问题很有帮助.
|
||||||
|
|
||||||
|
### Build Environment 构建环境
|
||||||
|
|
||||||
|
- OS: [e.g. Windows 10, macOS, Ubuntu]
|
||||||
|
- Theme version/commit [e.g. 0.2.0, 2ccba79]
|
||||||
|
- Hugo version [e.g. 0.69.0]
|
||||||
|
|
||||||
|
Please try to use Hugo **extended** version before opening the issue.
|
||||||
|
请在创建 issue 之前尝试使用 Hugo **extended** 版本.
|
||||||
|
|
||||||
|
### Preview Environment 预览环境
|
||||||
|
|
||||||
|
- OS: [e.g. Windows 10, macOS, Ubuntu, iOS, Android]
|
||||||
|
- Browser [e.g. Chrome, Safari, Firefox]
|
||||||
|
|
||||||
|
### Additional Information 补充信息
|
||||||
|
|
||||||
|
Configuration files or front matter code...
|
||||||
|
配置文件或者前置参数的代码...
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
blank_issues_enabled: false
|
||||||
|
contact_links:
|
||||||
|
- name: Theme Documentation 主题文档
|
||||||
|
url: https://hugoloveit.com/categories/documentation/
|
||||||
|
about: Please read the documentation carefully. 请先仔细阅读主题文档.
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
name: Feature request 功能请求
|
||||||
|
about: Suggest an idea for this project 为这个项目提供一个建议
|
||||||
|
title: "[FEATURE] Some feature"
|
||||||
|
labels: enhancement
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Describe the feature you want 描述你的功能需求
|
||||||
|
|
||||||
|
- Feature 1 功能需求 1
|
||||||
|
I want this feature to solve ...
|
||||||
|
我希望这个功能解决 ...
|
||||||
|
- Feature 2 功能需求 2
|
||||||
|
I want this feature to solve ...
|
||||||
|
我希望这个功能解决 ...
|
||||||
|
- ...
|
||||||
|
|
||||||
|
### Useful reference 有价值的参考
|
||||||
|
|
||||||
|
If available, provide useful links to fulfill the feature.
|
||||||
|
如果可以的话, 提供实现这个功能的相关参考链接.
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# Hugo default output directory
|
||||||
|
public/
|
||||||
|
/exampleSite/resources/
|
||||||
|
|
||||||
|
node_modules/
|
||||||
|
build/
|
||||||
|
|
||||||
|
## OS Files
|
||||||
|
# Windows
|
||||||
|
Thumbs.db
|
||||||
|
ehthumbs.db
|
||||||
|
Desktop.ini
|
||||||
|
$RECYCLE.BIN/
|
||||||
|
|
||||||
|
# OSX
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# Linux
|
||||||
|
.directory
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2018 LIUZHICHAO.COM
|
||||||
|
Copyright (c) 2019 DILLONZQ.COM
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||||
|
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||||
|
subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||||
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||||
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
@@ -0,0 +1,196 @@
|
|||||||
|
# LoveIt Theme | Hugo [](https://app.netlify.com/sites/hugo-loveit/deploys)
|
||||||
|
|
||||||
|
[](https://github.com/dillonzq/LoveIt/releases)
|
||||||
|
[](https://gohugo.io/)
|
||||||
|
[](https://github.com/dillonzq/LoveIt/blob/master/LICENSE)
|
||||||
|
[](https://app.circleci.com/pipelines/github/dillonzq/LoveIt)
|
||||||
|
|
||||||
|
English README | [简体中文说明](https://github.com/dillonzq/LoveIt/blob/master/README.zh-cn.md)
|
||||||
|
|
||||||
|
> **LoveIt** is a **clean**, **elegant** but **advanced** blog theme for [Hugo](https://gohugo.io/).
|
||||||
|
|
||||||
|
It is based on the original [LeaveIt Theme](https://github.com/liuzc/LeaveIt) and [KeepIt Theme](https://github.com/Fastbyte01/KeepIt).
|
||||||
|
|
||||||
|
Since the three themes have a similar look, if you have questions about their differences,
|
||||||
|
read [Why choose LoveIt](#why-choose-loveit) so that you can choose the one that works best for you.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## [Demo Site](https://hugoloveit.com/)
|
||||||
|
|
||||||
|
To see this theme in action, here is a live [demo site](https://hugoloveit.com/) which is rendered with **LoveIt** theme.
|
||||||
|
|
||||||
|
## Why choose LoveIt
|
||||||
|
|
||||||
|
Compared to the original LeaveIt theme and the KeepIt theme, the LoveIt theme has the following modifications.
|
||||||
|
|
||||||
|
* Custom **Header**
|
||||||
|
* Custom **CSS Style**
|
||||||
|
* A new **home page**, compatible with the latest version of Hugo
|
||||||
|
* A lot of **style detail adjustments,** including color, font size, margins, code preview style
|
||||||
|
* More readable **dark mode**
|
||||||
|
* Some beautiful **CSS animations**
|
||||||
|
* Easy-to-use and self-expanding **table of contents**
|
||||||
|
* More **social links**, **share sites** and **comment system**
|
||||||
|
* **Search** supported by [Lunr.js](https://lunrjs.com/) or [algolia](https://www.algolia.com/)
|
||||||
|
* **Copy code** to clipboard with one click
|
||||||
|
* Extended Markdown syntax for **[Font Awesome](https://fontawesome.com/) icons**
|
||||||
|
* Extended Markdown syntax for **ruby annotation**
|
||||||
|
* Extended Markdown syntax for **fraction**
|
||||||
|
* **Mathematical formula** supported by [KaTeX](https://katex.org/)
|
||||||
|
* **Diagram syntax** shortcode supported by [mermaid](https://github.com/knsv/mermaid)
|
||||||
|
* **Interactive data visualization** shortcode supported by [ECharts](https://echarts.apache.org/)
|
||||||
|
* **Mapbox** shortcode supported by [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js)
|
||||||
|
* Embedded **music player** supported by [APlayer](https://github.com/MoePlayer/APlayer) and [MetingJS](https://github.com/metowolf/MetingJS)
|
||||||
|
* **Bilibili** player supported
|
||||||
|
* Kinds of **admonitions** shortcode supported
|
||||||
|
* Custom style shortcodes supported
|
||||||
|
* **CDN** for all third-party libraries supported
|
||||||
|
* ...
|
||||||
|
|
||||||
|
In short,
|
||||||
|
if you prefer the design language and freedom of the LoveIt theme,
|
||||||
|
if you want to use the extended Font Awesome icons conveniently,
|
||||||
|
if you want to embed mathematical formulas, flowcharts, music or Bilibili videos in your posts,
|
||||||
|
the LoveIt theme may be more suitable for you.
|
||||||
|
|
||||||
|
I hope you will LoveIt ❤️!
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### Performance and SEO
|
||||||
|
|
||||||
|
* Optimized for **performance**: 99/100 on mobile and 100/100 on desktop in [Google PageSpeed Insights](https://developers.google.com/speed/pagespeed/insights)
|
||||||
|
* Optimized SEO performance with a correct **SEO SCHEMA** based on JSON-LD
|
||||||
|
* **[Google Analytics](https://analytics.google.com/analytics)** supported
|
||||||
|
* **[Fathom Analytics](https://usefathom.com/)** supported
|
||||||
|
* Search engine **verification** supported (Google, Bind, Yandex and Baidu)
|
||||||
|
* **CDN** for third-party libraries supported
|
||||||
|
* Automatically converted images with **Lazy Load** by [lazysizes](https://github.com/aFarkas/lazysizes)
|
||||||
|
|
||||||
|
### Appearance and Layout
|
||||||
|
|
||||||
|
* **Responsive** layout
|
||||||
|
* **Light/Dark** mode
|
||||||
|
* Globally consistent **design language**
|
||||||
|
* **Pagination** supported
|
||||||
|
* Easy-to-use and self-expanding **table of contents**
|
||||||
|
* **Multilanguage** supported and i18n ready
|
||||||
|
* Beautiful **CSS animation**
|
||||||
|
|
||||||
|
### Social and Comment Systems
|
||||||
|
|
||||||
|
* **Gravatar** supported by [Gravatar](https://gravatar.com)
|
||||||
|
* Local **Avatar** supported
|
||||||
|
* Up to **64** social links supported
|
||||||
|
* Up to **28** share sites supported
|
||||||
|
* **Disqus** comment system supported by [Disqus](https://disqus.com)
|
||||||
|
* **Gitalk** comment system supported by [Gitalk](https://github.com/gitalk/gitalk)
|
||||||
|
* **Valine** comment system supported by [Valine](https://valine.js.org/)
|
||||||
|
* **Facebook comments** system supported by [Facebook](https://developers.facebook.com/docs/plugins/comments/)
|
||||||
|
* **Telegram comments** system supported by [Telegram Comments](https://comments.app/)
|
||||||
|
* **Commento** comment system supported by [Commento](https://commento.io/)
|
||||||
|
* **Utterances** comment system supported by [Utterances](https://utteranc.es/)
|
||||||
|
|
||||||
|
### Extended Features
|
||||||
|
|
||||||
|
* **Search** supported by [Lunr.js](https://lunrjs.com/) or [algolia](https://www.algolia.com/)
|
||||||
|
* **Twemoji** supported
|
||||||
|
* Automatically **highlighting** code
|
||||||
|
* **Copy code** to clipboard with one click
|
||||||
|
* **Images gallery** supported by [lightgallery.js](https://github.com/sachinchoolur/lightgallery.js)
|
||||||
|
* Extended Markdown syntax for **[Font Awesome](https://fontawesome.com/) icons**
|
||||||
|
* Extended Markdown syntax for **ruby annotation**
|
||||||
|
* Extended Markdown syntax for **fraction**
|
||||||
|
* **Mathematical formula** supported by [KaTeX](https://katex.org/)
|
||||||
|
* **Diagrams** shortcode supported by [mermaid](https://github.com/knsv/mermaid)
|
||||||
|
* **Interactive data visualization** shortcode supported by [ECharts](https://echarts.apache.org/)
|
||||||
|
* **Mapbox** shortcode supported by [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js)
|
||||||
|
* **Music player** shortcode supported by [APlayer](https://github.com/MoePlayer/APlayer) and [MetingJS](https://github.com/metowolf/MetingJS)
|
||||||
|
* **Bilibili player** shortcode
|
||||||
|
* Kinds of **admonitions** shortcode
|
||||||
|
* **Custom style** shortcode
|
||||||
|
* **Custom script** shortcode
|
||||||
|
* **Animated typing** supported by [TypeIt](https://typeitjs.com/)
|
||||||
|
* **Dynamic scroll** supported by [Smooth Scroll](https://github.com/cferdinandi/smooth-scroll)
|
||||||
|
* **Cookie consent banner** supported by [cookieconsent](https://github.com/osano/cookieconsent)
|
||||||
|
* ...
|
||||||
|
|
||||||
|
## [Documentation](https://hugoloveit.com/categories/documentation/)
|
||||||
|
|
||||||
|
Build Documentation Locally:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
hugo server --source=exampleSite
|
||||||
|
```
|
||||||
|
|
||||||
|
## Multilingual and i18n
|
||||||
|
|
||||||
|
LoveIt supports the following languages:
|
||||||
|
|
||||||
|
* English
|
||||||
|
* Simplified Chinese
|
||||||
|
* French
|
||||||
|
* Polish
|
||||||
|
* Brazilian Portuguese
|
||||||
|
* Italian
|
||||||
|
* Spanish
|
||||||
|
* German
|
||||||
|
* Serbian
|
||||||
|
* Russian
|
||||||
|
* Romanian
|
||||||
|
* Vietnamese
|
||||||
|
* [Contribute with a new language](https://github.com/dillonzq/LoveIt/pulls)
|
||||||
|
|
||||||
|
[Languages Compatibility](https://hugoloveit.com/theme-documentation-basics/#language-compatibility)
|
||||||
|
|
||||||
|
## [Roadmap](https://github.com/dillonzq/LoveIt/projects/1)
|
||||||
|
|
||||||
|
## Questions, ideas, bugs, pull requests
|
||||||
|
|
||||||
|
All feedback is welcome! Head over to the [issue tracker](https://github.com/dillonzq/LoveIt/issues).
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
LoveIt is licensed under the **MIT** license. Check the [LICENSE file](https://github.com/dillonzq/LoveIt/blob/master/LICENSE) for details.
|
||||||
|
|
||||||
|
Thanks to the authors of following resources included in the theme:
|
||||||
|
|
||||||
|
* [normalize.css](https://github.com/necolas/normalize.css)
|
||||||
|
* [Font Awesome](https://fontawesome.com/)
|
||||||
|
* [Simple Icons](https://github.com/simple-icons/simple-icons)
|
||||||
|
* [Animate.css](https://daneden.github.io/animate.css/)
|
||||||
|
* [Smooth Scroll](https://github.com/cferdinandi/smooth-scroll)
|
||||||
|
* [autocomplete.js](https://github.com/algolia/autocomplete.js)
|
||||||
|
* [Lunr.js](https://lunrjs.com/)
|
||||||
|
* [algoliasearch](https://github.com/algolia/algoliasearch-client-javascript)
|
||||||
|
* [lazysizes](https://github.com/aFarkas/lazysizes)
|
||||||
|
* [object-fit-images](https://github.com/fregante/object-fit-images)
|
||||||
|
* [Twemoji](https://github.com/twitter/twemoji)
|
||||||
|
* [lightgallery.js](https://github.com/sachinchoolur/lightgallery.js)
|
||||||
|
* [clipboard.js](https://github.com/zenorocha/clipboard.js)
|
||||||
|
* [Sharer.js](https://github.com/ellisonleao/sharer.js)
|
||||||
|
* [TypeIt](https://typeitjs.com/)
|
||||||
|
* [KaTeX](https://katex.org/)
|
||||||
|
* [mermaid](https://github.com/knsv/mermaid)
|
||||||
|
* [ECharts](https://echarts.apache.org/)
|
||||||
|
* [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js)
|
||||||
|
* [APlayer](https://github.com/MoePlayer/APlayer)
|
||||||
|
* [MetingJS](https://github.com/metowolf/MetingJS)
|
||||||
|
* [Gitalk](https://github.com/gitalk/gitalk)
|
||||||
|
* [Valine](https://valine.js.org/)
|
||||||
|
* [cookieconsent](https://github.com/osano/cookieconsent)
|
||||||
|
|
||||||
|
## Author
|
||||||
|
|
||||||
|
[Dillon](https://dillonzq.com)
|
||||||
|
|
||||||
|
## Sponsor
|
||||||
|
|
||||||
|
If you enjoy the theme, please consider buying me a coffee ☕️.
|
||||||
|
|
||||||
|
* [PayPal](https://paypal.me/dillonzq)
|
||||||
|
* [Alipay](https://github.com/dillonzq/LoveIt/raw/master/images/Alipay.jpg)
|
||||||
|
* [Wechat](https://github.com/dillonzq/LoveIt/raw/master/images/Wechat.jpg)
|
||||||
|
|
||||||
|
Thanks! ❤️
|
||||||
@@ -0,0 +1,191 @@
|
|||||||
|
# LoveIt 主题 | Hugo [](https://app.netlify.com/sites/hugo-loveit/deploys)
|
||||||
|
|
||||||
|
[](https://github.com/dillonzq/LoveIt/releases)
|
||||||
|
[](https://gohugo.io/)
|
||||||
|
[](https://github.com/dillonzq/LoveIt/blob/master/LICENSE)
|
||||||
|
[](https://app.circleci.com/pipelines/github/dillonzq/LoveIt)
|
||||||
|
|
||||||
|
[English README](https://github.com/dillonzq/LoveIt/blob/master/README.md) | 简体中文说明
|
||||||
|
|
||||||
|
> [LoveIt](https://github.com/dillonzq/LoveIt) 是一个**简洁**、**优雅**且**高效**的 [Hugo](https://gohugo.io/) 博客主题。
|
||||||
|
|
||||||
|
它的原型基于 [LeaveIt 主题](https://github.com/liuzc/LeaveIt) 和 [KeepIt 主题](https://github.com/Fastbyte01/KeepIt)。
|
||||||
|
|
||||||
|
由于三个主题外观的相似性,如果你对于它们的不同之处有疑问,请阅读 [为什么选择 LoveIt](#为什么选择-LoveIt),以便你能选择最适合你的一个。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 主题[预览](https://hugoloveit.com/zh-cn/)
|
||||||
|
|
||||||
|
为了直观地浏览主题特性,这里有一个基于 **LoveIt** 主题渲染的 [预览网站](https://hugoloveit.com/zh-cn/)。
|
||||||
|
|
||||||
|
## 为什么选择 LoveIt
|
||||||
|
|
||||||
|
相较于 LeaveIt 主题 和 KeepIt 主题,LoveIt 主题主要有以下修改
|
||||||
|
|
||||||
|
* 自定义**标题栏**
|
||||||
|
* 自定义**CSS 样式**
|
||||||
|
* 焕然一新的**主页**,已经兼容最新版 Hugo
|
||||||
|
* 大量的**样式细节调整**,包括颜色、字体大小、边距、代码预览样式
|
||||||
|
* 可读性更强的**深色模式**
|
||||||
|
* 一些美观的 **CSS 动画**
|
||||||
|
* 易用和自动展开的**文章目录**
|
||||||
|
* 支持更多的**社交链接**、**网站分享**和**评论系统**
|
||||||
|
* 支持基于 [Lunr.js](https://lunrjs.com/) 或 [algolia](https://www.algolia.com/) 的**搜索**
|
||||||
|
* 一键**复制代码**到剪贴板
|
||||||
|
* 支持基于 **[Font Awesome](https://fontawesome.com/) 图标**的扩展 Markdown 语法
|
||||||
|
* 支持**上标注释**的扩展 Markdown 语法
|
||||||
|
* 支持**分数**的扩展 Markdown 语法
|
||||||
|
* 支持基于 [KaTeX](https://katex.org/) 的**数学公式**
|
||||||
|
* 支持基于 [mermaid](https://github.com/knsv/mermaid) 的**图表**生成功能
|
||||||
|
* 支持基于 [ECharts](https://echarts.apache.org/) 的**交互式数据可视化**生成功能
|
||||||
|
* 支持基于 [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js) 的 **Mapbox** 地图显示功能
|
||||||
|
* 支持基于 [APlayer](https://github.com/MoePlayer/APlayer) 和 [MetingJS](https://github.com/metowolf/MetingJS) 的内嵌**音乐播放器**
|
||||||
|
* 支持内嵌 **Bilibili** 视频
|
||||||
|
* 支持多种**注释**的 shortcode
|
||||||
|
* 支持自定义样式的 shortcode
|
||||||
|
* 支持所有第三方库的 **CDN**
|
||||||
|
* ...
|
||||||
|
|
||||||
|
所以,如果你更偏好 LoveIt 主题的设计语言和自由度,如果你想便捷地使用扩展的 Font Awesome 图标,如果你想在文章内嵌数学公式、流程图、音乐或是 Bilibili 视频,
|
||||||
|
那么,LoveIt 主题可能是更适合你。
|
||||||
|
希望你会 LoveIt ❤️!
|
||||||
|
|
||||||
|
## 特性
|
||||||
|
|
||||||
|
### 性能和 SEO
|
||||||
|
|
||||||
|
* **性能**优化:在 [Google PageSpeed Insights](https://developers.google.com/speed/pagespeed/insights) 中, 99/100 的移动设备得分和 100/100 的桌面设备得分
|
||||||
|
* 使用基于 JSON-LD 格式 的 **SEO SCHEMA** 文件进行 SEO 优化
|
||||||
|
* 支持 **[Google Analytics](https://analytics.google.com/analytics)**
|
||||||
|
* 支持 **[Fathom Analytics](https://usefathom.com/)**
|
||||||
|
* 支持搜索引擎的**网站验证** (Google, Bind, Yandex and Baidu)
|
||||||
|
* 支持所有第三方库的 **CDN**
|
||||||
|
* 基于 [lazysizes](https://github.com/aFarkas/lazysizes) 自动转换图片为**懒加载**
|
||||||
|
|
||||||
|
### 外观和布局
|
||||||
|
|
||||||
|
* **响应式**布局
|
||||||
|
* **浅色/深色** 主题模式
|
||||||
|
* 全局一致的**设计语言**
|
||||||
|
* 支持**分页**
|
||||||
|
* 易用和自动展开的**文章目录**
|
||||||
|
* 支持**多语言**和国际化
|
||||||
|
* 美观的 **CSS 动画**
|
||||||
|
|
||||||
|
### 社交和评论系统
|
||||||
|
|
||||||
|
* 支持 **[Gravatar](https://gravatar.com)** 头像
|
||||||
|
* 支持本地**头像**
|
||||||
|
* 支持多达 **64** 种社交链接
|
||||||
|
* 支持多达 **28** 种网站分享
|
||||||
|
* 支持 **[Disqus](https://disqus.com)** 评论系统
|
||||||
|
* 支持 **[Gitalk](https://github.com/gitalk/gitalk)** 评论系统
|
||||||
|
* 支持 **[Valine](https://valine.js.org/)** 评论系统
|
||||||
|
* 支持 **[Facebook](https://developers.facebook.com/docs/plugins/comments/) 评论**系统
|
||||||
|
* 支持 **[Telegram comments](https://comments.app/) 评论**系统
|
||||||
|
* 支持 **[Commento](https://commento.io/)** 评论系统
|
||||||
|
* 支持 **[Utterances](https://utteranc.es/)** 评论系统
|
||||||
|
|
||||||
|
### 扩展功能
|
||||||
|
|
||||||
|
* 支持基于 [Lunr.js](https://lunrjs.com/) 或 [algolia](https://www.algolia.com/) 的**搜索**
|
||||||
|
* 支持 **Twemoji**
|
||||||
|
* 支持**代码高亮**
|
||||||
|
* 一键**复制代码**到剪贴板
|
||||||
|
* 支持基于 [lightgallery.js](https://github.com/sachinchoolur/lightgallery.js) 的**图片画廊**
|
||||||
|
* 支持 **[Font Awesome](https://fontawesome.com/) 图标**的扩展 Markdown 语法
|
||||||
|
* 支持**上标注释**的扩展 Markdown 语法
|
||||||
|
* 支持**分数**的扩展 Markdown 语法
|
||||||
|
* 支持基于 [KaTeX](https://katex.org/) 的**数学公式**
|
||||||
|
* 支持基于 [mermaid](https://github.com/knsv/mermaid) 的**图表** shortcode
|
||||||
|
* 支持基于 [ECharts](https://echarts.apache.org/) 的**交互式数据可视化** shortcode
|
||||||
|
* 支持基于 [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js) 的 **Mapbox** shortcode
|
||||||
|
* 支持基于 [APlayer](https://github.com/MoePlayer/APlayer) 和 [MetingJS](https://github.com/metowolf/MetingJS) 的**音乐播放器** shortcode
|
||||||
|
* 支持 **Bilibili 视频** shortcode
|
||||||
|
* 支持多种**注释**的 shortcode
|
||||||
|
* 支持**自定义样式**的 shortcode
|
||||||
|
* 支持**自定义脚本**的 shortcode
|
||||||
|
* 支持基于 [TypeIt](https://typeitjs.com/) 的**打字动画** shortcode
|
||||||
|
* 支持基于 [Smooth Scroll](https://github.com/cferdinandi/smooth-scroll) 的**滚动动画**
|
||||||
|
* 支持基于 [cookieconsent](https://github.com/osano/cookieconsent) 的 **Cookie 许可横幅**
|
||||||
|
* ...
|
||||||
|
|
||||||
|
## [文档](https://hugoloveit.com/zh-cn/categories/documentation/)
|
||||||
|
|
||||||
|
在本地构建文档:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
hugo server --source=exampleSite
|
||||||
|
```
|
||||||
|
|
||||||
|
## 多语言和国际化
|
||||||
|
|
||||||
|
LoveIt 支持下列语言:
|
||||||
|
|
||||||
|
* 英语
|
||||||
|
* 简体中文
|
||||||
|
* 法语
|
||||||
|
* 波兰语
|
||||||
|
* 巴西葡萄牙语
|
||||||
|
* 意大利语
|
||||||
|
* 西班牙语
|
||||||
|
* 德语
|
||||||
|
* 塞尔维亚语
|
||||||
|
* 俄语
|
||||||
|
* 罗马尼亚语
|
||||||
|
* 越南语
|
||||||
|
* [贡献一种新的语言](https://github.com/dillonzq/LoveIt/pulls)
|
||||||
|
|
||||||
|
[语言兼容性](https://hugoloveit.com/zh-cn/theme-documentation-basics/#language-compatibility)
|
||||||
|
|
||||||
|
## [路线图](https://github.com/dillonzq/LoveIt/projects/1)
|
||||||
|
|
||||||
|
## 问题、想法、 bugs 和 PRs
|
||||||
|
|
||||||
|
所有的反馈都是欢迎的!详见 [issue tracker](https://github.com/dillonzq/LoveIt/issues)。
|
||||||
|
|
||||||
|
## 许可协议
|
||||||
|
|
||||||
|
LoveIt 根据 **MIT** 许可协议授权。 更多信息请查看 [LICENSE 文件](https://github.com/dillonzq/LoveIt/blob/master/LICENSE)。
|
||||||
|
|
||||||
|
LoveIt 主题中用到了以下项目,感谢它们的作者:
|
||||||
|
|
||||||
|
* [normalize.css](https://github.com/necolas/normalize.css)
|
||||||
|
* [Font Awesome](https://fontawesome.com/)
|
||||||
|
* [Simple Icons](https://github.com/simple-icons/simple-icons)
|
||||||
|
* [Animate.css](https://daneden.github.io/animate.css/)
|
||||||
|
* [Smooth Scroll](https://github.com/cferdinandi/smooth-scroll)
|
||||||
|
* [autocomplete.js](https://github.com/algolia/autocomplete.js)
|
||||||
|
* [Lunr.js](https://lunrjs.com/)
|
||||||
|
* [algoliasearch](https://github.com/algolia/algoliasearch-client-javascript)
|
||||||
|
* [lazysizes](https://github.com/aFarkas/lazysizes)
|
||||||
|
* [object-fit-images](https://github.com/fregante/object-fit-images)
|
||||||
|
* [Twemoji](https://github.com/twitter/twemoji)
|
||||||
|
* [lightgallery.js](https://github.com/sachinchoolur/lightgallery.js)
|
||||||
|
* [clipboard.js](https://github.com/zenorocha/clipboard.js)
|
||||||
|
* [Sharer.js](https://github.com/ellisonleao/sharer.js)
|
||||||
|
* [TypeIt](https://typeitjs.com/)
|
||||||
|
* [KaTeX](https://katex.org/)
|
||||||
|
* [mermaid](https://github.com/knsv/mermaid)
|
||||||
|
* [ECharts](https://echarts.apache.org/)
|
||||||
|
* [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js)
|
||||||
|
* [APlayer](https://github.com/MoePlayer/APlayer)
|
||||||
|
* [MetingJS](https://github.com/metowolf/MetingJS)
|
||||||
|
* [Gitalk](https://github.com/gitalk/gitalk)
|
||||||
|
* [Valine](https://valine.js.org/)
|
||||||
|
* [cookieconsent](https://github.com/osano/cookieconsent)
|
||||||
|
|
||||||
|
## 作者
|
||||||
|
|
||||||
|
[Dillon](https://dillonzq.com)
|
||||||
|
|
||||||
|
## 赞助支持
|
||||||
|
|
||||||
|
如果你喜爱这个主题, 请考虑给我买杯咖啡 ☕️.
|
||||||
|
|
||||||
|
* [PayPal](https://paypal.me/dillonzq)
|
||||||
|
* [支付宝](https://github.com/dillonzq/LoveIt/raw/master/images/Alipay.jpg)
|
||||||
|
* [微信支付](https://github.com/dillonzq/LoveIt/raw/master/images/Wechat.jpg)
|
||||||
|
|
||||||
|
谢谢! ❤️
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
title: "{{ replace .TranslationBaseName "-" " " | title }}"
|
||||||
|
subtitle: ""
|
||||||
|
date: {{ .Date }}
|
||||||
|
lastmod: {{ .Date }}
|
||||||
|
draft: true
|
||||||
|
author: ""
|
||||||
|
authorLink: ""
|
||||||
|
description: ""
|
||||||
|
|
||||||
|
tags: []
|
||||||
|
categories: []
|
||||||
|
|
||||||
|
hiddenFromHomePage: false
|
||||||
|
hiddenFromSearch: false
|
||||||
|
|
||||||
|
featuredImage: ""
|
||||||
|
featuredImagePreview: ""
|
||||||
|
|
||||||
|
toc:
|
||||||
|
enable: true
|
||||||
|
math:
|
||||||
|
enable: false
|
||||||
|
lightgallery: false
|
||||||
|
license: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
<!--more-->
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
html {
|
||||||
|
font-family: $global-font-family;
|
||||||
|
font-weight: $global-font-weight;
|
||||||
|
font-display: swap;
|
||||||
|
font-size: $global-font-size;
|
||||||
|
line-height: $global-line-height;
|
||||||
|
width:100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* scrollbar, only support webkit */
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: .5rem;
|
||||||
|
height: .5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background-color: $scrollbar-color;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: $scrollbar-hover-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
::selection {
|
||||||
|
background-color: $selection-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background-color: $selection-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: $global-background-color;
|
||||||
|
color: $global-font-color;
|
||||||
|
@include overflow-wrap(break-word);
|
||||||
|
scrollbar-color: auto;
|
||||||
|
|
||||||
|
&[theme=dark] {
|
||||||
|
color: $global-font-color-dark;
|
||||||
|
background-color: $global-background-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include ms;
|
||||||
|
@include link(true, true);
|
||||||
|
|
||||||
|
@import "../_partial/mask";
|
||||||
|
@import "../_partial/icon";
|
||||||
|
@import "../_partial/details";
|
||||||
|
@import "../_partial/fixed-button";
|
||||||
|
@import "../_partial/cookieconsent";
|
||||||
|
|
||||||
|
img {
|
||||||
|
@include object-fit(contain);
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
/** Layout **/
|
||||||
|
.wrapper {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-height: 100vh;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
main {
|
||||||
|
flex: 1 0 auto;
|
||||||
|
|
||||||
|
.container {
|
||||||
|
padding: 0 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
@media only screen and (max-width: 1440px) {
|
||||||
|
.page {
|
||||||
|
width: 56%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 1200px) {
|
||||||
|
.page {
|
||||||
|
width: 52%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header-desktop .header-wrapper {
|
||||||
|
padding-right: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-dropdown.desktop {
|
||||||
|
right: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 960px) {
|
||||||
|
#toc-auto {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#toc-static {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page {
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header-desktop .header-wrapper {
|
||||||
|
padding-left: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 680px) {
|
||||||
|
#header-desktop {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header-mobile {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.blur {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page {
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
[header-mobile] & {
|
||||||
|
padding-top: $header-height;
|
||||||
|
}
|
||||||
|
|
||||||
|
[header-mobile=normal] & {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.categories-card {
|
||||||
|
.card-item {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.copyright {
|
||||||
|
.copyright-line {
|
||||||
|
.icp-splitter {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.icp-br {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
// ==============================
|
||||||
|
// Custom style
|
||||||
|
// 自定义样式
|
||||||
|
// ==============================
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
@mixin blur {
|
||||||
|
.blur & {
|
||||||
|
@include filter(blur(1.5px));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,110 @@
|
|||||||
|
@mixin border-radius($value) {
|
||||||
|
-webkit-border-radius: $value;
|
||||||
|
-moz-border-radius: $value;
|
||||||
|
border-radius: $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin box-shadow($values...) {
|
||||||
|
-webkit-box-shadow: $values;
|
||||||
|
box-shadow: $values;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin transition($values...) {
|
||||||
|
-webkit-transition: $values;
|
||||||
|
-moz-transition: $values;
|
||||||
|
-o-transition: $values;
|
||||||
|
transition: $values;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin transform($value) {
|
||||||
|
-webkit-transform: $value;
|
||||||
|
-moz-transform: $value;
|
||||||
|
-ms-transform: $value;
|
||||||
|
-o-transform: $value;
|
||||||
|
transform: $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin filter($value) {
|
||||||
|
-webkit-filter: $value;
|
||||||
|
-moz-filter: $value;
|
||||||
|
-ms-filter: $value;
|
||||||
|
filter: $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin flex($value) {
|
||||||
|
-webkit-flex: $value;
|
||||||
|
flex: $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin box($orient) {
|
||||||
|
display: -moz-box;
|
||||||
|
display: -webkit-box;
|
||||||
|
display: box;
|
||||||
|
|
||||||
|
-webkit-box-orient: $orient;
|
||||||
|
-moz-box-orient: $orient;
|
||||||
|
box-orient: $orient;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin placeholder($color) {
|
||||||
|
input::-webkit-input-placeholder{
|
||||||
|
color: $color;
|
||||||
|
}
|
||||||
|
|
||||||
|
input:-moz-placeholder{
|
||||||
|
color: $color;
|
||||||
|
}
|
||||||
|
|
||||||
|
input::-moz-placeholder{
|
||||||
|
color: $color;
|
||||||
|
}
|
||||||
|
|
||||||
|
input:-ms-input-placeholder{
|
||||||
|
color: $color;
|
||||||
|
}
|
||||||
|
|
||||||
|
input::placeholder {
|
||||||
|
color: $color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin max-content($property) {
|
||||||
|
#{$property}: -webkit-max-content;
|
||||||
|
#{$property}: -moz-max-content;
|
||||||
|
#{$property}: intrinsic;
|
||||||
|
#{$property}: max-content;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin tab-size($value) {
|
||||||
|
-moz-tab-size: $value;
|
||||||
|
-o-tab-size: $value;
|
||||||
|
tab-size: $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin appearance($value) {
|
||||||
|
-moz-appearance: $value;
|
||||||
|
-webkit-appearance: $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin overflow-wrap($value) {
|
||||||
|
word-wrap: $value;
|
||||||
|
overflow-wrap: $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin line-break($value) {
|
||||||
|
-webkit-line-break: $value;
|
||||||
|
-ms-line-break: $value;
|
||||||
|
line-break: $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin ms {
|
||||||
|
input::-ms-clear {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin object-fit($value) {
|
||||||
|
-o-object-fit: $value;
|
||||||
|
object-fit: $value;
|
||||||
|
font-family: 'object-fit: #{$value};';
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
@mixin details-transition-open {
|
||||||
|
@include transition(max-height 0.8s cubic-bezier(0, 1, 0, 1) -0.1s);
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin details-transition-close {
|
||||||
|
@include transition(max-height 0.8s cubic-bezier(0.5, 0, 1, 0) 0s);
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
@import "_compatibility";
|
||||||
|
@import "_link";
|
||||||
|
@import "_blur";
|
||||||
|
@import "_details";
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
@mixin link($light, $dark) {
|
||||||
|
a, a::before, a::after {
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
color: if($light, $global-link-color, $single-link-color);
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: if($dark, $global-link-color-dark, $single-link-color-dark);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
a:active,
|
||||||
|
a:hover {
|
||||||
|
color: if($light, $global-link-hover-color, $single-link-hover-color);
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: if($dark, $global-link-hover-color-dark, $single-link-hover-color-dark);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
// ==============================
|
||||||
|
// Override Variables
|
||||||
|
// 覆盖变量
|
||||||
|
// ==============================
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#content-404 {
|
||||||
|
font-size: 1.8rem;
|
||||||
|
line-height: 3rem;
|
||||||
|
@include transform(translateY(30vh));
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
.archive {
|
||||||
|
.single-title {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group-title {
|
||||||
|
margin-top: 1.5rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@import "../_partial/_archive/terms";
|
||||||
|
@import "../_partial/_archive/tags";
|
||||||
|
}
|
||||||
@@ -0,0 +1,182 @@
|
|||||||
|
.home {
|
||||||
|
.home-profile {
|
||||||
|
@include transform(translateY( 16vh));
|
||||||
|
padding: 0 0 .5rem;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.home-avatar {
|
||||||
|
padding: .5rem;
|
||||||
|
|
||||||
|
img {
|
||||||
|
display: inline-block;
|
||||||
|
width: 8rem;
|
||||||
|
height: auto;
|
||||||
|
margin: 0 auto;
|
||||||
|
@include border-radius(100%);
|
||||||
|
@include box-shadow(0 0 0 .3618em rgba(0, 0, 0, .05));
|
||||||
|
@include transition(all 0.4s ease);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
position: relative;
|
||||||
|
@include transform(translateY(-.75rem));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-title {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
font-weight: bold;
|
||||||
|
margin: 0;
|
||||||
|
padding: .5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-subtitle {
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: normal;
|
||||||
|
margin: 0;
|
||||||
|
padding: .5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.links {
|
||||||
|
padding: .5rem;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
|
||||||
|
a * {
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
height: 1.5rem;
|
||||||
|
padding: 0 .25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-disclaimer {
|
||||||
|
font-size: 1rem;
|
||||||
|
line-height: 1.5rem;
|
||||||
|
font-weight: normal;
|
||||||
|
margin: 0;
|
||||||
|
padding: .5rem;
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.home[posts] {
|
||||||
|
.home-profile {
|
||||||
|
@include transform(translateY(0));
|
||||||
|
padding-top: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-avatar img {
|
||||||
|
width: 6rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary {
|
||||||
|
padding-top: 1rem;
|
||||||
|
padding-bottom: .8rem;
|
||||||
|
color: $global-font-color;
|
||||||
|
border-bottom: 1px dashed $global-border-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-font-color-dark;
|
||||||
|
border-bottom: 1px dashed $global-border-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
.featured-image-preview {
|
||||||
|
width: 100%;
|
||||||
|
padding: 30% 0 0;
|
||||||
|
position: relative;
|
||||||
|
margin: 0.6rem auto;
|
||||||
|
@include transition(transform 0.4s ease);
|
||||||
|
|
||||||
|
img {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
@include object-fit(none);
|
||||||
|
}
|
||||||
|
|
||||||
|
img.lazyloaded {
|
||||||
|
@include object-fit(cover);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
@include transform(scale(1.01));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.single-title {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
line-height: 140%;
|
||||||
|
margin: 0.4rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
@include box(vertical);
|
||||||
|
-webkit-line-clamp: 3;
|
||||||
|
margin-top: .3rem;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
@include overflow-wrap(break-word);
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6,
|
||||||
|
p {
|
||||||
|
font-size: 1rem;
|
||||||
|
line-height: 1.5;
|
||||||
|
display: inline;
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
content: "\A";
|
||||||
|
white-space: pre;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 1.125rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include link(false, true);
|
||||||
|
|
||||||
|
b, strong {
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-footer {
|
||||||
|
margin-top: .4rem;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
font-size: .875rem;
|
||||||
|
|
||||||
|
@include link(false, false);
|
||||||
|
|
||||||
|
.post-tags {
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
@include link(true, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
.page {
|
||||||
|
position: relative;
|
||||||
|
max-width: 800px;
|
||||||
|
width: 60%;
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
|
[header-desktop] & {
|
||||||
|
padding-top: $header-height;
|
||||||
|
}
|
||||||
|
|
||||||
|
[header-desktop=normal] & {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include blur;
|
||||||
|
}
|
||||||
|
|
||||||
|
@import "_single";
|
||||||
|
@import "_special";
|
||||||
|
@import "_archive";
|
||||||
|
@import "_home";
|
||||||
|
@import "_404";
|
||||||
@@ -0,0 +1,331 @@
|
|||||||
|
@import "../_partial/_single/toc";
|
||||||
|
|
||||||
|
.single {
|
||||||
|
.single-title {
|
||||||
|
margin: 1rem 0 .5rem;
|
||||||
|
font-size: 1.6rem;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: 140%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.single-subtitle {
|
||||||
|
margin: .4rem 0;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: italic;
|
||||||
|
line-height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-meta {
|
||||||
|
font-size: .875rem;
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
|
||||||
|
span {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include link(false, true);
|
||||||
|
|
||||||
|
.author {
|
||||||
|
font-size: 1.05rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.featured-image {
|
||||||
|
margin: .5rem 0 1rem 0;
|
||||||
|
|
||||||
|
img {
|
||||||
|
display: block;
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
margin: 0 auto;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
img.lazyloaded {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
> h2 {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
|
||||||
|
& code {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> h3 {
|
||||||
|
font-size: 1.375rem;
|
||||||
|
|
||||||
|
& code {
|
||||||
|
font-size: 1.125rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> h4 {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
|
||||||
|
& code {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> h5 {
|
||||||
|
font-size: 1.125rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
> h6 {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
font-weight: bold;
|
||||||
|
margin: 1.2rem 0;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> h2,
|
||||||
|
> h3,
|
||||||
|
> h4,
|
||||||
|
> h5,
|
||||||
|
> h6 {
|
||||||
|
> .header-mark::before {
|
||||||
|
content: "|";
|
||||||
|
margin-right: .3125rem;
|
||||||
|
color: $single-link-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $single-link-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> h2 > .header-mark::before {
|
||||||
|
content: "#";
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: .5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
b, strong {
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: #ddd;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include link(false, false);
|
||||||
|
|
||||||
|
a {
|
||||||
|
@include overflow-wrap(break-word);
|
||||||
|
|
||||||
|
[theme=dark] & b, [theme=dark] & strong {
|
||||||
|
color: $single-link-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[theme=dark] a:hover b, [theme=dark] a:hover strong {
|
||||||
|
color: $single-link-hover-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul, ol {
|
||||||
|
margin: .5rem 0;
|
||||||
|
padding-left: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
list-style-type: disc;
|
||||||
|
}
|
||||||
|
|
||||||
|
ruby {
|
||||||
|
background: $code-background-color;
|
||||||
|
|
||||||
|
rt {
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background: $code-background-color-dark;
|
||||||
|
|
||||||
|
rt {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-wrapper {
|
||||||
|
overflow-x: auto;
|
||||||
|
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
background-color: $table-background-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background-color: $table-background-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> table {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
margin: .625rem 0;
|
||||||
|
border-spacing: 0;
|
||||||
|
background: $table-background-color;
|
||||||
|
border-collapse: collapse;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background: $table-background-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
thead {
|
||||||
|
background: $table-thead-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background-color: $table-thead-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
th, td {
|
||||||
|
padding: .3rem 1rem;
|
||||||
|
border: 1px solid darken($table-thead-color, 2%);
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
border-color: darken($table-thead-color-dark, 2%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
min-height: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
figure {
|
||||||
|
margin: .5rem;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.image-caption:not(:empty) {
|
||||||
|
min-width: 20%;
|
||||||
|
max-width: 80%;
|
||||||
|
display: inline-block;
|
||||||
|
padding: .5rem;
|
||||||
|
margin: 0 auto;
|
||||||
|
font-size: .875rem;
|
||||||
|
color: #969696;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
display: block;
|
||||||
|
height: auto;
|
||||||
|
margin: 0 auto;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.lazyloading {
|
||||||
|
@include object-fit(none);
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
display: block;
|
||||||
|
border-left: .5rem solid $blockquote-color;
|
||||||
|
background-color: rgba($blockquote-color, .2);
|
||||||
|
padding: .25rem .75rem;
|
||||||
|
margin: 1rem 0;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
border-left-color: $blockquote-color-dark;
|
||||||
|
background-color: rgba($blockquote-color-dark, .2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.footnotes {
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: .25rem 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@import "../_partial/_single/code";
|
||||||
|
@import "../_partial/_single/instagram";
|
||||||
|
@import "../_partial/_single/admonition";
|
||||||
|
@import "../_partial/_single/echarts";
|
||||||
|
@import "../_partial/_single/mapbox";
|
||||||
|
@import "../_partial/_single/music";
|
||||||
|
@import "../_partial/_single/bilibili";
|
||||||
|
|
||||||
|
hr {
|
||||||
|
margin: 1rem 0;
|
||||||
|
position: relative;
|
||||||
|
border-top: 1px dashed $global-border-color;
|
||||||
|
border-bottom: none;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
border-top: 1px dashed $global-border-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
kbd {
|
||||||
|
display: inline-block;
|
||||||
|
padding: .25rem;
|
||||||
|
background-color: $global-background-color;
|
||||||
|
border: 1px solid $global-border-color;
|
||||||
|
border-bottom-color: $global-border-color;
|
||||||
|
@include border-radius(3px);
|
||||||
|
@include box-shadow(inset 0 -1px 0 $global-border-color);
|
||||||
|
font-size: .8rem;
|
||||||
|
font-family: $code-font-family;
|
||||||
|
color: $code-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background-color: $global-background-color-dark;
|
||||||
|
border: 1px solid $global-border-color-dark;
|
||||||
|
border-bottom-color: $global-border-color-dark;
|
||||||
|
@include box-shadow(inset 0 -1px 0 $global-border-color-dark);
|
||||||
|
color: $code-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.typeit {
|
||||||
|
.code {
|
||||||
|
padding: .375rem;
|
||||||
|
font-size: .875rem;
|
||||||
|
font-family: $code-font-family;
|
||||||
|
font-weight: bold;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.version {
|
||||||
|
height: 1.25em;
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@import "../_partial/_single/footer";
|
||||||
|
@import "../_partial/_single/comment";
|
||||||
|
}
|
||||||
|
|
||||||
|
.lg-toolbar .lg-icon::after {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
.special {
|
||||||
|
.single-title, .single-subtitle {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
.tag-cloud-tags {
|
||||||
|
margin: 10px 0;
|
||||||
|
|
||||||
|
@include link(true, true);
|
||||||
|
|
||||||
|
a {
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
margin: 5px 10px;
|
||||||
|
@include overflow-wrap(break-word);
|
||||||
|
@include transition(all ease-out 0.3s);
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:focus,
|
||||||
|
&:hover {
|
||||||
|
@include transform(scale(1.2));
|
||||||
|
}
|
||||||
|
|
||||||
|
sup {
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,82 @@
|
|||||||
|
.categories-card {
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: 3rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
line-height: 1.6rem;
|
||||||
|
|
||||||
|
.card-item {
|
||||||
|
font-size: .875rem;
|
||||||
|
text-align: left;
|
||||||
|
width: 45%;
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
margin-top: 2rem;
|
||||||
|
min-height: 10rem;
|
||||||
|
padding: 0 2%;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.card-item-wrapper {
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
.card-item-title {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
font-weight: bold;
|
||||||
|
display: inline-block;
|
||||||
|
margin-top: 1rem;
|
||||||
|
margin-bottom: .75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
float: right;
|
||||||
|
padding-right: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive-item {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin: .25rem 0 .25rem 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive-item-link {
|
||||||
|
min-width: 10%;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $global-link-hover-color;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-link-color-dark;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $global-link-hover-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive-item-date {
|
||||||
|
width: 4em;
|
||||||
|
text-align: right;
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.more-post {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
.cc-window.cc-banner {
|
||||||
|
.cc-btn {
|
||||||
|
color: $global-font-color;
|
||||||
|
|
||||||
|
&:hover, &:focus {
|
||||||
|
background-color: #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-font-color;
|
||||||
|
|
||||||
|
&:hover, &:focus {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
.details {
|
||||||
|
.details-summary {
|
||||||
|
&:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
i.details-icon {
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
@include transition(transform 0.2s ease);
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.details-content {
|
||||||
|
max-height: 0;
|
||||||
|
overflow-y: hidden;
|
||||||
|
@include details-transition-open;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.open {
|
||||||
|
i.details-icon {
|
||||||
|
@include transform(rotate(90deg));
|
||||||
|
}
|
||||||
|
|
||||||
|
.details-content {
|
||||||
|
max-height: $MAX_LENGTH;
|
||||||
|
@include details-transition-close;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
#fixed-buttons {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fixed-button {
|
||||||
|
display: none;
|
||||||
|
z-index: 100;
|
||||||
|
position: fixed;
|
||||||
|
right: 1.5rem;
|
||||||
|
font-size: 1rem;
|
||||||
|
line-height: 1.3rem;
|
||||||
|
padding: .6rem .6rem;
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
background: $header-background-color;
|
||||||
|
@include border-radius(2rem);
|
||||||
|
@include transition(color 0.4s ease);
|
||||||
|
|
||||||
|
@include blur;
|
||||||
|
|
||||||
|
&:hover, &:active {
|
||||||
|
color: $global-font-color;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active, &:focus, &:hover {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
background: $header-background-color-dark;
|
||||||
|
|
||||||
|
&:hover, &:active {
|
||||||
|
color: $global-font-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#back-to-top {
|
||||||
|
display: block;
|
||||||
|
bottom: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#view-comments {
|
||||||
|
bottom: 4.5rem;
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
footer {
|
||||||
|
height: 2rem;
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 1.25rem;
|
||||||
|
padding: 1rem 0;
|
||||||
|
|
||||||
|
.footer-container {
|
||||||
|
font-size: .875rem;
|
||||||
|
|
||||||
|
.footer-line {
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
.icp-br {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include blur;
|
||||||
|
}
|
||||||
@@ -0,0 +1,468 @@
|
|||||||
|
header {
|
||||||
|
width: 100%;
|
||||||
|
z-index: 150;
|
||||||
|
background-color: $header-background-color;
|
||||||
|
@include transition(box-shadow 0.3s ease);
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background-color: $header-background-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
min-height: 1.5em;
|
||||||
|
height: 1.5em;
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo, .header-title-pre {
|
||||||
|
padding-right: .25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-title-post {
|
||||||
|
padding-left: .25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
@include box-shadow(0 0 1.5rem 0 rgba(0, 0, 0, .1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-wrapper {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-title {
|
||||||
|
font-family: $header-title-font-family;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-right: .5rem;
|
||||||
|
min-width: 10%;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
@include flex(10);
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu .menu-item {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.language-select {
|
||||||
|
position: absolute;
|
||||||
|
opacity: 0;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.search {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
input {
|
||||||
|
color: transparent;
|
||||||
|
box-sizing: border-box;
|
||||||
|
height: 2.5rem;
|
||||||
|
width: 2.5rem;
|
||||||
|
@include border-radius(.5rem);
|
||||||
|
border: none;
|
||||||
|
outline: none;
|
||||||
|
background-color: $header-background-color;
|
||||||
|
vertical-align: baseline !important;
|
||||||
|
@include transition(width 0.3s ease);
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background-color: $header-background-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include placeholder(transparent);
|
||||||
|
|
||||||
|
.search-button {
|
||||||
|
margin: 0;
|
||||||
|
position: absolute;
|
||||||
|
left: auto;
|
||||||
|
right: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-toggle {
|
||||||
|
left: .5rem;
|
||||||
|
right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-loading {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-clear {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.open &, &.mobile {
|
||||||
|
input {
|
||||||
|
color: $global-font-color;
|
||||||
|
background-color: $search-background-color;
|
||||||
|
padding: 0 2rem 0 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
input {
|
||||||
|
color: $global-font-color-dark;
|
||||||
|
background-color: $search-background-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include placeholder($global-font-secondary-color-dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
@include placeholder($global-font-secondary-color);
|
||||||
|
|
||||||
|
.search-button {
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-clear:hover {
|
||||||
|
color: #ff6b6b;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-toggle:hover {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-switch i {
|
||||||
|
@include transform(rotate(225deg));
|
||||||
|
}
|
||||||
|
|
||||||
|
#header-desktop {
|
||||||
|
display: block;
|
||||||
|
position: fixed;
|
||||||
|
height: $header-height;
|
||||||
|
line-height: $header-height;
|
||||||
|
|
||||||
|
[header-desktop=normal] & {
|
||||||
|
position: static;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-wrapper {
|
||||||
|
padding: 0 2rem 0 10vh;
|
||||||
|
|
||||||
|
.header-title {
|
||||||
|
font-size: $header-title-font-size;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu {
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
|
.menu-inner {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-item {
|
||||||
|
margin: 0 .5rem;
|
||||||
|
|
||||||
|
&.delimiter {
|
||||||
|
border-left: 1.5px solid $global-font-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
border-left-color: $global-border-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.language {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.search {
|
||||||
|
margin: 0 -.5rem 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
a.active {
|
||||||
|
font-weight: 900;
|
||||||
|
color: $header-hover-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $header-hover-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.open .header-wrapper .menu .menu-item.search {
|
||||||
|
margin: 0 .25rem 0 .5rem;
|
||||||
|
|
||||||
|
input {
|
||||||
|
width: 24rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#header-mobile {
|
||||||
|
display: none;
|
||||||
|
position: fixed;
|
||||||
|
height: $header-height;
|
||||||
|
line-height: $header-height;
|
||||||
|
|
||||||
|
[header-mobile=normal] & {
|
||||||
|
position: static;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-container {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
.header-wrapper {
|
||||||
|
padding: 0 1rem;
|
||||||
|
font-size: 1.125rem;
|
||||||
|
@include transition(margin-top 0.3s ease);
|
||||||
|
|
||||||
|
.header-title {
|
||||||
|
font-size: $header-title-font-size;
|
||||||
|
max-width: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-toggle {
|
||||||
|
line-height: 4rem;
|
||||||
|
cursor: pointer;
|
||||||
|
@include transition(width 0.3s ease);
|
||||||
|
|
||||||
|
span {
|
||||||
|
display: block;
|
||||||
|
background: $global-font-color;
|
||||||
|
width: 1.5rem;
|
||||||
|
height: 2px;
|
||||||
|
@include border-radius(3px);
|
||||||
|
@include transition(all 0.3s ease-in-out);
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background: $global-font-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
span:nth-child(1) {
|
||||||
|
margin-bottom: .5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
span:nth-child(3) {
|
||||||
|
margin-top: .5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
span:nth-child(1) {
|
||||||
|
@include transform(rotate(45deg) translate(.4rem, .5rem));
|
||||||
|
}
|
||||||
|
|
||||||
|
span:nth-child(2) {
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
span:nth-child(3) {
|
||||||
|
@include transform(rotate(-45deg) translate(.4rem, -.5rem));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu {
|
||||||
|
text-align: center;
|
||||||
|
background: $header-background-color;
|
||||||
|
border-top: 2px solid $global-border-color;
|
||||||
|
display: none;
|
||||||
|
padding-top: .5rem;
|
||||||
|
@include box-shadow(0 .125rem .25rem rgba(0, 0, 0, .1));
|
||||||
|
|
||||||
|
.search-wrapper {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: ($header-height - 2.5rem) / 2 1rem;
|
||||||
|
line-height: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search {
|
||||||
|
flex-grow: 10;
|
||||||
|
|
||||||
|
.algolia-autocomplete, input {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-button {
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-cancel {
|
||||||
|
display: none;
|
||||||
|
margin-left: .75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-item {
|
||||||
|
display: block;
|
||||||
|
line-height: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background: $header-background-color-dark;
|
||||||
|
border-top-color: $global-border-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.open {
|
||||||
|
.header-wrapper {
|
||||||
|
margin-top: -$header-height;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu {
|
||||||
|
padding-top: 0;
|
||||||
|
border-top: none;
|
||||||
|
|
||||||
|
.menu-item {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-cancel {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-dropdown {
|
||||||
|
position: fixed;
|
||||||
|
z-index: 200;
|
||||||
|
top: $header-height;
|
||||||
|
@include box-shadow(0 .125rem .25rem rgba(0, 0, 0, .1));
|
||||||
|
|
||||||
|
&.desktop {
|
||||||
|
right: 2rem;
|
||||||
|
width: 30rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.mobile {
|
||||||
|
right: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-menu {
|
||||||
|
right: 0 !important;
|
||||||
|
background-color: $global-background-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background-color: $global-background-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
.suggestions {
|
||||||
|
overflow-y: auto;
|
||||||
|
max-height: calc(100vh - #{$header-height});
|
||||||
|
|
||||||
|
.suggestion {
|
||||||
|
padding: .75rem 1rem;
|
||||||
|
|
||||||
|
.suggestion-title {
|
||||||
|
display: inline-block;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: bold;
|
||||||
|
max-width: 75%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.suggestion-date {
|
||||||
|
font-size: .875rem;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.suggestion-context {
|
||||||
|
line-height: 1.25rem;
|
||||||
|
@include box(vertical);
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
@include overflow-wrap(break-word);
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
em {
|
||||||
|
font-style: normal;
|
||||||
|
background-color: $selection-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background-color: $selection-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.cursor {
|
||||||
|
background: darken($code-background-color, 5%);
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background: lighten($code-background-color-dark, 5%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-empty {
|
||||||
|
padding: 1rem;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.search-query {
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: #ddd;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-footer {
|
||||||
|
padding: .5rem 1rem;
|
||||||
|
float: right;
|
||||||
|
font-size: .8rem;
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
|
||||||
|
[theme=dark] {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include link(false, false);
|
||||||
|
|
||||||
|
a {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
svg.icon {
|
||||||
|
display: inline-block;
|
||||||
|
width: 1.25em;
|
||||||
|
height: 1em;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
path {
|
||||||
|
fill: currentColor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
img.emoji {
|
||||||
|
height: 1em;
|
||||||
|
width: 1em;
|
||||||
|
margin: 0 .05em 0 .1em;
|
||||||
|
vertical-align: -.1em;
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
#mask {
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
z-index: -1;
|
||||||
|
background-color: rgba(0, 0, 0, 0);
|
||||||
|
|
||||||
|
.blur & {
|
||||||
|
z-index: 100;
|
||||||
|
background-color: rgba(0, 0, 0, .25);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,91 @@
|
|||||||
|
.pagination {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: center;
|
||||||
|
list-style: none;
|
||||||
|
white-space: nowrap;
|
||||||
|
width: 100%;
|
||||||
|
padding: 1rem 0 0;
|
||||||
|
|
||||||
|
a {
|
||||||
|
font-size: .8rem;
|
||||||
|
color: #bfbfbf;
|
||||||
|
letter-spacing: .1rem;
|
||||||
|
font-weight: 700;
|
||||||
|
padding: 5px 5px;
|
||||||
|
text-decoration: none;
|
||||||
|
@include transition(0.3s);
|
||||||
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
padding-bottom: 3px;
|
||||||
|
margin: 0 20px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
position: relative;
|
||||||
|
display: inline;
|
||||||
|
|
||||||
|
&.disabled {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover a {
|
||||||
|
color: $pagination-link-hover-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
[theme=dark] &:hover a {
|
||||||
|
color: $pagination-link-hover-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:before,
|
||||||
|
&:after {
|
||||||
|
position: absolute;
|
||||||
|
content: "";
|
||||||
|
width: 0;
|
||||||
|
height: 3px;
|
||||||
|
background: $pagination-link-hover-color;
|
||||||
|
@include transition(0.3s);
|
||||||
|
bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
[theme=dark] &:before,
|
||||||
|
[theme=dark] &:after {
|
||||||
|
background: $pagination-link-hover-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:before .active,
|
||||||
|
&:after .active {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
left: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
right: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
|
||||||
|
&:before,
|
||||||
|
&:after {
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
a {
|
||||||
|
color: $pagination-link-hover-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
[theme=dark] & a {
|
||||||
|
color: $pagination-link-hover-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:before,
|
||||||
|
&:after {
|
||||||
|
width: 60%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
.admonition {
|
||||||
|
position: relative;
|
||||||
|
margin: 1rem 0;
|
||||||
|
padding: 0 .75rem;
|
||||||
|
background-color: map-get($admonition-background-color-map, 'note');
|
||||||
|
border-left: .25rem solid map-get($admonition-color-map, 'note');
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
|
.admonition-title {
|
||||||
|
font-weight: bold;
|
||||||
|
margin: 0 -0.75rem;
|
||||||
|
padding: .25rem 1.8rem;
|
||||||
|
border-bottom: 1px solid map-get($admonition-background-color-map, 'note');
|
||||||
|
background-color: opacify(map-get($admonition-background-color-map, 'note'), 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.open .admonition-title {
|
||||||
|
background-color: map-get($admonition-background-color-map, 'note');
|
||||||
|
}
|
||||||
|
|
||||||
|
.admonition-content {
|
||||||
|
padding: .5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
i.icon {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
color: map-get($admonition-color-map, 'note');
|
||||||
|
position: absolute;
|
||||||
|
top: .6rem;
|
||||||
|
left: .4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
i.details-icon {
|
||||||
|
position: absolute;
|
||||||
|
top: .6rem;
|
||||||
|
right: .3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@each $type, $color in $admonition-color-map {
|
||||||
|
&.#{$type} {
|
||||||
|
border-left-color: $color;
|
||||||
|
|
||||||
|
i.icon {
|
||||||
|
color: $color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@each $type, $color in $admonition-background-color-map {
|
||||||
|
&.#{$type} {
|
||||||
|
background-color: $color;
|
||||||
|
|
||||||
|
.admonition-title {
|
||||||
|
border-bottom-color: $color;
|
||||||
|
background-color: opacify($color, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.open .admonition-title {
|
||||||
|
background-color: $color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: .75rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
.bilibili {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
height: 0;
|
||||||
|
padding-bottom: 75%;
|
||||||
|
margin: 3% auto;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
iframe {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,385 @@
|
|||||||
|
code {
|
||||||
|
display:inline-block;
|
||||||
|
max-width: 100%;
|
||||||
|
padding: 0 .4rem;
|
||||||
|
@include overflow-wrap(break-word);
|
||||||
|
@include line-break(anywhere);
|
||||||
|
font-size: $code-font-size;
|
||||||
|
font-family: $code-font-family;
|
||||||
|
color: $code-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $code-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
margin: 0;
|
||||||
|
padding: .25rem 0 .25rem .5rem;
|
||||||
|
@include tab-size(4);
|
||||||
|
|
||||||
|
code {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
min-height: 1em;
|
||||||
|
max-height: 1.2em;
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
code, pre, .highlight table, .highlight tr, .highlight td {
|
||||||
|
background: $code-background-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background: $code-background-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlight, .gist {
|
||||||
|
font-family: $code-font-family;
|
||||||
|
font-size: $code-font-size;
|
||||||
|
|
||||||
|
.table-wrapper {
|
||||||
|
> table,
|
||||||
|
> table thead,
|
||||||
|
> table tr,
|
||||||
|
> table td {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: none !important;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlight {
|
||||||
|
line-height: 1.4em;
|
||||||
|
margin: .5rem 0;
|
||||||
|
|
||||||
|
> .chroma {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.code-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 100%;
|
||||||
|
font-family: $global-font-family;
|
||||||
|
font-weight: bold;
|
||||||
|
color: $code-info-color;
|
||||||
|
background: darken($code-background-color, 8%);
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $code-info-color-dark;
|
||||||
|
background: darken($code-background-color-dark, 6%);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.code-title {
|
||||||
|
width: 100%;
|
||||||
|
padding: .4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.code-title::after {
|
||||||
|
padding-left: .2rem;
|
||||||
|
content: 'Code';
|
||||||
|
}
|
||||||
|
|
||||||
|
@each $type, $text in $code-type-map {
|
||||||
|
&.#{$type} .code-title::after {
|
||||||
|
content: $text;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.lntd:first-child {
|
||||||
|
min-width: 1.6rem;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lntd:last-child {
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
pre {
|
||||||
|
@include max-content(min-width);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ln {
|
||||||
|
padding-right: .75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hl {
|
||||||
|
display: block;
|
||||||
|
background-color: darken($code-background-color, 10%);
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background-color: darken($code-background-color-dark, 5%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ln, .lnt {
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.arrow {
|
||||||
|
padding: 0 .2rem;
|
||||||
|
@include transition(transform 0.2s ease);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ellipses {
|
||||||
|
padding: .4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copy {
|
||||||
|
display: none;
|
||||||
|
padding: .4rem;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
color: $global-link-hover-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-link-hover-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-wrapper {
|
||||||
|
max-height: 0;
|
||||||
|
overflow-y: hidden;
|
||||||
|
@include details-transition-open;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.open {
|
||||||
|
.code-header {
|
||||||
|
background: darken($code-background-color, 3%);
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background: darken($code-background-color-dark, 3%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-wrapper {
|
||||||
|
max-height: $MAX_LENGTH;
|
||||||
|
@include details-transition-close;
|
||||||
|
}
|
||||||
|
|
||||||
|
.arrow {
|
||||||
|
@include transform(rotate(90deg));
|
||||||
|
}
|
||||||
|
|
||||||
|
.ellipses {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copy {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Comment */ .c,
|
||||||
|
/* CommentHashbang */ .ch,
|
||||||
|
/* CommentMultiline */ .cm,
|
||||||
|
/* CommentSingle */ .c1,
|
||||||
|
/* CommentSpecial */ .cs,
|
||||||
|
/* CommentPreproc */ .cp,
|
||||||
|
/* CommentPreprocFile */ .cpf { font-style: italic }
|
||||||
|
/* GenericUnderline */ .gl { text-decoration: underline }
|
||||||
|
|
||||||
|
@each $class, $color in $code-highlight-color-map {
|
||||||
|
.#{$class} { color: $color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
@each $class, $color in $code-highlight-color-map-dark {
|
||||||
|
.#{$class} { color: $color; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.gist {
|
||||||
|
.gist-file, .gist-data, .gist-meta {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gist-meta {
|
||||||
|
padding: .4rem .8rem;
|
||||||
|
background-color: darken($code-background-color, 5%);
|
||||||
|
|
||||||
|
@include link(false, false);
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background-color: darken($code-background-color-dark, 5%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
// imported from https://github.com/lonekorean/gist-syntax-themes/blob/master/stylesheets/one-dark.css
|
||||||
|
.highlight {
|
||||||
|
background: #141414;
|
||||||
|
}
|
||||||
|
.blob-num,
|
||||||
|
.blob-code-inner,
|
||||||
|
.highlight,
|
||||||
|
.pl-enm,
|
||||||
|
.pl-ko,
|
||||||
|
.pl-mo,
|
||||||
|
.pl-mp1 .pl-sf,
|
||||||
|
.pl-ms,
|
||||||
|
.pl-pdc1,
|
||||||
|
.pl-scp,
|
||||||
|
.pl-smc,
|
||||||
|
.pl-som,
|
||||||
|
.pl-va,
|
||||||
|
.pl-vpf,
|
||||||
|
.pl-vpu,
|
||||||
|
.pl-mdr {
|
||||||
|
color: #aab1bf;
|
||||||
|
}
|
||||||
|
.pl-mb,
|
||||||
|
.pl-pdb {
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
.pl-c,
|
||||||
|
.pl-c span,
|
||||||
|
.pl-pdc {
|
||||||
|
color: #5b6270;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.pl-sr .pl-cce {
|
||||||
|
color: #56b5c2;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
.pl-ef,
|
||||||
|
.pl-en,
|
||||||
|
.pl-enf,
|
||||||
|
.pl-eoai,
|
||||||
|
.pl-kos,
|
||||||
|
.pl-mh .pl-pdh,
|
||||||
|
.pl-mr {
|
||||||
|
color: #61afef;
|
||||||
|
}
|
||||||
|
.pl-ens,
|
||||||
|
.pl-vi {
|
||||||
|
color: #be5046;
|
||||||
|
}
|
||||||
|
.pl-enti,
|
||||||
|
.pl-mai .pl-sf,
|
||||||
|
.pl-ml,
|
||||||
|
.pl-sf,
|
||||||
|
.pl-sr,
|
||||||
|
.pl-sr .pl-sra,
|
||||||
|
.pl-src,
|
||||||
|
.pl-st,
|
||||||
|
.pl-vo {
|
||||||
|
color: #56b5c2;
|
||||||
|
}
|
||||||
|
.pl-eoi,
|
||||||
|
.pl-mri,
|
||||||
|
.pl-pds,
|
||||||
|
.pl-pse .pl-s1,
|
||||||
|
.pl-s,
|
||||||
|
.pl-s1 {
|
||||||
|
color: #97c279;
|
||||||
|
}
|
||||||
|
.pl-k,
|
||||||
|
.pl-kolp,
|
||||||
|
.pl-mc,
|
||||||
|
.pl-pde {
|
||||||
|
color: #c578dd;
|
||||||
|
}
|
||||||
|
.pl-mi,
|
||||||
|
.pl-pdi {
|
||||||
|
color: #c578dd;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.pl-mp,
|
||||||
|
.pl-stp {
|
||||||
|
color: #818896;
|
||||||
|
}
|
||||||
|
.pl-mdh,
|
||||||
|
.pl-mdi,
|
||||||
|
.pl-mdr {
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
.pl-mdht,
|
||||||
|
.pl-mi1 {
|
||||||
|
color: #97c279;
|
||||||
|
background: #020;
|
||||||
|
}
|
||||||
|
.pl-md,
|
||||||
|
.pl-mdhf {
|
||||||
|
color: #df6b75;
|
||||||
|
background: #200;
|
||||||
|
}
|
||||||
|
.pl-corl {
|
||||||
|
color: #df6b75;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
.pl-ib {
|
||||||
|
background: #df6b75;
|
||||||
|
}
|
||||||
|
.pl-ii {
|
||||||
|
background: #e0c184;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.pl-iu {
|
||||||
|
background: #e05151;
|
||||||
|
}
|
||||||
|
.pl-ms1 {
|
||||||
|
color: #aab1bf;
|
||||||
|
background: #373b41;
|
||||||
|
}
|
||||||
|
.pl-c1,
|
||||||
|
.pl-cn,
|
||||||
|
.pl-e,
|
||||||
|
.pl-eoa,
|
||||||
|
.pl-eoac,
|
||||||
|
.pl-eoac .pl-pde,
|
||||||
|
.pl-kou,
|
||||||
|
.pl-mm,
|
||||||
|
.pl-mp .pl-s3,
|
||||||
|
.pl-mq,
|
||||||
|
.pl-s3,
|
||||||
|
.pl-sok,
|
||||||
|
.pl-sv,
|
||||||
|
.pl-mb {
|
||||||
|
color: #d19965;
|
||||||
|
}
|
||||||
|
.pl-enc,
|
||||||
|
.pl-entc,
|
||||||
|
.pl-pse .pl-s2,
|
||||||
|
.pl-s2,
|
||||||
|
.pl-sc,
|
||||||
|
.pl-smp,
|
||||||
|
.pl-sr .pl-sre,
|
||||||
|
.pl-stj,
|
||||||
|
.pl-v,
|
||||||
|
.pl-pdb {
|
||||||
|
color: #e4bf7a;
|
||||||
|
}
|
||||||
|
.pl-ent,
|
||||||
|
.pl-entl,
|
||||||
|
.pl-entm,
|
||||||
|
.pl-mh,
|
||||||
|
.pl-pdv,
|
||||||
|
.pl-smi,
|
||||||
|
.pl-sol,
|
||||||
|
.pl-mdh,
|
||||||
|
.pl-mdi {
|
||||||
|
color: #df6b75;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
#comments {
|
||||||
|
padding: 8rem 0 2rem;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
.echarts {
|
||||||
|
margin: .5rem 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
@@ -0,0 +1,98 @@
|
|||||||
|
.post-footer {
|
||||||
|
margin-top: 3rem;
|
||||||
|
|
||||||
|
.post-info {
|
||||||
|
border-bottom: 1px solid $global-border-color;
|
||||||
|
padding: 1rem 0 0.3rem;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
border-bottom: 1px solid $global-border-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-info-line {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
.post-info-mod {
|
||||||
|
font-size: 0.8em;
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include link(false, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-info-license {
|
||||||
|
font-size: 0.8em;
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include link(false, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-info-md {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
width: 8rem;
|
||||||
|
|
||||||
|
@include link(false, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-info-share {
|
||||||
|
a * {
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-info-more {
|
||||||
|
padding: 0.3rem 0 1rem;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-tags {
|
||||||
|
max-width: 65%;
|
||||||
|
|
||||||
|
* {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-nav {
|
||||||
|
&::before,
|
||||||
|
&::after {
|
||||||
|
content: ' ';
|
||||||
|
display: table;
|
||||||
|
}
|
||||||
|
|
||||||
|
& a.prev,
|
||||||
|
& a.next {
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
@include transition(all 0.3s ease-out);
|
||||||
|
}
|
||||||
|
|
||||||
|
& a.prev {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
& a.prev:hover {
|
||||||
|
@include transform(translateX(-4px));
|
||||||
|
}
|
||||||
|
|
||||||
|
& a.next {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
& a.next:hover {
|
||||||
|
@include transform(translateX(4px));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
iframe.instagram-media {
|
||||||
|
[theme=dark] & {
|
||||||
|
border: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
.mapbox {
|
||||||
|
margin: .5rem 0;
|
||||||
|
padding: .5rem 0;
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
meting-js {
|
||||||
|
margin: .5rem 0;
|
||||||
|
}
|
||||||
@@ -0,0 +1,157 @@
|
|||||||
|
.toc {
|
||||||
|
.toc-title {
|
||||||
|
font-size: $toc-title-font-size;
|
||||||
|
font-weight: bold;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content {
|
||||||
|
font-size: $toc-content-font-size;
|
||||||
|
|
||||||
|
ul {
|
||||||
|
text-indent: -0.85rem;
|
||||||
|
padding-left: .8rem;
|
||||||
|
list-style: none;
|
||||||
|
|
||||||
|
a:first-child::before {
|
||||||
|
content: "|";
|
||||||
|
font-weight: bolder;
|
||||||
|
margin-right: .5rem;
|
||||||
|
color: $single-link-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $single-link-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
padding-left: 1.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ruby {
|
||||||
|
background: $code-background-color;
|
||||||
|
|
||||||
|
rt {
|
||||||
|
color: $global-font-secondary-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background: $code-background-color-dark;
|
||||||
|
|
||||||
|
rt {
|
||||||
|
color: $global-font-secondary-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#toc-auto {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
width: $MAX_LENGTH;
|
||||||
|
max-width: 0;
|
||||||
|
padding: 0 .8rem;
|
||||||
|
border-left: 4px solid $global-border-color;
|
||||||
|
@include overflow-wrap(break-word);
|
||||||
|
box-sizing: border-box;
|
||||||
|
top: 10rem;
|
||||||
|
left: 0;
|
||||||
|
visibility: hidden;
|
||||||
|
|
||||||
|
[header-desktop=normal] & {
|
||||||
|
top: 5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include blur;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
border-left-color: $global-border-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-title {
|
||||||
|
margin: .8rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content {
|
||||||
|
&.always-active ul {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
> nav > ul {
|
||||||
|
margin: .625rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
ul {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.has-active > ul {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
a.active {
|
||||||
|
font-weight: bold;
|
||||||
|
color: $single-link-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $single-link-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
color: $single-link-hover-color;
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
color: $single-link-hover-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#toc-static {
|
||||||
|
display: none;
|
||||||
|
margin: .8rem 0;
|
||||||
|
|
||||||
|
&[kept=true] {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-title {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
line-height: 2em;
|
||||||
|
padding: 0 .75rem;
|
||||||
|
background: darken($code-background-color, 6%);
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background: darken($code-background-color-dark, 6%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content {
|
||||||
|
background-color: $code-background-color;
|
||||||
|
|
||||||
|
> nav > ul {
|
||||||
|
margin: 0;
|
||||||
|
padding: .4rem 1rem .4rem 1.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background-color: $code-background-color-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.open {
|
||||||
|
.toc-title {
|
||||||
|
background: darken($code-background-color, 3%);
|
||||||
|
|
||||||
|
[theme=dark] & {
|
||||||
|
background: darken($code-background-color-dark, 3%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,366 @@
|
|||||||
|
// ==============================
|
||||||
|
// Variables
|
||||||
|
// ==============================
|
||||||
|
|
||||||
|
// ========== Global ========== //
|
||||||
|
// Font and Line Height
|
||||||
|
$global-font-family: system-ui, -apple-system, BlinkMacSystemFont, PingFang SC, Microsoft YaHei UI, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, Helvetica, Arial, sans-serif !default;
|
||||||
|
$global-font-size: 16px;
|
||||||
|
$global-font-weight: 400;
|
||||||
|
$global-line-height: 1.5rem;
|
||||||
|
|
||||||
|
// Color of the background
|
||||||
|
$global-background-color: #fff !default;
|
||||||
|
$global-background-color-dark: #292a2d !default;
|
||||||
|
|
||||||
|
// Color of the text
|
||||||
|
$global-font-color: #161209 !default;
|
||||||
|
$global-font-color-dark: #a9a9b3 !default;
|
||||||
|
|
||||||
|
// Color of the secondary text
|
||||||
|
$global-font-secondary-color: #a9a9b3 !default;
|
||||||
|
$global-font-secondary-color-dark: #5d5d5f !default;
|
||||||
|
|
||||||
|
// Color of the link
|
||||||
|
$global-link-color: #161209 !default;
|
||||||
|
$global-link-color-dark: #a9a9b3 !default;
|
||||||
|
|
||||||
|
// Color of the hover link
|
||||||
|
$global-link-hover-color: #2d96bd !default;
|
||||||
|
$global-link-hover-color-dark: #fff !default;
|
||||||
|
|
||||||
|
// Color of the border
|
||||||
|
$global-border-color: #f0f0f0 !default;
|
||||||
|
$global-border-color-dark: #363636 !default;
|
||||||
|
// ========== Global ========== //
|
||||||
|
|
||||||
|
// ========== Scrollbar ========== //
|
||||||
|
// Color of the scrollbar
|
||||||
|
$scrollbar-color: #87878d !default;
|
||||||
|
|
||||||
|
// Color of the hover scrollbar
|
||||||
|
$scrollbar-hover-color: #a9a9b3 !default;
|
||||||
|
// ========== Scrollbar ========== //
|
||||||
|
|
||||||
|
// ========== Selection ========== //
|
||||||
|
// Color of the selected text
|
||||||
|
$selection-color: rgba(53, 166, 247, 0.25) !default;
|
||||||
|
$selection-color-dark: rgba(50, 112, 194, 0.4) !default;
|
||||||
|
// ========== Selection ========== //
|
||||||
|
|
||||||
|
// ========== Header ========== //
|
||||||
|
// Height of the header
|
||||||
|
$header-height: 3.5rem !default;
|
||||||
|
|
||||||
|
// Color of the header background
|
||||||
|
$header-background-color: #f8f8f8 !default;
|
||||||
|
$header-background-color-dark: #252627 !default;
|
||||||
|
|
||||||
|
// Font style of the header title
|
||||||
|
$header-title-font-family: $global-font-family !default;
|
||||||
|
$header-title-font-size: 1.5rem !default;
|
||||||
|
|
||||||
|
// Color of the hover header item
|
||||||
|
$header-hover-color: #161209 !default;
|
||||||
|
$header-hover-color-dark: #fff !default;
|
||||||
|
|
||||||
|
// Color of the search background
|
||||||
|
$search-background-color: #e9e9e9 !default;
|
||||||
|
$search-background-color-dark: #363636 !default;
|
||||||
|
// ========== Header ========== //
|
||||||
|
|
||||||
|
// ========== Single Content ========== //
|
||||||
|
// Font size of the TOC
|
||||||
|
$toc-title-font-size: 1.2rem !default;
|
||||||
|
$toc-content-font-size: 1rem !default;
|
||||||
|
|
||||||
|
// Color of the single link
|
||||||
|
$single-link-color: #2d96bd !default;
|
||||||
|
$single-link-color-dark: #55bde2 !default;
|
||||||
|
|
||||||
|
// Color of the hover single link
|
||||||
|
$single-link-hover-color: #ef3982 !default;
|
||||||
|
$single-link-hover-color-dark: #bdebfc !default;
|
||||||
|
|
||||||
|
// Color of the table background
|
||||||
|
$table-background-color: #fff !default;
|
||||||
|
$table-background-color-dark: #272c34 !default;
|
||||||
|
|
||||||
|
// Color of the table thead
|
||||||
|
$table-thead-color: #ededed !default;
|
||||||
|
$table-thead-color-dark: #20252b !default;
|
||||||
|
|
||||||
|
// Color of the blockquote
|
||||||
|
$blockquote-color: #6bd6fd !default;
|
||||||
|
$blockquote-color-dark: #59c5ec !default;
|
||||||
|
// ========== Single Content ========== //
|
||||||
|
|
||||||
|
// ========== Pagination ========== //
|
||||||
|
// Color of the link in pagination
|
||||||
|
$pagination-link-color: #2d96bd !default;
|
||||||
|
$pagination-link-color-dark: #a9a9b3 !default;
|
||||||
|
|
||||||
|
// Color of the hover link in pagination
|
||||||
|
$pagination-link-hover-color: #000 !default;
|
||||||
|
$pagination-link-hover-color-dark: #fff !default;
|
||||||
|
// ========== Pagination ========== //
|
||||||
|
|
||||||
|
// ========== Code ========== //
|
||||||
|
// Color of the code
|
||||||
|
$code-color: #E74C3C !default;
|
||||||
|
$code-color-dark: #E5BF78 !default;
|
||||||
|
|
||||||
|
// Color of the code background
|
||||||
|
$code-background-color: #f5f5f5 !default;
|
||||||
|
$code-background-color-dark: #272C34 !default;
|
||||||
|
|
||||||
|
$code-info-color: #9c9c9c !default;
|
||||||
|
$code-info-color-dark: #b1b0b0 !default;
|
||||||
|
|
||||||
|
// Font size of the code
|
||||||
|
$code-font-size: .875rem !default;
|
||||||
|
|
||||||
|
// Font family of the code
|
||||||
|
$code-font-family: Source Code Pro, Menlo, Consolas, Monaco, monospace, $global-font-family !default;
|
||||||
|
|
||||||
|
// Code type map
|
||||||
|
$code-type-map: (
|
||||||
|
// Custom code type
|
||||||
|
language-bash: 'Bash',
|
||||||
|
language-c: 'C',
|
||||||
|
language-cs: 'C#',
|
||||||
|
language-cpp: 'C++',
|
||||||
|
language-clojure: 'Clojure',
|
||||||
|
language-coffeescript: 'CoffeeScript',
|
||||||
|
language-css: 'CSS',
|
||||||
|
language-dart: 'Dart',
|
||||||
|
language-diff: 'Diff',
|
||||||
|
language-erlang: 'Erlang',
|
||||||
|
language-go: 'Go',
|
||||||
|
language-go-html-template: 'Go HTML Template',
|
||||||
|
language-groovy: 'Groovy',
|
||||||
|
language-haskell: 'Haskell',
|
||||||
|
language-html: 'HTML',
|
||||||
|
language-http: 'HTTP',
|
||||||
|
language-xml: 'XML',
|
||||||
|
language-java: 'Java',
|
||||||
|
language-js: 'JavaScript',
|
||||||
|
language-javascript: 'JavaScript',
|
||||||
|
language-json: 'JSON',
|
||||||
|
language-kotlin: 'Kotlin',
|
||||||
|
language-latex: 'LaTeX',
|
||||||
|
language-less: 'Less',
|
||||||
|
language-lisp: 'Lisp',
|
||||||
|
language-lua: 'Lua',
|
||||||
|
language-makefile: 'Makefile',
|
||||||
|
language-markdown: 'Markdown',
|
||||||
|
language-matlab: 'Matlab',
|
||||||
|
language-objectivec: 'Objective-C',
|
||||||
|
language-php: 'PHP',
|
||||||
|
language-perl: 'Perl',
|
||||||
|
language-python: 'Python',
|
||||||
|
language-r: 'R',
|
||||||
|
language-ruby: 'Ruby',
|
||||||
|
language-rust: 'Rust',
|
||||||
|
language-scala: 'Scala',
|
||||||
|
language-scss: 'Scss',
|
||||||
|
language-shell: 'Shell',
|
||||||
|
language-sql: 'SQL',
|
||||||
|
language-swift: 'Swift',
|
||||||
|
language-tex: 'TeX',
|
||||||
|
language-toml: 'TOML',
|
||||||
|
language-ts: 'TypeScript',
|
||||||
|
language-typescript: 'TypeScript',
|
||||||
|
language-vue: 'Vue',
|
||||||
|
language-yml: 'YAML',
|
||||||
|
language-yaml: 'YAML',
|
||||||
|
) !default;
|
||||||
|
|
||||||
|
// Color map of the code highlight
|
||||||
|
$code-highlight-color-map: (
|
||||||
|
/* Parentheses */ 'p': #a9a9b3,
|
||||||
|
/* Keyword */ 'k': #b501a9,
|
||||||
|
/* KeywordConstant */ 'kc': #b501a9,
|
||||||
|
/* KeywordDeclaration */ 'kd': #b501a9,
|
||||||
|
/* KeywordNamespace */ 'kn': #b501a9,
|
||||||
|
/* KeywordPseudo */ 'kp': #b501a9,
|
||||||
|
/* KeywordReserved */ 'kr': #b501a9,
|
||||||
|
/* KeywordType */ 'kt': #b501a9,
|
||||||
|
/* Name */ 'n': #333333,
|
||||||
|
/* NameAttribute */ 'na': #2b77fa,
|
||||||
|
/* NameBuiltin */ 'nb': #f74840,
|
||||||
|
/* NameBuiltinPseudo */ 'bp': #f74840,
|
||||||
|
/* NameClass */ 'nc': #cb8100,
|
||||||
|
/* NameConstant */ 'no': #2b77fa,
|
||||||
|
/* NameDecorator */ 'nd': #0086c1,
|
||||||
|
/* NameEntity */ 'ni': #2b77fa,
|
||||||
|
/* NameException */ 'ne': #2b77fa,
|
||||||
|
/* NameFunction */ 'nf': #2b77fa,
|
||||||
|
/* NameFunctionMagic */ 'fm': #1ccad6,
|
||||||
|
/* NameLabel */ 'nl': #2b77fa,
|
||||||
|
/* NameNamespace */ 'nn': #2b77fa,
|
||||||
|
/* NameOther */ 'nx': #333333,
|
||||||
|
/* NameProperty */ 'py': #2b77fa,
|
||||||
|
/* NameTag */ 'nt': #2b77fa,
|
||||||
|
/* NameVariable */ 'nv': #2b77fa,
|
||||||
|
/* NameVariableClass */ 'vc': #2b77fa,
|
||||||
|
/* NameVariableGlobal */ 'vg': #2b77fa,
|
||||||
|
/* NameVariableInstance */ 'vi': #2b77fa,
|
||||||
|
/* NameVariableMagic */ 'vm': #2b77fa,
|
||||||
|
/* Literal */ 'l': #2aa198,
|
||||||
|
/* LiteralDate */ 'ld': #2aa198,
|
||||||
|
/* LiteralString */ 's': #24a443,
|
||||||
|
/* LiteralStringAffix */ 'sa': #24a443,
|
||||||
|
/* LiteralStringBacktick */ 'sb': #24a443,
|
||||||
|
/* LiteralStringChar */ 'sc': #24a443,
|
||||||
|
/* LiteralStringDelimiter */ 'dl': #24a443,
|
||||||
|
/* LiteralStringDoc */ 'sd': #24a443,
|
||||||
|
/* LiteralStringDouble */ 's2': #24a443,
|
||||||
|
/* LiteralStringEscape */ 'se': #24a443,
|
||||||
|
/* LiteralStringHeredoc */ 'sh': #24a443,
|
||||||
|
/* LiteralStringInterpol */ 'si': #24a443,
|
||||||
|
/* LiteralStringOther */ 'sx': #24a443,
|
||||||
|
/* LiteralStringRegex */ 'sr': #24a443,
|
||||||
|
/* LiteralStringSingle */ 's1': #24a443,
|
||||||
|
/* LiteralStringSymbol */ 'ss': #24a443,
|
||||||
|
/* LiteralNumber */ 'm': #e2893c,
|
||||||
|
/* LiteralNumberBin */ 'mb': #e2893c,
|
||||||
|
/* LiteralNumberFloat */ 'mf': #e2893c,
|
||||||
|
/* LiteralNumberHex */ 'mh': #e2893c,
|
||||||
|
/* LiteralNumberInteger */ 'mi': #e2893c,
|
||||||
|
/* LiteralNumberIntegerLong */ 'il': #e2893c,
|
||||||
|
/* LiteralNumberOct */ 'mo': #e2893c,
|
||||||
|
/* Operator */ 'o': #f19b04,
|
||||||
|
/* OperatorWord */ 'ow': #b501a9,
|
||||||
|
/* Comment */ 'c': #a0a1a8,
|
||||||
|
/* CommentHashbang */ 'ch': #a0a1a8,
|
||||||
|
/* CommentMultiline */ 'cm': #a0a1a8,
|
||||||
|
/* CommentSingle */ 'c1': #a0a1a8,
|
||||||
|
/* CommentSpecial */ 'cs': #a0a1a8,
|
||||||
|
/* CommentPreproc */ 'cp': #a0a1a8,
|
||||||
|
/* CommentPreprocFile */ 'cpf': #a0a1a8,
|
||||||
|
/* Generic */ 'g': #e72d40,
|
||||||
|
/* GenericDeleted */ 'gd': #e72d40,
|
||||||
|
/* GenericEmph */ 'ge': #e72d40,
|
||||||
|
/* GenericError */ 'gr': #e72d40,
|
||||||
|
/* GenericHeading */ 'gh': #e72d40,
|
||||||
|
/* GenericInserted */ 'gi': #e72d40,
|
||||||
|
/* GenericOutput */ 'go': #e72d40,
|
||||||
|
/* GenericPrompt */ 'gp': #e72d40,
|
||||||
|
/* GenericStrong */ 'gs': #e72d40,
|
||||||
|
/* GenericSubheading */ 'gu': #e72d40,
|
||||||
|
/* GenericTraceback */ 'gt': #e72d40,
|
||||||
|
/* TextWhitespace */ 'w': #bbbbbb,
|
||||||
|
) !default;
|
||||||
|
$code-highlight-color-map-dark: (
|
||||||
|
/* Parentheses */ 'p': #a9a9b3,
|
||||||
|
/* Keyword */ 'k': #d371e3,
|
||||||
|
/* KeywordConstant */ 'kc': #d371e3,
|
||||||
|
/* KeywordDeclaration */ 'kd': #d371e3,
|
||||||
|
/* KeywordNamespace */ 'kn': #d371e3,
|
||||||
|
/* KeywordPseudo */ 'kp': #d371e3,
|
||||||
|
/* KeywordReserved */ 'kr': #d371e3,
|
||||||
|
/* KeywordType */ 'kt': #d371e3,
|
||||||
|
/* Name */ 'n': #a9b2c0,
|
||||||
|
/* NameAttribute */ 'na': #41b0f5,
|
||||||
|
/* NameBuiltin */ 'nb': #19b9c4,
|
||||||
|
/* NameBuiltinPseudo */ 'bp': #ecbf6f,
|
||||||
|
/* NameClass */ 'nc': #ecbf6f,
|
||||||
|
/* NameConstant */ 'no': #41b0f5,
|
||||||
|
/* NameDecorator */ 'nd': #ecbf6f,
|
||||||
|
/* NameEntity */ 'ni': #41b0f5,
|
||||||
|
/* NameException */ 'ne': #41b0f5,
|
||||||
|
/* NameFunction */ 'nf': #41b0f5,
|
||||||
|
/* NameFunctionMagic */ 'fm': #19b9c4,
|
||||||
|
/* NameLabel */ 'nl': #41b0f5,
|
||||||
|
/* NameNamespace */ 'nn': #41b0f5,
|
||||||
|
/* NameOther */ 'nx': #a9a9b3,
|
||||||
|
/* NameProperty */ 'py': #41b0f5,
|
||||||
|
/* NameTag */ 'nt': #41b0f5,
|
||||||
|
/* NameVariable */ 'nv': #41b0f5,
|
||||||
|
/* NameVariableClass */ 'vc': #41b0f5,
|
||||||
|
/* NameVariableGlobal */ 'vg': #41b0f5,
|
||||||
|
/* NameVariableInstance */ 'vi': #41b0f5,
|
||||||
|
/* NameVariableMagic */ 'vm': #41b0f5,
|
||||||
|
/* Literal */ 'l': #2aa198,
|
||||||
|
/* LiteralDate */ 'ld': #2aa198,
|
||||||
|
/* LiteralString */ 's': #8cc570,
|
||||||
|
/* LiteralStringAffix */ 'sa': #8cc570,
|
||||||
|
/* LiteralStringBacktick */ 'sb': #8cc570,
|
||||||
|
/* LiteralStringChar */ 'sc': #8cc570,
|
||||||
|
/* LiteralStringDelimiter */ 'dl': #8cc570,
|
||||||
|
/* LiteralStringDoc */ 'sd': #8cc570,
|
||||||
|
/* LiteralStringDouble */ 's2': #8cc570,
|
||||||
|
/* LiteralStringEscape */ 'se': #8cc570,
|
||||||
|
/* LiteralStringHeredoc */ 'sh': #8cc570,
|
||||||
|
/* LiteralStringInterpol */ 'si': #8cc570,
|
||||||
|
/* LiteralStringOther */ 'sx': #8cc570,
|
||||||
|
/* LiteralStringRegex */ 'sr': #8cc570,
|
||||||
|
/* LiteralStringSingle */ 's1': #8cc570,
|
||||||
|
/* LiteralStringSymbol */ 'ss': #8cc570,
|
||||||
|
/* LiteralNumber */ 'm': #db985c,
|
||||||
|
/* LiteralNumberBin */ 'mb': #db985c,
|
||||||
|
/* LiteralNumberFloat */ 'mf': #db985c,
|
||||||
|
/* LiteralNumberHex */ 'mh': #db985c,
|
||||||
|
/* LiteralNumberInteger */ 'mi': #db985c,
|
||||||
|
/* LiteralNumberIntegerLong */ 'il': #db985c,
|
||||||
|
/* LiteralNumberOct */ 'mo': #db985c,
|
||||||
|
/* Operator */ 'o': #ecbf6f,
|
||||||
|
/* OperatorWord */ 'ow': #d371e3,
|
||||||
|
/* Comment */ 'c': #7e848f,
|
||||||
|
/* CommentHashbang */ 'ch': #7e848f,
|
||||||
|
/* CommentMultiline */ 'cm': #7e848f,
|
||||||
|
/* CommentSingle */ 'c1': #7e848f,
|
||||||
|
/* CommentSpecial */ 'cs': #7e848f,
|
||||||
|
/* CommentPreproc */ 'cp': #7e848f,
|
||||||
|
/* CommentPreprocFile */ 'cpf': #7e848f,
|
||||||
|
/* Generic */ 'g': #f16372,
|
||||||
|
/* GenericDeleted */ 'gd': #f16372,
|
||||||
|
/* GenericEmph */ 'ge': #f16372,
|
||||||
|
/* GenericError */ 'gr': #f16372,
|
||||||
|
/* GenericHeading */ 'gh': #f16372,
|
||||||
|
/* GenericInserted */ 'gi': #f16372,
|
||||||
|
/* GenericOutput */ 'go': #f16372,
|
||||||
|
/* GenericPrompt */ 'gp': #f16372,
|
||||||
|
/* GenericStrong */ 'gs': #f16372,
|
||||||
|
/* GenericSubheading */ 'gu': #f16372,
|
||||||
|
/* GenericTraceback */ 'gt': #f16372,
|
||||||
|
/* TextWhitespace */ 'w': #bbbbbb,
|
||||||
|
) !default;
|
||||||
|
// ========== Code ========== //
|
||||||
|
|
||||||
|
// ========== Admonition ========== //
|
||||||
|
// Color map of the admonition
|
||||||
|
$admonition-color-map: (
|
||||||
|
'note': #448aff,
|
||||||
|
'abstract': #00b0ff,
|
||||||
|
'info': #00b8d4,
|
||||||
|
'tip': #00bfa5,
|
||||||
|
'success': #00c853,
|
||||||
|
'question': #64dd17,
|
||||||
|
'warning': #ff9100,
|
||||||
|
'failure': #ff5252,
|
||||||
|
'danger': #ff1744,
|
||||||
|
'bug': #f50057,
|
||||||
|
'example': #651fff,
|
||||||
|
'quote': #9e9e9e,
|
||||||
|
) !default;
|
||||||
|
|
||||||
|
// Color map of the admonition background
|
||||||
|
$admonition-background-color-map: (
|
||||||
|
'note': rgba(68, 138, 255, 0.1),
|
||||||
|
'abstract': rgba(0, 176, 255, 0.1),
|
||||||
|
'info': rgba(0, 184, 212, 0.1),
|
||||||
|
'tip': rgba(0, 191, 165, 0.1),
|
||||||
|
'success': rgba(0, 200, 83, 0.1),
|
||||||
|
'question': rgba(100, 221, 23, 0.1),
|
||||||
|
'warning': rgba(255, 145, 0, 0.1),
|
||||||
|
'failure': rgba(255, 82, 82, 0.1),
|
||||||
|
'danger': rgba(255, 23, 68, 0.1),
|
||||||
|
'bug': rgba(245, 0, 87, 0.1),
|
||||||
|
'example': rgba(101, 31, 255, 0.1),
|
||||||
|
'quote': rgba(159, 159, 159, 0.1),
|
||||||
|
) !default;
|
||||||
|
// ========== Admonition ========== //
|
||||||
|
|
||||||
|
$MAX_LENGTH: 12000px;
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
@charset "utf-8";
|
||||||
|
|
||||||
|
@import "_variables";
|
||||||
|
@import "_override";
|
||||||
|
|
||||||
|
@import "_mixin/index";
|
||||||
|
|
||||||
|
@import "_core/base";
|
||||||
|
@import "_core/layout";
|
||||||
|
|
||||||
|
@import "_page/index";
|
||||||
|
|
||||||
|
@import "_partial/header";
|
||||||
|
@import "_partial/footer";
|
||||||
|
@import "_partial/pagination";
|
||||||
|
|
||||||
|
@import "_core/media";
|
||||||
|
|
||||||
|
@import "_custom";
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
prefix:
|
||||||
|
libFiles: https://cdn.jsdelivr.net/npm/
|
||||||
|
# simple-icons@2.14.0 https://github.com/simple-icons/simple-icons
|
||||||
|
simpleIcons: https://cdn.jsdelivr.net/npm/simple-icons@2.14.0/icons/
|
||||||
|
libFiles:
|
||||||
|
# normalize.css@8.0.1 https://github.com/necolas/normalize.css
|
||||||
|
normalizeCSS: normalize.css@8.0.1/normalize.min.css
|
||||||
|
# fontawesome-free@5.13.0 https://fontawesome.com/
|
||||||
|
fontawesomeFreeCSS: '@fortawesome/fontawesome-free@5.13.0/css/all.min.css'
|
||||||
|
# animate.css@3.7.2 https://github.com/daneden/animate.css
|
||||||
|
animateCSS: animate.css@3.7.2/animate.min.css
|
||||||
|
# smooth-scroll@16.1.3 https://github.com/cferdinandi/smooth-scroll
|
||||||
|
smoothScrollJS: smooth-scroll@16.1.3/dist/smooth-scroll.min.js
|
||||||
|
# autocomplete.js@0.37.1 https://github.com/algolia/autocomplete.js
|
||||||
|
autocompleteJS: autocomplete.js@0.37.1/dist/autocomplete.min.js
|
||||||
|
# lunr.js@2.3.8 https://lunrjs.com/
|
||||||
|
lunrJS: lunr@2.3.8/lunr.min.js
|
||||||
|
# algoliasearch@4.2.0 https://github.com/algolia/algoliasearch-client-javascript
|
||||||
|
algoliasearchJS: algoliasearch@4.2.0/dist/algoliasearch-lite.umd.min.js
|
||||||
|
# lazysizes@5.2.2 https://github.com/aFarkas/lazysizes
|
||||||
|
lazysizesJS: lazysizes@5.2.2/lazysizes.min.js
|
||||||
|
# object-fit-images@3.2.4 https://github.com/fregante/object-fit-images
|
||||||
|
objectFitImagesJS: object-fit-images@3.2.4/dist/ofi.min.js
|
||||||
|
# twemoji@13.0.0 https://github.com/twitter/twemoji
|
||||||
|
twemojiJS: twemoji@13.0.0/dist/twemoji.min.js
|
||||||
|
# lightgallery.js@1.2.0 https://github.com/sachinchoolur/lightgallery.js
|
||||||
|
# lg-thumbnail.js@1.2.0 https://github.com/sachinchoolur/lg-thumbnail.js
|
||||||
|
# lg-zoom.js@1.2.0 https://github.com/sachinchoolur/lg-zoom.js
|
||||||
|
lightgalleryCSS: lightgallery.js@1.2.0/dist/css/lightgallery.min.css
|
||||||
|
lightgalleryJS: lightgallery.js@1.2.0/dist/js/lightgallery.min.js
|
||||||
|
lightgalleryThumbnailJS: lg-thumbnail.js@1.2.0/dist/lg-thumbnail.min.js
|
||||||
|
lightgalleryZoomJS: lg-zoom.js@1.2.0/dist/lg-zoom.min.js
|
||||||
|
# clipboard.js@2.0.6 https://github.com/zenorocha/clipboard.js
|
||||||
|
clipboardJS: clipboard@2.0.6/dist/clipboard.min.js
|
||||||
|
# sharer.js@0.4.0 https://github.com/ellisonleao/sharer.js
|
||||||
|
sharerJS: sharer.js@0.4.0/sharer.min.js
|
||||||
|
# typeit@7.0.4 https://github.com/alexmacarthur/typeit
|
||||||
|
typeitJS: typeit@7.0.4/dist/typeit.min.js
|
||||||
|
# katex@0.11.1 https://katex.org/
|
||||||
|
katexCSS: katex@0.11.1/dist/katex.min.css
|
||||||
|
katexJS: katex@0.11.1/dist/katex.min.js
|
||||||
|
katexAutoRenderJS: katex@0.11.1/dist/contrib/auto-render.min.js
|
||||||
|
katexCopyTexCSS: katex@0.11.1/dist/contrib/copy-tex.min.css
|
||||||
|
katexCopyTexJS: katex@0.11.1/dist/contrib/copy-tex.min.js
|
||||||
|
katexMhchemJS: katex@0.11.1/dist/contrib/mhchem.min.js
|
||||||
|
# mermaid@8.5.1 https://github.com/knsv/mermaid
|
||||||
|
mermaidJS: mermaid@8.5.1/dist/mermaid.min.js
|
||||||
|
# echarts@4.8.0 https://echarts.apache.org/
|
||||||
|
echartsJS: echarts@4.8.0/dist/echarts.min.js
|
||||||
|
echartsMacaronsJS: echarts@4.8.0/theme/macarons.min.js
|
||||||
|
# mapbox-gl@1.10.1 https://docs.mapbox.com/mapbox-gl-js
|
||||||
|
mapboxGLCSS: mapbox-gl@1.10.1/dist/mapbox-gl.min.css
|
||||||
|
mapboxGLJS: mapbox-gl@1.10.1/dist/mapbox-gl.min.js
|
||||||
|
# aplayer@1.10.1 https://github.com/MoePlayer/APlayer
|
||||||
|
aplayerCSS: aplayer@1.10.1/dist/APlayer.min.css
|
||||||
|
aplayerJS: aplayer@1.10.1/dist/APlayer.min.js
|
||||||
|
# meting@2.0.1 https://github.com/metowolf/MetingJS
|
||||||
|
metingJS: meting@2.0.1/dist/Meting.min.js
|
||||||
|
# gitalk@1.6.2 https://github.com/gitalk/gitalk
|
||||||
|
gitalkCSS: gitalk@1.6.2/dist/gitalk.min.css
|
||||||
|
gitalkJS: gitalk@1.6.2/dist/gitalk.min.js
|
||||||
|
# valine@1.4.14 https://valine.js.org/
|
||||||
|
valineJS: valine@1.4.14/dist/Valine.min.js
|
||||||
|
# cookieconsent@3.1.1 https://github.com/osano/cookieconsent
|
||||||
|
cookieconsentCSS: cookieconsent@3.1.1/build/cookieconsent.min.css
|
||||||
|
cookieconsentJS: cookieconsent@3.1.1/build/cookieconsent.min.js
|
||||||
@@ -0,0 +1,150 @@
|
|||||||
|
emojiCDN: 'https://cdn.jsdelivr.net/npm/emoji-datasource-apple@5.0.1/img/apple/64/'
|
||||||
|
emojiMaps:
|
||||||
|
'100': 1f4af.png
|
||||||
|
grinning: 1f600.png
|
||||||
|
smiley: 1f603.png
|
||||||
|
smile: 1f604.png
|
||||||
|
grin: 1f601.png
|
||||||
|
laughing: 1f606.png
|
||||||
|
sweat_smile: 1f605.png
|
||||||
|
rolling_on_the_floor_laughing: 1f923.png
|
||||||
|
joy: 1f602.png
|
||||||
|
slightly_smiling_face: 1f642.png
|
||||||
|
upside_down_face: 1f643.png
|
||||||
|
wink: 1f609.png
|
||||||
|
blush: 1f60a.png
|
||||||
|
innocent: 1f607.png
|
||||||
|
smiling_face_with_3_hearts: 1f970.png
|
||||||
|
heart_eyes: 1f60d.png
|
||||||
|
star-struck: 1f929.png
|
||||||
|
kissing_heart: 1f618.png
|
||||||
|
kissing: 1f617.png
|
||||||
|
relaxed: 263a-fe0f.png
|
||||||
|
kissing_closed_eyes: 1f61a.png
|
||||||
|
kissing_smiling_eyes: 1f619.png
|
||||||
|
yum: 1f60b.png
|
||||||
|
stuck_out_tongue: 1f61b.png
|
||||||
|
stuck_out_tongue_winking_eye: 1f61c.png
|
||||||
|
zany_face: 1f92a.png
|
||||||
|
stuck_out_tongue_closed_eyes: 1f61d.png
|
||||||
|
money_mouth_face: 1f911.png
|
||||||
|
hugging_face: 1f917.png
|
||||||
|
face_with_hand_over_mouth: 1f92d.png
|
||||||
|
shushing_face: 1f92b.png
|
||||||
|
thinking_face: 1f914.png
|
||||||
|
zipper_mouth_face: 1f910.png
|
||||||
|
face_with_raised_eyebrow: 1f928.png
|
||||||
|
neutral_face: 1f610.png
|
||||||
|
expressionless: 1f611.png
|
||||||
|
no_mouth: 1f636.png
|
||||||
|
smirk: 1f60f.png
|
||||||
|
unamused: 1f612.png
|
||||||
|
face_with_rolling_eyes: 1f644.png
|
||||||
|
grimacing: 1f62c.png
|
||||||
|
lying_face: 1f925.png
|
||||||
|
relieved: 1f60c.png
|
||||||
|
pensive: 1f614.png
|
||||||
|
sleepy: 1f62a.png
|
||||||
|
drooling_face: 1f924.png
|
||||||
|
sleeping: 1f634.png
|
||||||
|
mask: 1f637.png
|
||||||
|
face_with_thermometer: 1f912.png
|
||||||
|
face_with_head_bandage: 1f915.png
|
||||||
|
nauseated_face: 1f922.png
|
||||||
|
face_vomiting: 1f92e.png
|
||||||
|
sneezing_face: 1f927.png
|
||||||
|
hot_face: 1f975.png
|
||||||
|
cold_face: 1f976.png
|
||||||
|
woozy_face: 1f974.png
|
||||||
|
dizzy_face: 1f635.png
|
||||||
|
exploding_head: 1f92f.png
|
||||||
|
face_with_cowboy_hat: 1f920.png
|
||||||
|
partying_face: 1f973.png
|
||||||
|
sunglasses: 1f60e.png
|
||||||
|
nerd_face: 1f913.png
|
||||||
|
face_with_monocle: 1f9d0.png
|
||||||
|
confused: 1f615.png
|
||||||
|
worried: 1f61f.png
|
||||||
|
slightly_frowning_face: 1f641.png
|
||||||
|
white_frowning_face: 2639-fe0f.png
|
||||||
|
open_mouth: 1f62e.png
|
||||||
|
hushed: 1f62f.png
|
||||||
|
astonished: 1f632.png
|
||||||
|
flushed: 1f633.png
|
||||||
|
pleading_face: 1f97a.png
|
||||||
|
frowning: 1f626.png
|
||||||
|
anguished: 1f627.png
|
||||||
|
fearful: 1f628.png
|
||||||
|
cold_sweat: 1f630.png
|
||||||
|
disappointed_relieved: 1f625.png
|
||||||
|
cry: 1f622.png
|
||||||
|
sob: 1f62d.png
|
||||||
|
scream: 1f631.png
|
||||||
|
confounded: 1f616.png
|
||||||
|
persevere: 1f623.png
|
||||||
|
disappointed: 1f61e.png
|
||||||
|
sweat: 1f613.png
|
||||||
|
weary: 1f629.png
|
||||||
|
tired_face: 1f62b.png
|
||||||
|
yawning_face: 1f971.png
|
||||||
|
triumph: 1f624.png
|
||||||
|
rage: 1f621.png
|
||||||
|
angry: 1f620.png
|
||||||
|
face_with_symbols_on_mouth: 1f92c.png
|
||||||
|
smiling_imp: 1f608.png
|
||||||
|
imp: 1f47f.png
|
||||||
|
skull: 1f480.png
|
||||||
|
skull_and_crossbones: 2620-fe0f.png
|
||||||
|
hankey: 1f4a9.png
|
||||||
|
clown_face: 1f921.png
|
||||||
|
japanese_ogre: 1f479.png
|
||||||
|
japanese_goblin: 1f47a.png
|
||||||
|
ghost: 1f47b.png
|
||||||
|
alien: 1f47d.png
|
||||||
|
space_invader: 1f47e.png
|
||||||
|
robot_face: 1f916.png
|
||||||
|
smiley_cat: 1f63a.png
|
||||||
|
smile_cat: 1f638.png
|
||||||
|
joy_cat: 1f639.png
|
||||||
|
heart_eyes_cat: 1f63b.png
|
||||||
|
smirk_cat: 1f63c.png
|
||||||
|
kissing_cat: 1f63d.png
|
||||||
|
scream_cat: 1f640.png
|
||||||
|
crying_cat_face: 1f63f.png
|
||||||
|
pouting_cat: 1f63e.png
|
||||||
|
see_no_evil: 1f648.png
|
||||||
|
hear_no_evil: 1f649.png
|
||||||
|
speak_no_evil: 1f64a.png
|
||||||
|
kiss: 1f48b.png
|
||||||
|
love_letter: 1f48c.png
|
||||||
|
cupid: 1f498.png
|
||||||
|
gift_heart: 1f49d.png
|
||||||
|
sparkling_heart: 1f496.png
|
||||||
|
heartpulse: 1f497.png
|
||||||
|
heartbeat: 1f493.png
|
||||||
|
revolving_hearts: 1f49e.png
|
||||||
|
two_hearts: 1f495.png
|
||||||
|
heart_decoration: 1f49f.png
|
||||||
|
heavy_heart_exclamation_mark_ornament: 2763-fe0f.png
|
||||||
|
broken_heart: 1f494.png
|
||||||
|
heart: 2764-fe0f.png
|
||||||
|
orange_heart: 1f9e1.png
|
||||||
|
yellow_heart: 1f49b.png
|
||||||
|
green_heart: 1f49a.png
|
||||||
|
blue_heart: 1f499.png
|
||||||
|
purple_heart: 1f49c.png
|
||||||
|
brown_heart: 1f90e.png
|
||||||
|
black_heart: 1f5a4.png
|
||||||
|
white_heart: 1f90d.png
|
||||||
|
anger: 1f4a2.png
|
||||||
|
boom: 1f4a5.png
|
||||||
|
dizzy: 1f4ab.png
|
||||||
|
sweat_drops: 1f4a6.png
|
||||||
|
dash: 1f4a8.png
|
||||||
|
hole: 1f573-fe0f.png
|
||||||
|
bomb: 1f4a3.png
|
||||||
|
speech_balloon: 1f4ac.png
|
||||||
|
left_speech_bubble: 1f5e8-fe0f.png
|
||||||
|
right_anger_bubble: 1f5ef-fe0f.png
|
||||||
|
thought_balloon: 1f4ad.png
|
||||||
|
zzz: 1f4a4.png
|
||||||
@@ -0,0 +1,150 @@
|
|||||||
|
emojiCDN: 'https://cdn.jsdelivr.net/npm/emoji-datasource-facebook@5.0.1/img/facebook/64/'
|
||||||
|
emojiMaps:
|
||||||
|
'100': 1f4af.png
|
||||||
|
grinning: 1f600.png
|
||||||
|
smiley: 1f603.png
|
||||||
|
smile: 1f604.png
|
||||||
|
grin: 1f601.png
|
||||||
|
laughing: 1f606.png
|
||||||
|
sweat_smile: 1f605.png
|
||||||
|
rolling_on_the_floor_laughing: 1f923.png
|
||||||
|
joy: 1f602.png
|
||||||
|
slightly_smiling_face: 1f642.png
|
||||||
|
upside_down_face: 1f643.png
|
||||||
|
wink: 1f609.png
|
||||||
|
blush: 1f60a.png
|
||||||
|
innocent: 1f607.png
|
||||||
|
smiling_face_with_3_hearts: 1f970.png
|
||||||
|
heart_eyes: 1f60d.png
|
||||||
|
star-struck: 1f929.png
|
||||||
|
kissing_heart: 1f618.png
|
||||||
|
kissing: 1f617.png
|
||||||
|
relaxed: 263a-fe0f.png
|
||||||
|
kissing_closed_eyes: 1f61a.png
|
||||||
|
kissing_smiling_eyes: 1f619.png
|
||||||
|
yum: 1f60b.png
|
||||||
|
stuck_out_tongue: 1f61b.png
|
||||||
|
stuck_out_tongue_winking_eye: 1f61c.png
|
||||||
|
zany_face: 1f92a.png
|
||||||
|
stuck_out_tongue_closed_eyes: 1f61d.png
|
||||||
|
money_mouth_face: 1f911.png
|
||||||
|
hugging_face: 1f917.png
|
||||||
|
face_with_hand_over_mouth: 1f92d.png
|
||||||
|
shushing_face: 1f92b.png
|
||||||
|
thinking_face: 1f914.png
|
||||||
|
zipper_mouth_face: 1f910.png
|
||||||
|
face_with_raised_eyebrow: 1f928.png
|
||||||
|
neutral_face: 1f610.png
|
||||||
|
expressionless: 1f611.png
|
||||||
|
no_mouth: 1f636.png
|
||||||
|
smirk: 1f60f.png
|
||||||
|
unamused: 1f612.png
|
||||||
|
face_with_rolling_eyes: 1f644.png
|
||||||
|
grimacing: 1f62c.png
|
||||||
|
lying_face: 1f925.png
|
||||||
|
relieved: 1f60c.png
|
||||||
|
pensive: 1f614.png
|
||||||
|
sleepy: 1f62a.png
|
||||||
|
drooling_face: 1f924.png
|
||||||
|
sleeping: 1f634.png
|
||||||
|
mask: 1f637.png
|
||||||
|
face_with_thermometer: 1f912.png
|
||||||
|
face_with_head_bandage: 1f915.png
|
||||||
|
nauseated_face: 1f922.png
|
||||||
|
face_vomiting: 1f92e.png
|
||||||
|
sneezing_face: 1f927.png
|
||||||
|
hot_face: 1f975.png
|
||||||
|
cold_face: 1f976.png
|
||||||
|
woozy_face: 1f974.png
|
||||||
|
dizzy_face: 1f635.png
|
||||||
|
exploding_head: 1f92f.png
|
||||||
|
face_with_cowboy_hat: 1f920.png
|
||||||
|
partying_face: 1f973.png
|
||||||
|
sunglasses: 1f60e.png
|
||||||
|
nerd_face: 1f913.png
|
||||||
|
face_with_monocle: 1f9d0.png
|
||||||
|
confused: 1f615.png
|
||||||
|
worried: 1f61f.png
|
||||||
|
slightly_frowning_face: 1f641.png
|
||||||
|
white_frowning_face: 2639-fe0f.png
|
||||||
|
open_mouth: 1f62e.png
|
||||||
|
hushed: 1f62f.png
|
||||||
|
astonished: 1f632.png
|
||||||
|
flushed: 1f633.png
|
||||||
|
pleading_face: 1f97a.png
|
||||||
|
frowning: 1f626.png
|
||||||
|
anguished: 1f627.png
|
||||||
|
fearful: 1f628.png
|
||||||
|
cold_sweat: 1f630.png
|
||||||
|
disappointed_relieved: 1f625.png
|
||||||
|
cry: 1f622.png
|
||||||
|
sob: 1f62d.png
|
||||||
|
scream: 1f631.png
|
||||||
|
confounded: 1f616.png
|
||||||
|
persevere: 1f623.png
|
||||||
|
disappointed: 1f61e.png
|
||||||
|
sweat: 1f613.png
|
||||||
|
weary: 1f629.png
|
||||||
|
tired_face: 1f62b.png
|
||||||
|
yawning_face: 1f971.png
|
||||||
|
triumph: 1f624.png
|
||||||
|
rage: 1f621.png
|
||||||
|
angry: 1f620.png
|
||||||
|
face_with_symbols_on_mouth: 1f92c.png
|
||||||
|
smiling_imp: 1f608.png
|
||||||
|
imp: 1f47f.png
|
||||||
|
skull: 1f480.png
|
||||||
|
skull_and_crossbones: 2620-fe0f.png
|
||||||
|
hankey: 1f4a9.png
|
||||||
|
clown_face: 1f921.png
|
||||||
|
japanese_ogre: 1f479.png
|
||||||
|
japanese_goblin: 1f47a.png
|
||||||
|
ghost: 1f47b.png
|
||||||
|
alien: 1f47d.png
|
||||||
|
space_invader: 1f47e.png
|
||||||
|
robot_face: 1f916.png
|
||||||
|
smiley_cat: 1f63a.png
|
||||||
|
smile_cat: 1f638.png
|
||||||
|
joy_cat: 1f639.png
|
||||||
|
heart_eyes_cat: 1f63b.png
|
||||||
|
smirk_cat: 1f63c.png
|
||||||
|
kissing_cat: 1f63d.png
|
||||||
|
scream_cat: 1f640.png
|
||||||
|
crying_cat_face: 1f63f.png
|
||||||
|
pouting_cat: 1f63e.png
|
||||||
|
see_no_evil: 1f648.png
|
||||||
|
hear_no_evil: 1f649.png
|
||||||
|
speak_no_evil: 1f64a.png
|
||||||
|
kiss: 1f48b.png
|
||||||
|
love_letter: 1f48c.png
|
||||||
|
cupid: 1f498.png
|
||||||
|
gift_heart: 1f49d.png
|
||||||
|
sparkling_heart: 1f496.png
|
||||||
|
heartpulse: 1f497.png
|
||||||
|
heartbeat: 1f493.png
|
||||||
|
revolving_hearts: 1f49e.png
|
||||||
|
two_hearts: 1f495.png
|
||||||
|
heart_decoration: 1f49f.png
|
||||||
|
heavy_heart_exclamation_mark_ornament: 2763-fe0f.png
|
||||||
|
broken_heart: 1f494.png
|
||||||
|
heart: 2764-fe0f.png
|
||||||
|
orange_heart: 1f9e1.png
|
||||||
|
yellow_heart: 1f49b.png
|
||||||
|
green_heart: 1f49a.png
|
||||||
|
blue_heart: 1f499.png
|
||||||
|
purple_heart: 1f49c.png
|
||||||
|
brown_heart: 1f90e.png
|
||||||
|
black_heart: 1f5a4.png
|
||||||
|
white_heart: 1f90d.png
|
||||||
|
anger: 1f4a2.png
|
||||||
|
boom: 1f4a5.png
|
||||||
|
dizzy: 1f4ab.png
|
||||||
|
sweat_drops: 1f4a6.png
|
||||||
|
dash: 1f4a8.png
|
||||||
|
hole: 1f573-fe0f.png
|
||||||
|
bomb: 1f4a3.png
|
||||||
|
speech_balloon: 1f4ac.png
|
||||||
|
left_speech_bubble: 1f5e8-fe0f.png
|
||||||
|
right_anger_bubble: 1f5ef-fe0f.png
|
||||||
|
thought_balloon: 1f4ad.png
|
||||||
|
zzz: 1f4a4.png
|
||||||
@@ -0,0 +1,150 @@
|
|||||||
|
emojiCDN: 'https://cdn.jsdelivr.net/npm/emoji-datasource-google@5.0.1/img/google/64/'
|
||||||
|
emojiMaps:
|
||||||
|
'100': 1f4af.png
|
||||||
|
grinning: 1f600.png
|
||||||
|
smiley: 1f603.png
|
||||||
|
smile: 1f604.png
|
||||||
|
grin: 1f601.png
|
||||||
|
laughing: 1f606.png
|
||||||
|
sweat_smile: 1f605.png
|
||||||
|
rolling_on_the_floor_laughing: 1f923.png
|
||||||
|
joy: 1f602.png
|
||||||
|
slightly_smiling_face: 1f642.png
|
||||||
|
upside_down_face: 1f643.png
|
||||||
|
wink: 1f609.png
|
||||||
|
blush: 1f60a.png
|
||||||
|
innocent: 1f607.png
|
||||||
|
smiling_face_with_3_hearts: 1f970.png
|
||||||
|
heart_eyes: 1f60d.png
|
||||||
|
star-struck: 1f929.png
|
||||||
|
kissing_heart: 1f618.png
|
||||||
|
kissing: 1f617.png
|
||||||
|
relaxed: 263a-fe0f.png
|
||||||
|
kissing_closed_eyes: 1f61a.png
|
||||||
|
kissing_smiling_eyes: 1f619.png
|
||||||
|
yum: 1f60b.png
|
||||||
|
stuck_out_tongue: 1f61b.png
|
||||||
|
stuck_out_tongue_winking_eye: 1f61c.png
|
||||||
|
zany_face: 1f92a.png
|
||||||
|
stuck_out_tongue_closed_eyes: 1f61d.png
|
||||||
|
money_mouth_face: 1f911.png
|
||||||
|
hugging_face: 1f917.png
|
||||||
|
face_with_hand_over_mouth: 1f92d.png
|
||||||
|
shushing_face: 1f92b.png
|
||||||
|
thinking_face: 1f914.png
|
||||||
|
zipper_mouth_face: 1f910.png
|
||||||
|
face_with_raised_eyebrow: 1f928.png
|
||||||
|
neutral_face: 1f610.png
|
||||||
|
expressionless: 1f611.png
|
||||||
|
no_mouth: 1f636.png
|
||||||
|
smirk: 1f60f.png
|
||||||
|
unamused: 1f612.png
|
||||||
|
face_with_rolling_eyes: 1f644.png
|
||||||
|
grimacing: 1f62c.png
|
||||||
|
lying_face: 1f925.png
|
||||||
|
relieved: 1f60c.png
|
||||||
|
pensive: 1f614.png
|
||||||
|
sleepy: 1f62a.png
|
||||||
|
drooling_face: 1f924.png
|
||||||
|
sleeping: 1f634.png
|
||||||
|
mask: 1f637.png
|
||||||
|
face_with_thermometer: 1f912.png
|
||||||
|
face_with_head_bandage: 1f915.png
|
||||||
|
nauseated_face: 1f922.png
|
||||||
|
face_vomiting: 1f92e.png
|
||||||
|
sneezing_face: 1f927.png
|
||||||
|
hot_face: 1f975.png
|
||||||
|
cold_face: 1f976.png
|
||||||
|
woozy_face: 1f974.png
|
||||||
|
dizzy_face: 1f635.png
|
||||||
|
exploding_head: 1f92f.png
|
||||||
|
face_with_cowboy_hat: 1f920.png
|
||||||
|
partying_face: 1f973.png
|
||||||
|
sunglasses: 1f60e.png
|
||||||
|
nerd_face: 1f913.png
|
||||||
|
face_with_monocle: 1f9d0.png
|
||||||
|
confused: 1f615.png
|
||||||
|
worried: 1f61f.png
|
||||||
|
slightly_frowning_face: 1f641.png
|
||||||
|
white_frowning_face: 2639-fe0f.png
|
||||||
|
open_mouth: 1f62e.png
|
||||||
|
hushed: 1f62f.png
|
||||||
|
astonished: 1f632.png
|
||||||
|
flushed: 1f633.png
|
||||||
|
pleading_face: 1f97a.png
|
||||||
|
frowning: 1f626.png
|
||||||
|
anguished: 1f627.png
|
||||||
|
fearful: 1f628.png
|
||||||
|
cold_sweat: 1f630.png
|
||||||
|
disappointed_relieved: 1f625.png
|
||||||
|
cry: 1f622.png
|
||||||
|
sob: 1f62d.png
|
||||||
|
scream: 1f631.png
|
||||||
|
confounded: 1f616.png
|
||||||
|
persevere: 1f623.png
|
||||||
|
disappointed: 1f61e.png
|
||||||
|
sweat: 1f613.png
|
||||||
|
weary: 1f629.png
|
||||||
|
tired_face: 1f62b.png
|
||||||
|
yawning_face: 1f971.png
|
||||||
|
triumph: 1f624.png
|
||||||
|
rage: 1f621.png
|
||||||
|
angry: 1f620.png
|
||||||
|
face_with_symbols_on_mouth: 1f92c.png
|
||||||
|
smiling_imp: 1f608.png
|
||||||
|
imp: 1f47f.png
|
||||||
|
skull: 1f480.png
|
||||||
|
skull_and_crossbones: 2620-fe0f.png
|
||||||
|
hankey: 1f4a9.png
|
||||||
|
clown_face: 1f921.png
|
||||||
|
japanese_ogre: 1f479.png
|
||||||
|
japanese_goblin: 1f47a.png
|
||||||
|
ghost: 1f47b.png
|
||||||
|
alien: 1f47d.png
|
||||||
|
space_invader: 1f47e.png
|
||||||
|
robot_face: 1f916.png
|
||||||
|
smiley_cat: 1f63a.png
|
||||||
|
smile_cat: 1f638.png
|
||||||
|
joy_cat: 1f639.png
|
||||||
|
heart_eyes_cat: 1f63b.png
|
||||||
|
smirk_cat: 1f63c.png
|
||||||
|
kissing_cat: 1f63d.png
|
||||||
|
scream_cat: 1f640.png
|
||||||
|
crying_cat_face: 1f63f.png
|
||||||
|
pouting_cat: 1f63e.png
|
||||||
|
see_no_evil: 1f648.png
|
||||||
|
hear_no_evil: 1f649.png
|
||||||
|
speak_no_evil: 1f64a.png
|
||||||
|
kiss: 1f48b.png
|
||||||
|
love_letter: 1f48c.png
|
||||||
|
cupid: 1f498.png
|
||||||
|
gift_heart: 1f49d.png
|
||||||
|
sparkling_heart: 1f496.png
|
||||||
|
heartpulse: 1f497.png
|
||||||
|
heartbeat: 1f493.png
|
||||||
|
revolving_hearts: 1f49e.png
|
||||||
|
two_hearts: 1f495.png
|
||||||
|
heart_decoration: 1f49f.png
|
||||||
|
heavy_heart_exclamation_mark_ornament: 2763-fe0f.png
|
||||||
|
broken_heart: 1f494.png
|
||||||
|
heart: 2764-fe0f.png
|
||||||
|
orange_heart: 1f9e1.png
|
||||||
|
yellow_heart: 1f49b.png
|
||||||
|
green_heart: 1f49a.png
|
||||||
|
blue_heart: 1f499.png
|
||||||
|
purple_heart: 1f49c.png
|
||||||
|
brown_heart: 1f90e.png
|
||||||
|
black_heart: 1f5a4.png
|
||||||
|
white_heart: 1f90d.png
|
||||||
|
anger: 1f4a2.png
|
||||||
|
boom: 1f4a5.png
|
||||||
|
dizzy: 1f4ab.png
|
||||||
|
sweat_drops: 1f4a6.png
|
||||||
|
dash: 1f4a8.png
|
||||||
|
hole: 1f573-fe0f.png
|
||||||
|
bomb: 1f4a3.png
|
||||||
|
speech_balloon: 1f4ac.png
|
||||||
|
left_speech_bubble: 1f5e8-fe0f.png
|
||||||
|
right_anger_bubble: 1f5ef-fe0f.png
|
||||||
|
thought_balloon: 1f4ad.png
|
||||||
|
zzz: 1f4a4.png
|
||||||
@@ -0,0 +1,150 @@
|
|||||||
|
emojiCDN: 'https://cdn.jsdelivr.net/npm/emoji-datasource-twitter@5.0.1/img/twitter/64/'
|
||||||
|
emojiMaps:
|
||||||
|
'100': 1f4af.png
|
||||||
|
grinning: 1f600.png
|
||||||
|
smiley: 1f603.png
|
||||||
|
smile: 1f604.png
|
||||||
|
grin: 1f601.png
|
||||||
|
laughing: 1f606.png
|
||||||
|
sweat_smile: 1f605.png
|
||||||
|
rolling_on_the_floor_laughing: 1f923.png
|
||||||
|
joy: 1f602.png
|
||||||
|
slightly_smiling_face: 1f642.png
|
||||||
|
upside_down_face: 1f643.png
|
||||||
|
wink: 1f609.png
|
||||||
|
blush: 1f60a.png
|
||||||
|
innocent: 1f607.png
|
||||||
|
smiling_face_with_3_hearts: 1f970.png
|
||||||
|
heart_eyes: 1f60d.png
|
||||||
|
star-struck: 1f929.png
|
||||||
|
kissing_heart: 1f618.png
|
||||||
|
kissing: 1f617.png
|
||||||
|
relaxed: 263a-fe0f.png
|
||||||
|
kissing_closed_eyes: 1f61a.png
|
||||||
|
kissing_smiling_eyes: 1f619.png
|
||||||
|
yum: 1f60b.png
|
||||||
|
stuck_out_tongue: 1f61b.png
|
||||||
|
stuck_out_tongue_winking_eye: 1f61c.png
|
||||||
|
zany_face: 1f92a.png
|
||||||
|
stuck_out_tongue_closed_eyes: 1f61d.png
|
||||||
|
money_mouth_face: 1f911.png
|
||||||
|
hugging_face: 1f917.png
|
||||||
|
face_with_hand_over_mouth: 1f92d.png
|
||||||
|
shushing_face: 1f92b.png
|
||||||
|
thinking_face: 1f914.png
|
||||||
|
zipper_mouth_face: 1f910.png
|
||||||
|
face_with_raised_eyebrow: 1f928.png
|
||||||
|
neutral_face: 1f610.png
|
||||||
|
expressionless: 1f611.png
|
||||||
|
no_mouth: 1f636.png
|
||||||
|
smirk: 1f60f.png
|
||||||
|
unamused: 1f612.png
|
||||||
|
face_with_rolling_eyes: 1f644.png
|
||||||
|
grimacing: 1f62c.png
|
||||||
|
lying_face: 1f925.png
|
||||||
|
relieved: 1f60c.png
|
||||||
|
pensive: 1f614.png
|
||||||
|
sleepy: 1f62a.png
|
||||||
|
drooling_face: 1f924.png
|
||||||
|
sleeping: 1f634.png
|
||||||
|
mask: 1f637.png
|
||||||
|
face_with_thermometer: 1f912.png
|
||||||
|
face_with_head_bandage: 1f915.png
|
||||||
|
nauseated_face: 1f922.png
|
||||||
|
face_vomiting: 1f92e.png
|
||||||
|
sneezing_face: 1f927.png
|
||||||
|
hot_face: 1f975.png
|
||||||
|
cold_face: 1f976.png
|
||||||
|
woozy_face: 1f974.png
|
||||||
|
dizzy_face: 1f635.png
|
||||||
|
exploding_head: 1f92f.png
|
||||||
|
face_with_cowboy_hat: 1f920.png
|
||||||
|
partying_face: 1f973.png
|
||||||
|
sunglasses: 1f60e.png
|
||||||
|
nerd_face: 1f913.png
|
||||||
|
face_with_monocle: 1f9d0.png
|
||||||
|
confused: 1f615.png
|
||||||
|
worried: 1f61f.png
|
||||||
|
slightly_frowning_face: 1f641.png
|
||||||
|
white_frowning_face: 2639-fe0f.png
|
||||||
|
open_mouth: 1f62e.png
|
||||||
|
hushed: 1f62f.png
|
||||||
|
astonished: 1f632.png
|
||||||
|
flushed: 1f633.png
|
||||||
|
pleading_face: 1f97a.png
|
||||||
|
frowning: 1f626.png
|
||||||
|
anguished: 1f627.png
|
||||||
|
fearful: 1f628.png
|
||||||
|
cold_sweat: 1f630.png
|
||||||
|
disappointed_relieved: 1f625.png
|
||||||
|
cry: 1f622.png
|
||||||
|
sob: 1f62d.png
|
||||||
|
scream: 1f631.png
|
||||||
|
confounded: 1f616.png
|
||||||
|
persevere: 1f623.png
|
||||||
|
disappointed: 1f61e.png
|
||||||
|
sweat: 1f613.png
|
||||||
|
weary: 1f629.png
|
||||||
|
tired_face: 1f62b.png
|
||||||
|
yawning_face: 1f971.png
|
||||||
|
triumph: 1f624.png
|
||||||
|
rage: 1f621.png
|
||||||
|
angry: 1f620.png
|
||||||
|
face_with_symbols_on_mouth: 1f92c.png
|
||||||
|
smiling_imp: 1f608.png
|
||||||
|
imp: 1f47f.png
|
||||||
|
skull: 1f480.png
|
||||||
|
skull_and_crossbones: 2620-fe0f.png
|
||||||
|
hankey: 1f4a9.png
|
||||||
|
clown_face: 1f921.png
|
||||||
|
japanese_ogre: 1f479.png
|
||||||
|
japanese_goblin: 1f47a.png
|
||||||
|
ghost: 1f47b.png
|
||||||
|
alien: 1f47d.png
|
||||||
|
space_invader: 1f47e.png
|
||||||
|
robot_face: 1f916.png
|
||||||
|
smiley_cat: 1f63a.png
|
||||||
|
smile_cat: 1f638.png
|
||||||
|
joy_cat: 1f639.png
|
||||||
|
heart_eyes_cat: 1f63b.png
|
||||||
|
smirk_cat: 1f63c.png
|
||||||
|
kissing_cat: 1f63d.png
|
||||||
|
scream_cat: 1f640.png
|
||||||
|
crying_cat_face: 1f63f.png
|
||||||
|
pouting_cat: 1f63e.png
|
||||||
|
see_no_evil: 1f648.png
|
||||||
|
hear_no_evil: 1f649.png
|
||||||
|
speak_no_evil: 1f64a.png
|
||||||
|
kiss: 1f48b.png
|
||||||
|
love_letter: 1f48c.png
|
||||||
|
cupid: 1f498.png
|
||||||
|
gift_heart: 1f49d.png
|
||||||
|
sparkling_heart: 1f496.png
|
||||||
|
heartpulse: 1f497.png
|
||||||
|
heartbeat: 1f493.png
|
||||||
|
revolving_hearts: 1f49e.png
|
||||||
|
two_hearts: 1f495.png
|
||||||
|
heart_decoration: 1f49f.png
|
||||||
|
heavy_heart_exclamation_mark_ornament: 2763-fe0f.png
|
||||||
|
broken_heart: 1f494.png
|
||||||
|
heart: 2764-fe0f.png
|
||||||
|
orange_heart: 1f9e1.png
|
||||||
|
yellow_heart: 1f49b.png
|
||||||
|
green_heart: 1f49a.png
|
||||||
|
blue_heart: 1f499.png
|
||||||
|
purple_heart: 1f49c.png
|
||||||
|
brown_heart: 1f90e.png
|
||||||
|
black_heart: 1f5a4.png
|
||||||
|
white_heart: 1f90d.png
|
||||||
|
anger: 1f4a2.png
|
||||||
|
boom: 1f4a5.png
|
||||||
|
dizzy: 1f4ab.png
|
||||||
|
sweat_drops: 1f4a6.png
|
||||||
|
dash: 1f4a8.png
|
||||||
|
hole: 1f573-fe0f.png
|
||||||
|
bomb: 1f4a3.png
|
||||||
|
speech_balloon: 1f4ac.png
|
||||||
|
left_speech_bubble: 1f5e8-fe0f.png
|
||||||
|
right_anger_bubble: 1f5ef-fe0f.png
|
||||||
|
thought_balloon: 1f4ad.png
|
||||||
|
zzz: 1f4a4.png
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
theme:
|
||||||
|
- html5shiv
|
||||||
|
- Object.values
|
||||||
|
- Promise
|
||||||
|
- fetch
|
||||||
|
- Element.prototype.after
|
||||||
|
smooth-scroll:
|
||||||
|
- Element.prototype.closest
|
||||||
|
- requestAnimationFrame
|
||||||
|
- CustomEvent
|
||||||
|
algoliasearch:
|
||||||
|
- Promise
|
||||||
|
- Object.entries
|
||||||
|
- Object.assign
|
||||||
|
TypeIt:
|
||||||
|
- Array.prototype.fill
|
||||||
|
- Array.prototype.find
|
||||||
|
- Array.from
|
||||||
|
- IntersectionObserver
|
||||||
|
- Math.sign
|
||||||
|
- Object.assign
|
||||||
|
- Promise
|
||||||
@@ -0,0 +1,511 @@
|
|||||||
|
# 001: Github
|
||||||
|
github:
|
||||||
|
Weight: 1
|
||||||
|
Prefix: https://github.com/
|
||||||
|
Title: GitHub
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-github-alt fa-fw
|
||||||
|
|
||||||
|
# 002: LinkedIn
|
||||||
|
linkedin:
|
||||||
|
Weight: 2
|
||||||
|
Prefix: https://linkedin.com/in/
|
||||||
|
Title: LinkedIn
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-linkedin fa-fw
|
||||||
|
|
||||||
|
# 003: Twitter
|
||||||
|
twitter:
|
||||||
|
Weight: 3
|
||||||
|
Prefix: https://twitter.com/
|
||||||
|
Title: Twitter
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-twitter fa-fw
|
||||||
|
|
||||||
|
# 004: Instagram
|
||||||
|
instagram:
|
||||||
|
Weight: 4
|
||||||
|
Prefix: https://www.instagram.com/
|
||||||
|
Title: Instagram
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-instagram fa-fw
|
||||||
|
|
||||||
|
# 005: facebook
|
||||||
|
facebook:
|
||||||
|
Weight: 5
|
||||||
|
Prefix: https://facebook.com/
|
||||||
|
Title: facebook
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-facebook fa-fw
|
||||||
|
|
||||||
|
# 006: Telegram
|
||||||
|
telegram:
|
||||||
|
Weight: 6
|
||||||
|
Prefix: https://t.me/
|
||||||
|
Title: Telegram
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-telegram-plane fa-fw
|
||||||
|
|
||||||
|
# 007: Medium
|
||||||
|
medium:
|
||||||
|
Weight: 7
|
||||||
|
Prefix: https://medium.com/
|
||||||
|
Title: Medium
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-medium fa-fw
|
||||||
|
|
||||||
|
# 008: GitLab
|
||||||
|
gitlab:
|
||||||
|
Weight: 8
|
||||||
|
Prefix: https://gitlab.com/
|
||||||
|
Title: GitLab
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-gitlab fa-fw
|
||||||
|
|
||||||
|
# 009: YouTube Legacy
|
||||||
|
youtubelegacy:
|
||||||
|
Weight: 9
|
||||||
|
Prefix: https://www.youtube.com/user/
|
||||||
|
Title: YouTube
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-youtube fa-fw
|
||||||
|
|
||||||
|
# 010: YouTube Custom
|
||||||
|
youtubecustom:
|
||||||
|
Weight: 10
|
||||||
|
Prefix: https://www.youtube.com/c/
|
||||||
|
Title: YouTube
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-youtube fa-fw
|
||||||
|
|
||||||
|
# 011: YouTube Channel
|
||||||
|
youtubechannel:
|
||||||
|
Weight: 11
|
||||||
|
Prefix: https://www.youtube.com/channel/
|
||||||
|
Title: YouTube
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-youtube fa-fw
|
||||||
|
|
||||||
|
# 012: Tumblr
|
||||||
|
tumblr:
|
||||||
|
Weight: 12
|
||||||
|
Template: https://%v.tumblr.com/
|
||||||
|
Title: Tumblr
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-tumblr fa-fw
|
||||||
|
|
||||||
|
# 013: Quora
|
||||||
|
quora:
|
||||||
|
Weight: 13
|
||||||
|
Prefix: https://www.quora.com/profile/
|
||||||
|
Title: Quora
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-quora fa-fw
|
||||||
|
|
||||||
|
# 014: Keybase
|
||||||
|
keybase:
|
||||||
|
Weight: 14
|
||||||
|
Prefix: https://keybase.io/
|
||||||
|
Title: Keybase
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-keybase fa-fw
|
||||||
|
|
||||||
|
# 015: Pinterest
|
||||||
|
pinterest:
|
||||||
|
Weight: 15
|
||||||
|
Prefix: https://www.pinterest.com/
|
||||||
|
Title: Pinterest
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-pinterest fa-fw
|
||||||
|
|
||||||
|
# 016: Reddit
|
||||||
|
reddit:
|
||||||
|
Weight: 16
|
||||||
|
Prefix: https://www.reddit.com/user/
|
||||||
|
Title: Reddit
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-reddit fa-fw
|
||||||
|
|
||||||
|
# 017: CodePen
|
||||||
|
codepen:
|
||||||
|
Weight: 17
|
||||||
|
Prefix: https://codepen.io/
|
||||||
|
Title: CodePen
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-codepen fa-fw
|
||||||
|
|
||||||
|
# 018: freeCodeCamp
|
||||||
|
freecodecamp:
|
||||||
|
Weight: 18
|
||||||
|
Prefix: https://freecodecamp.org/
|
||||||
|
Title: freeCodeCamp
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-free-code-camp fa-fw
|
||||||
|
|
||||||
|
# 019: Bitbucket
|
||||||
|
bitbucket:
|
||||||
|
Weight: 19
|
||||||
|
Prefix: https://bitbucket.org/
|
||||||
|
Title: Bitbucket
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-bitbucket fa-fw
|
||||||
|
|
||||||
|
# 020: Stack Overflow
|
||||||
|
stackoverflow:
|
||||||
|
Weight: 20
|
||||||
|
Prefix: https://stackoverflow.com/users/
|
||||||
|
Title: Stack Overflow
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-codepen fa-fw
|
||||||
|
|
||||||
|
# 021: 微博
|
||||||
|
weibo:
|
||||||
|
Weight: 21
|
||||||
|
Prefix: https://weibo.com/
|
||||||
|
Title: 微博
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-weibo fa-fw
|
||||||
|
|
||||||
|
# 022: OK.RU
|
||||||
|
odnoklassniki:
|
||||||
|
Weight: 22
|
||||||
|
Prefix: https://ok.ru/
|
||||||
|
Title: OK.RU
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-odnoklassniki fa-fw
|
||||||
|
|
||||||
|
# 023: VK
|
||||||
|
vk:
|
||||||
|
Weight: 23
|
||||||
|
Prefix: https://vk.com/
|
||||||
|
Title: VK
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-vk fa-fw
|
||||||
|
|
||||||
|
# 024: Flickr
|
||||||
|
flickr:
|
||||||
|
Weight: 24
|
||||||
|
Prefix: https://www.flickr.com/photos/
|
||||||
|
Title: Flickr
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-flickr fa-fw
|
||||||
|
|
||||||
|
# 025: Xing
|
||||||
|
xing:
|
||||||
|
Weight: 25
|
||||||
|
Prefix: https://www.xing.com/profile/
|
||||||
|
Title: Xing
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-xing fa-fw
|
||||||
|
|
||||||
|
# 026: Snapchat
|
||||||
|
snapchat:
|
||||||
|
Weight: 26
|
||||||
|
Prefix: https://www.snapchat.com/add/
|
||||||
|
Title: Snapchat
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-snapchat fa-fw
|
||||||
|
|
||||||
|
# 027: SoundCloud
|
||||||
|
soundcloud:
|
||||||
|
Weight: 27
|
||||||
|
Prefix: https://soundcloud.com/
|
||||||
|
Title: SoundCloud
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-soundcloud fa-fw
|
||||||
|
|
||||||
|
# 028: Spotify
|
||||||
|
spotify:
|
||||||
|
Weight: 28
|
||||||
|
Prefix: https://open.spotify.com/user/
|
||||||
|
Title: Spotify
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-spotify fa-fw
|
||||||
|
|
||||||
|
# 029: Bandcamp
|
||||||
|
bandcamp:
|
||||||
|
Weight: 29
|
||||||
|
Template: https://%v.bandcamp.com/
|
||||||
|
Title: Bandcamp
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-bandcamp fa-fw
|
||||||
|
|
||||||
|
# 030: PayPal
|
||||||
|
paypal:
|
||||||
|
Weight: 30
|
||||||
|
Prefix: https://paypal.me/
|
||||||
|
Title: PayPal
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-paypal fa-fw
|
||||||
|
|
||||||
|
# 031: 500px
|
||||||
|
fivehundredpx:
|
||||||
|
Weight: 31
|
||||||
|
Prefix: https://500px.com/
|
||||||
|
Title: 500px
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-500px fa-fw
|
||||||
|
|
||||||
|
# 032: Mix
|
||||||
|
mix:
|
||||||
|
Weight: 32
|
||||||
|
Prefix: https://mix.com/
|
||||||
|
Title: Mix
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-mix fa-fw
|
||||||
|
|
||||||
|
# 033: Goodreads
|
||||||
|
goodreads:
|
||||||
|
Weight: 33
|
||||||
|
Prefix: https://www.goodreads.com/user/show/
|
||||||
|
Title: Goodreads
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-goodreads fa-fw
|
||||||
|
|
||||||
|
# 034: Last.fm
|
||||||
|
lastfm:
|
||||||
|
Weight: 34
|
||||||
|
Prefix: https://www.last.fm/user/
|
||||||
|
Title: Last.fm
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-lastfm fa-fw
|
||||||
|
|
||||||
|
# 035: Foursquare
|
||||||
|
foursquare:
|
||||||
|
Weight: 35
|
||||||
|
Prefix: https://foursquare.com/
|
||||||
|
Title: Foursquare
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-foursquare fa-fw
|
||||||
|
|
||||||
|
# 036: Hacker News
|
||||||
|
hackernews:
|
||||||
|
Weight: 36
|
||||||
|
Template: https://news.ycombinator.com/user?id=%v
|
||||||
|
Title: Hacker News
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-hacker-news fa-fw
|
||||||
|
|
||||||
|
# 037: Kickstarter
|
||||||
|
kickstarter:
|
||||||
|
Weight: 37
|
||||||
|
Prefix: https://kickstarter.com/profile/
|
||||||
|
Title: Kickstarter
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-kickstarter fa-fw
|
||||||
|
|
||||||
|
# 038: Patreon
|
||||||
|
patreon:
|
||||||
|
Weight: 38
|
||||||
|
Prefix: https://patreon.com/
|
||||||
|
Title: Patreon
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-patreon fa-fw
|
||||||
|
|
||||||
|
# 039: Steam
|
||||||
|
steam:
|
||||||
|
Weight: 39
|
||||||
|
Prefix: https://steamcommunity.com/id/
|
||||||
|
Title: Steam
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-steam fa-fw
|
||||||
|
|
||||||
|
# 040: Twitch
|
||||||
|
twitch:
|
||||||
|
Weight: 40
|
||||||
|
Prefix: https://www.twitch.tv/
|
||||||
|
Title: Twitch
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-twitch fa-fw
|
||||||
|
|
||||||
|
# 041: Strava
|
||||||
|
strava:
|
||||||
|
Weight: 41
|
||||||
|
Prefix: https://www.strava.com/athletes/
|
||||||
|
Title: Strava
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-strava fa-fw
|
||||||
|
|
||||||
|
# 042: Skype
|
||||||
|
skype:
|
||||||
|
Weight: 42
|
||||||
|
Template: "skype:"
|
||||||
|
Title: Skype
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-skype fa-fw
|
||||||
|
|
||||||
|
# 043: WhatsApp
|
||||||
|
whatsapp:
|
||||||
|
Weight: 43
|
||||||
|
Prefix: https://wa.me/
|
||||||
|
Title: WhatsApp
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-whatsapp fa-fw
|
||||||
|
|
||||||
|
# 044: 知乎
|
||||||
|
zhihu:
|
||||||
|
Weight: 44
|
||||||
|
Prefix: https://www.zhihu.com/people/
|
||||||
|
Title: 知乎
|
||||||
|
Icon:
|
||||||
|
Simpleicons: zhihu
|
||||||
|
|
||||||
|
# 045: 豆瓣
|
||||||
|
douban:
|
||||||
|
Weight: 45
|
||||||
|
Prefix: https://www.douban.com/people/
|
||||||
|
Title: 豆瓣
|
||||||
|
Icon:
|
||||||
|
Simpleicons: douban
|
||||||
|
|
||||||
|
# 046: Angellist
|
||||||
|
angellist:
|
||||||
|
Weight: 46
|
||||||
|
Prefix: https://angel.co/
|
||||||
|
Title: Angellist
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-angellist fa-fw
|
||||||
|
|
||||||
|
# 047: SlideShare
|
||||||
|
slideshare:
|
||||||
|
Weight: 47
|
||||||
|
Prefix: https://slideshare.com/
|
||||||
|
Title: SlideShare
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-slideshare fa-fw
|
||||||
|
|
||||||
|
# 048: JSFiddle
|
||||||
|
jsfiddle:
|
||||||
|
Weight: 48
|
||||||
|
Prefix: https://jsfiddle.com/
|
||||||
|
Title: JSFiddle
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-jsfiddle fa-fw
|
||||||
|
|
||||||
|
# 049: DeviantArt
|
||||||
|
deviantart:
|
||||||
|
Weight: 49
|
||||||
|
Template: https://%v.deviantart.com/
|
||||||
|
Title: DeviantArt
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-deviantart fa-fw
|
||||||
|
|
||||||
|
# 050: Behance
|
||||||
|
behance:
|
||||||
|
Weight: 50
|
||||||
|
Prefix: https://behance.net/
|
||||||
|
Title: Behance
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-behance fa-fw
|
||||||
|
|
||||||
|
# 051: Dribbble
|
||||||
|
dribbble:
|
||||||
|
Weight: 51
|
||||||
|
Prefix: https://dribbble.com/
|
||||||
|
Title: Dribbble
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-dribbble fa-fw
|
||||||
|
|
||||||
|
# 052: WordPress
|
||||||
|
wordpress:
|
||||||
|
Weight: 52
|
||||||
|
Template: https://%v.wordpress.com/
|
||||||
|
Title: WordPress
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-wordpress fa-fw
|
||||||
|
|
||||||
|
# 053: Vine
|
||||||
|
vine:
|
||||||
|
Weight: 53
|
||||||
|
Prefix: https://vine.co/
|
||||||
|
Title: Vine
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-vine fa-fw
|
||||||
|
|
||||||
|
# 054: Google Scholar
|
||||||
|
googlescholar:
|
||||||
|
Weight: 54
|
||||||
|
Template: https://scholar.google.com/citations?%v
|
||||||
|
Title: Google Scholar
|
||||||
|
Icon:
|
||||||
|
Simpleicons: googlescholar
|
||||||
|
|
||||||
|
# 055: ResearchGate
|
||||||
|
researchgate:
|
||||||
|
Weight: 55
|
||||||
|
Prefix: https://www.researchgate.net/profile/
|
||||||
|
Title: ResearchGate
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-researchgate fa-fw
|
||||||
|
|
||||||
|
# 056: Mastodon
|
||||||
|
mastodon:
|
||||||
|
Weight: 56
|
||||||
|
Prefix: https://mastodon.social/
|
||||||
|
Title: Mastodon
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-mastodon fa-fw
|
||||||
|
|
||||||
|
# 057: Thingiverse
|
||||||
|
thingiverse:
|
||||||
|
Weight: 57
|
||||||
|
Prefix: https://www.thingiverse.com/
|
||||||
|
Title: Thingiverse
|
||||||
|
Icon:
|
||||||
|
Src: svg/icons/thingiverse.svg
|
||||||
|
|
||||||
|
# 058: Dev.To
|
||||||
|
devto:
|
||||||
|
Weight: 58
|
||||||
|
Prefix: https://dev.to/
|
||||||
|
Title: Dev.To
|
||||||
|
Icon:
|
||||||
|
Class: fab fa-dev fa-fw
|
||||||
|
|
||||||
|
# 059: Gitea
|
||||||
|
gitea:
|
||||||
|
Weight: 59
|
||||||
|
Title: Gitea
|
||||||
|
Icon:
|
||||||
|
Simpleicons: gitea
|
||||||
|
|
||||||
|
# 060: XMPP
|
||||||
|
xmpp:
|
||||||
|
Weight: 60
|
||||||
|
Template: xmpp:%v
|
||||||
|
Title: XMPP
|
||||||
|
Icon:
|
||||||
|
Simpleicons: xmpp
|
||||||
|
|
||||||
|
# 061: Matrix
|
||||||
|
matrix:
|
||||||
|
Weight: 61
|
||||||
|
Prefix: https://matrix.to/#/
|
||||||
|
Title: Matrix
|
||||||
|
Icon:
|
||||||
|
Simpleicons: matrix
|
||||||
|
|
||||||
|
# 062: bilibili
|
||||||
|
bilibili:
|
||||||
|
Weight: 62
|
||||||
|
Prefix: https://space.bilibili.com/
|
||||||
|
Title: bilibili
|
||||||
|
Icon:
|
||||||
|
Src: svg/icons/bilibili.svg
|
||||||
|
|
||||||
|
# 063: Email
|
||||||
|
email:
|
||||||
|
Weight: 63
|
||||||
|
Template: mailto:%v
|
||||||
|
Title: Email
|
||||||
|
Icon:
|
||||||
|
Class: far fa-envelope fa-fw
|
||||||
|
|
||||||
|
# 064: RSS
|
||||||
|
rss:
|
||||||
|
Weight: 64
|
||||||
|
Url: /index.xml
|
||||||
|
Title: RSS
|
||||||
|
Newtab: true
|
||||||
|
Icon:
|
||||||
|
Class: fas fa-rss fa-fw
|
||||||
Vendored
+3
@@ -0,0 +1,3 @@
|
|||||||
|
"use strict";function _objectDestructuringEmpty(a){if(null==a)throw new TypeError("Cannot destructure undefined")}function _createForOfIteratorHelper(a){if("undefined"==typeof Symbol||null==a[Symbol.iterator]){if(Array.isArray(a)||(a=_unsupportedIterableToArray(a))){var b=0,c=function(){};return{s:c,n:function n(){return b>=a.length?{done:!0}:{done:!1,value:a[b++]}},e:function e(a){throw a},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d,e,f=!0,g=!1;return{s:function s(){d=a[Symbol.iterator]()},n:function n(){var a=d.next();return f=a.done,a},e:function e(a){g=!0,e=a},f:function f(){try{f||null==d.return||d.return()}finally{if(g)throw e}}}}function _toConsumableArray(a){return _arrayWithoutHoles(a)||_iterableToArray(a)||_unsupportedIterableToArray(a)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(a,b){if(a){if("string"==typeof a)return _arrayLikeToArray(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(c):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?_arrayLikeToArray(a,b):void 0}}function _iterableToArray(a){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(a))return Array.from(a)}function _arrayWithoutHoles(a){if(Array.isArray(a))return _arrayLikeToArray(a)}function _arrayLikeToArray(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}var Util=/*#__PURE__*/function(){function a(){_classCallCheck(this,a)}return _createClass(a,[{key:"forEach",value:function forEach(a,b){a=a||[];for(var c=0;c<a.length;c++)b(a[c])}},{key:"getScrollTop",value:function getScrollTop(){return document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop}},{key:"isMobile",value:function isMobile(){return window.matchMedia("only screen and (max-width: 680px)").matches}},{key:"isTocStatic",value:function isTocStatic(){return window.matchMedia("only screen and (max-width: 960px)").matches}},{key:"animateCSS",value:function animateCSS(a,b,c,d){var e;Array.isArray(b)||(b=[b]),(e=a.classList).add.apply(e,["animated"].concat(_toConsumableArray(b)));var f=function(){var c;(c=a.classList).remove.apply(c,["animated"].concat(_toConsumableArray(b))),a.removeEventListener("animationend",f),"function"==typeof d&&d()};c||a.addEventListener("animationend",f,!1)}}]),a}(),Theme=/*#__PURE__*/function(){function a(){_classCallCheck(this,a),this.config=window.config,this.data=this.config.data,this.isDark="dark"===document.body.getAttribute("theme"),this.util=new Util,this.newScrollTop=this.util.getScrollTop(),this.oldScrollTop=this.newScrollTop,this.scrollEventSet=new Set,this.resizeEventSet=new Set,this.switchThemeEventSet=new Set,this.clickMaskEventSet=new Set,window.objectFitImages&&objectFitImages()}return _createClass(a,[{key:"initSVGIcon",value:function initSVGIcon(){this.util.forEach(document.querySelectorAll("[data-svg-src]"),function(a){fetch(a.getAttribute("data-svg-src")).then(function(a){return a.text()}).then(function(b){var c=document.createElement("div");c.insertAdjacentHTML("afterbegin",b);var d=c.firstChild;d.setAttribute("data-svg-src",a.getAttribute("data-svg-src")),d.classList.add("icon");var e=d.getElementsByTagName("title");e.length&&d.removeChild(e[0]),a.parentElement.replaceChild(d,a)}).catch(function(a){console.error(a)})})}},{key:"initTwemoji",value:function initTwemoji(){this.config.twemoji&&twemoji.parse(document.body)}},{key:"initMenuMobile",value:function initMenuMobile(){var a=document.getElementById("menu-toggle-mobile"),b=document.getElementById("menu-mobile");a.addEventListener("click",function(){document.body.classList.toggle("blur"),a.classList.toggle("active"),b.classList.toggle("active")},!1),this._menuMobileOnClickMask=this._menuMobileOnClickMask||function(){a.classList.remove("active"),b.classList.remove("active")},this.clickMaskEventSet.add(this._menuMobileOnClickMask)}},{key:"initSwitchTheme",value:function initSwitchTheme(){var a=this;this.util.forEach(document.getElementsByClassName("theme-switch"),function(b){b.addEventListener("click",function(){"dark"===document.body.getAttribute("theme")?document.body.setAttribute("theme","light"):document.body.setAttribute("theme","dark"),a.isDark=!a.isDark,window.localStorage&&localStorage.seLine truncated
|
||||||
|
|
||||||
|
//# sourceMappingURL=theme.min.js.map
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"sources":["../../src/js/theme.js"],"names":[],"mappings":"ilEAAM,CAAA,I,2HACM,C,CAAU,C,CAAS,CACvB,CAAQ,CAAG,CAAQ,EAAI,EADA,CAEvB,IAAK,GAAI,CAAA,CAAC,CAAG,CAAb,CAAgB,CAAC,CAAG,CAAQ,CAAC,MAA7B,CAAqC,CAAC,EAAtC,CAA0C,CAAO,CAAC,CAAQ,CAAC,CAAD,CAAT,CACpD,C,mDAEc,CACX,MAAQ,CAAA,QAAQ,CAAC,eAAT,EAA4B,QAAQ,CAAC,eAAT,CAAyB,SAAtD,EAAoE,QAAQ,CAAC,IAAT,CAAc,SAC5F,C,2CAEU,CACP,MAAO,CAAA,MAAM,CAAC,UAAP,CAAkB,oCAAlB,EAAwD,OAClE,C,iDAEa,CACV,MAAO,CAAA,MAAM,CAAC,UAAP,CAAkB,oCAAlB,EAAwD,OAClE,C,8CAEU,C,CAAS,C,CAAW,C,CAAU,C,CAAU,OAC1C,KAAK,CAAC,OAAN,CAAc,CAAd,CAD0C,GAChB,CAAS,CAAG,CAAC,CAAD,CADI,EAE/C,GAAA,CAAO,CAAC,SAAR,EAAkB,GAAlB,UAAsB,UAAtB,4BAAqC,CAArC,GAF+C,CAG/C,GAAM,CAAA,CAAO,CAAG,UAAM,OAClB,GAAA,CAAO,CAAC,SAAR,EAAkB,MAAlB,UAAyB,UAAzB,4BAAwC,CAAxC,GADkB,CAElB,CAAO,CAAC,mBAAR,CAA4B,cAA5B,CAA4C,CAA5C,CAFkB,CAGM,UAApB,QAAO,CAAA,CAHO,EAGkB,CAAQ,EAC/C,CAJD,CAKK,CAR0C,EAQhC,CAAO,CAAC,gBAAR,CAAyB,cAAzB,CAAyC,CAAzC,IAClB,C,SAGC,K,yBACF,YAAc,yBACV,KAAK,MAAL,CAAc,MAAM,CAAC,MADX,CAEV,KAAK,IAAL,CAAY,KAAK,MAAL,CAAY,IAFd,CAGV,KAAK,MAAL,CAAsD,MAAxC,GAAA,QAAQ,CAAC,IAAT,CAAc,YAAd,CAA2B,OAA3B,CAHJ,CAIV,KAAK,IAAL,CAAY,GAAI,CAAA,IAJN,CAKV,KAAK,YAAL,CAAoB,KAAK,IAAL,CAAU,YAAV,EALV,CAMV,KAAK,YAAL,CAAoB,KAAK,YANf,CAOV,KAAK,cAAL,CAAsB,GAAI,CAAA,GAPhB,CAQV,KAAK,cAAL,CAAsB,GAAI,CAAA,GARhB,CASV,KAAK,mBAAL,CAA2B,GAAI,CAAA,GATrB,CAUV,KAAK,iBAAL,CAAyB,GAAI,CAAA,GAVnB,CAWN,MAAM,CAAC,eAXD,EAWkB,eAAe,EAC9C,C,sEAEa,CACV,KAAK,IAAL,CAAU,OAAV,CAAkB,QAAQ,CAAC,gBAAT,CAA0B,gBAA1B,CAAlB,CAA+D,SAAA,CAAK,CAAI,CACpE,KAAK,CAAC,CAAK,CAAC,YAAN,CAAmB,cAAnB,CAAD,CAAL,CACK,IADL,CACU,SAAA,CAAQ,QAAI,CAAA,CAAQ,CAAC,IAAT,EAAJ,CADlB,EAEK,IAFL,CAEU,SAAA,CAAG,CAAI,CACT,GAAM,CAAA,CAAK,CAAG,QAAQ,CAAC,aAAT,CAAuB,KAAvB,CAAd,CACA,CAAK,CAAC,kBAAN,CAAyB,YAAzB,CAAuC,CAAvC,CAFS,CAGT,GAAM,CAAA,CAAI,CAAG,CAAK,CAAC,UAAnB,CACA,CAAI,CAAC,YAAL,CAAkB,cAAlB,CAAkC,CAAK,CAAC,YAAN,CAAmB,cAAnB,CAAlC,CAJS,CAKT,CAAI,CAAC,SAAL,CAAe,GAAf,CAAmB,MAAnB,CALS,CAMT,GAAM,CAAA,CAAc,CAAG,CAAI,CAAC,oBAAL,CAA0B,OAA1B,CAAvB,CACI,CAAc,CAAC,MAPV,EAOkB,CAAI,CAAC,WAAL,CAAiB,CAAc,CAAC,CAAD,CAA/B,CAPlB,CAQT,CAAK,CAAC,aAAN,CAAoB,YAApB,CAAiC,CAAjC,CAAuC,CAAvC,CACH,CAXL,EAYK,KAZL,CAYW,SAAA,CAAG,CAAI,CAAE,OAAO,CAAC,KAAR,CAAc,CAAd,CAAqB,CAZzC,CAaH,CAdD,CAeH,C,iDAEa,CACN,KAAK,MAAL,CAAY,OADN,EACe,OAAO,CAAC,KAAR,CAAc,QAAQ,CAAC,IAAvB,CAC5B,C,uDAEgB,IACP,CAAA,CAAiB,CAAG,QAAQ,CAAC,cAAT,CAAwB,oBAAxB,CADb,CAEP,CAAW,CAAG,QAAQ,CAAC,cAAT,CAAwB,aAAxB,CAFP,CAGb,CAAiB,CAAC,gBAAlB,CAAmC,OAAnC,CAA4C,UAAM,CAC9C,QAAQ,CAAC,IAAT,CAAc,SAAd,CAAwB,MAAxB,CAA+B,MAA/B,CAD8C,CAE9C,CAAiB,CAAC,SAAlB,CAA4B,MAA5B,CAAmC,QAAnC,CAF8C,CAG9C,CAAW,CAAC,SAAZ,CAAsB,MAAtB,CAA6B,QAA7B,CACH,CAJD,IAHa,CAQb,KAAK,sBAAL,CAA8B,KAAK,sBAAL,EAAgC,UAAM,CAChE,CAAiB,CAAC,SAAlB,CAA4B,MAA5B,CAAmC,QAAnC,CADgE,CAEhE,CAAW,CAAC,SAAZ,CAAsB,MAAtB,CAA6B,QAA7B,CACH,CAXY,CAYb,KAAK,iBAAL,CAAuB,GAAvB,CAA2B,KAAK,sBAAhC,CACH,C,yDAEiB,YACd,KAAK,IAAL,CAAU,OAAV,CAAkB,QAAQ,CAAC,sBAAT,CAAgC,cAAhC,CAAlB,CAAmE,SAAA,CAAY,CAAI,CAC/E,CAAY,CAAC,gBAAb,CAA8B,OAA9B,CAAuC,UAAM,CACG,MAAxC,GAAA,QAAQ,CAAC,IAAT,CAAc,YAAd,CAA2B,OAA3B,CADqC,CACW,QAAQ,CAAC,IAAT,CAAc,YAAd,CAA2B,OAA3B,CAAoC,OAApC,CADX,CAEpC,QAAQ,CAAC,IAAT,CAAc,YAAd,CAA2B,OAA3B,CAAoC,MAApC,CAFoC,CAGzC,CAAI,CAAC,MAAL,CAAc,CAAC,CAAI,CAAC,MAHqB,CAIzC,MAAM,CAAC,YAAP,EAAuB,YAAY,CAAC,OAAb,CAAqB,OAArB,CAA8B,CAAI,CAAC,MAAL,CAAc,MAAd,CAAuB,OAArD,CAJkB,oCAKvB,CAAI,CAAC,mBALkB,MAKzC,+BAAS,CAAA,CAAT,SAA4C,CAAK,EAAjD,CALyC,+BAM5C,CAND,IAOH,CARD,CASH,C,+CAEY,YACH,CAAY,CAAG,KAAK,MAAL,CAAY,MADxB,CAEH,CAAQ,CAAG,KAAK,IAAL,CAAU,QAAV,EAFR,CAGT,KAAI,CAAC,CAAD,EAAiB,CAAQ,EAAI,KAAK,iBAAlC,EAAuD,CAAC,CAAD,EAAa,KAAK,kBAA7E,MAEM,CAAA,CAAe,CAAG,CAAY,CAAC,eAAb,CAA+B,CAAY,CAAC,eAA5C,CAA8D,EAFtF,CAGM,CAAa,CAAG,CAAY,CAAC,aAAb,CAA6B,CAAY,CAAC,aAA1C,CAA0D,EAHhF,CAIM,CAAY,CAAG,CAAY,CAAC,YAAb,CAA4B,CAAY,CAAC,YAAzC,CAAwD,IAJ7E,CAMM,CAAM,CAAG,CAAQ,CAAG,QAAH,CAAc,SANrC,CAOM,CAAO,CAAG,QAAQ,CAAC,cAAT,kBAAkC,CAAlC,EAPhB,CAQM,CAAY,CAAG,QAAQ,CAAC,cAAT,wBAAwC,CAAxC,EARrB,CASM,CAAa,CAAG,QAAQ,CAAC,cAAT,yBAAyC,CAAzC,EATtB,CAUM,CAAc,CAAG,QAAQ,CAAC,cAAT,0BAA0C,CAA1C,EAVvB,CAWM,CAAY,CAAG,QAAQ,CAAC,cAAT,wBAAwC,CAAxC,EAXrB,CAYI,CAZJ,EAaI,KAAK,iBAAL,GAbJ,CAcI,CAAY,CAAC,gBAAb,CAA8B,OAA9B,CAAuC,UAAM,CACzC,QAAQ,CAAC,IAAT,CAAc,SAAd,CAAwB,GAAxB,CAA4B,MAA5B,CADyC,CAEzC,CAAO,CAAC,SAAR,CAAkB,GAAlB,CAAsB,MAAtB,CACH,CAHD,IAdJ,CAkBI,QAAQ,CAAC,cAAT,CAAwB,sBAAxB,EAAgD,gBAAhD,CAAiE,OAAjE,CAA0E,UAAM,CAC5E,CAAO,CAAC,SAAR,CAAkB,MAAlB,CAAyB,MAAzB,CAD4E,CAE5E,QAAQ,CAAC,IAAT,CAAc,SAAd,CAAwB,MAAxB,CAA+B,MAA/B,CAF4E,CAG5E,QAAQ,CAAC,cAAT,CAAwB,oBAAxB,EAA8C,SAA9C,CAAwD,MAAxD,CAA+D,QAA/D,CAH4E,CAI5E,QAAQ,CAAC,cAAT,CAAwB,aAAxB,EAAuC,SAAvC,CAAiD,MAAjD,CAAwD,QAAxD,CAJ4E,CAK5E,CAAc,CAAC,KAAf,CAAqB,OAArB,CAA+B,MAL6C,CAM5E,CAAY,CAAC,KAAb,CAAmB,OAAnB,CAA6B,MAN+C,CAO5E,CAAI,CAAC,aAAL,EAAsB,CAAI,CAAC,aAAL,CAAmB,YAAnB,CAAgC,MAAhC,CAAuC,EAAvC,CACzB,CARD,IAlBJ,CA2BI,CAAY,CAAC,gBAAb,CAA8B,OAA9B,CAAuC,UAAM,CACzC,CAAY,CAAC,KAAb,CAAmB,OAAnB,CAA6B,MADY,CAEzC,CAAI,CAAC,aAAL,EAAsB,CAAI,CAAC,aAAL,CAAmB,YAAnB,CAAgC,MAAhC,CAAuC,EAAvC,CACzB,CAHD,IA3BJ,CA+BI,KAAK,wBAAL,CAAgC,KAAK,wBAAL,EAAkC,UAAM,CACpE,CAAO,CAAC,SAAR,CAAkB,MAAlB,CAALine truncated
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
normalize.css@8.0.1 https://github.com/necolas/normalize.css
|
||||||
|
fontawesome-free@5.13.0 https://fontawesome.com/
|
||||||
|
simple-icons@2.14.0 https://github.com/simple-icons/simple-icons
|
||||||
|
animate.css@3.7.2 https://github.com/daneden/animate.css
|
||||||
|
smooth-scroll@16.1.3 https://github.com/cferdinandi/smooth-scroll
|
||||||
|
autocomplete.js@0.37.1 https://github.com/algolia/autocomplete.js
|
||||||
|
lunr.js@2.3.8 https://lunrjs.com/
|
||||||
|
algoliasearch@4.2.0 https://github.com/algolia/algoliasearch-client-javascript
|
||||||
|
lazysizes@5.2.2 https://github.com/aFarkas/lazysizes
|
||||||
|
object-fit-images@3.2.4 https://github.com/fregante/object-fit-images
|
||||||
|
twemoji@13.0.0 https://github.com/twitter/twemoji
|
||||||
|
lightgallery.js@1.2.0 https://github.com/sachinchoolur/lightgallery.js
|
||||||
|
lg-thumbnail.js@1.2.0 https://github.com/sachinchoolur/lg-thumbnail.js
|
||||||
|
lg-zoom.js@1.2.0 https://github.com/sachinchoolur/lg-zoom.js
|
||||||
|
clipboard.js@2.0.6 https://github.com/zenorocha/clipboard.js
|
||||||
|
sharer.js@0.4.0 https://github.com/ellisonleao/sharer.js
|
||||||
|
typeit@7.0.4 https://github.com/alexmacarthur/typeit
|
||||||
|
katex@0.11.1 https://katex.org/
|
||||||
|
mermaid@8.5.1 https://github.com/knsv/mermaid
|
||||||
|
echarts@4.8.0 https://echarts.apache.org/
|
||||||
|
mapbox-gl@1.10.1 https://github.com/mapbox/mapbox-gl-js
|
||||||
|
aplayer@1.10.1 https://github.com/MoePlayer/APlayer
|
||||||
|
meting@2.0.1 https://github.com/metowolf/MetingJS
|
||||||
|
gitalk@1.6.2 https://github.com/gitalk/gitalk
|
||||||
|
valine@1.4.14 https://valine.js.org/
|
||||||
|
cookieconsent@3.1.1 https://github.com/osano/cookieconsent
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
/**
|
||||||
|
* Skipped minification because the original files appears to be already minified.
|
||||||
|
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
||||||
|
*/
|
||||||
|
/*! algoliasearch-lite.umd.js | 4.2.0 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
|
||||||
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).algoliasearch=t()}(this,(function(){"use strict";function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var u,i=e[Symbol.iterator]();!(n=(u=i.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw a}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function u(e){var t,r="algoliasearch-client-js-".concat(e.key),n=function(){return void 0===t&&(t=e.localStorage||window.localStorage),t},a=function(){return JSON.parse(n().getItem(r)||"{}")};return{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var r=JSON.stringify(e),n=a()[r];return Promise.all([n||t(),void 0!==n])})).then((function(e){var t=o(e,2),n=t[0],a=t[1];return Promise.all([n,a||r.miss(n)])})).then((function(e){return o(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var o=a();return o[JSON.stringify(e)]=t,n().setItem(r,JSON.stringify(o)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=a();delete t[JSON.stringify(e)],n().setItem(r,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){n().removeItem(r)}))}}}function i(e){var t=a(e.caches),r=t.shift();return void 0===r?{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},n=t();return n.then((function(e){return Promise.all([e,r.miss(e)])})).then((function(e){return o(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return r.get(e,n,o).catch((function(){return i({caches:t}).get(e,n,o)}))},set:function(e,n){return r.set(e,n).catch((function(){return i({caches:t}).set(e,n)}))},delete:function(e){return r.delete(e).catch((function(){return i({caches:t}).delete(e)}))},clear:function(){return r.clear().catch((function(){return i({caches:t}).clear()}))}}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(r,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(r);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);var u=n(),i=o&&o.miss||function(){return Promise.resolve()};return u.then((function(e){return i(e)})).then((function(){return u}))},set:function(r,n){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function c(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}function l(e,t){return Object.keys(void 0!==t?t:{}).forEach((function(r){e[r]=t[r](e)})),e}function f(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0;return e.replace(/%s/g,(function(){return encodeURIComponent(r[o++])}))}var h={WithinQueryParametLine truncated
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
@charset "UTF-8";
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* animate.css -https://daneden.github.io/animate.css/
|
||||||
|
* Version - 3.7.2
|
||||||
|
* Licensed under the MIT license - http://opensource.org/licenses/MIT
|
||||||
|
*
|
||||||
|
* Copyright (c) 2019 Daniel Eden
|
||||||
|
*/
|
||||||
|
|
||||||
|
@-webkit-keyframes bounce{0%,20%,53%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}@keyframes bounce{0%,20%,53%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.pulse{-webkit-animation-name:pulse;animation-name:pulse}@-webkit-keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shake{-webkit-animation-name:shake;animation-name:shake}@-webkit-keyframes headShake{0%{-webkit-transform:translateX(0);transform:translateX(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translateX(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translateX(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translateX(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translateX(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes headShake{0%{-webkit-transform:translateX(0);transform:translateX(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translateX(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translateX(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translateX(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translateX(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translateX(0)}}.headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;anLine truncated
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
.aplayer{background:#fff;font-family:Arial,Helvetica,sans-serif;margin:5px;box-shadow:0 2px 2px 0 rgba(0,0,0,.07),0 1px 5px 0 rgba(0,0,0,.1);border-radius:2px;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;line-height:normal;position:relative}.aplayer *{box-sizing:content-box}.aplayer svg{width:100%;height:100%}.aplayer svg circle,.aplayer svg path{fill:#fff}.aplayer.aplayer-withlist .aplayer-info{border-bottom:1px solid #e9e9e9}.aplayer.aplayer-withlist .aplayer-list{display:block}.aplayer.aplayer-withlist .aplayer-icon-order,.aplayer.aplayer-withlist .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-menu{display:inline}.aplayer.aplayer-withlrc .aplayer-pic{height:90px;width:90px}.aplayer.aplayer-withlrc .aplayer-info{margin-left:90px;height:90px;padding:10px 7px 0}.aplayer.aplayer-withlrc .aplayer-lrc{display:block}.aplayer.aplayer-narrow{width:66px}.aplayer.aplayer-narrow .aplayer-info,.aplayer.aplayer-narrow .aplayer-list{display:none}.aplayer.aplayer-narrow .aplayer-body,.aplayer.aplayer-narrow .aplayer-pic{height:66px;width:66px}.aplayer.aplayer-fixed{position:fixed;bottom:0;left:0;right:0;margin:0;z-index:99;overflow:visible;max-width:400px;box-shadow:none}.aplayer.aplayer-fixed .aplayer-list{margin-bottom:65px;border:1px solid #eee;border-bottom:none}.aplayer.aplayer-fixed .aplayer-body{position:fixed;bottom:0;left:0;right:0;margin:0;z-index:99;background:#fff;padding-right:18px;transition:all .3s ease;max-width:400px}.aplayer.aplayer-fixed .aplayer-lrc{display:block;position:fixed;bottom:10px;left:0;right:0;margin:0;z-index:98;pointer-events:none;text-shadow:-1px -1px 0 #fff}.aplayer.aplayer-fixed .aplayer-lrc:after,.aplayer.aplayer-fixed .aplayer-lrc:before{display:none}.aplayer.aplayer-fixed .aplayer-info{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:0 0;transform-origin:0 0;transition:all .3s ease;border-bottom:none;border-top:1px solid #e9e9e9}.aplayer.aplayer-fixed .aplayer-info .aplayer-music{width:calc(100% - 105px)}.aplayer.aplayer-fixed .aplayer-miniswitcher{display:block}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-info{display:block;-webkit-transform:scaleX(0);transform:scaleX(0)}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body{width:66px!important}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-miniswitcher .aplayer-icon{-webkit-transform:rotateY(0);transform:rotateY(0)}.aplayer.aplayer-fixed .aplayer-icon-back,.aplayer.aplayer-fixed .aplayer-icon-forward,.aplayer.aplayer-fixed .aplayer-icon-lrc,.aplayer.aplayer-fixed .aplayer-icon-play{display:inline-block}.aplayer.aplayer-fixed .aplayer-icon-back,.aplayer.aplayer-fixed .aplayer-icon-forward,.aplayer.aplayer-fixed .aplayer-icon-menu,.aplayer.aplayer-fixed .aplayer-icon-play{position:absolute;bottom:27px;width:20px;height:20px}.aplayer.aplayer-fixed .aplayer-icon-back{right:75px}.aplayer.aplayer-fixed .aplayer-icon-play{right:50px}.aplayer.aplayer-fixed .aplayer-icon-forward{right:25px}.aplayer.aplayer-fixed .aplayer-icon-menu{right:0}.aplayer.aplayer-arrow .aplayer-icon-loop,.aplayer.aplayer-arrow .aplayer-icon-order,.aplayer.aplayer-mobile .aplayer-icon-volume-down{display:none}.aplayer.aplayer-loading .aplayer-info .aplayer-controller .aplayer-loading-icon{display:block}.aplayer.aplayer-loading .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb{-webkit-transform:scale(1);transform:scale(1)}.aplayer .aplayer-body{position:relative}.aplayer .aplayer-icon{width:15px;height:15px;border:none;background-color:transparent;outline:none;cursor:pointer;opacity:.8;vertical-align:middle;padding:0;font-size:12px;margin:0;display:inline-block}.aplayer .aplayer-icon path{transition:all .2s ease-in-out}.aplayer .aplayer-icon-back,.aplayer .aplayer-icon-forward,.aplayer .aplayer-icon-lrc,.aplayer .aplayer-icon-order,.aplayer .aplayer-icon-play{display:none}.aplayer .aplayer-icon-lrc-inactivity svg{opacity:.4}.aplayer .aplayer-icon-forward{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.aplayer .aplayer-lrc-content{display:none}.aplayer .aplayer-pic{position:relative;float:left;height:66px;width:66px;background-size:cover;background-position:50%;transition:all .3s ease;cursor:pointer}.aplayer .aplayer-pic:hover .aplayer-button{opacity:1}.aplayer .aplayer-pic .aplayer-button{position:absolute;border-radius:50%;opacity:.8;text-shadow:0 1px 1px rgba(0,0,0,.2);box-shadow:0 1px 1px rgba(0,0,0,.2);background:rgba(0,0,0,.2);transition:all .1s ease}.aplayer .aplayer-pic .aplayer-button path{fill:#fff}.aplayer .aplayer-pic .aplayer-hide{display:none}.aplayer .aplayer-pic .aplayer-play{width:26px;height:26px;border:2px solid #fff;bottom:50%;right:50%;margin:0 -15px -15px 0}.aplayer .aplayer-pic .aplayer-play svg{position:absolute;top:3px;left:4px;height:20px;width:20px}.aplayer .aplayer-pic .aplayer-pause{width:16px;height:16px;border:2px solid #fff;bottom:4px;right:4px}.aplayer .aplayer-pic .aplaLine truncated
|
||||||
|
|
||||||
|
/*# sourceMappingURL=APlayer.min.css.map*/
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("APlayer",[],t):"object"==typeof exports?exports.APlayer=t():e.APlayer=t()}(window,function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=41)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=/mobile/i.test(window.navigator.userAgent),a={secondToTime:function(e){var t=Math.floor(e/3600),n=Math.floor((e-3600*t)/60),i=Math.floor(e-3600*t-60*n);return(t>0?[t,n,i]:[n,i]).map(function(e){return e<10?"0"+e:""+e}).join(":")},getElementViewLeft:function(e){var t=e.offsetLeft,n=e.offsetParent,i=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;null!==n&&n!==e;)t+=n.offsetLeft,n=n.offsetParent;else for(;null!==n;)t+=n.offsetLeft,n=n.offsetParent;return t-i},getElementViewTop:function(e,t){for(var n,i=e.offsetTop,a=e.offsetParent;null!==a;)i+=a.offsetTop,a=a.offsetParent;return n=document.body.scrollTop+document.documentElement.scrollTop,t?i:i-n},isMobile:i,storage:{set:function(e,t){localStorage.setItem(e,t)},get:function(e){return localStorage.getItem(e)}},nameMap:{dragStart:i?"touchstart":"mousedown",dragMove:i?"touchmove":"mousemove",dragEnd:i?"touchend":"mouseup"},randomOrder:function(e){return function(e){for(var t=e.length-1;t>=0;t--){var n=Math.floor(Math.random()*(t+1)),i=e[n];e[n]=e[t],e[t]=i}return e}([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Array(e))).map(function(e,t){return t}))}};t.default=a},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";e=e||{};var t="",n=i.$each,a=e.audio,r=(e.$value,e.$index,i.$escape),o=e.theme,s=e.index;return n(a,function(e,n){t+='\n<li>\n <span class="aplayer-list-cur" style="background-color: ',t+=r(e.theme||o),t+=';"></span>\n <span class="aplayer-list-index">',t+=r(n+s),t+='</span>\n <span class="aplayer-list-title">',t+=r(e.name),t+='</span>\n <span class="aplayer-list-author">',t+=r(e.artist),t+="</span>\n</li>\n"}),t}},function(e,t,n){"use strict";e.exports=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=g(n(33)),a=g(n(32)),r=g(n(31)),o=g(n(30)),s=g(n(29)),l=g(n(28)),u=g(n(27)),c=g(n(26)),p=g(n(25)),d=g(n(24)),h=g(n(23)),y=g(n(22)),f=g(n(21)),v=g(n(20)),m=g(n(19));function g(e){return e&&e.__esModule?e:{default:e}}var w={play:i.default,pause:a.default,volumeUp:r.default,volumeDown:o.default,volumeOff:s.default,orderRandom:l.default,orderList:u.default,menu:c.default,loopAll:p.default,loopOne:d.default,loopNone:h.default,loading:y.default,right:f.default,skip:v.default,lrc:m.default};t.default=w},function(e,t,n){"use strict";var i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":a(window))&&(i=window)}e.exports=i},function(e,t,n){"use strict";var i,a,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};void 0===(a="function"==typeof(i=function(){if("object"===("undefined"==typeof window?"undefined":r(window))&&void 0!==document.querySelectorAll&&void 0!==window.pageYOffset&&void 0!==history.pushState){var e=function(e,t,n,i){return n>i?t:e+(t-e)*((a=n/i)<.5?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1);var a},t=function(t,n,i,a){n=n||500;var r=(a=a||window).scrollTop||window.pageYOffset;if("number"==typeof t)var o=parseInt(t);else var o=function(e,t){return"HTML"===e.nodeName?-t:e.getBoundingClientRect().top+t}(t,r);var s=Date.now(),l=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){window.setTimeout(e,15)};!function u(){var c=Date.now()-s;a!==window?a.scrollTop=e(r,o,c,n):window.scroll(0,e(r,o,c,n)),c>n?"function"==typeof i&&i(t):l(u)}()},n=function(e){if(!e.defaultPrevented){e.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var n=document.getElementById(this.hash.substring(1));if(!n)return;t(n,500,function(e){location.replace("#"+e.id)Line truncated
|
||||||
|
//# sourceMappingURL=APlayer.min.js.map
|
||||||
@@ -0,0 +1,112 @@
|
|||||||
|
[theme=dark] .aplayer {
|
||||||
|
background: #212121;
|
||||||
|
|
||||||
|
&.aplayer-withlist {
|
||||||
|
.aplayer-info {
|
||||||
|
border-bottom-color: #5c5c5c;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.aplayer-fixed {
|
||||||
|
.aplayer-list {
|
||||||
|
border-color: #5c5c5c;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.aplayer-body {
|
||||||
|
background-color: #212121;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aplayer-info {
|
||||||
|
border-top-color: #212121;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aplayer-info {
|
||||||
|
.aplayer-music {
|
||||||
|
.aplayer-title {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aplayer-author {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.aplayer-controller {
|
||||||
|
.aplayer-time {
|
||||||
|
color: #eee;
|
||||||
|
|
||||||
|
.aplayer-icon {
|
||||||
|
path {
|
||||||
|
fill: #eee;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.aplayer-list {
|
||||||
|
background-color: #212121;
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
background-color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-thumb:hover {
|
||||||
|
background-color: #bbb;
|
||||||
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
color: #fff;
|
||||||
|
border-top-color: #666;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: #4e4e4e;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.aplayer-list-light {
|
||||||
|
background: #6c6c6c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aplayer-list-index {
|
||||||
|
color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aplayer-list-author {
|
||||||
|
color: #ddd;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.aplayer-lrc {
|
||||||
|
text-shadow: -1px -1px 0 #666;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
background: -moz-linear-gradient(top, rgba(33,33,33,1) 0%, rgba(33,33,33,0) 100%);
|
||||||
|
background: -webkit-linear-gradient(top, rgba(33,33,33,1) 0%,rgba(33,33,33,0) 100%);
|
||||||
|
background: linear-gradient(to bottom, rgba(33,33,33,1) 0%,rgba(33,33,33,0) 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#212121', endColorstr='#00212121',GradientType=0 );
|
||||||
|
}
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
background: -moz-linear-gradient(top, rgba(33,33,33,0) 0%, rgba(33,33,33,0.8) 100%);
|
||||||
|
background: -webkit-linear-gradient(top, rgba(33,33,33,0) 0%,rgba(33,33,33,0.8) 100%);
|
||||||
|
background: linear-gradient(to bottom, rgba(33,33,33,0) 0%,rgba(33,33,33,0.8) 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00212121', endColorstr='#cc212121',GradientType=0 );
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.aplayer-miniswitcher {
|
||||||
|
background: #484848;
|
||||||
|
|
||||||
|
.aplayer-icon {
|
||||||
|
path {
|
||||||
|
fill: #eee;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*!
|
||||||
|
* autocomplete.js 0.37.1
|
||||||
|
* https://github.com/algolia/autocomplete.js
|
||||||
|
* Copyright 2020 Algolia, Inc. and other contributors; Licensed MIT
|
||||||
|
*/
|
||||||
|
!function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b():"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?exports.autocomplete=b():a.autocomplete=b()}(this,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){"use strict";a.exports=c(1)},function(a,b,c){"use strict";function d(a,b,c,d){c=f.isArray(c)?c:[].slice.call(arguments,2);var j=e(a).each(function(a,f){var j=e(f),k=new i({el:j}),l=d||new h({input:j,eventBus:k,dropdownMenuContainer:b.dropdownMenuContainer,hint:void 0===b.hint||!!b.hint,minLength:b.minLength,autoselect:b.autoselect,autoselectOnBlur:b.autoselectOnBlur,tabAutocomplete:b.tabAutocomplete,openOnFocus:b.openOnFocus,templates:b.templates,debug:b.debug,clearOnSelected:b.clearOnSelected,cssClasses:b.cssClasses,datasets:c,keyboardShortcuts:b.keyboardShortcuts,appendTo:b.appendTo,autoWidth:b.autoWidth,ariaLabel:b.ariaLabel||f.getAttribute("aria-label")});j.data(g,l)});return j.autocomplete={},f.each(["open","close","getVal","setVal","destroy","getWrapper"],function(a){j.autocomplete[a]=function(){var b,c=arguments;return j.each(function(d,f){var h=e(f).data(g);b=h[a].apply(h,c)}),b}}),j}var e=c(2);c(3).element=e;var f=c(4);f.isArray=e.isArray,f.isFunction=e.isFunction,f.isObject=e.isPlainObject,f.bind=e.proxy,f.each=function(a,b){function c(a,c){return b(c,a)}e.each(a,c)},f.map=e.map,f.mixin=e.extend,f.Event=e.Event;var g="aaAutocomplete",h=c(5),i=c(6);d.sources=h.sources,d.escapeHighlightedString=f.escapeHighlightedString;var j="autocomplete"in window,k=window.autocomplete;d.noConflict=function(){return j?window.autocomplete=k:delete window.autocomplete,d},a.exports=d},function(a,b){!function(b,c){a.exports=function(a){var b=function(){function b(a){return null==a?String(a):V[W.call(a)]||"object"}function c(a){return"function"==b(a)}function d(a){return null!=a&&a==a.window}function e(a){return null!=a&&a.nodeType==a.DOCUMENT_NODE}function f(a){return"object"==b(a)}function g(a){return f(a)&&!d(a)&&Object.getPrototypeOf(a)==Object.prototype}function h(a){var b=!!a&&"length"in a&&a.length,c=z.type(a);return"function"!=c&&!d(a)&&("array"==c||0===b||"number"==typeof b&&b>0&&b-1 in a)}function i(a){return F.call(a,function(a){return null!=a})}function j(a){return a.length>0?z.fn.concat.apply([],a):a}function k(a){return a.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function l(a){return a in J?J[a]:J[a]=new RegExp("(^|\\s)"+a+"(\\s|$)")}function m(a,b){return"number"!=typeof b||K[k(a)]?b:b+"px"}function n(a){var b,c;return I[a]||(b=H.createElement(a),H.body.appendChild(b),c=getComputedStyle(b,"").getPropertyValue("display"),b.parentNode.removeChild(b),"none"==c&&(c="block"),I[a]=c),I[a]}function o(a){return"children"in a?G.call(a.children):z.map(a.childNodes,function(a){if(1==a.nodeType)return a})}function p(a,b){var c,d=a?a.length:0;for(c=0;c<d;c++)this[c]=a[c];this.length=d,this.selector=b||""}function q(a,b,c){for(y in b)c&&(g(b[y])||$(b[y]))?(g(b[y])&&!g(a[y])&&(a[y]={}),$(b[y])&&!$(a[y])&&(a[y]=[]),q(a[y],b[y],c)):b[y]!==x&&(a[y]=b[y])}function r(a,b){return null==b?z(a):z(a).filter(b)}function s(a,b,d,e){return c(b)?b.call(a,d,e):b}function t(a,b,c){null==c?a.removeAttribute(b):a.setAttribute(b,c)}function u(a,b){var c=a.className||"",d=c&&c.baseVal!==x;if(b===x)return d?c.baseVal:c;d?c.baseVal=b:a.className=b}function v(a){try{return a?"true"==a||"false"!=a&&("null"==a?null:+a+""==a?+a:/^[\[\{]/.test(a)?z.parseJSON(a):a):a}catch(b){return a}}function w(a,b){b(a);for(var c=0,d=a.childNodes.length;c<d;c++)w(a.childNodes[c],b)}var x,y,z,A,B,C,D=[],E=D.concat,F=D.filter,G=D.slice,H=a.document,I={},J={},K={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},L=/^\s*<(\w+|!)[^>]*>/,M=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,N=/^(?:body|html)$/i,O=["val","css","html","text","data","width","height","offset"],P=["after","prepend","before","append"],Q=H.createElement("table"),R=H.createElement("tr"),S={tr:H.createElement("tbody"),tbody:Q,thead:Q,tfoot:Q,td:R,th:R,"*":H.createElement("div")},T=/complete|loaded|interactive/,U=/^[\w-]*$/,V={},W=V.toString,X={},Y=H.createElement("div"),Z={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},$=Array.isArray||function(a){return a instanceof Array};return X.matches=function(a,b){if(!b||!a||1!==a.nodeType)return!1;var c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.matchesSelector;if(c)return c.call(a,b);var d,e=a.parentNode,f=!e;return f&&(e=Y).appendChild(a),d=~X.qsa(e,b).indexOf(a),f&&YLine truncated
|
||||||
|
;c=this.dropdown.getDatumForCursor(),d=this.dropdown.getDatumForTopSuggestion();var e={selectionMethod:"enterKey"};c?(this._select(c,e),b.preventDefault()):this.autoselect&&d&&(this._select(d,e),b.preventDefault())},_onTabKeyed:function(a,b){if(!this.tabAutocomplete)return void this.dropdown.close();var c,d={selectionMethod:"tabKey"};(c=this.dropdown.getDatumForCursor())?(this._select(c,d),b.preventDefault()):this._autocomplete(!0)},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var a=this.input.getQuery();this.dropdown.isEmpty&&a.length>=this.minLength?this.dropdown.update(a):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var a=this.input.getQuery();this.dropdown.isEmpty&&a.length>=this.minLength?this.dropdown.update(a):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(a,b){this.input.clearHintIfInvalid(),b.length>=this.minLength?this.dropdown.update(b):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var a=this.input.getLanguageDirection();this.dir!==a&&(this.dir=a,this.$node.css("direction",a),this.dropdown.setLanguageDirection(a))},_updateHint:function(){var a,b,c,d,e,f;a=this.dropdown.getDatumForTopSuggestion(),a&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(b=this.input.getInputValue(),c=l.normalizeQuery(b),d=i.escapeRegExChars(c),e=new RegExp("^(?:"+d+")(.+$)","i"),f=e.exec(a.value),f?this.input.setHint(b+f[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(a){var b,c,d,e;b=this.input.getHint(),c=this.input.getQuery(),d=a||this.input.isCursorAtEnd(),b&&c!==b&&d&&(e=this.dropdown.getDatumForTopSuggestion(),e&&this.input.setInputValue(e.value),this.eventBus.trigger("autocompleted",e.raw,e.datasetName))},_select:function(a,b){void 0!==a.value&&this.input.setQuery(a.value),this.clearOnSelected?this.setVal(""):this.input.setInputValue(a.value,!0),this._setLanguageDirection(),this.eventBus.trigger("selected",a.raw,a.datasetName,b).isDefaultPrevented()===!1&&(this.dropdown.close(),i.defer(i.bind(this.dropdown.empty,this.dropdown)))},open:function(){if(!this.isActivated){var a=this.input.getInputValue();a.length>=this.minLength?this.dropdown.update(a):this.dropdown.empty()}this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(a){a=i.toStr(a),this.isActivated?this.input.setInputValue(a):(this.input.setQuery(a),this.input.setInputValue(a,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy(),this.dropdown.destroy(),g(this.$node,this.cssClasses),this.$node=null},getWrapper:function(){return this.dropdown.$container[0]}}),d.Dropdown=m,d.Input=l,d.sources=c(20),a.exports=d},function(a,b,c){"use strict";function d(a){a&&a.el||e.error("EventBus initialized without el"),this.$el=f.element(a.el)}var e=c(4),f=c(3);e.mixin(d.prototype,{trigger:function(a,b,c,d){var f=e.Event("autocomplete:"+a);return this.$el.trigger(f,[b,c,d]),f}}),a.exports=d},function(a,b,c){"use strict";function d(a){var b,c,d,f,g=this;a=a||{},a.input||i.error("input is missing"),b=i.bind(this._onBlur,this),c=i.bind(this._onFocus,this),d=i.bind(this._onKeydown,this),f=i.bind(this._onInput,this),this.$hint=j.element(a.hint),this.$input=j.element(a.input).on("blur.aa",b).on("focus.aa",c).on("keydown.aa",d),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=i.noop),i.isMsie()?this.$input.on("keydown.aa keypress.aa cut.aa paste.aa",function(a){h[a.which||a.keyCode]||i.defer(i.bind(g._onInput,g,a))}):this.$input.on("input.aa",f),this.query=this.$input.val(),this.$overflowHelper=e(this.$input)}function e(a){return j.element('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:a.css("font-family"),fontSize:a.css("font-size"),fontStyle:a.css("font-style"),fontVariant:a.css("font-variant"),fontWeight:a.css("font-weight"),wordSpacing:a.css("word-spacing"),letterSpacing:a.css("letter-spacing"),textIndent:a.css("text-indent"),textRendering:a.css("text-rendering"),textTransform:a.css("text-transform")}).insertAfter(a)}function f(a,b){return d.normalizeQuery(a)===d.normalizeQuery(b)}function g(a){return a.altKey||a.ctrlKey||a.metaKey||a.shiftKey}var h;h={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"};var i=c(4),j=c(3),k=c(8);d.normalizeQuery=function(a){return(a||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},i.mixin(d.prototype,k,{_onBlur:function(){this.resetInputValue(),this.$input.removeAttr("aria-activedescendant"),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(a){var b=h[a.which||a.keyCode];this._managePreventDefault(b,aLine truncated
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*!
|
||||||
|
* clipboard.js v2.0.6
|
||||||
|
* https://clipboardjs.com/
|
||||||
|
*
|
||||||
|
* Licensed MIT © Zeno Rocha
|
||||||
|
*/
|
||||||
|
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return o={},r.m=n=[function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;i<a;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=n,t.exports.TinyEmitter=n},function(t,e,n){var d=n(3),h=n(4);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!d.string(e))throw new TypeError("Second argument must be a String");if(!d.fn(n))throw new TypeError("Third argument must be a Function");if(d.node(t))return s=e,f=n,(u=t).addEventListener(s,f),{destroy:function(){u.removeEventListener(s,f)}};if(d.nodeList(t))return a=t,c=e,l=n,Array.prototype.forEach.call(a,function(t){t.addEventListener(c,l)}),{destroy:function(){Array.prototype.forEach.call(a,function(t){t.removeEventListener(c,l)})}};if(d.string(t))return o=t,r=e,i=n,h(document.body,o,r,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,r,i,a,c,l,u,s,f}},function(t,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var a=n(5);function i(t,e,n,o,r){var i=function(e,n,t,o){return function(t){t.delegateTarget=a(t.target,n),t.delegateTarget&&o.call(e,t)}}.apply(this,arguments);return t.addEventListener(n,i,r),{destroy:function(){t.removeEventListener(n,i,r)}}}t.exports=function(t,e,n,o,r){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,o,r)}))}},function(t,e){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},function(t,e,n){"use strict";n.r(e);var o=n(0),r=n.n(o),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function c(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),this.resolveOptions(t),this.initSelection()}var l=(function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}(c,[{key:"resolveOptions",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",Line truncated
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
.cc-window{opacity:1;-webkit-transition:opacity 1s ease;transition:opacity 1s ease}.cc-window.cc-invisible{opacity:0}.cc-animate.cc-revoke{-webkit-transition:transform 1s ease;-webkit-transition:-webkit-transform 1s ease;transition:-webkit-transform 1s ease;transition:transform 1s ease;transition:transform 1s ease,-webkit-transform 1s ease}.cc-animate.cc-revoke.cc-top{-webkit-transform:translateY(-2em);transform:translateY(-2em)}.cc-animate.cc-revoke.cc-bottom{-webkit-transform:translateY(2em);transform:translateY(2em)}.cc-animate.cc-revoke.cc-active.cc-top{-webkit-transform:translateY(0);transform:translateY(0)}.cc-animate.cc-revoke.cc-active.cc-bottom{-webkit-transform:translateY(0);transform:translateY(0)}.cc-revoke:hover{-webkit-transform:translateY(0);transform:translateY(0)}.cc-grower{max-height:0;overflow:hidden;-webkit-transition:max-height 1s;transition:max-height 1s}
|
||||||
|
.cc-revoke,.cc-window{position:fixed;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:Helvetica,Calibri,Arial,sans-serif;font-size:16px;line-height:1.5em;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;z-index:9999}.cc-window.cc-static{position:static}.cc-window.cc-floating{padding:2em;max-width:24em;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.cc-window.cc-banner{padding:1em 1.8em;width:100%;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.cc-revoke{padding:.5em}.cc-revoke:hover{text-decoration:underline}.cc-header{font-size:18px;font-weight:700}.cc-btn,.cc-close,.cc-link,.cc-revoke{cursor:pointer}.cc-link{opacity:.8;display:inline-block;padding:.2em;text-decoration:underline}.cc-link:hover{opacity:1}.cc-link:active,.cc-link:visited{color:initial}.cc-btn{display:block;padding:.4em .8em;font-size:.9em;font-weight:700;border-width:2px;border-style:solid;text-align:center;white-space:nowrap}.cc-highlight .cc-btn:first-child{background-color:transparent;border-color:transparent}.cc-highlight .cc-btn:first-child:focus,.cc-highlight .cc-btn:first-child:hover{background-color:transparent;text-decoration:underline}.cc-close{display:block;position:absolute;top:.5em;right:.5em;font-size:1.6em;opacity:.9;line-height:.75}.cc-close:focus,.cc-close:hover{opacity:1}
|
||||||
|
.cc-revoke.cc-top{top:0;left:3em;border-bottom-left-radius:.5em;border-bottom-right-radius:.5em}.cc-revoke.cc-bottom{bottom:0;left:3em;border-top-left-radius:.5em;border-top-right-radius:.5em}.cc-revoke.cc-left{left:3em;right:unset}.cc-revoke.cc-right{right:3em;left:unset}.cc-top{top:1em}.cc-left{left:1em}.cc-right{right:1em}.cc-bottom{bottom:1em}.cc-floating>.cc-link{margin-bottom:1em}.cc-floating .cc-message{display:block;margin-bottom:1em}.cc-window.cc-floating .cc-compliance{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto}.cc-window.cc-banner{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cc-banner.cc-top{left:0;right:0;top:0}.cc-banner.cc-bottom{left:0;right:0;bottom:0}.cc-banner .cc-message{display:block;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;max-width:100%;margin-right:1em}.cc-compliance{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:justify;align-content:space-between}.cc-floating .cc-compliance>.cc-btn{-webkit-box-flex:1;-ms-flex:1;flex:1}.cc-btn+.cc-btn{margin-left:.5em}
|
||||||
|
@media print{.cc-revoke,.cc-window{display:none}}@media screen and (max-width:900px){.cc-btn{white-space:normal}}@media screen and (max-width:414px) and (orientation:portrait),screen and (max-width:736px) and (orientation:landscape){.cc-window.cc-top{top:0}.cc-window.cc-bottom{bottom:0}.cc-window.cc-banner,.cc-window.cc-floating,.cc-window.cc-left,.cc-window.cc-right{left:0;right:0}.cc-window.cc-banner{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.cc-window.cc-banner .cc-compliance{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.cc-window.cc-floating{max-width:none}.cc-window .cc-message{margin-bottom:1em}.cc-window.cc-banner{-webkit-box-align:unset;-ms-flex-align:unset;align-items:unset}.cc-window.cc-banner .cc-message{margin-right:0}}
|
||||||
|
.cc-floating.cc-theme-classic{padding:1.2em;border-radius:5px}.cc-floating.cc-type-info.cc-theme-classic .cc-compliance{text-align:center;display:inline;-webkit-box-flex:0;-ms-flex:none;flex:none}.cc-theme-classic .cc-btn{border-radius:5px}.cc-theme-classic .cc-btn:last-child{min-width:140px}.cc-floating.cc-type-info.cc-theme-classic .cc-btn{display:inline-block}
|
||||||
|
.cc-theme-edgeless.cc-window{padding:0}.cc-floating.cc-theme-edgeless .cc-message{margin:2em;margin-bottom:1.5em}.cc-banner.cc-theme-edgeless .cc-btn{margin:0;padding:.8em 1.8em;height:100%}.cc-banner.cc-theme-edgeless .cc-message{margin-left:1em}.cc-floating.cc-theme-edgeless .cc-btn+.cc-btn{margin-left:0}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
!function(e){if(!e.hasInitialised){var t={escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(e,t){var i=" ";return 1===e.nodeType&&(i+e.className+i).replace(/[\n\t]/g,i).indexOf(i+t+i)>=0},addClass:function(e,t){e.className+=" "+t},removeClass:function(e,t){var i=new RegExp("\\b"+this.escapeRegExp(t)+"\\b");e.className=e.className.replace(i,"")},interpolateString:function(e,t){return e.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,function(e){return t(arguments[1])||""})},getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"=");return t.length<2?void 0:t.pop().split(";").shift()},setCookie:function(e,t,i,n,o,s){var r=new Date;r.setHours(r.getHours()+24*(i||365));var a=[e+"="+t,"expires="+r.toUTCString(),"path="+(o||"/")];n&&a.push("domain="+n),s&&a.push("secure"),document.cookie=a.join(";")},deepExtend:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(i in e&&this.isPlainObject(e[i])&&this.isPlainObject(t[i])?this.deepExtend(e[i],t[i]):e[i]=t[i]);return e},throttle:function(e,t){var i=!1;return function(){i||(e.apply(this,arguments),i=!0,setTimeout(function(){i=!1},t))}},hash:function(e){var t,i,n=0;if(0===e.length)return n;for(t=0,i=e.length;t<i;++t)n=(n<<5)-n+e.charCodeAt(t),n|=0;return n},normaliseHex:function(e){return"#"==e[0]&&(e=e.substr(1)),3==e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e},getContrast:function(e){return e=this.normaliseHex(e),(299*parseInt(e.substr(0,2),16)+587*parseInt(e.substr(2,2),16)+114*parseInt(e.substr(4,2),16))/1e3>=128?"#000":"#fff"},getLuminance:function(e){var t=parseInt(this.normaliseHex(e),16),i=38+(t>>16),n=38+(t>>8&255),o=38+(255&t);return"#"+(16777216+65536*(i<255?i<1?0:i:255)+256*(n<255?n<1?0:n:255)+(o<255?o<1?0:o:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(e){return"object"==typeof e&&null!==e&&e.constructor==Object},traverseDOMPath:function(e,i){return e&&e.parentNode?t.hasClass(e,i)?e:this.traverseDOMPath(e.parentNode,i):null}};e.status={deny:"deny",allow:"allow",dismiss:"dismiss"},e.transitionEnd=function(){var e=document.createElement("div"),t={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var i in t)if(t.hasOwnProperty(i)&&void 0!==e.style[i+"ransition"])return t[i];return""}(),e.hasTransition=!!e.transitionEnd;var i=Object.keys(e.status).map(t.escapeRegExp);e.customStyles={},e.Popup=function(){var n={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:!1},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(e){},onStatusChange:function(e,t){},onRevokeChoice:function(){},onNoCookieLaw:function(e,t){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"https://www.cookiesandyou.com",close:"❌",target:"_blank",policy:"Cookie Policy"},elements:{header:'<span class="cc-header">{{header}}</span> ',message:'<span id="cookieconsent:desc" class="cc-message">{{message}}</span>',messagelink:'<span id="cookieconsent:desc" class="cc-message">{{message}} <a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a></span>',dismiss:'<a aria-label="dismiss cookie message" role=button tabindex="0" class="cc-btn cc-dismiss">{{dismiss}}</a>',allow:'<a aria-label="allow cookies" role=button tabindex="0" class="cc-btn cc-allow">{{allow}}</a>',deny:'<a aria-label="deny cookies" role=button tabindex="0" class="cc-btn cc-deny">{{deny}}</a>',link:'<a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a>',close:'<span aria-label="dismiss cookie message" role=button tabindex="0" class="cc-close">{{close}}</span>'},window:'<div role="dialog" aria-live="polite" aria-label="cookieconsent" aria-describedby="cookieconsent:desc" class="cc-window {{classes}}">\x3c!--googleoff: all--\x3e{{children}}\x3c!--googleon: all--\x3e</div>',revokeBtn:'<div class="cc-revoke {{classes}}">{{policy}}</div>',compliance:{info:'<div class="cc-compliance">{{dismiss}}</div>',"opt-in":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>',"opt-out":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",static:!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,dismissOnWindowClick:!1,ignoreClicksFrom:["cc-revoke","cc-btn"Line truncated
|
||||||
+22
@@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
/*
|
||||||
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
* or more contributor license agreements. See the NOTICE file
|
||||||
|
* distributed with this work for additional information
|
||||||
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
|
* to you under the Apache License, Version 2.0 (the
|
||||||
|
* "License"); you may not use this file except in compliance
|
||||||
|
* with the License. You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing,
|
||||||
|
* software distributed under the License is distributed on an
|
||||||
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";var e=2311,n=function(){return e++},v="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:function(t){var e={},i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(e.firefox=!0,e.version=i[1]);n&&(e.ie=!0,e.version=n[1]);o&&(e.edge=!0,e.version=o[1]);a&&(e.weChat=!0);return{browser:e,os:{},node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!e.ie&&!e.edge,pointerEventsSupported:"onpointerdown"in window&&(e.edge||e.ie&&11<=e.version),domSupported:"undefined"!=typeof document}}(navigator.userAgent);var s={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},l={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},u=Object.prototype.toString,i=Array.prototype,r=i.forEach,h=i.filter,o=i.slice,c=i.map,d=i.reduce,a={};function f(t,e){"createCanvas"===t&&(g=null),a[t]=e}function k(t){if(null==t||"object"!=typeof t)return t;var e=t,i=u.call(t);if("[object Array]"===i){if(!$(t)){e=[];for(var n=0,o=t.length;n<o;n++)e[n]=k(t[n])}}else if(l[i]){if(!$(t)){var a=t.constructor;if(t.constructor.from)e=a.from(t);else{e=new a(t.length);for(n=0,o=t.length;n<o;n++)e[n]=k(t[n])}}}else if(!s[i]&&!$(t)&&!G(t))for(var r in e={},t)t.hasOwnProperty(r)&&(e[r]=k(t[r]));return e}function m(t,e,i){if(!z(e)||!z(t))return i?k(e):t;for(var n in e)if(e.hasOwnProperty(n)){var o=t[n],a=e[n];!z(a)||!z(o)||L(a)||L(o)||G(a)||G(o)||B(a)||B(o)||$(a)||$(o)?!i&&n in t||(t[n]=k(e[n])):m(o,a,i)}return t}function p(t,e){for(var i=t[0],n=1,o=t.length;n<o;n++)i=m(i,t[n],e);return i}function P(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function D(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function y(){return a.createCanvas()}var g;function x(){return g=g||y().getContext("2d")}function _(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i}return-1}function w(t,e){var i=t.prototype;function n(){}for(var o in n.prototype=e.prototype,t.prototype=new n,i)i.hasOwnProperty(o)&&(t.prototype[o]=i[o]);(t.prototype.constructor=t).superClass=e}function b(t,e,i){D(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,i)}function N(t){if(t)return"string"!=typeof t&&"number"==typeof t.length}function E(t,e,i){if(t&&e)if(t.forEach&&t.forEach===r)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,o=t.length;n<o;n++)e.call(i,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function O(t,e,i){if(t&&e){if(t.map&&t.map===c)return t.map(e,i);for(var n=[],o=0,a=t.length;o<a;o++)n.push(e.call(i,t[o],o,t));return n}}function S(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===d)return t.reduce(e,i,n);for(var o=0,a=t.length;o<a;o++)i=e.call(n,i,t[o],o,t);return i}}function M(t,e,i){if(t&&e){if(t.filter&&t.filter===h)return t.filter(e,i);for(var n=[],o=0,a=t.length;o<a;o++)e.call(i,t[o],o,t)&&n.push(t[o]);return n}}function I(t,e,i){if(t&&e)for(var n=0,o=t.length;n<o;n++)if(e.call(i,t[n],n,t))return t[n]}function A(t,e){var i=o.call(arguments,2);return function(){return t.apply(e,i.concat(o.call(arguments)))}}function T(t){var e=o.call(arguments,1);return function(){return t.apply(this,e.concat(o.call(arguments)))}}function L(t){return"[object Array]"===u.call(t)}function C(t){return"function"==typeof t}function R(t){return"[object String]"===u.call(t)}function z(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function B(t){return!!s[u.call(t)]}function V(t){return!!l[u.call(t)]}function G(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function F(t){return t!=t}function W(t){for(var e=0,i=arguments.length;e<i;e++)if(null!=arguments[e])return arguments[e]}function H(t,e){return null!=t?t:e}function Z(t,e,i){return null!=t?t:null!=e?e:i}function U(){return Function.call.apply(o,arguments)}function X(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function Y(t,e){if(!t)throw new Error(e)}funcLine truncated
|
||||||
@@ -0,0 +1,240 @@
|
|||||||
|
/*
|
||||||
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
* or more contributor license agreements. See the NOTICE file
|
||||||
|
* distributed with this work for additional information
|
||||||
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
|
* to you under the Apache License, Version 2.0 (the
|
||||||
|
* "License"); you may not use this file except in compliance
|
||||||
|
* with the License. You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing,
|
||||||
|
* software distributed under the License is distributed on an
|
||||||
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD. Register as an anonymous module.
|
||||||
|
define(['exports', 'echarts'], factory);
|
||||||
|
} else if (
|
||||||
|
typeof exports === 'object' &&
|
||||||
|
typeof exports.nodeName !== 'string'
|
||||||
|
) {
|
||||||
|
// CommonJS
|
||||||
|
factory(exports, require('echarts'));
|
||||||
|
} else {
|
||||||
|
// Browser globals
|
||||||
|
factory({}, root.echarts);
|
||||||
|
}
|
||||||
|
})(this, function(exports, echarts) {
|
||||||
|
var log = function(msg) {
|
||||||
|
if (typeof console !== 'undefined') {
|
||||||
|
console && console.error && console.error(msg);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
if (!echarts) {
|
||||||
|
log('ECharts is not Loaded');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var colorPalette = [
|
||||||
|
'#2ec7c9',
|
||||||
|
'#b6a2de',
|
||||||
|
'#5ab1ef',
|
||||||
|
'#ffb980',
|
||||||
|
'#d87a80',
|
||||||
|
'#8d98b3',
|
||||||
|
'#e5cf0d',
|
||||||
|
'#97b552',
|
||||||
|
'#95706d',
|
||||||
|
'#dc69aa',
|
||||||
|
'#07a2a4',
|
||||||
|
'#9a7fd1',
|
||||||
|
'#588dd5',
|
||||||
|
'#f5994e',
|
||||||
|
'#c05050',
|
||||||
|
'#59678c',
|
||||||
|
'#c9ab00',
|
||||||
|
'#7eb00a',
|
||||||
|
'#6f5553',
|
||||||
|
'#c14089'
|
||||||
|
];
|
||||||
|
|
||||||
|
var theme = {
|
||||||
|
color: colorPalette,
|
||||||
|
|
||||||
|
title: {
|
||||||
|
textStyle: {
|
||||||
|
fontWeight: 'normal',
|
||||||
|
color: '#008acd'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
visualMap: {
|
||||||
|
itemWidth: 15,
|
||||||
|
color: ['#5ab1ef', '#e0ffff']
|
||||||
|
},
|
||||||
|
|
||||||
|
toolbox: {
|
||||||
|
iconStyle: {
|
||||||
|
normal: {
|
||||||
|
borderColor: colorPalette[0]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
tooltip: {
|
||||||
|
backgroundColor: 'rgba(50,50,50,0.5)',
|
||||||
|
axisPointer: {
|
||||||
|
type: 'line',
|
||||||
|
lineStyle: {
|
||||||
|
color: '#008acd'
|
||||||
|
},
|
||||||
|
crossStyle: {
|
||||||
|
color: '#008acd'
|
||||||
|
},
|
||||||
|
shadowStyle: {
|
||||||
|
color: 'rgba(200,200,200,0.2)'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
dataZoom: {
|
||||||
|
dataBackgroundColor: '#efefff',
|
||||||
|
fillerColor: 'rgba(182,162,222,0.2)',
|
||||||
|
handleColor: '#008acd'
|
||||||
|
},
|
||||||
|
|
||||||
|
grid: {
|
||||||
|
borderColor: '#eee'
|
||||||
|
},
|
||||||
|
|
||||||
|
categoryAxis: {
|
||||||
|
axisLine: {
|
||||||
|
lineStyle: {
|
||||||
|
color: '#008acd'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
splitLine: {
|
||||||
|
lineStyle: {
|
||||||
|
color: ['#eee']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
valueAxis: {
|
||||||
|
axisLine: {
|
||||||
|
lineStyle: {
|
||||||
|
color: '#008acd'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
splitArea: {
|
||||||
|
show: true,
|
||||||
|
areaStyle: {
|
||||||
|
color: ['rgba(250,250,250,0.1)', 'rgba(200,200,200,0.1)']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
splitLine: {
|
||||||
|
lineStyle: {
|
||||||
|
color: ['#eee']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
timeline: {
|
||||||
|
lineStyle: {
|
||||||
|
color: '#008acd'
|
||||||
|
},
|
||||||
|
controlStyle: {
|
||||||
|
color: '#008acd',
|
||||||
|
borderColor: '#008acd'
|
||||||
|
},
|
||||||
|
symbol: 'emptyCircle',
|
||||||
|
symbolSize: 3
|
||||||
|
},
|
||||||
|
|
||||||
|
line: {
|
||||||
|
smooth: true,
|
||||||
|
symbol: 'emptyCircle',
|
||||||
|
symbolSize: 3
|
||||||
|
},
|
||||||
|
|
||||||
|
candlestick: {
|
||||||
|
itemStyle: {
|
||||||
|
color: '#d87a80',
|
||||||
|
color0: '#2ec7c9'
|
||||||
|
},
|
||||||
|
lineStyle: {
|
||||||
|
width: 1,
|
||||||
|
color: '#d87a80',
|
||||||
|
color0: '#2ec7c9'
|
||||||
|
},
|
||||||
|
areaStyle: {
|
||||||
|
color: '#2ec7c9',
|
||||||
|
color0: '#b6a2de'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
scatter: {
|
||||||
|
symbol: 'circle',
|
||||||
|
symbolSize: 4
|
||||||
|
},
|
||||||
|
|
||||||
|
map: {
|
||||||
|
itemStyle: {
|
||||||
|
color: '#ddd'
|
||||||
|
},
|
||||||
|
areaStyle: {
|
||||||
|
color: '#fe994e'
|
||||||
|
},
|
||||||
|
label: {
|
||||||
|
color: '#d87a80'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
graph: {
|
||||||
|
itemStyle: {
|
||||||
|
color: '#d87a80'
|
||||||
|
},
|
||||||
|
linkStyle: {
|
||||||
|
color: '#2ec7c9'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
gauge: {
|
||||||
|
axisLine: {
|
||||||
|
lineStyle: {
|
||||||
|
color: [
|
||||||
|
[0.2, '#2ec7c9'],
|
||||||
|
[0.8, '#5ab1ef'],
|
||||||
|
[1, '#d87a80']
|
||||||
|
],
|
||||||
|
width: 10
|
||||||
|
}
|
||||||
|
},
|
||||||
|
axisTick: {
|
||||||
|
splitNumber: 10,
|
||||||
|
length: 15,
|
||||||
|
lineStyle: {
|
||||||
|
color: 'auto'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
splitLine: {
|
||||||
|
length: 22,
|
||||||
|
lineStyle: {
|
||||||
|
color: 'auto'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
pointer: {
|
||||||
|
width: 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
echarts.registerTheme('macarons', theme);
|
||||||
|
});
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
/*!
|
||||||
|
* Font Awesome Free 5.13.0 by @fontawesome - https://fontawesome.com
|
||||||
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||||||
|
*/
|
||||||
|
.fa,.fab,.fad,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-acquisitions-incorporated:before{content:"\f6af"}.fa-ad:before{content:"\f641"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adobe:before{content:"\f778"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-air-freshener:before{content:"\f5d0"}.fa-airbnb:before{content:"\f834"}.fa-algolia:before{content:"\f36c"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-alipay:before{content:"\f642"}.fa-allergies:before{content:"\f461"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angry:before{content:"\f556"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-ankh:before{content:"\f644"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-alt:before{content:"\f5d1"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-archway:before{content:"\f557"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:beLine truncated
|
||||||
File diff suppressed because it is too large.
Load diff
+35
@@ -0,0 +1,35 @@
|
|||||||
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Gitalk=t():e.Gitalk=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist",t(t.s=82)}([function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(39)("wks"),o=n(25),i=n(1).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";function r(e){return"[object Array]"===C.call(e)}function o(e){return void 0===e}function i(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function a(e){return"[object ArrayBuffer]"===C.call(e)}function u(e){return"undefined"!=typeof FormData&&e instanceof FormData}function s(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function c(e){return"string"==typeof e}function l(e){return"number"==typeof e}function f(e){return null!==e&&"object"==typeof e}function p(e){return"[object Date]"===C.call(e)}function d(e){return"[object File]"===C.call(e)}function h(e){return"[object Blob]"===C.call(e)}function m(e){return"[object Function]"===C.call(e)}function v(e){return f(e)&&m(e.pipe)}function y(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function g(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function b(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function w(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function _(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=_(t[n],e):t[n]=e}for(var t={},n=0,r=arguments.length;n<r;n++)w(arguments[n],e);return t}function x(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=x(t[n],e):t[n]="object"==typeof e?x({},e):e}for(var t={},n=0,r=arguments.length;n<r;n++)w(arguments[n],e);return t}function S(e,t,n){return w(t,function(t,r){e[r]=n&&"function"==typeof t?E(t,n):t}),e}var E=n(72),C=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:a,isBuffer:i,isFormData:u,isArrayBufferView:s,isString:c,isNumber:l,isObject:f,isUndefined:o,isDate:p,isFile:d,isBlob:h,isFunction:m,isStream:v,isURLSearchParams:y,isStandardBrowserEnv:b,forEach:w,merge:_,deepMerge:x,extend:S,trim:g}},function(e,t,n){var r=n(1),o=n(0),i=n(13),a=n(11),u=n(12),s=function(e,t,n){var c,l,f,p=e&s.F,d=e&s.G,h=e&s.S,m=e&s.P,v=e&s.B,y=e&s.W,g=d?o:o[t]||(o[t]={}),b=g.prototype,w=d?r:h?r[t]:(r[t]||{}).prototype;d&&(n=t);for(c in n)(l=!p&&w&&void 0!==w[c])&&u(g,c)||(f=l?w[c]:n[c],g[c]=d&&"function"!=typeof w[c]?n[c]:v&&l?i(f,r):y&&w[c]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):m&&"function"==typeof f?i(Function.call,f):f,m&&((g.virtual||(g.virtual={}))[c]=f,e&s.R&&b&&!b[c]&&a(b,c,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function r(){return null}function o(e){var t=e.nodeName,n=e.attributes;e.attributes={},t.defaultProps&&_(e.attributes,t.defaultProps),n&&_(e.attributes,n)}function i(e,t){var n,r,o;if(t){for(o in t)if(n=W.test(o))break;if(n){r=e.attributes={};for(o in t)t.hasOwnProperty(o)&&(r[W.test(o)?o.replace(/([A-Z0-9])/,"-$1").toLowerCase():o]=t[o])}}}function a(e,t,n){var r=t&&t._preactCompatRendered&&t._preactCompatRendered.base;r&&r.parentNode!==t&&(r=null),r||(r=t.children[0]);for(var o=t.childNodes.length;o--;)t.childNodes[o]!==r&&t.removeChild(t.childNodes[o]);var i=G.render(e,t,r);return t&&(t._preactCompatRendered=i&&(i._component||{base:i})),"function"==typeof n&&n(),i&&i._component||i}function u(e,t,n,r){var o=G.h(J,{context:e.context},t),i=a(o,n);return r&&r(i),i._component||i.base}function s(e){var t=e._preactCompatRendered&Line truncated
|
||||||
|
* react-is.production.min.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103,u=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,c=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,f=i?Symbol.for("react.provider"):60109,p=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.async_mode"):60111,h=i?Symbol.for("react.concurrent_mode"):60111,m=i?Symbol.for("react.forward_ref"):60112,v=i?Symbol.for("react.suspense"):60113,y=i?Symbol.for("react.suspense_list"):60120,g=i?Symbol.for("react.memo"):60115,b=i?Symbol.for("react.lazy"):60116,w=i?Symbol.for("react.fundamental"):60117,_=i?Symbol.for("react.responder"):60118,x=i?Symbol.for("react.scope"):60119;t.typeOf=r,t.AsyncMode=d,t.ConcurrentMode=h,t.ContextConsumer=p,t.ContextProvider=f,t.Element=a,t.ForwardRef=m,t.Fragment=s,t.Lazy=b,t.Memo=g,t.Portal=u,t.Profiler=l,t.StrictMode=c,t.Suspense=v,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===h||e===l||e===c||e===v||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===f||e.$$typeof===p||e.$$typeof===m||e.$$typeof===w||e.$$typeof===_||e.$$typeof===x)},t.isAsyncMode=function(e){return o(e)||r(e)===d},t.isConcurrentMode=o,t.isContextConsumer=function(e){return r(e)===p},t.isContextProvider=function(e){return r(e)===f},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return r(e)===m},t.isFragment=function(e){return r(e)===s},t.isLazy=function(e){return r(e)===b},t.isMemo=function(e){return r(e)===g},t.isPortal=function(e){return r(e)===u},t.isProfiler=function(e){return r(e)===l},t.isStrictMode=function(e){return r(e)===c},t.isSuspense=function(e){return r(e)===v}},function(e,t,n){"use strict";(function(e){/** @license React v16.12.0
|
||||||
|
* react-is.development.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
"production"!==e.env.NODE_ENV&&function(){function e(e){return"string"==typeof e||"function"==typeof e||e===b||e===C||e===_||e===w||e===O||e===k||"object"==typeof e&&null!==e&&(e.$$typeof===P||e.$$typeof===M||e.$$typeof===x||e.$$typeof===S||e.$$typeof===N||e.$$typeof===T||e.$$typeof===A||e.$$typeof===j)}function n(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case y:var n=e.type;switch(n){case E:case C:case b:case _:case w:case O:return n;default:var r=n&&n.$$typeof;switch(r){case S:case N:case P:case M:case x:return r;default:return t}}case g:return t}}}function r(e){return K||(K=!0,L(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),o(e)||n(e)===E}function o(e){return n(e)===C}function i(e){return n(e)===S}function a(e){return n(e)===x}function u(e){return"object"==typeof e&&null!==e&&e.$$typeof===y}function s(e){return n(e)===N}function c(e){return n(e)===b}function l(e){return n(e)===P}function f(e){return n(e)===M}function p(e){return n(e)===g}function d(e){return n(e)===_}function h(e){return n(e)===w}function m(e){return n(e)===O}Object.defineProperty(t,"__esModule",{value:!0});var v="function"==typeof Symbol&&Symbol.for,y=v?Symbol.for("react.element"):60103,g=v?Symbol.for("react.portal"):60106,b=v?Symbol.for("react.fragment"):60107,w=v?Symbol.for("react.strict_mode"):60108,_=v?Symbol.for("react.profiler"):60114,x=v?Symbol.for("react.provider"):60109,S=v?Symbol.for("react.context"):60110,E=v?Symbol.for("react.async_mode"):60111,C=v?Symbol.for("react.concurrent_mode"):60111,N=v?Symbol.for("react.forward_ref"):60112,O=v?Symbol.for("react.suspense"):60113,k=v?Symbol.for("react.suspense_list"):60120,M=v?Symbol.for("react.memo"):60115,P=v?Symbol.for("react.lazy"):60116,T=v?Symbol.for("react.fundamental"):60117,A=v?Symbol.for("react.responder"):60118,j=v?Symbol.for("react.scope"):60119,D=function(){},I=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.warn(i);try{throw new Error(i)}catch(e){}};D=function(e,t){if(void 0===t)throw new Error("`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];I.apply(void 0,[t].concat(r))}};var L=D,R=E,F=C,G=S,B=x,z=y,H=N,$=b,U=P,W=M,V=g,X=_,Y=w,q=O,K=!1;t.typeOf=n,t.AsyncMode=R,t.ConcurrentMode=F,t.ContextConsumer=G,t.ContextProvider=B,t.Element=z,t.ForwardRef=H,t.Fragment=$,t.Lazy=U,t.Memo=W,t.Portal=V,t.Profiler=X,t.StrictMode=Y,t.Suspense=q,t.isValidElementType=e,t.isAsyncMode=r,t.isConcurrentMode=o,t.isContextConsumer=i,t.isContextProvider=a,t.isElement=u,t.isForwardRef=s,t.isFragment=c,t.isLazy=l,t.isMemo=f,t.isPortal=p,t.isProfiler=d,t.isStrictMode=h,t.isSuspense=m}()}).call(t,n(9))},function(e,t,n){"use strict";(function(t){function r(){return null}var o=n(49),i=n(90),a=n(33),u=n(91),s=Function.call.bind(Object.prototype.hasOwnProperty),c=function(){};"production"!==t.env.NODE_ENV&&(c=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),e.exports=function(e,n){function l(e){var t=e&&(k&&e[k]||e[M]);if("function"==typeof t)return t}function f(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t}function p(e){this.message=e,this.stack=""}function d(e){function r(r,u,s,l,f,d,h){if(l=l||P,d=d||s,h!==a){if(n){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+s;!o[v]&&i<3&&(c("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),o[v]=!0,i++)}}return null==u[s]?r?new p(null===u[s]?"The "+f+" `"+d+"` is marked as required in `"+l+"`, but its value is `null`.":"The "+f+" `"+d+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(u,s,l,f,d)}if("production"!==t.env.NODE_ENV)var o={},i=0;var u=r.bind(null,!1);return u.isRequired=r.bind(null,!0),u}function h(e){function t(t,n,r,o,i,a){var u=t[n];if(E(u)!==e)return new p("Invalid "+o+" `"+i+"` of type `"+C(u)+"` supplied to `"+r+"`, expected `"+e+"`.");return null}return d(t)}function m(e){function t(t,n,r,o,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=t[n];if(!Array.isArray(u)){return new p("Invalid "+o+" `"+i+"` of type `"+E(u)+"` supplied
Line truncated
|
||||||
|
object-assign
|
||||||
|
(c) Sindre Sorhus
|
||||||
|
@license MIT
|
||||||
|
*/
|
||||||
|
var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,u,s=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var l in n)i.call(n,l)&&(s[l]=n[l]);if(o){u=o(n);for(var f=0;f<u.length;f++)a.call(n,u[f])&&(s[u[f]]=n[u[f]])}}return s}},function(e,t,n){"use strict";(function(t){function r(e,n,r,s,c){if("production"!==t.env.NODE_ENV)for(var l in e)if(u(e,l)){var f;try{if("function"!=typeof e[l]){var p=Error((s||"React class")+": "+r+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.");throw p.name="Invariant Violation",p}f=e[l](n,l,s,r,null,i)}catch(e){f=e}if(!f||f instanceof Error||o((s||"React class")+": type specification of "+r+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var d=c?c():"";o("Failed "+r+" type: "+f.message+(null!=d?d:""))}}}var o=function(){};if("production"!==t.env.NODE_ENV){var i=n(33),a={},u=Function.call.bind(Object.prototype.hasOwnProperty);o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}r.resetWarningCache=function(){"production"!==t.env.NODE_ENV&&(a={})},e.exports=r}).call(t,n(9))},function(e,t,n){"use strict";function r(){}function o(){}var i=n(33);o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,a){if(a!==i){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){!function(){"use strict";function t(){}function n(e,n){var r,o,i,a,u=j;for(a=arguments.length;a-- >2;)A.push(arguments[a]);for(n&&null!=n.children&&(A.length||A.push(n.children),delete n.children);A.length;)if((o=A.pop())&&void 0!==o.pop)for(a=o.length;a--;)A.push(o[a]);else!0!==o&&!1!==o||(o=null),(i="function"!=typeof e)&&(null==o?o="":"number"==typeof o?o=String(o):"string"!=typeof o&&(i=!1)),i&&r?u[u.length-1]+=o:u===j?u=[o]:u.push(o),r=i;var s=new t;return s.nodeName=e,s.children=u,s.attributes=null==n?void 0:n,s.key=null==n?void 0:n.key,void 0!==T.vnode&&T.vnode(s),s}function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e,t){return n(e.nodeName,r(r({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}function i(e){!e.__d&&(e.__d=!0)&&1==I.push(e)&&(T.debounceRendering||setTimeout)(a)}function a(){var e,t=I;for(I=[];e=t.pop();)e.__d&&N(e)}function u(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&s(e,t.nodeName):n||e._componentConstructor===t.nodeName}function s(e,t){return e.__n===t||e.nodeName.toLowerCase()===t.toLowerCase()}function c(e){var t=r({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var o in n)void 0===t[o]&&(t[o]=n[o]);return t}function l(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.__n=e,n}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),r&&r(e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===D.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,h,a):e.removeEventListener(t,h,a),(e.__l||(e.__l={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e)d(e,t,null==r?"":r),null!=r&&!1!==r||e.removeAttribute(t);else{var u=o&&t!==(t=t.replace(/^xlink\:?/,""));null==r||!1===r?u?e.removeAttributeNS("http://www.w3.org/1999/xlink",tLine truncated
|
||||||
|
* @overview es6-promise - a tiny implementation of Promises/A+.
|
||||||
|
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
||||||
|
* @license Licensed under MIT license
|
||||||
|
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
||||||
|
* @version 4.1.1
|
||||||
|
*/
|
||||||
|
!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function o(e){return"function"==typeof e}function i(e){W=e}function a(e){V=e}function u(){return void 0!==U?function(){U(c)}:s()}function s(){var e=setTimeout;return function(){return e(c,1)}}function c(){for(var e=0;e<$;e+=2){(0,Z[e])(Z[e+1]),Z[e]=void 0,Z[e+1]=void 0}$=0}function l(e,t){var n=arguments,r=this,o=new this.constructor(p);void 0===o[ee]&&T(o);var i=r._state;return i?function(){var e=n[i-1];V(function(){return k(i,o,e,r._result)})}():E(r,o,e,t),o}function f(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(p);return w(n,e),n}function p(){}function d(){return new TypeError("You cannot resolve a promise with itself")}function h(){return new TypeError("A promises callback cannot return that same promise.")}function m(e){try{return e.then}catch(e){return oe.error=e,oe}}function v(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}function y(e,t,n){V(function(e){var r=!1,o=v(n,t,function(n){r||(r=!0,t!==n?w(e,n):x(e,n))},function(t){r||(r=!0,S(e,t))},"Settle: "+(e._label||" unknown promise"));!r&&o&&(r=!0,S(e,o))},e)}function g(e,t){t._state===ne?x(e,t._result):t._state===re?S(e,t._result):E(t,void 0,function(t){return w(e,t)},function(t){return S(e,t)})}function b(e,t,n){t.constructor===e.constructor&&n===l&&t.constructor.resolve===f?g(e,t):n===oe?(S(e,oe.error),oe.error=null):void 0===n?x(e,t):o(n)?y(e,t,n):x(e,t)}function w(t,n){t===n?S(t,d()):e(n)?b(t,n,m(n)):x(t,n)}function _(e){e._onerror&&e._onerror(e._result),C(e)}function x(e,t){e._state===te&&(e._result=t,e._state=ne,0!==e._subscribers.length&&V(C,e))}function S(e,t){e._state===te&&(e._state=re,e._result=t,V(_,e))}function E(e,t,n,r){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+ne]=n,o[i+re]=r,0===i&&e._state&&V(C,e)}function C(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,i=e._result,a=0;a<t.length;a+=3)r=t[a],o=t[a+n],r?k(n,r,o,i):o(i);e._subscribers.length=0}}function N(){this.error=null}function O(e,t){try{return e(t)}catch(e){return ie.error=e,ie}}function k(e,t,n,r){var i=o(n),a=void 0,u=void 0,s=void 0,c=void 0;if(i){if(a=O(n,r),a===ie?(c=!0,u=a.error,a.error=null):s=!0,t===a)return void S(t,h())}else a=r,s=!0;t._state!==te||(i&&s?w(t,a):c?S(t,u):e===ne?x(t,a):e===re&&S(t,a))}function M(e,t){try{t(function(t){w(e,t)},function(t){S(e,t)})}catch(t){S(e,t)}}function P(){return ae++}function T(e){e[ee]=ae++,e._state=void 0,e._result=void 0,e._subscribers=[]}function A(e,t){this._instanceConstructor=e,this.promise=new e(p),this.promise[ee]||T(this.promise),H(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?x(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&x(this.promise,this._result))):S(this.promise,j())}function j(){return new Error("Array Methods must be provided an Array")}function D(e){return new A(this,e).promise}function I(e){var t=this;return new t(H(e)?function(n,r){for(var o=e.length,i=0;i<o;i++)t.resolve(e[i]).then(n,r)}:function(e,t){return t(new TypeError("You must pass an array to race."))})}function L(e){var t=this,n=new t(p);return S(n,e),n}function R(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function F(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function G(e){this[ee]=P(),this._result=this._state=void 0,this._subscribers=[],p!==e&&("function"!=typeof e&&R(),this instanceof G?M(this,e):F())}function B(){var e=void 0;if(void 0!==r)e=r;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=G}var z=void 0;z=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var H=z,$=0,U=void 0,W=void 0,V=function(e,t){Z[$]=e,Z[$+1]=t,2===($+=2)&&(W?W(c):Q())},X="undefined"!=typeof window?window:void 0,Y=X||{},q=Y.MutationObserver||Y.WebKitMutationObserver,K="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),J="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,Z=new Array(1e3),Q=void 0;Q=K?function(){return function(){return t.nextTick(c)}}():q?function(){var e=0,t=new q(c),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}():J?function(){var e=new MessageChannel;return e.port1.onmessage=c,function(){return e.port2.postMessage(0)}}():void 0===X?function(){try{var e=n(97);return U=e.runOnLoop||e.runOnContext,u()}catch(e){return s()}}():s();vLine truncated
|
||||||
|
Autosize 3.0.21
|
||||||
|
license: MIT
|
||||||
|
http://www.jacklmoore.com/autosize
|
||||||
|
*/
|
||||||
|
!function(n,a){o=[t,e],r=a,void 0!==(i="function"==typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e,t){"use strict";function n(e){function t(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function n(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function r(){var t=e.style.height,r=n(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="auto";var i=e.scrollHeight+u;if(0===e.scrollHeight)return void(e.style.height=t);e.style.height=i+"px",s=e.clientWidth,r.forEach(function(e){e.node.scrollTop=e.scrollTop}),o&&(document.documentElement.scrollTop=o)}function o(){r();var n=Math.round(parseFloat(e.style.height)),o=window.getComputedStyle(e,null),i="content-box"===o.boxSizing?Math.round(parseFloat(o.height)):e.offsetHeight;if(i!==n?"hidden"===o.overflowY&&(t("scroll"),r(),i="content-box"===o.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==o.overflowY&&(t("hidden"),r(),i="content-box"===o.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),c!==i){c=i;var u=a("autosize:resized");try{e.dispatchEvent(u)}catch(e){}}}if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!i.has(e)){var u=null,s=e.clientWidth,c=null,l=function(){e.clientWidth!==s&&o()},f=function(t){window.removeEventListener("resize",l,!1),e.removeEventListener("input",o,!1),e.removeEventListener("keyup",o,!1),e.removeEventListener("autosize:destroy",f,!1),e.removeEventListener("autosize:update",o,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),i.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",f,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",o,!1),window.addEventListener("resize",l,!1),e.addEventListener("input",o,!1),e.addEventListener("autosize:update",o,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",i.set(e,{destroy:f,update:o}),function(){var t=window.getComputedStyle(e,null);"vertical"===t.resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),u="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(u)&&(u=0),o()}()}}function r(e){var t=i.get(e);t&&t.destroy()}function o(e){var t=i.get(e);t&&t.update()}var i="function"==typeof Map?new Map:function(){var e=[],t=[];return{has:function(t){return e.indexOf(t)>-1},get:function(n){return t[e.indexOf(n)]},set:function(n,r){-1===e.indexOf(n)&&(e.push(n),t.push(r))},delete:function(n){var r=e.indexOf(n);r>-1&&(e.splice(r,1),t.splice(r,1))}}}(),a=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){a=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}var u=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?(u=function(e){return e},u.destroy=function(e){return e},u.update=function(e){return e}):(u=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return n(e)}),e},u.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e},u.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e}),t.exports=u})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return new i.default({phrases:w[e]||w.en,locale:e})};var o=n(152),i=r(o),a=n(153),u=r(a),s=n(154),c=r(s),l=n(155),f=r(l),p=n(156),d=r(p),h=n(157),m=r(h),v=n(158),y=r(v),g=n(159),b=r(g),w={zh:u.default,"zh-CN":u.default,"zh-TW":c.default,en:f.default,"es-ES":d.default,fr:m.default,ru:y.default,de:b.default}},function(e,t,n){var r,o;!function(n,i){r=[],void 0!==(o=function(){return i(n)}.apply(t,r))&&(e.exports=o)}(this,function(e){"use strict";function t(e){e=e||{},this.phrases={},this.extend(e.phrases||{}),this.currentLocale=e.locale||"en",this.allowMissing=!!e.allowMissing,this.warn=e.warn||s}function n(e){var t,n,r,o={};for(t in e)if(e.hasOwnProperty(t)){n=e[t];for(r in n)o[n[r]]=t}return o}function r(e){var t=/^\s+|\s+$/g;return e.replace(t,"")}function o(e,t,n){var o,i,u;return null!=n&&e?(i=e.split(l),u=i[a(t,n)]||i[0],o=r(u)):o=e,o}function i(e){var t=n(p);return t[e]||t.en}function a(e,t){return f[i(e)](t)}function u(e,t){for(var n in t)"_"!==n&&t.hasOwnProperty(n)&&(e=e.replace(new RegExp("%\\{"+n+"\\}","g"),t[n]));return e}function s(t){e.console&&e.console.warn&&e.console.warn("WARNING: "+t)}function c(e){var t={};for(var n in e)t[n]=e[n];return t}t.VERSION="0.4.3",t.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},t.prototype.extend=function(e,t){var n;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],t&&(r=tLine truncated
|
||||||
|
//# sourceMappingURL=gitalk.min.js.map
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("katex")):"function"==typeof define&&define.amd?define(["katex"],t):"object"==typeof exports?exports.renderMathInElement=t(require("katex")):e.renderMathInElement=t(e.katex)}("undefined"!=typeof self?self:this,function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(t,r){t.exports=e},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n),a=function(e,t,r){for(var n=r,o=0,a=e.length;n<t.length;){var i=t[n];if(o<=0&&t.slice(n,n+a)===e)return n;"\\"===i?n++:"{"===i?o++:"}"===i&&o--,n++}return-1},i=function(e,t,r,n){for(var o=[],i=0;i<e.length;i++)if("text"===e[i].type){var l=e[i].data,d=!0,s=0,f=void 0;for(-1!==(f=l.indexOf(t))&&(s=f,o.push({type:"text",data:l.slice(0,s)}),d=!1);;){if(d){if(-1===(f=l.indexOf(t,s)))break;o.push({type:"text",data:l.slice(s,f)}),s=f}else{if(-1===(f=a(r,l,s+t.length)))break;o.push({type:"math",data:l.slice(s+t.length,f),rawData:l.slice(s,f+r.length),display:n}),s=f+r.length}d=!d}o.push({type:"text",data:l.slice(s)})}else o.push(e[i]);return o},l=function(e,t){for(var r=function(e,t){for(var r=[{type:"text",data:e}],n=0;n<t.length;n++){var o=t[n];r=i(r,o.left,o.right,o.display||!1)}return r}(e,t.delimiters),n=document.createDocumentFragment(),a=0;a<r.length;a++)if("text"===r[a].type)n.appendChild(document.createTextNode(r[a].data));else{var l=document.createElement("span"),d=r[a].data;t.displayMode=r[a].display;try{t.preProcess&&(d=t.preProcess(d)),o.a.render(d,l,t)}catch(e){if(!(e instanceof o.a.ParseError))throw e;t.errorCallback("KaTeX auto-render: Failed to parse `"+r[a].data+"` with ",e),n.appendChild(document.createTextNode(r[a].rawData));continue}n.appendChild(l)}return n};t.default=function(e,t){if(!e)throw new Error("No element provided to render");var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);r.delimiters=r.delimiters||[{left:"$$",right:"$$",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"\\[",right:"\\]",display:!0}],r.ignoredTags=r.ignoredTags||["script","noscript","style","textarea","pre","code"],r.ignoredClasses=r.ignoredClasses||[],r.errorCallback=r.errorCallback||console.error,r.macros=r.macros||{},function e(t,r){for(var n=0;n<t.childNodes.length;n++){var o=t.childNodes[n];if(3===o.nodeType){var a=l(o.textContent,r);n+=a.childNodes.length-1,t.replaceChild(a,o)}else 1===o.nodeType&&function(){var t=" "+o.className+" ";-1===r.ignoredTags.indexOf(o.nodeName.toLowerCase())&&r.ignoredClasses.every(function(e){return-1===t.indexOf(" "+e+" ")})&&e(o,r)}()}}(e,r)}}]).default});
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.katex,.katex-display{user-select:all;-moz-user-select:all;-webkit-user-select:all;-ms-user-select:all}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){},function(e,t,n){"use strict";n.r(t);n(0);var r={inline:["$","$"],display:["$$","$$"]},o=function(e,t){void 0===t&&(t=r);for(var n=e.querySelectorAll(".katex-mathml + .katex-html"),o=0;o<n.length;o++){var l=n[o];l.remove?l.remove(null):l.parentNode.removeChild(l)}for(var i=e.querySelectorAll(".katex-mathml"),a=0;a<i.length;a++){var u=i[a],f=u.querySelector("annotation");f&&(u.replaceWith?u.replaceWith(f):u.parentNode.replaceChild(f,u),f.innerHTML=t.inline[0]+f.innerHTML+t.inline[1])}for(var c=e.querySelectorAll(".katex-display annotation"),d=0;d<c.length;d++){var p=c[d];p.innerHTML=t.display[0]+p.innerHTML.substr(t.inline[0].length,p.innerHTML.length-t.inline[0].length-t.inline[1].length)+t.display[1]}return e};document.addEventListener("copy",function(e){var t=window.getSelection();if(!t.isCollapsed){var n=t.getRangeAt(0).cloneContents();if(n.querySelector(".katex-mathml")){for(var r=[],l=0;l<n.childNodes.length;l++)r.push(n.childNodes[l].outerHTML);e.clipboardData.setData("text/html",r.join("")),e.clipboardData.setData("text/plain",o(n).textContent),e.preventDefault()}}})}]).default});
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
@font-face{font-family:KaTeX_AMS;src:url(fonts/KaTeX_AMS-Regular.woff2) format("woff2"),url(fonts/KaTeX_AMS-Regular.woff) format("woff"),url(fonts/KaTeX_AMS-Regular.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:KaTeX_Caligraphic;src:url(fonts/KaTeX_Caligraphic-Bold.woff2) format("woff2"),url(fonts/KaTeX_Caligraphic-Bold.woff) format("woff"),url(fonts/KaTeX_Caligraphic-Bold.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:KaTeX_Caligraphic;src:url(fonts/KaTeX_Caligraphic-Regular.woff2) format("woff2"),url(fonts/KaTeX_Caligraphic-Regular.woff) format("woff"),url(fonts/KaTeX_Caligraphic-Regular.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:KaTeX_Fraktur;src:url(fonts/KaTeX_Fraktur-Bold.woff2) format("woff2"),url(fonts/KaTeX_Fraktur-Bold.woff) format("woff"),url(fonts/KaTeX_Fraktur-Bold.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:KaTeX_Fraktur;src:url(fonts/KaTeX_Fraktur-Regular.woff2) format("woff2"),url(fonts/KaTeX_Fraktur-Regular.woff) format("woff"),url(fonts/KaTeX_Fraktur-Regular.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:KaTeX_Main;src:url(fonts/KaTeX_Main-Bold.woff2) format("woff2"),url(fonts/KaTeX_Main-Bold.woff) format("woff"),url(fonts/KaTeX_Main-Bold.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:KaTeX_Main;src:url(fonts/KaTeX_Main-BoldItalic.woff2) format("woff2"),url(fonts/KaTeX_Main-BoldItalic.woff) format("woff"),url(fonts/KaTeX_Main-BoldItalic.ttf) format("truetype");font-weight:700;font-style:italic;font-display:swap}@font-face{font-family:KaTeX_Main;src:url(fonts/KaTeX_Main-Italic.woff2) format("woff2"),url(fonts/KaTeX_Main-Italic.woff) format("woff"),url(fonts/KaTeX_Main-Italic.ttf) format("truetype");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:KaTeX_Main;src:url(fonts/KaTeX_Main-Regular.woff2) format("woff2"),url(fonts/KaTeX_Main-Regular.woff) format("woff"),url(fonts/KaTeX_Main-Regular.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:KaTeX_Math;src:url(fonts/KaTeX_Math-BoldItalic.woff2) format("woff2"),url(fonts/KaTeX_Math-BoldItalic.woff) format("woff"),url(fonts/KaTeX_Math-BoldItalic.ttf) format("truetype");font-weight:700;font-style:italic;font-display:swap}@font-face{font-family:KaTeX_Math;src:url(fonts/KaTeX_Math-Italic.woff2) format("woff2"),url(fonts/KaTeX_Math-Italic.woff) format("woff"),url(fonts/KaTeX_Math-Italic.ttf) format("truetype");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:"KaTeX_SansSerif";src:url(fonts/KaTeX_SansSerif-Bold.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Bold.woff) format("woff"),url(fonts/KaTeX_SansSerif-Bold.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:"KaTeX_SansSerif";src:url(fonts/KaTeX_SansSerif-Italic.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Italic.woff) format("woff"),url(fonts/KaTeX_SansSerif-Italic.ttf) format("truetype");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:"KaTeX_SansSerif";src:url(fonts/KaTeX_SansSerif-Regular.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Regular.woff) format("woff"),url(fonts/KaTeX_SansSerif-Regular.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:KaTeX_Script;src:url(fonts/KaTeX_Script-Regular.woff2) format("woff2"),url(fonts/KaTeX_Script-Regular.woff) format("woff"),url(fonts/KaTeX_Script-Regular.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:KaTeX_Size1;src:url(fonts/KaTeX_Size1-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size1-Regular.woff) format("woff"),url(fonts/KaTeX_Size1-Regular.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:KaTeX_Size2;src:url(fonts/KaTeX_Size2-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size2-Regular.woff) format("woff"),url(fonts/KaTeX_Size2-Regular.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:KaTeX_Size3;src:url(fonts/KaTeX_Size3-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size3-Regular.woff) format("woff"),url(fonts/KaTeX_Size3-Regular.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:KaTeX_Size4;src:url(fonts/KaTeX_Size4-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size4-Regular.woff) format("woff"),url(fonts/KaTeX_Size4-Regular.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:KaTeX_Typewriter;src:url(fonts/KaTeX_Typewriter-Regular.woff2) format("woff2"),url(fonts/KaTeX_Typewriter-Regular.woff) format("woff"),url(fonts/KaTeX_Typewriter-Regular.ttf) format(Line truncated
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.katex=e():t.katex=e()}("undefined"!=typeof self?self:this,function(){return function(t){var e={};function r(a){if(e[a])return e[a].exports;var n=e[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,a){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(a,n,function(e){return t[e]}.bind(null,n));return a},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=1)}([function(t,e,r){},function(t,e,r){"use strict";r.r(e);r(0);var a=function(){function t(t,e,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=e,this.end=r}return t.range=function(e,r){return r?e&&e.loc&&r.loc&&e.loc.lexer===r.loc.lexer?new t(e.loc.lexer,e.loc.start,r.loc.end):null:e&&e.loc},t}(),n=function(){function t(t,e){this.text=void 0,this.loc=void 0,this.text=t,this.loc=e}return t.prototype.range=function(e,r){return new t(r,a.range(this,e))},t}(),i=function t(e,r){this.position=void 0;var a,n="KaTeX parse error: "+e,i=r&&r.loc;if(i&&i.start<=i.end){var o=i.lexer.input;a=i.start;var s=i.end;a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var h=o.slice(a,s).replace(/[^]/g,"$&\u0332");n+=(a>15?"\u2026"+o.slice(a-15,a):o.slice(0,a))+h+(s+15<o.length?o.slice(s,s+15)+"\u2026":o.slice(s))}var l=new Error(n);return l.name="ParseError",l.__proto__=t.prototype,l.position=a,l};i.prototype.__proto__=Error.prototype;var o=i,s=/([A-Z])/g,h={"&":"&",">":">","<":"<",'"':""","'":"'"},l=/[&><"']/g;var m=function t(e){return"ordgroup"===e.type?1===e.body.length?t(e.body[0]):e:"color"===e.type?1===e.body.length?t(e.body[0]):e:"font"===e.type?t(e.body):e},c={contains:function(t,e){return-1!==t.indexOf(e)},deflt:function(t,e){return void 0===t?e:t},escape:function(t){return String(t).replace(l,function(t){return h[t]})},hyphenate:function(t){return t.replace(s,"-$1").toLowerCase()},getBaseElem:m,isCharacterBox:function(t){var e=m(t);return"mathord"===e.type||"textord"===e.type||"atom"===e.type},protocolFromUrl:function(t){var e=/^\s*([^\\\/#]*?)(?::|�*58|�*3a)/i.exec(t);return null!=e?e[1]:"_relative"}},u=function(){function t(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,t=t||{},this.displayMode=c.deflt(t.displayMode,!1),this.output=c.deflt(t.output,"htmlAndMathml"),this.leqno=c.deflt(t.leqno,!1),this.fleqn=c.deflt(t.fleqn,!1),this.throwOnError=c.deflt(t.throwOnError,!0),this.errorColor=c.deflt(t.errorColor,"#cc0000"),this.macros=t.macros||{},this.minRuleThickness=Math.max(0,c.deflt(t.minRuleThickness,0)),this.colorIsTextColor=c.deflt(t.colorIsTextColor,!1),this.strict=c.deflt(t.strict,"warn"),this.trust=c.deflt(t.trust,!1),this.maxSize=Math.max(0,c.deflt(t.maxSize,1/0)),this.maxExpand=Math.max(0,c.deflt(t.maxExpand,1e3))}var e=t.prototype;return e.reportNonstrict=function(t,e,r){var a=this.strict;if("function"==typeof a&&(a=a(t,e,r)),a&&"ignore"!==a){if(!0===a||"error"===a)throw new o("LaTeX-incompatible input and strict mode is set to 'error': "+e+" ["+t+"]",r);"warn"===a?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+e+" ["+t+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+a+"': "+e+" ["+t+"]")}},e.useStrictBehavior=function(t,e,r){var a=this.strict;if("function"==typeof a)try{a=a(t,e,r)}catch(t){a="error"}return!(!a||"ignore"===a)&&(!0===a||"error"===a||("warn"===a?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+e+" ["+t+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+a+"': "+e+" ["+t+"]"),!1)))},e.isTrusted=function(t){t.url&&!t.protocol&&(t.protocol=c.protocolFromUrl(t.url));var e="function"==typeof this.trust?this.trust(t):this.trust;return Boolean(e)},t}(),p=function(){function t(t,e,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=e,this.cramped=r}var e=t.prototype;return e.sup=function(){reLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("katex"));else if("function"==typeof define&&define.amd)define(["katex"],e);else{var n="object"==typeof exports?e(require("katex")):e(t.katex);for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}("undefined"!=typeof self?self:this,function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var a=e[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(o,a,function(e){return t[e]}.bind(null,a));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(e,n){e.exports=t},function(t,e,n){"use strict";n.r(e);var o=n(0),a=n.n(o);a.a.__defineMacro("\\ce",function(t){return r(t.consumeArgs(1)[0],"ce")}),a.a.__defineMacro("\\pu",function(t){return r(t.consumeArgs(1)[0],"pu")}),a.a.__defineMacro("\\tripledash","{\\vphantom{-}\\raisebox{2.56mu}{$\\mkern2mu\\tiny\\text{-}\\mkern1mu\\text{-}\\mkern1mu\\text{-}\\mkern2mu$}}");var r=function(t,e){for(var n="",o=t[t.length-1].loc.start,a=t.length-1;a>=0;a--)t[a].loc.start>o&&(n+=" ",o=t[a].loc.start),n+=t[a].text,o+=t[a].text.length;return c.go(i.go(n,e))},i={go:function(t,e){if(!t)return[];void 0===e&&(e="ce");var n,o="0",a={};a.parenthesisLevel=0,t=(t=(t=t.replace(/\n/g," ")).replace(/[\u2212\u2013\u2014\u2010]/g,"-")).replace(/[\u2026]/g,"...");for(var r=10,c=[];;){n!==t?(r=10,n=t):r--;var u=i.stateMachines[e],p=u.transitions[o]||u.transitions["*"];t:for(var s=0;s<p.length;s++){var _=i.patterns.match_(p[s].pattern,t);if(_){for(var d=p[s].task,m=0;m<d.action_.length;m++){var l;if(u.actions[d.action_[m].type_])l=u.actions[d.action_[m].type_](a,_.match_,d.action_[m].option);else{if(!i.actions[d.action_[m].type_])throw["MhchemBugA","mhchem bug A. Please report. ("+d.action_[m].type_+")"];l=i.actions[d.action_[m].type_](a,_.match_,d.action_[m].option)}i.concatArray(c,l)}if(o=d.nextState||o,!(t.length>0))return c;if(d.revisit||(t=_.remainder),!d.toContinue)break t}}if(r<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(t,e){if(e)if(Array.isArray(e))for(var n=0;n<e.length;n++)t.push(e[n]);else t.push(e)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(t){var e=t.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:([eE]|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return e&&e[0]?{match_:e.splice(1),remainder:t.substr(e[0].length)}:null},"(-)(9)^(-9)":function(t){var e=t.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return e&&e[0]?{match_:e.splice(1),remainder:t.substr(e[0].length)}:null},"state of aggregation $":function(t){var e=i.patterns.findObserveGroups(t,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(e&&e.remainder.match(/^($|[\s,;\)\]\}])/))return e;var n=t.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return n?{match_:n[0],remainder:t.substr(n[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":Line truncated
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
/*! lazysizes - v5.2.2 */
|
||||||
|
|
||||||
|
!function(e){var t=function(u,D,f){"use strict";var k,H;if(function(){var e;var t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};H=u.lazySizesConfig||u.lazysizesConfig||{};for(e in t){if(!(e in H)){H[e]=t[e]}}}(),!D||!D.getElementsByClassName){return{init:function(){},cfg:H,noSupport:true}}var O=D.documentElement,a=u.HTMLPictureElement,P="addEventListener",$="getAttribute",q=u[P].bind(u),I=u.setTimeout,U=u.requestAnimationFrame||I,l=u.requestIdleCallback,j=/^picture$/i,r=["load","error","lazyincluded","_lazyloaded"],i={},G=Array.prototype.forEach,J=function(e,t){if(!i[t]){i[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")}return i[t].test(e[$]("class")||"")&&i[t]},K=function(e,t){if(!J(e,t)){e.setAttribute("class",(e[$]("class")||"").trim()+" "+t)}},Q=function(e,t){var i;if(i=J(e,t)){e.setAttribute("class",(e[$]("class")||"").replace(i," "))}},V=function(t,i,e){var a=e?P:"removeEventListener";if(e){V(t,i)}r.forEach(function(e){t[a](e,i)})},X=function(e,t,i,a,r){var n=D.createEvent("Event");if(!i){i={}}i.instance=k;n.initEvent(t,!a,!r);n.detail=i;e.dispatchEvent(n);return n},Y=function(e,t){var i;if(!a&&(i=u.picturefill||H.pf)){if(t&&t.src&&!e[$]("srcset")){e.setAttribute("srcset",t.src)}i({reevaluate:true,elements:[e]})}else if(t&&t.src){e.src=t.src}},Z=function(e,t){return(getComputedStyle(e,null)||{})[t]},s=function(e,t,i){i=i||e.offsetWidth;while(i<H.minSize&&t&&!e._lazysizesWidth){i=t.offsetWidth;t=t.parentNode}return i},ee=function(){var i,a;var t=[];var r=[];var n=t;var s=function(){var e=n;n=t.length?r:t;i=true;a=false;while(e.length){e.shift()()}i=false};var e=function(e,t){if(i&&!t){e.apply(this,arguments)}else{n.push(e);if(!a){a=true;(D.hidden?I:U)(s)}}};e._lsFlush=s;return e}(),te=function(i,e){return e?function(){ee(i)}:function(){var e=this;var t=arguments;ee(function(){i.apply(e,t)})}},ie=function(e){var i;var a=0;var r=H.throttleDelay;var n=H.ricTimeout;var t=function(){i=false;a=f.now();e()};var s=l&&n>49?function(){l(t,{timeout:n});if(n!==H.ricTimeout){n=H.ricTimeout}}:te(function(){I(t)},true);return function(e){var t;if(e=e===true){n=33}if(i){return}i=true;t=r-(f.now()-a);if(t<0){t=0}if(e||t<9){s()}else{I(s,t)}}},ae=function(e){var t,i;var a=99;var r=function(){t=null;e()};var n=function(){var e=f.now()-i;if(e<a){I(n,a-e)}else{(l||r)(r)}};return function(){i=f.now();if(!t){t=I(n,a)}}},e=function(){var v,m,c,h,e;var y,z,g,p,C,b,A;var n=/^img$/i;var d=/^iframe$/i;var E="onscroll"in u&&!/(gle|ing)bot/.test(navigator.userAgent);var _=0;var w=0;var N=0;var M=-1;var x=function(e){N--;if(!e||N<0||!e.target){N=0}};var W=function(e){if(A==null){A=Z(D.body,"visibility")=="hidden"}return A||!(Z(e.parentNode,"visibility")=="hidden"&&Z(e,"visibility")=="hidden")};var S=function(e,t){var i;var a=e;var r=W(e);g-=t;b+=t;p-=t;C+=t;while(r&&(a=a.offsetParent)&&a!=D.body&&a!=O){r=(Z(a,"opacity")||1)>0;if(r&&Z(a,"overflow")!="visible"){i=a.getBoundingClientRect();r=C>i.left&&p<i.right&&b>i.top-1&&g<i.bottom+1}}return r};var t=function(){var e,t,i,a,r,n,s,l,o,u,f,c;var d=k.elements;if((h=H.loadMode)&&N<8&&(e=d.length)){t=0;M++;for(;t<e;t++){if(!d[t]||d[t]._lazyRace){continue}if(!E||k.prematureUnveil&&k.prematureUnveil(d[t])){R(d[t]);continue}if(!(l=d[t][$]("data-expand"))||!(n=l*1)){n=w}if(!u){u=!H.expand||H.expand<1?O.clientHeight>500&&O.clientWidth>500?500:370:H.expand;k._defEx=u;f=u*H.expFactor;c=H.hFac;A=null;if(w<f&&N<1&&M>2&&h>2&&!D.hidden){w=f;M=0}else if(h>1&&M>1&&N<6){w=u}else{w=_}}if(o!==n){y=innerWidth+n*c;z=innerHeight+n;s=n*-1;o=n}i=d[t].getBoundingClientRect();if((b=i.bottom)>=s&&(g=i.top)<=z&&(C=i.right)>=s*c&&(p=i.left)<=y&&(b||C||p||g)&&(H.loadHidden||W(d[t]))&&(m&&N<3&&!l&&(h<3||M<4)||S(d[t],n))){R(d[t]);r=true;if(N>9){break}}else if(!r&&m&&!a&&N<4&&M<4&&h>2&&(v[0]||H.preloadAfterLoad)&&(v[0]||!l&&(b||C||p||g||d[t][$](H.sizesAttr)!="auto"))){a=v[0]||d[t]}}if(a&&!r){R(a)}}};var i=ie(t);var B=function(e){var t=e.target;if(t._lazyCache){delete t._lazyCache;return}x(e);K(t,H.loadedClass);Q(t,H.loadingClass);V(t,L);X(t,"lazyloaded")};var a=te(B);var L=function(e){a({target:e.target})};var T=function(t,i){try{t.contentWindow.location.replace(i)}catch(e){t.src=i}};var F=function(e){var t;var i=e[$](H.srcsetAttr);if(t=H.customMedia[e[$]("data-media")||e[$]("media")]){e.setAttribute("media",t)}if(i){e.setAttribute("srcset",i)}};var s=te(function(t,e,i,a,r){var n,s,l,o,u,f;if(!(u=X(t,"lazybeforeunveil",e)).defaultPrevented){if(a){if(i){K(t,H.autosizesClass)}else{t.setAttribute("sizes",a)}}s=t[$](H.srcsetAttr);n=t[$](H.srcAttr);if(r){l=t.parentNode;o=l&&j.test(l.nodeName||"")}f=e.firesLoad||"src"in t&&(s||n||o);u={target:t};K(t,H.loadingClass);if(f){clearTimeout(c);c=I(x,2500);V(t,L,true)}if(o){G.call(l.getElementsByTagName("sLine truncated
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**!
|
||||||
|
* lg-thumbnail.js | 1.2.0 | May 20th 2020
|
||||||
|
* http://sachinchoolur.github.io/lg-thumbnail.js
|
||||||
|
* Copyright (c) 2016 Sachin N;
|
||||||
|
* @license GPLv3
|
||||||
|
*/
|
||||||
|
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.LgThumbnail=t()}}(function(){var t,e,i;return function(){function t(e,i,o){function u(s,l){if(!i[s]){if(!e[s]){var h="function"==typeof require&&require;if(!l&&h)return h(s,!0);if(r)return r(s,!0);var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}var a=i[s]={exports:{}};e[s][0].call(a.exports,function(t){return u(e[s][1][t]||t)},a,a.exports,t,e,i,o)}return i[s].exports}for(var r="function"==typeof require&&require,s=0;s<o.length;s++)u(o[s]);return u}return t}()({1:[function(e,i,o){!function(e,i){if("function"==typeof t&&t.amd)t([],i);else if(void 0!==o)i();else{var u={exports:{}};i(),e.lgThumbnail=u.exports}}(this,function(){"use strict";var t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},e={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",thumbWidth:100,thumbContHeight:100,thumbMargin:5,exThumbImage:!1,showThumbByDefault:!0,toggleThumb:!0,pullCaptionUp:!0,enableThumbDrag:!0,enableThumbSwipe:!0,swipeThreshold:50,loadYoutubeThumbnail:!0,youtubeThumbSize:1,loadVimeoThumbnail:!0,vimeoThumbSize:"thumbnail_small",loadDailymotionThumbnail:!0},i=function i(o){return this.el=o,this.core=window.lgData[this.el.getAttribute("lg-uid")],this.core.s=t({},e,this.core.s),this.thumbOuter=null,this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.items.length*(this.core.s.thumbWidth+this.core.s.thumbMargin),this.thumbIndex=this.core.index,this.left=0,this.init(),this};i.prototype.init=function(){var t=this;this.core.s.thumbnail&&this.core.items.length>1&&(this.core.s.showThumbByDefault&&setTimeout(function(){utils.addClass(t.core.outer,"lg-thumb-open")},700),this.core.s.pullCaptionUp&&utils.addClass(this.core.outer,"lg-pull-caption-up"),this.build(),this.core.s.animateThumb?(this.core.s.enableThumbDrag&&!this.core.isTouch&&this.core.doCss()&&this.enableThumbDrag(),this.core.s.enableThumbSwipe&&this.core.isTouch&&this.core.doCss()&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toggle(),this.thumbkeyPress())},i.prototype.build=function(){function t(t,u,r){var s=e.core.isVideo(t,r)||{},l,h="";s.youtube||s.vimeo||s.dailymotion?s.youtube?l=e.core.s.loadYoutubeThumbnail?"//img.youtube.com/vi/"+s.youtube[1]+"/"+e.core.s.youtubeThumbSize+".jpg":u:s.vimeo?e.core.s.loadVimeoThumbnail?(l="//i.vimeocdn.com/video/error_"+o+".jpg",h=s.vimeo[1]):l=u:s.dailymotion&&(l=e.core.s.loadDailymotionThumbnail?"//www.dailymotion.com/thumbnail/video/"+s.dailymotion[1]:u):l=u,i+='<div data-vimeo-id="'+h+'" class="lg-thumb-item" style="width:'+e.core.s.thumbWidth+"px; margin-right: "+e.core.s.thumbMargin+'px"><img src="'+l+'" /></div>',h=""}var e=this,i="",o="",u,r='<div class="lg-thumb-outer"><div class="lg-thumb group"></div></div>';switch(this.core.s.vimeoThumbSize){case"thumbnail_large":o="640";break;case"thumbnail_medium":o="200x150";break;case"thumbnail_small":o="100x75"}if(utils.addClass(e.core.outer,"lg-has-thumb"),e.core.outer.querySelector(".lg").insertAdjacentHTML("beforeend",r),e.thumbOuter=e.core.outer.querySelector(".lg-thumb-outer"),e.thumbOuterWidth=e.thumbOuter.offsetWidth,e.core.s.animateThumb&&(e.core.outer.querySelector(".lg-thumb").style.width=e.thumbTotalWidth+"px",e.core.outer.querySelector(".lg-thumb").style.position="relative"),this.core.s.animateThumb&&(e.thumbOuter.style.height=e.core.s.thumbContHeight+"px"),e.core.s.dynamic)for(var s=0;s<e.core.s.dynamicEl.length;s++)t(e.core.s.dynamicEl[s].src,e.core.s.dynamicEl[s].thumb,s);else for(var l=0;l<e.core.items.length;l++)e.core.s.exThumbImage?t(e.core.items[l].getAttribute("href")||e.core.items[l].getAttribute("data-src"),e.core.items[l].getAttribute(e.core.s.exThumbImage),l):t(e.core.items[l].getAttribute("href")||e.core.items[l].getAttribute("data-src"),e.core.items[l].querySelector("img").getAttribute("src"),l);e.core.outer.querySelector(".lg-thumb").innerHTML=i,u=e.core.outer.querySelectorAll(".lg-thumb-item");for(var h=0;h<u.length;h++)!function(t){var i=u[t],o=i.getAttribute("data-vimeo-id");if(o){window["lgJsonP"+e.el.getAttribute("lg-uid")+h]=function(t){i.querySelector("img").setAttribute("src",t[0][e.core.s.vimeoThumbSize])};var r=document.createElement("script");r.className="lg-script",r.src="//www.vimeo.com/api/v2/video/"+o+".json?callback=lgJsonP"+e.el.getAttribute("lg-uid")+h,document.body.appendChild(r)}}(h);utils.addClass(u[e.core.index],"active"),utils.on(e.core.el,"onBeforeSlide.lgtm",function(){for(var t=0;t<u.length;t++)utils.removeClass(u[t],"active");utils.addClass(u[e.core.index],"active")});for(var n=0;n<u.length;n++)!function(t){utils.on(u[t],"click.lg touchend.lg",function(){setTimeout(function(){(e.thumbClickLine truncated
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**!
|
||||||
|
* lg-zoom.js | 1.2.0 | May 20th 2020
|
||||||
|
* http://sachinchoolur.github.io/lg-zoom.js
|
||||||
|
* Copyright (c) 2016 Sachin N;
|
||||||
|
* @license GPLv3
|
||||||
|
*/
|
||||||
|
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.LgZoom=e()}}(function(){var e,t,o;return function(){function e(t,o,r){function l(a,s){if(!o[a]){if(!t[a]){var n="function"==typeof require&&require;if(!s&&n)return n(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=o[a]={exports:{}};t[a][0].call(c.exports,function(e){return l(t[a][1][e]||e)},c,c.exports,e,t,o,r)}return o[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)l(r[a]);return l}return e}()({1:[function(t,o,r){!function(t,o){if("function"==typeof e&&e.amd)e([],o);else if(void 0!==r)o();else{var l={exports:{}};o(),t.lgZoom=l.exports}}(this,function(){"use strict";var e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},t=function e(){var t=!1,o=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return o&&parseInt(o[2],10)<54&&(t=!0),t},o={scale:1,zoom:!0,actualSize:!0,enableZoomAfter:300,useLeftForZoom:t()},r=function t(r){return this.el=r,this.core=window.lgData[this.el.getAttribute("lg-uid")],this.core.s=e({},o,this.core.s),this.core.s.zoom&&this.core.doCss()&&(this.init(),this.zoomabletimeout=!1,this.pageX=window.innerWidth/2,this.pageY=window.innerHeight/2+(document.documentElement.scrollTop||document.body.scrollTop)),this};r.prototype.init=function(){var e=this,t='<button aria-label="Zoom in" id="lg-zoom-in" class="lg-icon"></button><button aria-label="Zoom out" id="lg-zoom-out" class="lg-icon"></button>';e.core.s.actualSize&&(t+='<button aria-label="Actual size" id="lg-actual-size" class="lg-icon"></button>'),e.core.s.useLeftForZoom?utils.addClass(e.core.outer,"lg-use-left-for-zoom"):utils.addClass(e.core.outer,"lg-use-transition-for-zoom"),this.core.outer.querySelector(".lg-toolbar").insertAdjacentHTML("beforeend",t),utils.on(e.core.el,"onSlideItemLoad.lgtmzoom",function(t){var o=e.core.s.enableZoomAfter+t.detail.delay;utils.hasClass(document.body,"lg-from-hash")&&t.detail.delay?o=0:utils.removeClass(document.body,"lg-from-hash"),e.zoomabletimeout=setTimeout(function(){utils.addClass(e.core.___slide[t.detail.index],"lg-zoomable")},o+30)});var o=1,r=function t(o){var r=e.core.outer.querySelector(".lg-current .lg-image"),l,i,a=(window.innerWidth-r.clientWidth)/2,s=(window.innerHeight-r.clientHeight)/2+(document.documentElement.scrollTop||document.body.scrollTop);l=e.pageX-a,i=e.pageY-s;var n=(o-1)*l,u=(o-1)*i;utils.setVendor(r,"Transform","scale3d("+o+", "+o+", 1)"),r.setAttribute("data-scale",o),e.core.s.useLeftForZoom?(r.parentElement.style.left=-n+"px",r.parentElement.style.top=-u+"px"):utils.setVendor(r.parentElement,"Transform","translate3d(-"+n+"px, -"+u+"px, 0)"),r.parentElement.setAttribute("data-x",n),r.parentElement.setAttribute("data-y",u)},l=function t(){o>1?utils.addClass(e.core.outer,"lg-zoomed"):e.resetZoom(),o<1&&(o=1),r(o)},i=function t(r,i,a,s){var n=i.clientWidth,u;u=e.core.s.dynamic?e.core.s.dynamicEl[a].width||i.naturalWidth||n:e.core.items[a].getAttribute("data-width")||i.naturalWidth||n;var c;utils.hasClass(e.core.outer,"lg-zoomed")?o=1:u>n&&(c=u/n,o=c||2),s?(e.pageX=window.innerWidth/2,e.pageY=window.innerHeight/2+(document.documentElement.scrollTop||document.body.scrollTop)):(e.pageX=r.pageX||r.targetTouches[0].pageX,e.pageY=r.pageY||r.targetTouches[0].pageY),l(),setTimeout(function(){utils.removeClass(e.core.outer,"lg-grabbing"),utils.addClass(e.core.outer,"lg-grab")},10)},a=!1;utils.on(e.core.el,"onAferAppendSlide.lgtmzoom",function(t){var o=t.detail.index,r=e.core.___slide[o].querySelector(".lg-image");e.core.isTouch||utils.on(r,"dblclick",function(e){i(e,r,o)}),e.core.isTouch&&utils.on(r,"touchstart",function(e){a?(clearTimeout(a),a=null,i(e,r,o)):a=setTimeout(function(){a=null},300),e.preventDefault()})}),utils.on(window,"resize.lgzoom scroll.lgzoom orientationchange.lgzoom",function(){e.pageX=window.innerWidth/2,e.pageY=window.innerHeight/2+(document.documentElement.scrollTop||document.body.scrollTop),r(o)}),utils.on(document.getElementById("lg-zoom-out"),"click.lg",function(){e.core.outer.querySelector(".lg-current .lg-image")&&(o-=e.core.s.scale,l())}),utils.on(document.getElementById("lg-zoom-in"),"click.lg",function(){e.core.outer.querySelector(".lg-current .lg-image")&&(o+=e.core.s.scale,l())}),utils.on(document.getElementById("lg-actual-size"),"click.lg",function(t){i(t,e.core.___slide[e.core.index].querySelector(".lg-image"),e.core.index,!0)}),utils.on(e.core.el,"onBeforeSlide.lgtm",function(){o=1,e.resetZoom()}),e.core.isTouch||e.zoomDrag(),e.core.isTouch&&e.zoomSwipe()},r.prototype.resetZoom=function(){utils.removeClass(this.core.outer,"lg-zoomed");for(var e=0;e<this.core.___slide.length;e++)thisLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
@font-face{font-family:lg;src:url(../fonts/lg.eot?n1z373);src:url(../fonts/lg.eot?#iefixn1z373) format("embedded-opentype"),url(../fonts/lg.woff?n1z373) format("woff"),url(../fonts/lg.ttf?n1z373) format("truetype"),url(../fonts/lg.svg?n1z373#lg) format("svg");font-weight:400;font-style:normal}.lg-icon{font-family:lg;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.lg-actions .lg-next,.lg-actions .lg-prev{border-radius:2px;color:#999;cursor:pointer;display:block;font-size:22px;margin-top:-10px;padding:8px 10px 9px;position:absolute;top:50%;z-index:1080;outline:0;border:none;background-color:transparent}.lg-actions .lg-next.disabled,.lg-actions .lg-prev.disabled{pointer-events:none;opacity:.5}.lg-actions .lg-next:hover,.lg-actions .lg-prev:hover{color:#FFF}.lg-actions .lg-next{right:20px}.lg-actions .lg-next:before{content:"\e095"}.lg-actions .lg-prev{left:20px}.lg-actions .lg-prev:after{content:"\e094"}@-webkit-keyframes lg-right-end{0%,100%{left:0}50%{left:-30px}}@-moz-keyframes lg-right-end{0%,100%{left:0}50%{left:-30px}}@-ms-keyframes lg-right-end{0%,100%{left:0}50%{left:-30px}}@keyframes lg-right-end{0%,100%{left:0}50%{left:-30px}}@-webkit-keyframes lg-left-end{0%,100%{left:0}50%{left:30px}}@-moz-keyframes lg-left-end{0%,100%{left:0}50%{left:30px}}@-ms-keyframes lg-left-end{0%,100%{left:0}50%{left:30px}}@keyframes lg-left-end{0%,100%{left:0}50%{left:30px}}.lg-outer.lg-right-end .lg-object{-webkit-animation:lg-right-end .3s;-o-animation:lg-right-end .3s;animation:lg-right-end .3s;position:relative}.lg-outer.lg-left-end .lg-object{-webkit-animation:lg-left-end .3s;-o-animation:lg-left-end .3s;animation:lg-left-end .3s;position:relative}.lg-toolbar{z-index:1082;left:0;position:absolute;top:0;width:100%;background-color:rgba(0,0,0,.45)}.lg-toolbar .lg-icon{color:#999;cursor:pointer;float:right;font-size:24px;height:47px;line-height:27px;padding:10px 0;text-align:center;width:50px;text-decoration:none!important;outline:0;background:0 0;border:none;box-shadow:none;-webkit-transition:color .2s linear;-o-transition:color .2s linear;transition:color .2s linear}.lg-toolbar .lg-icon:hover{color:#FFF}.lg-toolbar .lg-close:after{content:"\e070"}.lg-toolbar .lg-download:after{content:"\e0f2"}.lg-sub-html{background-color:rgba(0,0,0,.45);bottom:0;color:#EEE;font-size:16px;left:0;padding:10px 40px;position:fixed;right:0;text-align:center;z-index:1080}.lg-sub-html h4{margin:0;font-size:13px;font-weight:700}.lg-sub-html p{font-size:12px;margin:5px 0 0}#lg-counter{color:#999;display:inline-block;font-size:16px;padding-left:20px;padding-top:12px;vertical-align:middle}.lg-next,.lg-prev,.lg-toolbar{opacity:1;-webkit-transition:-webkit-transform .35s cubic-bezier(0,0,.25,1) 0s,opacity .35s cubic-bezier(0,0,.25,1) 0s,color .2s linear;-moz-transition:-moz-transform .35s cubic-bezier(0,0,.25,1) 0s,opacity .35s cubic-bezier(0,0,.25,1) 0s,color .2s linear;-o-transition:-o-transform .35s cubic-bezier(0,0,.25,1) 0s,opacity .35s cubic-bezier(0,0,.25,1) 0s,color .2s linear;transition:transform .35s cubic-bezier(0,0,.25,1) 0s,opacity .35s cubic-bezier(0,0,.25,1) 0s,color .2s linear}.lg-hide-items .lg-prev{opacity:0;-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}.lg-hide-items .lg-next{opacity:0;-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}.lg-hide-items .lg-toolbar{opacity:0;-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-object{-webkit-transform:scale3d(.5,.5,.5);transform:scale3d(.5,.5,.5);opacity:0;-webkit-transition:-webkit-transform 250ms cubic-bezier(0,0,.25,1) 0s,opacity 250ms cubic-bezier(0,0,.25,1)!important;-moz-transition:-moz-transform 250ms cubic-bezier(0,0,.25,1) 0s,opacity 250ms cubic-bezier(0,0,.25,1)!important;-o-transition:-o-transform 250ms cubic-bezier(0,0,.25,1) 0s,opacity 250ms cubic-bezier(0,0,.25,1)!important;transition:transform 250ms cubic-bezier(0,0,.25,1) 0s,opacity 250ms cubic-bezier(0,0,.25,1)!important;-webkit-transform-origin:50% 50%;-moz-transform-origin:50% 50%;-ms-transform-origin:50% 50%;transform-origin:50% 50%}body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item.lg-complete .lg-object{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1);opacity:1}.lg-outer .lg-thumb-outer{background-color:#0D0A0A;bottom:0;position:absolute;width:100%;z-index:1080;max-height:350px;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1) 0s;-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1) 0s;-o-transition:-o-transform .25s cubic-bezier(0,0,.25,1) 0s;transition:transform .25s cubic-bezier(0,0,.25,1) 0s}.lg-outer .lg-thumb-outer.lg-grab .lg-thumb-item{cursor:-webkit-grab;cursor:-moz-grab;cursor:-o-grab;cursor:-ms-grab;cursor:grab}.lg-outer .lg-thumb-outer.lg-grabbing .lg-tLine truncated
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**!
|
||||||
|
* lightgallery.js | 1.2.0 | May 20th 2020
|
||||||
|
* http://sachinchoolur.github.io/lightgallery.js/
|
||||||
|
* Copyright (c) 2016 Sachin N;
|
||||||
|
* @license GPLv3
|
||||||
|
*/
|
||||||
|
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Lightgallery=e()}}(function(){var e,t,s;return function(){function e(t,s,l){function i(r,a){if(!s[r]){if(!t[r]){var d="function"==typeof require&&require;if(!a&&d)return d(r,!0);if(o)return o(r,!0);var n=new Error("Cannot find module '"+r+"'");throw n.code="MODULE_NOT_FOUND",n}var u=s[r]={exports:{}};t[r][0].call(u.exports,function(e){return i(t[r][1][e]||e)},u,u.exports,e,t,s,l)}return s[r].exports}for(var o="function"==typeof require&&require,r=0;r<l.length;r++)i(l[r]);return i}return e}()({1:[function(t,s,l){!function(t,s){if("function"==typeof e&&e.amd)e(["exports"],s);else if(void 0!==l)s(l);else{var i={exports:{}};s(i.exports),t.lgUtils=i.exports}}(this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t={getAttribute:function e(t,s){return t[s]},setAttribute:function e(t,s,l){t[s]=l},wrap:function e(t,s){if(t){var l=document.createElement("div");l.className=s,t.parentNode.insertBefore(l,t),t.parentNode.removeChild(t),l.appendChild(t)}},addClass:function e(t,s){t&&(t.classList?t.classList.add(s):t.className+=" "+s)},removeClass:function e(t,s){t&&(t.classList?t.classList.remove(s):t.className=t.className.replace(new RegExp("(^|\\b)"+s.split(" ").join("|")+"(\\b|$)","gi")," "))},hasClass:function e(t,s){return t.classList?t.classList.contains(s):new RegExp("(^| )"+s+"( |$)","gi").test(t.className)},setVendor:function e(t,s,l){t&&(t.style[s.charAt(0).toLowerCase()+s.slice(1)]=l,t.style["webkit"+s]=l,t.style["moz"+s]=l,t.style["ms"+s]=l,t.style["o"+s]=l)},trigger:function e(t,s){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t){var i=new CustomEvent(s,{detail:l});t.dispatchEvent(i)}},Listener:{uid:0},on:function e(s,l,i){var o=this;s&&l.split(" ").forEach(function(e){var l=o.getAttribute(s,"lg-event-uid")||"";t.Listener.uid++,l+="&"+t.Listener.uid,o.setAttribute(s,"lg-event-uid",l),t.Listener[e+t.Listener.uid]=i,s.addEventListener(e.split(".")[0],i,!1)})},off:function e(s,l){if(s){var i=this.getAttribute(s,"lg-event-uid");if(i){i=i.split("&");for(var o=0;o<i.length;o++)if(i[o]){var r=l+i[o];if("."===r.substring(0,1))for(var a in t.Listener)t.Listener.hasOwnProperty(a)&&a.split(".").indexOf(r.split(".")[1])>-1&&(s.removeEventListener(a.split(".")[0],t.Listener[a]),this.setAttribute(s,"lg-event-uid",this.getAttribute(s,"lg-event-uid").replace("&"+i[o],"")),delete t.Listener[a]);else s.removeEventListener(r.split(".")[0],t.Listener[r]),this.setAttribute(s,"lg-event-uid",this.getAttribute(s,"lg-event-uid").replace("&"+i[o],"")),delete t.Listener[r]}}}},param:function e(t){return Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&")}};e.default=t})},{}],2:[function(t,s,l){!function(s,i){if("function"==typeof e&&e.amd)e(["./lg-utils"],i);else if(void 0!==l)i(t("./lg-utils"));else{var o={exports:{}};i(s.lgUtils),s.lightgallery=o.exports}}(this,function(e){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(this.el=e,this.s=i({},o,t),this.s.dynamic&&"undefined"!==this.s.dynamicEl&&this.s.dynamicEl.constructor===Array&&!this.s.dynamicEl.length)throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.modules={},this.lGalleryOn=!1,this.lgBusy=!1,this.hideBartimeout=!1,this.isTouch="ontouchstart"in document.documentElement,this.s.slideEndAnimatoin&&(this.s.hideControlOnEnd=!1),this.items=[],this.s.dynamic?this.items=this.s.dynamicEl:"this"===this.s.selector?this.items.push(this.el):""!==this.s.selector?this.s.selectWithin?this.items=document.querySelector(this.s.selectWithin).querySelectorAll(this.s.selector):this.items=this.el.querySelectorAll(this.s.selector):this.items=this.el.children,this.___slide="",this.outer="",this.init(),this}var l=t(e),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(e[l]=s[l])}return e};!function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var s=document.createEvent("CustomEvent");return s.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),s}if("function"==typeof window.CustomEvent)return!1;e.prototype=window.Event.prototype,window.CustomEvent=e}(),window.utils=l.default,window.lgData={uid:0},window.lgModules={};var o={mode:"lg-slide",cssEasing:"ease",easing:"linear",speed:600,height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:150,hideBarsDelay:6e3,useLeft:!1,ariaLabelledby:"",ariaDescribedby:"",closable:!0,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimatoin:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:1,showAfterLoad:!0,selector:"",seLine truncated
|
||||||
@@ -0,0 +1,206 @@
|
|||||||
|
/**
|
||||||
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
|
*/
|
||||||
|
(function (root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD. Register as an anonymous module.
|
||||||
|
define(factory)
|
||||||
|
} else if (typeof exports === 'object') {
|
||||||
|
/**
|
||||||
|
* Node. Does not work with strict CommonJS, but
|
||||||
|
* only CommonJS-like environments that support module.exports,
|
||||||
|
* like Node.
|
||||||
|
*/
|
||||||
|
module.exports = factory()
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory()(root.lunr);
|
||||||
|
}
|
||||||
|
}(this, function () {
|
||||||
|
/**
|
||||||
|
* Just return a value to define the module export.
|
||||||
|
* This example returns an object, but the module
|
||||||
|
* can return a function as the exported value.
|
||||||
|
*/
|
||||||
|
|
||||||
|
return function(lunr) {
|
||||||
|
// TinySegmenter 0.1 -- Super compact Japanese tokenizer in Javascript
|
||||||
|
// (c) 2008 Taku Kudo <taku@chasen.org>
|
||||||
|
// TinySegmenter is freely distributable under the terms of a new BSD licence.
|
||||||
|
// For details, see http://chasen.org/~taku/software/TinySegmenter/LICENCE.txt
|
||||||
|
|
||||||
|
function TinySegmenter() {
|
||||||
|
var patterns = {
|
||||||
|
"[一二三四五六七八九十百千万億兆]":"M",
|
||||||
|
"[一-龠々〆ヵヶ]":"H",
|
||||||
|
"[ぁ-ん]":"I",
|
||||||
|
"[ァ-ヴーア-ン゙ー]":"K",
|
||||||
|
"[a-zA-Za-zA-Z]":"A",
|
||||||
|
"[0-90-9]":"N"
|
||||||
|
}
|
||||||
|
this.chartype_ = [];
|
||||||
|
for (var i in patterns) {
|
||||||
|
var regexp = new RegExp(i);
|
||||||
|
this.chartype_.push([regexp, patterns[i]]);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.BIAS__ = -332
|
||||||
|
this.BC1__ = {"HH":6,"II":2461,"KH":406,"OH":-1378};
|
||||||
|
this.BC2__ = {"AA":-3267,"AI":2744,"AN":-878,"HH":-4070,"HM":-1711,"HN":4012,"HO":3761,"IA":1327,"IH":-1184,"II":-1332,"IK":1721,"IO":5492,"KI":3831,"KK":-8741,"MH":-3132,"MK":3334,"OO":-2920};
|
||||||
|
this.BC3__ = {"HH":996,"HI":626,"HK":-721,"HN":-1307,"HO":-836,"IH":-301,"KK":2762,"MK":1079,"MM":4034,"OA":-1652,"OH":266};
|
||||||
|
this.BP1__ = {"BB":295,"OB":304,"OO":-125,"UB":352};
|
||||||
|
this.BP2__ = {"BO":60,"OO":-1762};
|
||||||
|
this.BQ1__ = {"BHH":1150,"BHM":1521,"BII":-1158,"BIM":886,"BMH":1208,"BNH":449,"BOH":-91,"BOO":-2597,"OHI":451,"OIH":-296,"OKA":1851,"OKH":-1020,"OKK":904,"OOO":2965};
|
||||||
|
this.BQ2__ = {"BHH":118,"BHI":-1159,"BHM":466,"BIH":-919,"BKK":-1720,"BKO":864,"OHH":-1139,"OHM":-181,"OIH":153,"UHI":-1146};
|
||||||
|
this.BQ3__ = {"BHH":-792,"BHI":2664,"BII":-299,"BKI":419,"BMH":937,"BMM":8335,"BNN":998,"BOH":775,"OHH":2174,"OHM":439,"OII":280,"OKH":1798,"OKI":-793,"OKO":-2242,"OMH":-2402,"OOO":11699};
|
||||||
|
this.BQ4__ = {"BHH":-3895,"BIH":3761,"BII":-4654,"BIK":1348,"BKK":-1806,"BMI":-3385,"BOO":-12396,"OAH":926,"OHH":266,"OHK":-2036,"ONN":-973};
|
||||||
|
this.BW1__ = {",と":660,",同":727,"B1あ":1404,"B1同":542,"、と":660,"、同":727,"」と":1682,"あっ":1505,"いう":1743,"いっ":-2055,"いる":672,"うし":-4817,"うん":665,"から":3472,"がら":600,"こう":-790,"こと":2083,"こん":-1262,"さら":-4143,"さん":4573,"した":2641,"して":1104,"すで":-3399,"そこ":1977,"それ":-871,"たち":1122,"ため":601,"った":3463,"つい":-802,"てい":805,"てき":1249,"でき":1127,"です":3445,"では":844,"とい":-4915,"とみ":1922,"どこ":3887,"ない":5713,"なっ":3015,"など":7379,"なん":-1113,"にし":2468,"には":1498,"にも":1671,"に対":-912,"の一":-501,"の中":741,"ませ":2448,"まで":1711,"まま":2600,"まる":-2155,"やむ":-1947,"よっ":-2565,"れた":2369,"れで":-913,"をし":1860,"を見":731,"亡く":-1886,"京都":2558,"取り":-2784,"大き":-2604,"大阪":1497,"平方":-2314,"引き":-1336,"日本":-195,"本当":-2423,"毎日":-2113,"目指":-724,"B1あ":1404,"B1同":542,"」と":1682};
|
||||||
|
this.BW2__ = {"..":-11822,"11":-669,"――":-5730,"−−":-13175,"いう":-1609,"うか":2490,"かし":-1350,"かも":-602,"から":-7194,"かれ":4612,"がい":853,"がら":-3198,"きた":1941,"くな":-1597,"こと":-8392,"この":-4193,"させ":4533,"され":13168,"さん":-3977,"しい":-1819,"しか":-545,"した":5078,"して":972,"しな":939,"その":-3744,"たい":-1253,"たた":-662,"ただ":-3857,"たち":-786,"たと":1224,"たは":-939,"った":4589,"って":1647,"っと":-2094,"てい":6144,"てき":3640,"てく":2551,"ては":-3110,"ても":-3065,"でい":2666,"でき":-1528,"でし":-3828,"です":-4761,"でも":-4203,"とい":1890,"とこ":-1746,"とと":-2279,"との":720,"とみ":5168,"とも":-3941,"ない":-2488,"なが":-1313,"など":-6509,"なの":2614,"なん":3099,"にお":-1615,"にし":2748,"にな":2454,"によ":-7236,"に対":-14943,"に従":-4688,"に関":-11388,"のか":2093,"ので":-7059,"のに":-6041,"のの":-6125,"はい":1073,"はが":-1033,"はず":-2532,"ばれ":1813,"まし":-1316,"まで":-6621,"まれ":5409,"めて":-3153,"もい":2230,"もの":-10713,"らか":-944,"らし":-1611,"らに":-1897,"りし":651,"りま":1620,"れた":4270,"れて":849,"れば":4114,"ろう":6067,"われ":7901,"を通":-11877,"んだ":728,"んな":-4115,"一人":602,"一方":-1375,"一日":970,"一部":-1051,"上が":-4479,"会社":-1116,"出て":2163,"分の":-7758,"同党":970,"同日":-913,"大阪":-2471,"委員":-1250,"少な":-1050,"年度":-8669,"年間":-1626,"府県":-2363,"手権":-1982,"新聞":-4066,"日新":-722,"日本":-7068,"日米":3372,"曜日":-601,"朝鮮":-2355,"本人":-2697,"東京":-1543,"然と":-1384,"社会":-1276,"立て":-990,"第に":-1612,"米国":-4268,"11":-669};
|
||||||
|
this.BW3__ = {"あた":-2194,"あり":719,"ある":3846,"い.":-1185,"い。":-1185,"いい":5308,"いえ":2079,"いく":3029,"いた":2056,"いっ":1883,"いる":5600,"いわ":1527,"うち":1117,"うと":4798,"えと":1454,"か.":2857,"か。":2857,"かけ":-743,"かっ":-4098,"かに":-669,"から":6520,"かり":-2670,"が,":1816,"が、":1816,"がき":-4855,"がけ":-1127,"がっ":-913,"がら":-4977,"がり":-2064,"きた":1645,"けど":1374,"こと":7397,"この":1542,"ころ":-2757,"さい":-714,"さを":976,"し,":1557,"し、":1557,"しい":-3714,"した":3562,"して":1449,"しな":2608,"しま":1200,"す.":-1310,"す。":-1310,"する":6521,"ず,":3426,"ず、":3426,"ずに":841,"そう":428,"た.":8875,"た。":8875,"たい":-594,"たの":812,"たり":-1183,"たる":-853,"だ.":4098,"だ。":4098,"だっ":1004,"った":-4748,"って":300,"てい":6240,"てお":855,"ても":302,"です":1437,"でに":-1482,"では":2295,"とう":-1387,"とし":2266,"との":541,"とも":-3543,"どう":4664,"ない":1796,"なく":-903,"など":2135,"に,":-1021,"に、":-1021,"にし":1771,"にな":1906,"には":2644,"の,":-724,"の、":-724,"の子":-1000,"は,":1337,"は、":1337,"べき":2181,"まし":1113,"ます":6943,"まっ":-1549,"まで":6154,"まれ":-793,"らし":1479,"られ":6820,"るる":3818,"れ,":854,"れ、":854,"れた":1850,"れて":1375,"れば":-3246,"れる":1091,"われ":-605,"んだ":606,"んで":798,"カ月":990,"会議":860,"入り":1232,"大会":2217,"始め":1681,"市":965,"新聞":-5055,"日,":974,"日、":974,"社会":2024,"カ月":990};
|
||||||
|
this.TC1__ = {"AAA":1093,"HHH":1029,"HHM":580,"HII":998,"HOH":-390,"HOM":-331,"IHI":1169,"IOH":-142,"IOI":-1015,"IOM":467,"MMH":187,"OOI":-1832};
|
||||||
|
this.TC2__ = {"HHO":2088,"HII":-1023,"HMM":-1154,"IHI":-1965,"KKH":703,"OII":-2649};
|
||||||
|
this.TC3__ = {"AAA":-294,"HHH":346,"HHI":-341,"HII":-1088,"HIK":731,"HOH":-1486,"IHH":128,"IHI":-3041,"IHO":-1935,"IIH":-825,"IIM":-1035,"IOI":-542,"KHH":-1216,"KKA":491,"KKH":-1217,"KOK":-1009,"MHH":-2694,"MHM":-457,"MHO":123,"MMH":-471,"NNH":-1689,"NNO":662,"OHO":-3393};
|
||||||
|
this.TC4__ = {"HHH":-203,"HHI":1344,"HHK":365,"HHM":-122,"HHN":182,"HHO":669,"HIH":804,"HII":679,"HOH":446,"IHH":695,"IHO":-2324,"IIH":321,"III":1497,"IIO":656,"IOO":54,"KAK":4845,"KKA":3386,"KKK":3065,"MHH":-405,"MHI":201,"MMH":-241,"MMM":661,"MOM":841};
|
||||||
|
this.TQ1__ = {"BHHH":-227,"BHHI":316,"BHIH":-132,"BIHH":60,"BIII":1595,"BNHH":-744,"BOHH":225,"BOOO":-908,"OAKK":482,"OHHH":281,"OHIH":249,"OIHI":200,"OIIH":-68};
|
||||||
|
this.TQ2__ = {"BIHH":-1401,"BIII":-1033,"BKAK":-543,"BOOO":-5591};
|
||||||
|
this.TQ3__ = {"BHHH":478,"BHHM":-1073,"BHIH":222,"BHII":-504,"BIIH":-116,"BIII":-105,"BMHI":-863,"BMHM":-464,"BOMH":620,"OHHH":346,"OHHI":1729,"OHII":997,"OHMH":481,"OIHH":623,"OIIH":1344,"OKAK":2792,"OKHH":587,"OKKA":679,"OOHH":110,"OOII":-685};
|
||||||
|
this.TQ4__ = {"BHHH":-721,"BHHM":-3604,"BHII":-966,"BIIH":-607,"BIII":-2181,"OAAA":-2763,"OAKK":180,"OHHH":-294,"OHHI":2446,"OHHO":480,"OHIH":-1573,"OIHH":1935,"OIHI":-493,"OIIH":626,"OIII":-4007,"OKAK":-8156};
|
||||||
|
this.TW1__ = {"につい":-4681,"東京都":2026};
|
||||||
|
this.TW2__ = {"ある程":-2049,"いった":-1256,"ころが":-2434,"しょう":3873,"その後":-4430,"だって":-1049,"ていた":1833,"として":-4657,"ともに":-4517,"もので":1882,"一気に":-792,"初めて":-1512,"同時に":-8097,"大きな":-1255,"対して":-2721,"社会党":-3216};
|
||||||
|
this.TW3__ = {"いただ":-1734,"してい":1314,"として":-4314,"につい":-5483,"にとっ":-5989,"に当た":-6247,"ので,":-727,"ので、":-727,"のもの":-600,"れから":-3752,"十二月":-2287};
|
||||||
|
this.TW4__ = {"いう.":8576,"いう。":8576,"からな":-2348,"してい":2958,"たが,":1516,"たが、":1516,"ている":1538,"という":1349,"ました":5543,"ません":1097,"ようと":-4258,"よると":5865};
|
||||||
|
this.UC1__ = {"A":484,"K":93,"M":645,"O":-505};
|
||||||
|
this.UC2__ = {"A":819,"H":1059,"I":409,"M":3987,"N":5775,"O":646};
|
||||||
|
this.UC3__ = {"A":-1370,"I":2311};
|
||||||
|
this.UC4__ = {"A":-2643,"H":1809,"I":-1032,"K":-3450,"M":3565,"N":3876,"O":6646};
|
||||||
|
this.UC5__ = {"H":313,"I":-1238,"K":-799,"M":539,"O":-831};
|
||||||
|
this.UC6__ = {"H":-506,"I":-253,"K":87,"M":247,"O":-387};
|
||||||
|
this.UP1__ = {"O":-214};
|
||||||
|
this.UP2__ = {"B":69,"O":935};
|
||||||
|
this.UP3__ = {"B":189};
|
||||||
|
this.UQ1__ = {"BH":21,"BI":-12,"BK":-99,"BN":142,"BO":-56,"OH":-95,"OI":477,"OK":410,"OO":-2422};
|
||||||
|
this.UQ2__ = {"BH":216,"BI":113,"OK":1759};
|
||||||
|
this.UQ3__ = {"BA":-479,"BH":42,"BI":1913,"BK":-7198,"BM":3160,"BN":6427,"BO":14761,"OI":-827,"ON":-3212};
|
||||||
|
this.UW1__ = {",":156,"、":156,"「":-463,"あ":-941,"う":-127,"が":-553,"き":121,"こ":505,"で":-201,"と":-547,"ど":-123,"に":-789,"の":-185,"は":-847,"も":-466,"や":-470,"よ":182,"ら":-292,"り":208,"れ":169,"を":-446,"ん":-137,"・":-135,"主":-402,"京":-268,"区":-912,"午":871,"国":-460,"大":561,"委":729,"市":-411,"日":-141,"理":361,"生":-408,"県":-386,"都":-718,"「":-463,"・":-135};
|
||||||
|
this.UW2__ = {",":-829,"、":-829,"〇":892,"「":-645,"」":3145,"あ":-538,"い":505,"う":134,"お":-502,"か":1454,"が":-856,"く":-412,"こ":1141,"さ":878,"ざ":540,"し":1529,"す":-675,"せ":300,"そ":-1011,"た":188,"だ":1837,"つ":-949,"て":-291,"で":-268,"と":-981,"ど":1273,"な":1063,"に":-1764,"の":130,"は":-409,"ひ":-1273,"べ":1261,"ま":600,"も":-1263,"や":-402,"よ":1639,"り":-579,"る":-694,"れ":571,"を":-2516,"ん":2095,"ア":-587,"カ":306,"キ":568,"ッ":831,"三":-758,"不":-2150,"世":-302,"中":-968,"主":-861,"事":492,"人":-123,"会":978,"保":362,"入":548,"初":-3025,"副":-1566,"北":-3414,"区":-422,"大":-1769,"天":-865,"太":-483,"子":-1519,"学":760,"実":1023,"小":-2009,"市":-813,"年":-1060,"強":1067,"手":-1519,"揺":-1033,"政":1522,"文":-1355,"新":-1682,"日":-1815,"明":-1462,"最":-630,"朝":-1843,"本":-1650,"東":-931,"果":-665,"次":-2378,"民":-180,"気":-1740,"理":752,"発":529,"目":-1584,"相":-242,"県":-1165,"立":-763,"第":810,"米":509,"自":-1353,"行":838,"西":-744,"見":-3874,"調":1010,"議":1198,"込":3041,"開":1758,"間":-1257,"「":-645,"」":3145,"ッ":831,"ア":-587,"カ":306,"キ":568};
|
||||||
|
this.UW3__ = {",":4889,"1":-800,"−":-1723,"、":4889,"々":-2311,"〇":5827,"」":2670,"〓":-3573,"あ":-2696,"い":1006,"う":2342,"え":1983,"お":-4864,"か":-1163,"が":3271,"く":1004,"け":388,"げ":401,"こ":-3552,"ご":-3116,"さ":-1058,"し":-395,"す":584,"せ":3685,"そ":-5228,"た":842,"ち":-521,"っ":-1444,"つ":-1081,"て":6167,"で":2318,"と":1691,"ど":-899,"な":-2788,"に":2745,"の":4056,"は":4555,"ひ":-2171,"ふ":-1798,"へ":1199,"ほ":-5516,"ま":-4384,"み":-120,"め":1205,"も":2323,"や":-788,"よ":-202,"ら":727,"り":649,"る":5905,"れ":2773,"わ":-1207,"を":6620,"ん":-518,"ア":551,"グ":1319,"ス":874,"ッ":-1350,"ト":521,"ム":1109,"ル":1591,"ロ":2201,"ン":278,"・":-3794,"一":-1619,"下":-1759,"世":-2087,"両":3815,"中":653,"主":-758,"予":-1193,"二":974,"人":2742,"今":792,"他":1889,"以":-1368,"低":811,"何":4265,"作":-361,"保":-2439,"元":4858,"党":3593,"全":1574,"公":-3030,"六":755,"共":-1880,"円":5807,"再":3095,"分":457,"初":2475,"別":1129,"前":2286,"副":4437,"力":365,"動":-949,"務":-1872,"化":1327,"北":-1038,"区":4646,"千":-2309,"午":-783,"協":-1006,"口":483,"右":1233,"各":3588,"合":-241,"同":3906,"和":-837,"員":4513,"国":642,"型":1389,"場":1219,"外":-241,"妻":2016,"学":-1356,"安":-423,"実":-1008,"家":1078,"小":-513,"少":-3102,"州":1155,"市":3197,"平":-1804,"年":2416,"広":-1030,"府":1605,"度":1452,"建":-2352,"当":-3885,"得":1905,"思":-1291,"性":1822,"戸":-488,"指":-3973,"政":-2013,"教":-1479,"数":3222,"文":-1489,"新":1764,"日":2099,"旧":5792,"昨":-661,"時":-1248,"曜":-951,"最":-937,"月":4125,"期":360,"李":3094,"村":364,"東":-805,"核":5156,"森":2438,"業":484,"氏":2613,"民":-1694,"決":-1073,"法":1868,"海":-495,"無":979,"物":461,"特":-3850,"生":-273,"用":914,"町":1215,"的":7313,"直":-1835,"省":792,"県":6293,"知":-1528,"私":4231,"税":401,"立":-960,"第":1201,"米":7767,"系":3066,"約":3663,"級":1384,"統":-4229,"総":1163,"線":1255,"者":6457,"能":725,"自":-2869,"英":785,"見":1044,"調":-562,"財":-733,"費":1777,"車":1835,"軍":1375,"込":-1504,"通":-1136,"選":-681,"郎":1026,"郡":4404,"部":1200,"金":2163,"長":421,"開":-1432,"間":1302,"関":-1282,"雨":2009,"電":-1045,"非":2066,"駅":1620,"1":-800,"」":2670,"・":-3794,"ッ":-1350,"ア":551,"グ":1319,"ス":874,"ト":521,"ム":1109,"ル":1591,"ロ":2201,"ン":278};
|
||||||
|
this.UW4__ = {",":3930,".":3508,"―":-4841,"、":3930,"。":3508,"〇":4999,"「":1895,"」":3798,"〓":-5156,"あ":4752,"い":-3435,"う":-640,"え":-2514,"お":2405,"か":530,"が":6006,"き":-4482,"ぎ":-3821,"く":-3788,"け":-4376,"げ":-4734,"こ":2255,"ご":1979,"さ":2864,"し":-843,"じ":-2506,"す":-731,"ず":1251,"せ":181,"そ":4091,"た":5034,"だ":5408,"ち":-3654,"っ":-5882,"つ":-1659,"て":3994,"で":7410,"と":4547,"な":5433,"に":6499,"ぬ":1853,"ね":1413,"の":7396,"は":8578,"ば":1940,"ひ":4249,"び":-4134,"ふ":1345,"へ":6665,"べ":-744,"ほ":1464,"ま":1051,"み":-2082,"む":-882,"め":-5046,"も":4169,"ゃ":-2666,"や":2795,"ょ":-1544,"よ":3351,"ら":-2922,"り":-9726,"る":-14896,"れ":-2613,"ろ":-4570,"わ":-1783,"を":13150,"ん":-2352,"カ":2145,"コ":1789,"セ":1287,"ッ":-724,"ト":-403,"メ":-1635,"ラ":-881,"リ":-541,"ル":-856,"ン":-3637,"・":-4371,"ー":-11870,"一":-2069,"中":2210,"予":782,"事":-190,"井":-1768,"人":1036,"以":544,"会":950,"体":-1286,"作":530,"側":4292,"先":601,"党":-2006,"共":-1212,"内":584,"円":788,"初":1347,"前":1623,"副":3879,"力":-302,"動":-740,"務":-2715,"化":776,"区":4517,"協":1013,"参":1555,"合":-1834,"和":-681,"員":-910,"器":-851,"回":1500,"国":-619,"園":-1200,"地":866,"場":-1410,"塁":-2094,"士":-1413,"多":1067,"大":571,"子":-4802,"学":-1397,"定":-1057,"寺":-809,"小":1910,"屋":-1328,"山":-1500,"島":-2056,"川":-2667,"市":2771,"年":374,"庁":-4556,"後":456,"性":553,"感":916,"所":-1566,"支":856,"改":787,"政":2182,"教":704,"文":522,"方":-856,"日":1798,"時":1829,"最":845,"月":-9066,"木":-485,"来":-442,"校":-360,"業":-1043,"氏":5388,"民":-2716,"気":-910,"沢":-939,"済":-543,"物":-735,"率":672,"球":-1267,"生":-1286,"産":-1101,"田":-2900,"町":1826,"的":2586,"目":922,"省":-3485,"県":2997,"空":-867,"立":-2112,"第":788,"米":2937,"系":786,"約":2171,"経":1146,"統":-1169,"総":940,"線":-994,"署":749,"者":2145,"能":-730,"般":-852,"行":-792,"規":792,"警":-1184,"議":-244,"谷":-1000,"賞":730,"車":-1481,"軍":1158,"輪":-1433,"込":-3370,"近":929,"道":-1291,"選":2596,"郎":-4866,"都":1192,"野":-1100,"銀":-2213,"長":357,"間":-2344,"院":-2297,"際":-2604,"電":-878,"領":-1659,"題":-792,"館":-1984,"首":1749,"高":2120,"「":1895,"」":3798,"・":-4371,"ッ":-724,"ー":-11870,"カ":2145,"コ":1789,"セ":1287,"ト":-403,"メ":-1635,"ラ":-881,"リ":-541,"ル":-856,"ン":-3637};
|
||||||
|
this.UW5__ = {",":465,".":-299,"1":-514,"E2":-32768,"]":-2762,"、":465,"。":-299,"「":363,"あ":1655,"い":331,"う":-503,"え":1199,"お":527,"か":647,"が":-421,"き":1624,"ぎ":1971,"く":312,"げ":-983,"さ":-1537,"し":-1371,"す":-852,"だ":-1186,"ち":1093,"っ":52,"つ":921,"て":-18,"で":-850,"と":-127,"ど":1682,"な":-787,"に":-1224,"の":-635,"は":-578,"べ":1001,"み":502,"め":865,"ゃ":3350,"ょ":854,"り":-208,"る":429,"れ":504,"わ":419,"を":-1264,"ん":327,"イ":241,"ル":451,"ン":-343,"中":-871,"京":722,"会":-1153,"党":-654,"務":3519,"区":-901,"告":848,"員":2104,"大":-1296,"学":-548,"定":1785,"嵐":-1304,"市":-2991,"席":921,"年":1763,"思":872,"所":-814,"挙":1618,"新":-1682,"日":218,"月":-4353,"査":932,"格":1356,"機":-1508,"氏":-1347,"田":240,"町":-3912,"的":-3149,"相":1319,"省":-1052,"県":-4003,"研":-997,"社":-278,"空":-813,"統":1955,"者":-2233,"表":663,"語":-1073,"議":1219,"選":-1018,"郎":-368,"長":786,"間":1191,"題":2368,"館":-689,"1":-514,"E2":-32768,"「":363,"イ":241,"ル":451,"ン":-343};
|
||||||
|
this.UW6__ = {",":227,".":808,"1":-270,"E1":306,"、":227,"。":808,"あ":-307,"う":189,"か":241,"が":-73,"く":-121,"こ":-200,"じ":1782,"す":383,"た":-428,"っ":573,"て":-1014,"で":101,"と":-105,"な":-253,"に":-149,"の":-417,"は":-236,"も":-206,"り":187,"る":-135,"を":195,"ル":-673,"ン":-496,"一":-277,"中":201,"件":-800,"会":624,"前":302,"区":1792,"員":-1212,"委":798,"学":-960,"市":887,"広":-695,"後":535,"業":-697,"相":753,"社":-507,"福":974,"空":-822,"者":1811,"連":463,"郎":1082,"1":-270,"E1":306,"ル":-673,"ン":-496};
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
TinySegmenter.prototype.ctype_ = function(str) {
|
||||||
|
for (var i in this.chartype_) {
|
||||||
|
if (str.match(this.chartype_[i][0])) {
|
||||||
|
return this.chartype_[i][1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "O";
|
||||||
|
}
|
||||||
|
|
||||||
|
TinySegmenter.prototype.ts_ = function(v) {
|
||||||
|
if (v) { return v; }
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
TinySegmenter.prototype.segment = function(input) {
|
||||||
|
if (input == null || input == undefined || input == "") {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
var result = [];
|
||||||
|
var seg = ["B3","B2","B1"];
|
||||||
|
var ctype = ["O","O","O"];
|
||||||
|
var o = input.split("");
|
||||||
|
for (i = 0; i < o.length; ++i) {
|
||||||
|
seg.push(o[i]);
|
||||||
|
ctype.push(this.ctype_(o[i]))
|
||||||
|
}
|
||||||
|
seg.push("E1");
|
||||||
|
seg.push("E2");
|
||||||
|
seg.push("E3");
|
||||||
|
ctype.push("O");
|
||||||
|
ctype.push("O");
|
||||||
|
ctype.push("O");
|
||||||
|
var word = seg[3];
|
||||||
|
var p1 = "U";
|
||||||
|
var p2 = "U";
|
||||||
|
var p3 = "U";
|
||||||
|
for (var i = 4; i < seg.length - 3; ++i) {
|
||||||
|
var score = this.BIAS__;
|
||||||
|
var w1 = seg[i-3];
|
||||||
|
var w2 = seg[i-2];
|
||||||
|
var w3 = seg[i-1];
|
||||||
|
var w4 = seg[i];
|
||||||
|
var w5 = seg[i+1];
|
||||||
|
var w6 = seg[i+2];
|
||||||
|
var c1 = ctype[i-3];
|
||||||
|
var c2 = ctype[i-2];
|
||||||
|
var c3 = ctype[i-1];
|
||||||
|
var c4 = ctype[i];
|
||||||
|
var c5 = ctype[i+1];
|
||||||
|
var c6 = ctype[i+2];
|
||||||
|
score += this.ts_(this.UP1__[p1]);
|
||||||
|
score += this.ts_(this.UP2__[p2]);
|
||||||
|
score += this.ts_(this.UP3__[p3]);
|
||||||
|
score += this.ts_(this.BP1__[p1 + p2]);
|
||||||
|
score += this.ts_(this.BP2__[p2 + p3]);
|
||||||
|
score += this.ts_(this.UW1__[w1]);
|
||||||
|
score += this.ts_(this.UW2__[w2]);
|
||||||
|
score += this.ts_(this.UW3__[w3]);
|
||||||
|
score += this.ts_(this.UW4__[w4]);
|
||||||
|
score += this.ts_(this.UW5__[w5]);
|
||||||
|
score += this.ts_(this.UW6__[w6]);
|
||||||
|
score += this.ts_(this.BW1__[w2 + w3]);
|
||||||
|
score += this.ts_(this.BW2__[w3 + w4]);
|
||||||
|
score += this.ts_(this.BW3__[w4 + w5]);
|
||||||
|
score += this.ts_(this.TW1__[w1 + w2 + w3]);
|
||||||
|
score += this.ts_(this.TW2__[w2 + w3 + w4]);
|
||||||
|
score += this.ts_(this.TW3__[w3 + w4 + w5]);
|
||||||
|
score += this.ts_(this.TW4__[w4 + w5 + w6]);
|
||||||
|
score += this.ts_(this.UC1__[c1]);
|
||||||
|
score += this.ts_(this.UC2__[c2]);
|
||||||
|
score += this.ts_(this.UC3__[c3]);
|
||||||
|
score += this.ts_(this.UC4__[c4]);
|
||||||
|
score += this.ts_(this.UC5__[c5]);
|
||||||
|
score += this.ts_(this.UC6__[c6]);
|
||||||
|
score += this.ts_(this.BC1__[c2 + c3]);
|
||||||
|
score += this.ts_(this.BC2__[c3 + c4]);
|
||||||
|
score += this.ts_(this.BC3__[c4 + c5]);
|
||||||
|
score += this.ts_(this.TC1__[c1 + c2 + c3]);
|
||||||
|
score += this.ts_(this.TC2__[c2 + c3 + c4]);
|
||||||
|
score += this.ts_(this.TC3__[c3 + c4 + c5]);
|
||||||
|
score += this.ts_(this.TC4__[c4 + c5 + c6]);
|
||||||
|
// score += this.ts_(this.TC5__[c4 + c5 + c6]);
|
||||||
|
score += this.ts_(this.UQ1__[p1 + c1]);
|
||||||
|
score += this.ts_(this.UQ2__[p2 + c2]);
|
||||||
|
score += this.ts_(this.UQ3__[p3 + c3]);
|
||||||
|
score += this.ts_(this.BQ1__[p2 + c2 + c3]);
|
||||||
|
score += this.ts_(this.BQ2__[p2 + c3 + c4]);
|
||||||
|
score += this.ts_(this.BQ3__[p3 + c2 + c3]);
|
||||||
|
score += this.ts_(this.BQ4__[p3 + c3 + c4]);
|
||||||
|
score += this.ts_(this.TQ1__[p2 + c1 + c2 + c3]);
|
||||||
|
score += this.ts_(this.TQ2__[p2 + c2 + c3 + c4]);
|
||||||
|
score += this.ts_(this.TQ3__[p3 + c1 + c2 + c3]);
|
||||||
|
score += this.ts_(this.TQ4__[p3 + c2 + c3 + c4]);
|
||||||
|
var p = "O";
|
||||||
|
if (score > 0) {
|
||||||
|
result.push(word);
|
||||||
|
word = "";
|
||||||
|
p = "B";
|
||||||
|
}
|
||||||
|
p1 = p2;
|
||||||
|
p2 = p3;
|
||||||
|
p3 = p;
|
||||||
|
word += seg[i];
|
||||||
|
}
|
||||||
|
result.push(word);
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
lunr.TinySegmenter = TinySegmenter;
|
||||||
|
};
|
||||||
|
|
||||||
|
}));
|
||||||
@@ -0,0 +1,381 @@
|
|||||||
|
/*!
|
||||||
|
* Lunr languages, `Arabic` language
|
||||||
|
* https://github.com/MihaiValentin/lunr-languages
|
||||||
|
*
|
||||||
|
* Copyright 2018, Dalia Al-Shahrabi
|
||||||
|
* http://www.mozilla.org/MPL/
|
||||||
|
*/
|
||||||
|
/*!
|
||||||
|
* based on
|
||||||
|
* Kazem Taghva, Rania Elkhoury, and Jeffrey Coombs (2005)
|
||||||
|
* Meryeme Hadni, Abdelmonaime Lachkar, and S. Alaoui Ouatik (2012)
|
||||||
|
*
|
||||||
|
* Snowball JavaScript Library v0.3
|
||||||
|
* http://code.google.com/p/urim/
|
||||||
|
* http://snowball.tartarus.org/
|
||||||
|
*
|
||||||
|
* Copyright 2010, Oleg Mazko
|
||||||
|
* http://www.mozilla.org/MPL/
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD. Register as an anonymous module.
|
||||||
|
define(factory)
|
||||||
|
} else if (typeof exports === 'object') {
|
||||||
|
/**
|
||||||
|
* Node. Does not work with strict CommonJS, but
|
||||||
|
* only CommonJS-like environments that support module.exports,
|
||||||
|
* like Node.
|
||||||
|
*/
|
||||||
|
module.exports = factory()
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory()(root.lunr);
|
||||||
|
}
|
||||||
|
}(this, function() {
|
||||||
|
/**
|
||||||
|
* Just return a value to define the module export.
|
||||||
|
* This example returns an object, but the module
|
||||||
|
* can return a function as the exported value.
|
||||||
|
*/
|
||||||
|
return function(lunr) {
|
||||||
|
/* throw error if lunr is not yet included */
|
||||||
|
if ('undefined' === typeof lunr) {
|
||||||
|
throw new Error('Lunr is not present. Please include / require Lunr before this script.');
|
||||||
|
}
|
||||||
|
|
||||||
|
/* throw error if lunr stemmer support is not yet included */
|
||||||
|
if ('undefined' === typeof lunr.stemmerSupport) {
|
||||||
|
throw new Error('Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.');
|
||||||
|
}
|
||||||
|
|
||||||
|
/* register specific locale function */
|
||||||
|
lunr.ar = function() {
|
||||||
|
this.pipeline.reset();
|
||||||
|
this.pipeline.add(
|
||||||
|
lunr.ar.trimmer,
|
||||||
|
lunr.ar.stopWordFilter,
|
||||||
|
lunr.ar.stemmer
|
||||||
|
);
|
||||||
|
|
||||||
|
// for lunr version 2
|
||||||
|
// this is necessary so that every searched word is also stemmed before
|
||||||
|
// in lunr <= 1 this is not needed, as it is done using the normal pipeline
|
||||||
|
if (this.searchPipeline) {
|
||||||
|
this.searchPipeline.reset();
|
||||||
|
this.searchPipeline.add(lunr.ar.stemmer)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/* lunr trimmer function */
|
||||||
|
lunr.ar.wordCharacters = "\u0621-\u065b\u0671\u0640";
|
||||||
|
lunr.ar.trimmer = lunr.trimmerSupport.generateTrimmer(lunr.ar.wordCharacters);
|
||||||
|
|
||||||
|
lunr.Pipeline.registerFunction(lunr.ar.trimmer, 'trimmer-ar');
|
||||||
|
|
||||||
|
/* lunr stemmer function */
|
||||||
|
lunr.ar.stemmer = (function() {
|
||||||
|
var self = this;
|
||||||
|
var word = '';
|
||||||
|
self.result = false;
|
||||||
|
self.preRemoved = false;
|
||||||
|
self.sufRemoved = false;
|
||||||
|
|
||||||
|
//prefix data
|
||||||
|
self.pre = {
|
||||||
|
pre1: 'ف ك ب و س ل ن ا ي ت',
|
||||||
|
pre2: 'ال لل',
|
||||||
|
pre3: 'بال وال فال تال كال ولل',
|
||||||
|
pre4: 'فبال كبال وبال وكال'
|
||||||
|
};
|
||||||
|
|
||||||
|
//suffix data
|
||||||
|
self.suf = {
|
||||||
|
suf1: 'ه ك ت ن ا ي',
|
||||||
|
suf2: 'نك نه ها وك يا اه ون ين تن تم نا وا ان كم كن ني نن ما هم هن تك ته ات يه',
|
||||||
|
suf3: 'تين كهم نيه نهم ونه وها يهم ونا ونك وني وهم تكم تنا تها تني تهم كما كها ناه نكم هنا تان يها',
|
||||||
|
suf4: 'كموه ناها ونني ونهم تكما تموه تكاه كماه ناكم ناهم نيها وننا'
|
||||||
|
}
|
||||||
|
|
||||||
|
//arabic language patterns and alternative mapping for patterns
|
||||||
|
self.patterns = JSON.parse('{"pt43":[{"pt":[{"c":"ا","l":1}]},{"pt":[{"c":"ا,ت,ن,ي","l":0}],"mPt":[{"c":"ف","l":0,"m":1},{"c":"ع","l":1,"m":2},{"c":"ل","l":2,"m":3}]},{"pt":[{"c":"و","l":2}],"mPt":[{"c":"ف","l":0,"m":0},{"c":"ع","l":1,"m":1},{"c":"ل","l":2,"m":3}]},{"pt":[{"c":"ا","l":2}]},{"pt":[{"c":"ي","l":2}],"mPt":[{"c":"ف","l":0,"m":0},{"c":"ع","l":1,"m":1},{"c":"ا","l":2},{"c":"ل","l":3,"m":3}]},{"pt":[{"c":"م","l":0}]}],"pt53":[{"pt":[{"c":"ت","l":0},{"c":"ا","l":2}]},{"pt":[{"c":"ا,ن,ت,ي","l":0},{"c":"ت","l":2}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ت","l":2},{"c":"ع","l":3,"m":3},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"ا","l":0},{"c":"ا","l":2}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ع","l":2,"m":3},{"c":"ل","l":3,"m":4},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"ا","l":0},{"c":"ا","l":3}],"mPt":[{"c":"ف","l":0,"m":1},{"c":"ع","l":1,"m":2},{"c":"ل","l":2,"m":4}]},{"pt":[{"c":"ا","l":3},{"c":"ن","l":4}]},{"pt":[{"c":"ت","l":0},{"c":"ي","l":3}]},{"pt":[{"c":"م","l":0},{"c":"و","l":3}]},{"pt":[{"c":"ا","l":1},{"c":"و","l":3}]},{"pt":[{"c":"و","l":1},{"c":"ا","l":2}]},{"pt":[{"c":"م","l":0},{"c":"ا","l":3}]},{"pt":[{"c":"م","l":0},{"c":"ي","l":3}]},{"pt":[{"c":"ا","l":2},{"c":"ن","l":3}]},{"pt":[{"c":"م","l":0},{"c":"ن","l":1}],"mPt":[{"c":"ا","l":0},{"c":"ن","l":1},{"c":"ف","l":2,"m":2},{"c":"ع","l":3,"m":3},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"م","l":0},{"c":"ت","l":2}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ت","l":2},{"c":"ع","l":3,"m":3},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"م","l":0},{"c":"ا","l":2}]},{"pt":[{"c":"م","l":1},{"c":"ا","l":3}]},{"pt":[{"c":"ي,ت,ا,ن","l":0},{"c":"ت","l":1}],"mPt":[{"c":"ف","l":0,"m":2},{"c":"ع","l":1,"m":3},{"c":"ا","l":2},{"c":"ل","l":3,"m":4}]},{"pt":[{"c":"ت,ي,ا,ن","l":0},{"c":"ت","l":2}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ت","l":2},{"c":"ع","l":3,"m":3},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"ا","l":2},{"c":"ي","l":3}]},{"pt":[{"c":"ا,ي,ت,ن","l":0},{"c":"ن","l":1}],"mPt":[{"c":"ا","l":0},{"c":"ن","l":1},{"c":"ف","l":2,"m":2},{"c":"ع","l":3,"m":3},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"ا","l":3},{"c":"ء","l":4}]}],"pt63":[{"pt":[{"c":"ا","l":0},{"c":"ت","l":2},{"c":"ا","l":4}]},{"pt":[{"c":"ا,ت,ن,ي","l":0},{"c":"س","l":1},{"c":"ت","l":2}],"mPt":[{"c":"ا","l":0},{"c":"س","l":1},{"c":"ت","l":2},{"c":"ف","l":3,"m":3},{"c":"ع","l":4,"m":4},{"c":"ا","l":5},{"c":"ل","l":6,"m":5}]},{"pt":[{"c":"ا,ن,ت,ي","l":0},{"c":"و","l":3}]},{"pt":[{"c":"م","l":0},{"c":"س","l":1},{"c":"ت","l":2}],"mPt":[{"c":"ا","l":0},{"c":"س","l":1},{"c":"ت","l":2},{"c":"ف","l":3,"m":3},{"c":"ع","l":4,"m":4},{"c":"ا","l":5},{"c":"ل","l":6,"m":5}]},{"pt":[{"c":"ي","l":1},{"c":"ي","l":3},{"c":"ا","l":4},{"c":"ء","l":5}]},{"pt":[{"c":"ا","l":0},{"c":"ن","l":1},{"c":"ا","l":4}]}],"pt54":[{"pt":[{"c":"ت","l":0}]},{"pt":[{"c":"ا,ي,ت,ن","l":0}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ع","l":2,"m":2},{"c":"ل","l":3,"m":3},{"c":"ر","l":4,"m":4},{"c":"ا","l":5},{"c":"ر","l":6,"m":4}]},{"pt":[{"c":"م","l":0}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ع","l":2,"m":2},{"c":"ل","l":3,"m":3},{"c":"ر","l":4,"m":4},{"c":"ا","l":5},{"c":"ر","l":6,"m":4}]},{"pt":[{"c":"ا","l":2}]},{"pt":[{"c":"ا","l":0},{"c":"ن","l":2}]}],"pt64":[{"pt":[{"c":"ا","l":0},{"c":"ا","l":4}]},{"pt":[{"c":"م","l":0},{"c":"ت","l":1}]}],"pt73":[{"pt":[{"c":"ا","l":0},{"c":"س","l":1},{"c":"ت","l":2},{"c":"ا","l":5}]}],"pt75":[{"pt":[{"c":"ا","l":0},{"c":"ا","l":5}]}]}');
|
||||||
|
|
||||||
|
self.execArray = [
|
||||||
|
'cleanWord',
|
||||||
|
'removeDiacritics',
|
||||||
|
'cleanAlef',
|
||||||
|
'removeStopWords',
|
||||||
|
'normalizeHamzaAndAlef',
|
||||||
|
'removeStartWaw',
|
||||||
|
'removePre432',
|
||||||
|
'removeEndTaa',
|
||||||
|
'wordCheck'
|
||||||
|
];
|
||||||
|
|
||||||
|
self.stem = function() {
|
||||||
|
var counter = 0;
|
||||||
|
self.result = false;
|
||||||
|
self.preRemoved = false;
|
||||||
|
self.sufRemoved = false;
|
||||||
|
while (counter < self.execArray.length && self.result != true) {
|
||||||
|
self.result = self[self.execArray[counter]]();
|
||||||
|
counter++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
self.setCurrent = function(word) {
|
||||||
|
self.word = word;
|
||||||
|
}
|
||||||
|
|
||||||
|
self.getCurrent = function() {
|
||||||
|
return self.word
|
||||||
|
}
|
||||||
|
|
||||||
|
/*remove elongating character and test that the word does not contain non-arabic characters.
|
||||||
|
If the word contains special characters, don't stem. */
|
||||||
|
self.cleanWord = function() {
|
||||||
|
var wordCharacters = "\u0621-\u065b\u0671\u0640";
|
||||||
|
var testRegex = new RegExp("[^" + wordCharacters + "]");
|
||||||
|
self.word = self.word
|
||||||
|
.replace('\u0640', '');
|
||||||
|
if (testRegex.test(word)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
self.removeDiacritics = function() {
|
||||||
|
var diacriticsRegex = new RegExp("[\u064b-\u065b]");
|
||||||
|
self.word = self.word.replace(/[\u064b-\u065b]/gi, '');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*Replace all variations of alef (آأإٱى) to a plain alef (ا)*/
|
||||||
|
self.cleanAlef = function() {
|
||||||
|
var alefRegex = new RegExp("[\u0622\u0623\u0625\u0671\u0649]");
|
||||||
|
self.word = self.word.replace(alefRegex, "\u0627");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* if the word is a stop word, don't stem*/
|
||||||
|
self.removeStopWords = function() {
|
||||||
|
var stopWords = '، اض امين اه اها اي ا اب اجل اجمع اخ اخذ اصبح اضحى اقبل اقل اكثر الا ام اما امامك امامك امسى اما ان انا انت انتم انتما انتن انت انشا انى او اوشك اولئك اولئكم اولاء اولالك اوه اي ايا اين اينما اي ان اي اف اذ اذا اذا اذما اذن الى اليكم اليكما اليكن اليك اليك الا اما ان انما اي اياك اياكم اياكما اياكن ايانا اياه اياها اياهم اياهما اياهن اياي ايه ان ا ابتدا اثر اجل احد اخرى اخلولق اذا اربعة ارتد استحال اطار اعادة اعلنت اف اكثر اكد الالاء الالى الا الاخيرة الان الاول الاولى التى التي الثاني الثانية الذاتي الذى الذي الذين السابق الف اللائي اللاتي اللتان اللتيا اللتين اللذان اللذين اللواتي الماضي المقبل الوقت الى اليوم اما امام امس ان انبرى انقلب انه انها او اول اي ايار ايام ايضا ب بات باسم بان بخ برس بسبب بس بشكل بضع بطان بعد بعض بك بكم بكما بكن بل بلى بما بماذا بمن بن بنا به بها بي بيد بين بس بله بئس تان تانك تبدل تجاه تحول تلقاء تلك تلكم تلكما تم تينك تين ته تي ثلاثة ثم ثم ثمة ثم جعل جلل جميع جير حار حاشا حاليا حاي حتى حرى حسب حم حوالى حول حيث حيثما حين حي حبذا حتى حذار خلا خلال دون دونك ذا ذات ذاك ذانك ذان ذلك ذلكم ذلكما ذلكن ذو ذوا ذواتا ذواتي ذيت ذينك ذين ذه ذي راح رجع رويدك ريث رب زيارة سبحان سرعان سنة سنوات سوف سوى ساء ساءما شبه شخصا شرع شتان صار صباح صفر صه صه ضد ضمن طاق طالما طفق طق ظل عاد عام عاما عامة عدا عدة عدد عدم عسى عشر عشرة علق على عليك عليه عليها عل عن عند عندما عوض عين عدس عما غدا غير ف فان فلان فو فى في فيم فيما فيه فيها قال قام قبل قد قط قلما قوة كانما كاين كاي كاين كاد كان كانت كذا كذلك كرب كل كلا كلاهما كلتا كلم كليكما كليهما كلما كلا كم كما كي كيت كيف كيفما كان كخ لئن لا لات لاسيما لدن لدى لعمر لقاء لك لكم لكما لكن لكنما لكي لكيلا للامم لم لما لما لن لنا له لها لو لوكالة لولا لوما لي لست لست لستم لستما لستن لست لسن لعل لكن ليت ليس ليسا ليستا ليست ليسوا لسنا ما ماانفك مابرح مادام ماذا مازال مافتئ مايو متى مثل مذ مساء مع معاذ مقابل مكانكم مكانكما مكانكن مكانك مليار مليون مما ممن من منذ منها مه مهما من من نحن نحو نعم نفس نفسه نهاية نخ نعما نعم ها هاؤم هاك هاهنا هب هذا هذه هكذا هل هلم هلا هم هما هن هنا هناك هنالك هو هي هيا هيت هيا هؤلاء هاتان هاتين هاته هاتي هج هذا هذان هذين هذه هذي هيهات و وا واحد واضاف واضافت واكد وان واها واوضح وراءك وفي وقال وقالت وقد وقف وكان وكانت ولا ولم ومن وهو وهي ويكان وي وشكان يكون يمكن يوم ايان'.split(' ');
|
||||||
|
if (stopWords.indexOf(self.word) >= 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* changes ؤ ئ to ء and removes alef if at the end of the word*/
|
||||||
|
self.normalizeHamzaAndAlef = function() {
|
||||||
|
self.word = self.word.replace('\u0624', '\u0621');
|
||||||
|
self.word = self.word.replace('\u0626', '\u0621');
|
||||||
|
self.word = self.word.replace(/([\u0627])\1+/gi, '\u0627');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*remove end taa marboota ة*/
|
||||||
|
self.removeEndTaa = function() {
|
||||||
|
if (self.word.length > 2) {
|
||||||
|
self.word = self.word.replace(/[\u0627]$/, '');
|
||||||
|
self.word = self.word.replace('\u0629', '');
|
||||||
|
return false;
|
||||||
|
} else return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* if the word starts with double waw وو keep only one of them */
|
||||||
|
self.removeStartWaw = function() {
|
||||||
|
if (self.word.length > 3 && self.word[0] == '\u0648' && self.word[1] == '\u0648') {
|
||||||
|
self.word = self.word.slice(1);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* remove prefixes of size 4, 3 and 2 characters */
|
||||||
|
self.removePre432 = function() {
|
||||||
|
var word = self.word;
|
||||||
|
if (self.word.length >= 7) {
|
||||||
|
var pre4Regex = new RegExp('^(' + self.pre.pre4.split(' ').join('|') + ')')
|
||||||
|
self.word = self.word.replace(pre4Regex, '');
|
||||||
|
}
|
||||||
|
if (self.word == word && self.word.length >= 6) {
|
||||||
|
var pre3Regex = new RegExp('^(' + self.pre.pre3.split(' ').join('|') + ')')
|
||||||
|
self.word = self.word.replace(pre3Regex, '');
|
||||||
|
}
|
||||||
|
if (self.word == word && self.word.length >= 5) {
|
||||||
|
var pre2Regex = new RegExp('^(' + self.pre.pre2.split(' ').join('|') + ')')
|
||||||
|
self.word = self.word.replace(pre2Regex, '');
|
||||||
|
}
|
||||||
|
if (word != self.word) self.preRemoved = true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* check the word against word patterns. If the word matches a pattern, map it to the
|
||||||
|
alternative pattern if available then stop stemming. */
|
||||||
|
self.patternCheck = function(pattern) {
|
||||||
|
var patternMatch = false;
|
||||||
|
for (var i = 0; i < pattern.length; i++) {
|
||||||
|
var currentPatternCheck = true;
|
||||||
|
for (var j = 0; j < pattern[i].pt.length; j++) {
|
||||||
|
var chars = pattern[i].pt[j].c.split(',');
|
||||||
|
var charMatch = false;
|
||||||
|
chars.forEach(function(el) {
|
||||||
|
if (self.word[pattern[i].pt[j].l] == el) {
|
||||||
|
charMatch = true;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if (!charMatch) {
|
||||||
|
currentPatternCheck = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (currentPatternCheck == true) {
|
||||||
|
if (pattern[i].mPt) {
|
||||||
|
var newWord = [];
|
||||||
|
for (var k = 0; k < pattern[i].mPt.length; k++) {
|
||||||
|
if (pattern[i].mPt[k].m != null) {
|
||||||
|
newWord[pattern[i].mPt[k].l] = self.word[pattern[i].mPt[k].m]
|
||||||
|
} else {
|
||||||
|
newWord[pattern[i].mPt[k].l] = pattern[i].mPt[k].c
|
||||||
|
}
|
||||||
|
}
|
||||||
|
self.word = newWord.join('');
|
||||||
|
}
|
||||||
|
self.result = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* remove prefixes of size 1 char*/
|
||||||
|
self.removePre1 = function() {
|
||||||
|
var word = self.word;
|
||||||
|
if (self.preRemoved == false)
|
||||||
|
if (self.word.length > 3) {
|
||||||
|
var pre1Regex = new RegExp('^(' + self.pre.pre1.split(' ').join('|') + ')')
|
||||||
|
self.word = self.word.replace(pre1Regex, '');
|
||||||
|
}
|
||||||
|
if (word != self.word) self.preRemoved = true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*remove suffixes of size 1 char */
|
||||||
|
self.removeSuf1 = function() {
|
||||||
|
var word = self.word;
|
||||||
|
if (self.sufRemoved == false)
|
||||||
|
if (self.word.length > 3) {
|
||||||
|
var suf1Regex = new RegExp('(' + self.suf.suf1.split(' ').join('|') + ')$')
|
||||||
|
self.word = self.word.replace(suf1Regex, '');
|
||||||
|
}
|
||||||
|
if (word != self.word) self.sufRemoved = true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*remove suffixes of size 4, 3 and 2 chars*/
|
||||||
|
self.removeSuf432 = function() {
|
||||||
|
var word = self.word;
|
||||||
|
if (self.word.length >= 6) {
|
||||||
|
var suf4Regex = new RegExp('(' + self.suf.suf4.split(' ').join('|') + ')$')
|
||||||
|
self.word = self.word.replace(suf4Regex, '');
|
||||||
|
}
|
||||||
|
if (self.word == word && self.word.length >= 5) {
|
||||||
|
var suf3Regex = new RegExp('(' + self.suf.suf3.split(' ').join('|') + ')$')
|
||||||
|
self.word = self.word.replace(suf3Regex, '');
|
||||||
|
}
|
||||||
|
if (self.word == word && self.word.length >= 4) {
|
||||||
|
var suf2Regex = new RegExp('(' + self.suf.suf2.split(' ').join('|') + ')$')
|
||||||
|
self.word = self.word.replace(suf2Regex, '');
|
||||||
|
}
|
||||||
|
if (word != self.word) self.sufRemoved = true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*check the word length and decide what is the next step accordingly*/
|
||||||
|
self.wordCheck = function() {
|
||||||
|
var word = self.word;
|
||||||
|
var word7Exec = [self.removeSuf432, self.removeSuf1, self.removePre1]
|
||||||
|
var counter = 0;
|
||||||
|
var patternChecked = false;
|
||||||
|
while (self.word.length >= 7 && !self.result && counter < word7Exec.length) {
|
||||||
|
if (self.word.length == 7 && !patternChecked) {
|
||||||
|
self.checkPattern73();
|
||||||
|
patternChecked = true;
|
||||||
|
} else {
|
||||||
|
word7Exec[counter]();
|
||||||
|
counter++;
|
||||||
|
patternChecked = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var word6Exec = [self.checkPattern63, self.removeSuf432, self.removeSuf1, self.removePre1, self.checkPattern64];
|
||||||
|
counter = 0;
|
||||||
|
while (self.word.length == 6 && !self.result && counter < word6Exec.length) {
|
||||||
|
word6Exec[counter]();
|
||||||
|
counter++;
|
||||||
|
}
|
||||||
|
|
||||||
|
var word5Exec = [self.checkPattern53, self.removeSuf432, self.removeSuf1, self.removePre1, self.checkPattern54];
|
||||||
|
counter = 0;
|
||||||
|
while (self.word.length == 5 && !self.result && counter < word5Exec.length) {
|
||||||
|
word5Exec[counter]();
|
||||||
|
counter++;
|
||||||
|
}
|
||||||
|
|
||||||
|
var word4Exec = [self.checkPattern43, self.removeSuf1, self.removePre1, self.removeSuf432];
|
||||||
|
counter = 0;
|
||||||
|
while (self.word.length == 4 && !self.result && counter < word4Exec.length) {
|
||||||
|
word4Exec[counter]();
|
||||||
|
counter++;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
self.checkPattern43 = function() {
|
||||||
|
self.patternCheck(self.patterns.pt43)
|
||||||
|
}
|
||||||
|
self.checkPattern53 = function() {
|
||||||
|
self.patternCheck(self.patterns.pt53)
|
||||||
|
}
|
||||||
|
self.checkPattern54 = function() {
|
||||||
|
self.patternCheck(self.patterns.pt54)
|
||||||
|
}
|
||||||
|
self.checkPattern63 = function() {
|
||||||
|
self.patternCheck(self.patterns.pt63)
|
||||||
|
}
|
||||||
|
self.checkPattern64 = function() {
|
||||||
|
self.patternCheck(self.patterns.pt64)
|
||||||
|
}
|
||||||
|
self.checkPattern73 = function() {
|
||||||
|
self.patternCheck(self.patterns.pt73)
|
||||||
|
}
|
||||||
|
|
||||||
|
/* and return a function that stems a word for the current locale */
|
||||||
|
return function(token) {
|
||||||
|
// for lunr version 2
|
||||||
|
if (typeof token.update === "function") {
|
||||||
|
return token.update(function(word) {
|
||||||
|
self.setCurrent(word);
|
||||||
|
self.stem();
|
||||||
|
return self.getCurrent();
|
||||||
|
})
|
||||||
|
} else { // for lunr version <= 1
|
||||||
|
self.setCurrent(token);
|
||||||
|
self.stem();
|
||||||
|
return self.getCurrent();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|
||||||
|
lunr.Pipeline.registerFunction(lunr.ar.stemmer, 'stemmer-ar');
|
||||||
|
|
||||||
|
lunr.ar.stopWordFilter = lunr.generateStopWordFilter('، اض امين اه اها اي ا اب اجل اجمع اخ اخذ اصبح اضحى اقبل اقل اكثر الا ام اما امامك امامك امسى اما ان انا انت انتم انتما انتن انت انشا انى او اوشك اولئك اولئكم اولاء اولالك اوه اي ايا اين اينما اي ان اي اف اذ اذا اذا اذما اذن الى اليكم اليكما اليكن اليك اليك الا اما ان انما اي اياك اياكم اياكما اياكن ايانا اياه اياها اياهم اياهما اياهن اياي ايه ان ا ابتدا اثر اجل احد اخرى اخلولق اذا اربعة ارتد استحال اطار اعادة اعلنت اف اكثر اكد الالاء الالى الا الاخيرة الان الاول الاولى التى التي الثاني الثانية الذاتي الذى الذي الذين السابق الف اللائي اللاتي اللتان اللتيا اللتين اللذان اللذين اللواتي الماضي المقبل الوقت الى اليوم اما امام امس ان انبرى انقلب انه انها او اول اي ايار ايام ايضا ب بات باسم بان بخ برس بسبب بس بشكل بضع بطان بعد بعض بك بكم بكما بكن بل بلى بما بماذا بمن بن بنا به بها بي بيد بين بس بله بئس تان تانك تبدل تجاه تحول تلقاء تلك تلكم تلكما تم تينك تين ته تي ثلاثة ثم ثم ثمة ثم جعل جلل جميع جير حار حاشا حاليا حاي حتى حرى حسب حم حوالى حول حيث حيثما حين حي حبذا حتى حذار خلا خلال دون دونك ذا ذات ذاك ذانك ذان ذلك ذلكم ذلكما ذلكن ذو ذوا ذواتا ذواتي ذيت ذينك ذين ذه ذي راح رجع رويدك ريث رب زيارة سبحان سرعان سنة سنوات سوف سوى ساء ساءما شبه شخصا شرع شتان صار صباح صفر صه صه ضد ضمن طاق طالما طفق طق ظل عاد عام عاما عامة عدا عدة عدد عدم عسى عشر عشرة علق على عليك عليه عليها عل عن عند عندما عوض عين عدس عما غدا غير ف فان فلان فو فى في فيم فيما فيه فيها قال قام قبل قد قط قلما قوة كانما كاين كاي كاين كاد كان كانت كذا كذلك كرب كل كلا كلاهما كلتا كلم كليكما كليهما كلما كلا كم كما كي كيت كيف كيفما كان كخ لئن لا لات لاسيما لدن لدى لعمر لقاء لك لكم لكما لكن لكنما لكي لكيلا للامم لم لما لما لن لنا له لها لو لوكالة لولا لوما لي لست لست لستم لستما لستن لست لسن لعل لكن ليت ليس ليسا ليستا ليست ليسوا لسنا ما ماانفك مابرح مادام ماذا مازال مافتئ مايو متى مثل مذ مساء مع معاذ مقابل مكانكم مكانكما مكانكن مكانك مليار مليون مما ممن من منذ منها مه مهما من من نحن نحو نعم نفس نفسه نهاية نخ نعما نعم ها هاؤم هاك هاهنا هب هذا هذه هكذا هل هلم هلا هم هما هن هنا هناك هنالك هو هي هيا هيت هيا هؤلاء هاتان هاتين هاته هاتي هج هذا هذان هذين هذه هذي هيهات وا واحد واضاف واضافت واكد وان واها واوضح وراءك وفي وقال وقالت وقد وقف وكان وكانت ولا ولم ومن وهو وهي ويكان وي وشكان يكون يمكن يوم ايان'.split(' '));
|
||||||
|
|
||||||
|
lunr.Pipeline.registerFunction(lunr.ar.stopWordFilter, 'stopWordFilter-ar');
|
||||||
|
};
|
||||||
|
}))
|
||||||
Loaded 100 of 1732 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user