mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-20 00:15:24 +00:00
Add updated toc esp for mobile
This commit is contained in:
1 parent
19fcf0dd66
commit
7982cfa3d7
14 files changed
+135
-175
No files matched your search
+6
-6
@@ -1,10 +1,10 @@
|
|||||||
---
|
---
|
||||||
title: Why Use a Static Site Generator?
|
title: The Benefits of Static
|
||||||
linktitle:
|
linktitle: Benefits of Static
|
||||||
description:
|
description:
|
||||||
date: 2016-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2016-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2016-02-01
|
lastmod: 2017-02-01
|
||||||
tags: [ssg,static site generator]
|
tags: [ssg,static site generator]
|
||||||
weight: 20
|
weight: 20
|
||||||
draft: false
|
draft: false
|
||||||
@@ -47,5 +47,5 @@ links work properly with most hosting companies.
|
|||||||
|
|
||||||
["An Introduction to Static Site Generators", David Walsh]: https://davidwalsh.name/introduction-static-site-generators
|
["An Introduction to Static Site Generators", David Walsh]: https://davidwalsh.name/introduction-static-site-generators
|
||||||
["Static Site Generators", O-Reilly]: /documents/oreilly-static-site-generators.pdf
|
["Static Site Generators", O-Reilly]: /documents/oreilly-static-site-generators.pdf
|
||||||
["Top 10 Static Website Generators", Netlify blog]: https://www.netlify.com/blog/2016/05/02/top-ten-static-website-generators/
|
["Top 10 Static Website Generators," Netlify blog]: https://www.netlify.com/blog/2016/05/02/top-ten-static-website-generators/
|
||||||
[StaticGen: Top Open-Source Static Site Generators (GitHub Stars)]: https://www.staticgen.com/
|
[StaticGen: Top Open-Source Static Site Generators (GitHub Stars)]: https://www.staticgen.com/
|
||||||
@@ -2,9 +2,9 @@
|
|||||||
title: Hugo Features
|
title: Hugo Features
|
||||||
linktitle:
|
linktitle:
|
||||||
description: Hugo is the fastest static site generator and includes a powerful templating language, making it the appropriate choice for websites of all sizes and types.
|
description: Hugo is the fastest static site generator and includes a powerful templating language, making it the appropriate choice for websites of all sizes and types.
|
||||||
date: 2016-11-01
|
date: 2017-02-01
|
||||||
publishdate: 2016-11-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2016-11-01
|
lastmod: 2017-02-01
|
||||||
weight: 10
|
weight: 10
|
||||||
draft: false
|
draft: false
|
||||||
slug:
|
slug:
|
||||||
@@ -25,7 +25,7 @@ notes:
|
|||||||
* Straightforward [organization for your projects][], including website sections
|
* Straightforward [organization for your projects][], including website sections
|
||||||
* Customizable [URLs][]
|
* Customizable [URLs][]
|
||||||
* Support for configurable [taxonomies][], including categories and tags
|
* Support for configurable [taxonomies][], including categories and tags
|
||||||
* Ability to [sort content][] as you desire through [powerful template functions][]
|
* Ability to [sort content][] as you desire through powerful template [functions][]
|
||||||
* Automatic [table of contents][] generation
|
* Automatic [table of contents][] generation
|
||||||
* Dynamic menu creation
|
* Dynamic menu creation
|
||||||
* [Pretty URLs][] support
|
* [Pretty URLs][] support
|
||||||
@@ -62,6 +62,7 @@ See what's coming next in the [Hugo roadmap][].
|
|||||||
[content types]: /content-management/content-types/
|
[content types]: /content-management/content-types/
|
||||||
[Disqus]: https://disqus.com/
|
[Disqus]: https://disqus.com/
|
||||||
[front matter]: /content-management/front-matter/
|
[front matter]: /content-management/front-matter/
|
||||||
|
[functions]: /functions/
|
||||||
[Golang]: http://golang.org/pkg/html/template/
|
[Golang]: http://golang.org/pkg/html/template/
|
||||||
[Google Analytics]: https://google-analytics.com/
|
[Google Analytics]: https://google-analytics.com/
|
||||||
[homepage]: /templates/homepage-template/
|
[homepage]: /templates/homepage-template/
|
||||||
@@ -71,10 +72,9 @@ See what's coming next in the [Hugo roadmap][].
|
|||||||
[LiveReload]: /getting-started/using-hugo/
|
[LiveReload]: /getting-started/using-hugo/
|
||||||
[Mac OSX]: /getting-started/install-of-pc/
|
[Mac OSX]: /getting-started/install-of-pc/
|
||||||
[organization for your projects]: /project-organization/
|
[organization for your projects]: /project-organization/
|
||||||
[Permalinks]: /content-management/url-management/#permalinks
|
[Permalink]: /content-management/url-management/#permalinks
|
||||||
[powerful template functions]: /functions/
|
|
||||||
[Pretty URLs]: /content-management/url-management/
|
|
||||||
[Powerful theming]: /themes/
|
[Powerful theming]: /themes/
|
||||||
|
[Pretty URLs]: /content-management/url-management/
|
||||||
[Pygments]: http://pygments.org/
|
[Pygments]: http://pygments.org/
|
||||||
[RSS]: /templates/rss-templates/
|
[RSS]: /templates/rss-templates/
|
||||||
[Shortcodes]: /templates/shortcodes/
|
[Shortcodes]: /templates/shortcodes/
|
||||||
@@ -83,5 +83,5 @@ See what's coming next in the [Hugo roadmap][].
|
|||||||
[Syntax highlighting]: /developer-tools/syntax-highlighting/
|
[Syntax highlighting]: /developer-tools/syntax-highlighting/
|
||||||
[table of contents]: /content-management/table-of-contents/
|
[table of contents]: /content-management/table-of-contents/
|
||||||
[taxonomies]: /content-management/taxonomies/
|
[taxonomies]: /content-management/taxonomies/
|
||||||
[URLs]: /url-management/
|
[URLs]: /content-management/url-management/
|
||||||
[Windows]: /getting-started/install-on-linux/
|
[Windows]: /getting-started/install-on-linux/
|
||||||
@@ -1,132 +0,0 @@
|
|||||||
---
|
|
||||||
title: Sample Styles
|
|
||||||
linktitle:
|
|
||||||
description: This should be deleted before go live.
|
|
||||||
date: 2016-02-01
|
|
||||||
publishdate: 2016-02-01
|
|
||||||
lastmod: 2016-02-01
|
|
||||||
weight: 99
|
|
||||||
draft: false
|
|
||||||
slug:
|
|
||||||
aliases:
|
|
||||||
notes:
|
|
||||||
---
|
|
||||||
|
|
||||||
## Code Block Shortcodes
|
|
||||||
|
|
||||||
### Code Input Shortcode
|
|
||||||
|
|
||||||
{{% input "my-first-template.html" %}}
|
|
||||||
```go
|
|
||||||
<ul>
|
|
||||||
{{range $.Site.Pages}}
|
|
||||||
<li>{{.Title}}</li>
|
|
||||||
{{end}}
|
|
||||||
</ul>
|
|
||||||
```
|
|
||||||
{{% /input %}}
|
|
||||||
|
|
||||||
{{% input "first-script.js" %}}
|
|
||||||
```js
|
|
||||||
function myFunction(arg){
|
|
||||||
console.log(arg);
|
|
||||||
}
|
|
||||||
```
|
|
||||||
{{% /input %}}
|
|
||||||
|
|
||||||
{{% input "config.yml" %}}
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
archetypeDir: "archetypes"
|
|
||||||
# hostname (and path) to the root, e.g. http://spf13.com/
|
|
||||||
baseURL: ""
|
|
||||||
# include content marked as draft
|
|
||||||
buildDrafts: false
|
|
||||||
# include content with publishdate in the future
|
|
||||||
buildFuture: false
|
|
||||||
# include content already expired
|
|
||||||
buildExpired: false
|
|
||||||
# enable this to make all relative URLs relative to content root. Note that this does not affect absolute URLs.
|
|
||||||
relativeURLs: false
|
|
||||||
canonifyURLs: false
|
|
||||||
...
|
|
||||||
```
|
|
||||||
{{% /input %}}
|
|
||||||
|
|
||||||
### Code Output Shortcode
|
|
||||||
|
|
||||||
{{% output "/posts/index.html" %}}
|
|
||||||
```html
|
|
||||||
<ul>
|
|
||||||
<li>My First Post</li>
|
|
||||||
<li>My Second Post</li>
|
|
||||||
<li>My Third Post</li>
|
|
||||||
</ul>
|
|
||||||
```
|
|
||||||
{{% /output %}}
|
|
||||||
|
|
||||||
{{% output "/first-data.json" %}}
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"glossary": {
|
|
||||||
"title": "example glossary",
|
|
||||||
"GlossDiv": {
|
|
||||||
"title": "S"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
{{% /output %}}
|
|
||||||
|
|
||||||
{{% output "/script.js" %}}
|
|
||||||
```javascript
|
|
||||||
$('my-div').on('click',function(evt){
|
|
||||||
evt.preventDefault();
|
|
||||||
console.log('Hello world!');
|
|
||||||
});
|
|
||||||
```
|
|
||||||
{{% /output %}}
|
|
||||||
|
|
||||||
### Markdown Code Block without Shortcode
|
|
||||||
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
function myFunction(val){
|
|
||||||
console.log(val);
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
Here is some body copy. Here is a bit of `inline code`. Here is a [link to Google](https://www.google.com). Here is some *emphasized and italics text*. Here is some **emphasized and bold text**.
|
|
||||||
|
|
||||||
## Lists
|
|
||||||
|
|
||||||
* Unordered list item lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad dolorum alias vero.
|
|
||||||
* Unordered list item
|
|
||||||
* Nested unordered list item
|
|
||||||
* Nested unordered list item
|
|
||||||
* Nested again
|
|
||||||
* Nested again
|
|
||||||
* Unordered list item
|
|
||||||
|
|
||||||
1. Ordered list item lorem ipsum dolor sit amet, consectetur adipisicing elit. Sapiente, quae nulla dolore eligendi.
|
|
||||||
2. Ordered list item
|
|
||||||
1. Nested ordered list item
|
|
||||||
2. Nested ordered list item
|
|
||||||
1. Nested again, ordered
|
|
||||||
2. Nested again, ordered
|
|
||||||
3. Ordered list item
|
|
||||||
|
|
||||||
## Callouts/CTAs/Admonitions
|
|
||||||
|
|
||||||
{{% note "Note Shortcode" %}}
|
|
||||||
Here is *something in italic* in a shortcode. Here is **something in bold**.
|
|
||||||
{{% /note %}}
|
|
||||||
|
|
||||||
{{% caution "Caution Shortcode" %}}
|
|
||||||
Here is *something in italic* in a shortcode. Here is **something in bold**.
|
|
||||||
{{% /caution %}}
|
|
||||||
|
|
||||||
{{% warning "Warning Shortcode" %}}
|
|
||||||
Here is *something in italic* in a shortcode. Here is **something in bold**.
|
|
||||||
{{% /warning %}}
|
|
||||||
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><svg width="256px" height="260px" viewBox="0 0 256 259.3" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMinYMin meet"><a xlink:href="http://logo.webnhanh.com/logo/github-octocat.svg.html" target="_blank"><g><path fill="#9EDCF2" d="M200.9,199.8c0,13.9-32.2,25.1-71.9,25.1c-39.7,0-71.9-11.3-71.9-25.1c0-13.9,32.2-25.1,71.9-25.1C168.7,174.7,200.9,185.9,200.9,199.8L200.9,199.8z M200.9,199.8" /><g><defs><path id="SVGID_1_" d="M98.1,244.8c1.6,7.5,5.5,11.9,9.4,14.5l41.1,0c5-3.4,10.1-9.8,10.1-21.8v-31c0,0,0.6-7.7,7.7-10.2c0,0,4.1-2.9-0.3-4.5c0,0-19.5-1.6-19.5,14.4v23.6c0,0,0.8,8.7-3.8,12.3v-29.2c0,0,0.3-9.3,5.1-12.8c0,0,3.2-5.7-3.8-4.2c0,0-13.4,1.9-14,17.6l-0.3,30h-3.2l-0.3-30c-0.6-15.6-14-17.6-14-17.6c-7-1.6-3.8,4.2-3.8,4.2c4.8,3.5,5.1,12.8,5.1,12.8v29.5c-4.6-3.3-3.8-12.6-3.8-12.6v-23.6c0-16-19.5-14.4-19.5-14.4c-4.5,1.6-0.3,4.5-0.3,4.5c7,2.6,7.7,10.2,7.7,10.2v21.7L98.1,244.8z" /></defs><clipPath id="SVGID_2_"><use xlink:href="#SVGID_1_" overflow="visible" /></clipPath><path clip-path="url(#SVGID_2_)" fill="#7DBCE7" d="M200.9,199.8c0,13.9-32.2,25.1-71.9,25.1c-39.7,0-71.9-11.3-71.9-25.1c0-13.9,32.2-25.1,71.9-25.1C168.7,174.7,200.9,185.9,200.9,199.8L200.9,199.8z M200.9,199.8" /></g><path fill="#9EDCF2" d="M46.9,125.9l-2.1,7.2c0,0-0.5,2.6,1.9,3.1c2.6-0.1,2.4-2.5,2.2-3.2L46.9,125.9L46.9,125.9z M46.9,125.9" /><path fill="#010101" d="M255.8,95.6l0.2-0.9c-21.1-4.2-42.7-4.3-55.8-3.7c2.1-7.7,2.8-16.7,2.8-26.6c0-14.3-5.4-25.7-14-34.3c1.5-4.9,3.5-15.8-2-29.7c0,0-9.8-3.1-32.1,11.8c-8.7-2.2-18-3.3-27.3-3.3c-10.2,0-20.5,1.3-30.2,3.9C74.4-2.9,64.3,0.3,64.3,0.3c-6.6,16.5-2.5,28.8-1.3,31.8c-7.8,8.4-12.5,19.1-12.5,32.2c0,9.9,1.1,18.8,3.9,26.5c-13.2-0.5-34-0.3-54.4,3.8l0.2,0.9c20.4-4.1,41.4-4.2,54.5-3.7c0.6,1.6,1.3,3.2,2,4.7c-13,0.4-35.1,2.1-56.3,8.1l0.3,0.9c21.4-6,43.7-7.6,56.6-8c7.8,14.4,23,23.8,50.2,26.7c-3.9,2.6-7.8,7-9.4,14.5c-5.3,2.5-21.9,8.7-31.9-8.5c0,0-5.6-10.2-16.3-11c0,0-10.4-0.2-0.7,6.5c0,0,6.9,3.3,11.7,15.6c0,0,6.3,21,36.4,14.2V177c0,0-0.6,7.7-7.7,10.2c0,0-4.2,2.9,0.3,4.5c0,0,19.5,1.6,19.5-14.4v-23.6c0,0-0.8-9.4,3.8-12.6v38.8c0,0-0.3,9.3-5.1,12.8c0,0-3.2,5.7,3.8,4.2c0,0,13.4-1.9,14-17.6l0.3-39.3h3.2l0.3,39.3c0.6,15.6,14,17.6,14,17.6c7,1.6,3.8-4.2,3.8-4.2c-4.8-3.5-5.1-12.8-5.1-12.8v-38.5c4.6,3.6,3.8,12.3,3.8,12.3v23.6c0,16,19.5,14.4,19.5,14.4c4.5-1.6,0.3-4.5,0.3-4.5c-7-2.6-7.7-10.2-7.7-10.2v-31c0-12.1-5.1-18.5-10.1-21.8c29-2.9,42.9-12.2,49.3-26.8c12.7,0.3,35.6,1.9,57.4,8.1l0.3-0.9c-21.7-6.1-44.4-7.7-57.3-8.1c0.6-1.5,1.1-3,1.6-4.6C212.9,91.4,234.6,91.4,255.8,95.6L255.8,95.6z M255.8,95.6" /><path fill="#F5CCB3" d="M174.6,63.7c6.2,5.7,9.9,12.5,9.9,19.8c0,34.4-25.6,35.3-57.2,35.3c-31.6,0-57.2-4.8-57.2-35.3c0-7.3,3.6-14.1,9.8-19.7c10.3-9.4,27.7-4.4,47.4-4.4C147,59.4,164.3,54.3,174.6,63.7L174.6,63.7z M174.6,63.7" /><path fill="#FFFFFF" d="M108.3,85.3c0,9.5-5.3,17.1-11.9,17.1c-6.6,0-11.9-7.7-11.9-17.1c0-9.5,5.3-17.1,11.9-17.1C103,68.1,108.3,75.8,108.3,85.3L108.3,85.3z M108.3,85.3" /><path fill="#AF5C51" d="M104.5,85.5c0,6.3-3.6,11.4-7.9,11.4c-4.4,0-7.9-5.1-7.9-11.4c0-6.3,3.6-11.4,7.9-11.4C100.9,74.1,104.5,79.2,104.5,85.5L104.5,85.5z M104.5,85.5" /><path fill="#FFFFFF" d="M172.2,85.3c0,9.5-5.3,17.1-11.9,17.1c-6.6,0-11.9-7.7-11.9-17.1c0-9.5,5.3-17.1,11.9-17.1C166.8,68.1,172.2,75.8,172.2,85.3L172.2,85.3z M172.2,85.3" /><path fill="#AF5C51" d="M168.3,85.5c0,6.3-3.6,11.4-7.9,11.4c-4.4,0-7.9-5.1-7.9-11.4c0-6.3,3.6-11.4,7.9-11.4C164.8,74.1,168.3,79.2,168.3,85.5L168.3,85.5z M168.3,85.5" /><path fill="#AF5C51" d="M130.5,100.5c0,1.6-1.3,3-3,3c-1.6,0-3-1.3-3-3s1.3-3,3-3C129.1,97.5,130.5,98.8,130.5,100.5L130.5,100.5z M130.5,100.5" /><path fill="#AF5C51" d="M120.6,108c-0.2-0.5,0.1-1,0.6-1.2c0.5-0.2,1,0.1,1.2,0.6c0.8,2.2,2.8,3.6,5.1,3.6c2.3,0,4.3-1.5,5.1-3.6c0.2-0.5,0.7-0.8,1.2-0.6c0.5,0.2,0.8,0.7,0.6,1.2c-1,2.9-3.8,4.9-6.9,4.9C124.4,112.9,121.6,110.9,120.6,108L120.6,108z M120.6,108" /><path fill="#C4E5D9" d="M54.5,121.6c0,0.8-0.9,1.4-2.1,1.4c-1.1,0-2.1-0.6-2.1-1.4c0-0.8,0.9-1.4,2.1-1.4C53.6,120.2,54.5,120.8,54.5,121.6L54.5,121.6z M54.5,121.6" /><path fill="#C4E5D9" d="M60.3,124.8c0,0.8-0.9,1.4-2.1,1.4c-1.1,0-2.1-0.6-2.1-1.4c0-0.8,0.9-1.4,2.1-1.4C59.4,123.4,60.3,124,60.3,124.8L60.3,124.8z M60.3,124.8" /><path fill="#C4E5D9" d="M63.8,129c0,0.8-0.9,1.4-2.1,1.4c-1.1,0-2.1-0.6-2.1-1.4c0-0.8,0.9-1.4,2.1-1.4C62.9,127.5,63.8,128.2,63.8,129L63.8,129z M63.8,129" /><path fill="#C4E5D9" d="M67,133.8c0,0.8-0.9,1.4-2.1,1.4c-1.1,0-2.1-0.6-2.1-1.4c0-0.8,0.9-1.4,2.1-1.4C66.1,132.3,67,133,67,133.8L67,133.8z M67,133.8" /><path fill="#C4E5D9" d="M70.5,138.2c0,0.8-0.9,1.4-2.1,1.4c-1.1,0-2.1-0.6-2.1-1.4c0-0.8,0.9-1.4,2.1-1.4C69.6,136.8,70.5,137.4,70.5,138.2L70.5,138.2z M70.5,138.2" /><path fill="#C4E5D9" d="M75.3,142.1c0,0.8-0.9,1.4-2.1,1.4c-1.1,0-2.1-0.6-2.1-1.4c0-0.8,0.9-1.4,2.1-1.4C74.4,140.6,75.3,141.3,75.3,142.1L75.3,142.1z M75.3,142.1" /><path fill="#C4E5D9" d="M82,144.6c0,0.8-0.9,1.4-2.1,1.4c-1.1,0-2.1-0.6-2.1-1.4c0-0.8,0.9-1.4,2.1-1.4CLine truncated
|
||||||
|
After Width: | Height: | Size: 5.3 KiB |
@@ -1,4 +1,3 @@
|
|||||||
{{ if gt .WordCount 300}}
|
|
||||||
<aside id="toc">
|
<aside id="toc">
|
||||||
<header>
|
<header>
|
||||||
<a href="#page-top">
|
<a href="#page-top">
|
||||||
@@ -6,6 +5,5 @@
|
|||||||
</a>
|
</a>
|
||||||
</header>
|
</header>
|
||||||
{{.TableOfContents}}
|
{{.TableOfContents}}
|
||||||
<a href="#" id="toc-toggle">ToC</a>
|
|
||||||
</aside>
|
</aside>
|
||||||
{{ end }}
|
<a href="#" id="toc-toggle"></a>
|
||||||
+1
-15
@@ -5,20 +5,6 @@ $('document').ready(function() {
|
|||||||
baseurl = window.location.origin,
|
baseurl = window.location.origin,
|
||||||
path = window.location.pathname,
|
path = window.location.pathname,
|
||||||
fullurl = `${baseurl}${path}#${id}`;
|
fullurl = `${baseurl}${path}#${id}`;
|
||||||
$(this).append(`<a class="smooth-scroll heading-link" title="Copy heading link to clipboard" data-clip="${fullurl}" href="#${id}"><i class="icon-link"></i></a>`);
|
$(this).append(`<a class="smooth-scroll heading-link" title="Copy heading link to clipboard" data-clipboard-text="${fullurl}" href="#${id}"><i class="icon-link"></i></a>`);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
// const hasCopy = document.execCommand('copy', false, null);
|
|
||||||
// console.log(`${hasCopy} is hasCopy value`);
|
|
||||||
|
|
||||||
// window.setTimeout(function() {
|
|
||||||
// // let headLinks = document.querySelector('.heading-link');
|
|
||||||
// // for (var i = 0; i < headLinks.length; i++) {
|
|
||||||
// // headLinks[i].addEventListener('click', copyHeaderLink, false);
|
|
||||||
// // }
|
|
||||||
// }, 2000);
|
|
||||||
|
|
||||||
// function copyHeaderLink(evt) {
|
|
||||||
// let link = evt.target.dataset.clip;
|
|
||||||
// console.log(link);
|
|
||||||
// }
|
|
||||||
@@ -9,4 +9,7 @@ $('#all-content-wrapper').on('click', function() {
|
|||||||
if ($('.site-navigation.navigation-open')) {
|
if ($('.site-navigation.navigation-open')) {
|
||||||
$('.site-navigation.navigation-open,.all-content-wrapper.navigation-open,#navigation-toggle,#site-footer').removeClass('navigation-open');
|
$('.site-navigation.navigation-open,.all-content-wrapper.navigation-open,#navigation-toggle,#site-footer').removeClass('navigation-open');
|
||||||
}
|
}
|
||||||
|
// if ($('#toggle-toc.toc-open')) {
|
||||||
|
// $('#toggle-toc.toc-open').removeClass('toc-open');
|
||||||
|
// }
|
||||||
});
|
});
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
//removes toc if not enough headings
|
||||||
|
(function() {
|
||||||
|
let tocLinks = document.querySelectorAll('#TableOfContents > ul a');
|
||||||
|
if(tocLinks && tocLinks.length < 2){
|
||||||
|
document.getElementById('toc').remove();
|
||||||
|
}else if (tocLinks && tocLinks.length > 1){
|
||||||
|
document.getElementById('toc-toggle').addEventListener('click',toggleToc,false);
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|
||||||
|
function toggleToc(evt) {
|
||||||
|
evt.preventDefault();
|
||||||
|
evt.stopPropagation();
|
||||||
|
console.log("hello");
|
||||||
|
document.getElementById('toc').classList.toggle('toc-open');
|
||||||
|
document.getElementById('toc-toggle').classList.toggle('toc-open');
|
||||||
|
}
|
||||||
@@ -66,6 +66,9 @@ $content-max-width: 34em;
|
|||||||
//Header
|
//Header
|
||||||
$site-header-height:50px;
|
$site-header-height:50px;
|
||||||
|
|
||||||
|
//Toc
|
||||||
|
$toc-bg-color:$body-bg-color;
|
||||||
|
|
||||||
//Brand Colors:
|
//Brand Colors:
|
||||||
$html: #E44D26;
|
$html: #E44D26;
|
||||||
$css: #1758A7;
|
$css: #1758A7;
|
||||||
|
|||||||
@@ -3,12 +3,26 @@ aside#toc {
|
|||||||
max-width: 280px;
|
max-width: 280px;
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
padding-left:1em;
|
padding: .5em;
|
||||||
|
bottom: 20px;
|
||||||
|
right: 20px;
|
||||||
|
@include card(1);
|
||||||
|
z-index: 30;
|
||||||
|
background-color: $toc-bg-color;
|
||||||
|
transform: scale(0);
|
||||||
|
transform-origin: bottom right;
|
||||||
|
opacity: 0;
|
||||||
|
border-radius: 5px;
|
||||||
|
&.toc-open {
|
||||||
|
transform: scale(1);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
nav {
|
nav {
|
||||||
float: left;
|
float: left;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
ul {
|
ul {
|
||||||
margin-top: .5em;
|
margin-top: .5em;
|
||||||
|
margin-bottom: 2em;
|
||||||
}
|
}
|
||||||
ul li ul {
|
ul li ul {
|
||||||
font-size: .8em;
|
font-size: .8em;
|
||||||
@@ -30,9 +44,11 @@ aside#toc {
|
|||||||
color: $base-font-color;
|
color: $base-font-color;
|
||||||
}
|
}
|
||||||
@include MQ(XL) {
|
@include MQ(XL) {
|
||||||
|
box-shadow: none;
|
||||||
top: $site-header-height + 20px;
|
top: $site-header-height + 20px;
|
||||||
left: calc(#{$site-navigation-width} + #{$content-max-width} + 3em);
|
left: calc(#{$site-navigation-width} + #{$content-max-width} + 3em);
|
||||||
|
opacity: 1;
|
||||||
|
transform: scale(1);
|
||||||
}
|
}
|
||||||
@include MQ(HUGE) {
|
@include MQ(HUGE) {
|
||||||
max-width: 320px;
|
max-width: 320px;
|
||||||
@@ -41,6 +57,44 @@ aside#toc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
a#toc-toggle {
|
a#toc-toggle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
aside#toc + a#toc-toggle {
|
||||||
|
display: block;
|
||||||
|
position: fixed;
|
||||||
|
bottom: 20px;
|
||||||
|
right: 20px;
|
||||||
|
background-color: $toc-bg-color;
|
||||||
|
color: $hugo-white;
|
||||||
|
background-color: $hugo-pink;
|
||||||
|
@include size(50px);
|
||||||
|
z-index: 99;
|
||||||
|
line-height: 50px;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 5px;
|
||||||
|
&:after {
|
||||||
|
content:'ToC';
|
||||||
|
display:block;
|
||||||
|
position:relative;
|
||||||
|
width:50px;
|
||||||
|
height:50px;
|
||||||
|
// top:-50px;
|
||||||
|
// left:-50px;
|
||||||
|
}
|
||||||
|
&.toc-open {
|
||||||
|
box-shadow: none;
|
||||||
|
background-color: $toc-bg-color;
|
||||||
|
color:$base-font-color;
|
||||||
|
&::after {
|
||||||
|
content:"\00D7";
|
||||||
|
font-size:2em;
|
||||||
|
}
|
||||||
|
&:hover {
|
||||||
|
box-shadow:none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@include card(2, 5);
|
||||||
@include MQ(XL) {
|
@include MQ(XL) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;box-sizing:content-box;border-radius:0px;outline:none}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}html,body{margin:0px;padding:0px;outline:none;border:none;font-size:18px;font-family:"muli","Helvetica Neue","Helvetica","Roboto","Arial",sans-serif;color:#222;line-height:1.6;font-weight:300;overflow-x:hidden}body{font-size:90%;overflow-x:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}@media only screen and (min-width: 760px){body{font-size:95%}}@media only screen and (min-width: 960px){body{font-size:100%}}p{margin-top:0px;margin-bottom:1.5em;line-height:1.6}@font-face{font-family:'fontello';src:url("/fonts/fontello/fontello.eot");src:url("/fonts/fontello/fontello.woff2") format("woff2"),url("/fonts/fontello/fontello.woff") format("woff"),url("/fonts/fontello/fontello.ttf") format("truetype"),url("/fonts/fontello/fontello.svg?78165468#fontello") format("svg");font-weight:normal;font-style:normal}[class^="icon-"]:before,[class*=" icon-"]:before{font-family:"fontello";font-style:normal;font-weight:normal;speak:none;display:inline-block;text-decoration:inherit;width:1em;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-alert:before{content:'\e810'}.icon-angle-double-right:before{content:'\f101'}.icon-attach:before{content:'\e820'}.icon-attention:before{content:'\e80f'}.icon-bell:before{content:'\e80d'}.icon-cancel:before{content:'\e81e'}.icon-caution:before{content:'\e80f'}.icon-chrome:before{content:'\e841'}.icon-clipboard:before{content:'\e817'}.icon-code:before{content:'\f121'}.icon-cog-alt:before{content:'\e814'}.icon-css3:before{content:'\f13c'}.icon-docs:before{content:'\f15c'}.icon-download:before{content:'\e815'}.icon-facebook-official:before{content:'\f230'}.icon-firefox:before{content:'\e840'}.icon-flag:before{content:'\e813'}.icon-forum:before{content:'\f03d';margin-right:.3em}.icon-github:before{content:'\f09b'}.icon-gitter:before{content:'\e819'}.icon-go:before{content:'\e801'}.icon-golang:before{content:'\e801'}.icon-heart:before{content:'\e81d'}.icon-help:before{content:'\e81b'}.icon-home:before{content:'\e812'}.icon-html.input:before{content:'\e81f'}.icon-html5:before{content:'\e800'}.icon-html:before{content:'\e800'}.icon-hugo:before{content:'\e81f'}.icon-ie:before{content:'\e843'}.icon-info:before{content:'\e811'}.icon-instagram:before{content:'\f32d'}.icon-javascript:before{content:'\e802'}.icon-js:before{content:'\e802'}.icon-json:before{content:'\e81c'}.icon-link:before{content:'\e816'}.icon-linkedin:before{content:'\f30c'}.icon-love:before{content:'\e81d'}.icon-mail:before{content:'\e821'}.icon-markdown:before{content:'\e80e'}.icon-md:before{content:'\e80e'}.icon-note:before{content:'\e80d'}.icon-opera:before{content:'\e842'}.icon-pdf:before{content:'\f1c1'}.icon-pencil:before{content:'\e80c'}.icon-picture:before{content:'\e808'}.icon-quote-left:before{content:'\e809'}.icon-quote-right:before{content:'\e80a'}.icon-sasLine truncated
|
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;box-sizing:content-box;border-radius:0px;outline:none}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}html,body{margin:0px;padding:0px;outline:none;border:none;font-size:18px;font-family:"muli","Helvetica Neue","Helvetica","Roboto","Arial",sans-serif;color:#222;line-height:1.6;font-weight:300;overflow-x:hidden}body{font-size:90%;overflow-x:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}@media only screen and (min-width: 760px){body{font-size:95%}}@media only screen and (min-width: 960px){body{font-size:100%}}p{margin-top:0px;margin-bottom:1.5em;line-height:1.6}@font-face{font-family:'fontello';src:url("/fonts/fontello/fontello.eot");src:url("/fonts/fontello/fontello.woff2") format("woff2"),url("/fonts/fontello/fontello.woff") format("woff"),url("/fonts/fontello/fontello.ttf") format("truetype"),url("/fonts/fontello/fontello.svg?78165468#fontello") format("svg");font-weight:normal;font-style:normal}[class^="icon-"]:before,[class*=" icon-"]:before{font-family:"fontello";font-style:normal;font-weight:normal;speak:none;display:inline-block;text-decoration:inherit;width:1em;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-alert:before{content:'\e810'}.icon-angle-double-right:before{content:'\f101'}.icon-attach:before{content:'\e820'}.icon-attention:before{content:'\e80f'}.icon-bell:before{content:'\e80d'}.icon-cancel:before{content:'\e81e'}.icon-caution:before{content:'\e80f'}.icon-chrome:before{content:'\e841'}.icon-clipboard:before{content:'\e817'}.icon-code:before{content:'\f121'}.icon-cog-alt:before{content:'\e814'}.icon-css3:before{content:'\f13c'}.icon-docs:before{content:'\f15c'}.icon-download:before{content:'\e815'}.icon-facebook-official:before{content:'\f230'}.icon-firefox:before{content:'\e840'}.icon-flag:before{content:'\e813'}.icon-forum:before{content:'\f03d';margin-right:.3em}.icon-github:before{content:'\f09b'}.icon-gitter:before{content:'\e819'}.icon-go:before{content:'\e801'}.icon-golang:before{content:'\e801'}.icon-heart:before{content:'\e81d'}.icon-help:before{content:'\e81b'}.icon-home:before{content:'\e812'}.icon-html.input:before{content:'\e81f'}.icon-html5:before{content:'\e800'}.icon-html:before{content:'\e800'}.icon-hugo:before{content:'\e81f'}.icon-ie:before{content:'\e843'}.icon-info:before{content:'\e811'}.icon-instagram:before{content:'\f32d'}.icon-javascript:before{content:'\e802'}.icon-js:before{content:'\e802'}.icon-json:before{content:'\e81c'}.icon-link:before{content:'\e816'}.icon-linkedin:before{content:'\f30c'}.icon-love:before{content:'\e81d'}.icon-mail:before{content:'\e821'}.icon-markdown:before{content:'\e80e'}.icon-md:before{content:'\e80e'}.icon-note:before{content:'\e80d'}.icon-opera:before{content:'\e842'}.icon-pdf:before{content:'\f1c1'}.icon-pencil:before{content:'\e80c'}.icon-picture:before{content:'\e808'}.icon-quote-left:before{content:'\e809'}.icon-quote-right:before{content:'\e80a'}.icon-sasLine truncated
|
||||||
@@ -1,11 +1,41 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
<svg width="100%" height="100%" viewBox="0 0 496 496" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">
|
<svg width="100%" height="100%" viewBox="0 0 512 512" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">
|
||||||
|
<circle cx="256" cy="256" r="256" style="fill:rgb(115,115,115);"/>
|
||||||
<g transform="matrix(1.46332,0,0,1.46332,-118.606,-118.61)">
|
<g transform="matrix(1.46332,0,0,1.46332,-118.606,-118.61)">
|
||||||
<circle cx="256" cy="256" r="153.078" style="fill:rgb(115,115,115);"/>
|
<circle cx="256" cy="256" r="153.078" style="fill:rgb(0,131,192);"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(1.5377,0.00187348,-0.00187348,1.5377,256.004,280.399)">
|
||||||
|
<g>
|
||||||
|
<g transform="matrix(1,0,0,1,-128,-129.65)">
|
||||||
|
<g>
|
||||||
|
<path d="M200.9,199.8C200.9,213.7 168.7,224.9 129,224.9C89.3,224.9 57.1,213.6 57.1,199.8C57.1,185.9 89.3,174.7 129,174.7C168.7,174.7 200.9,185.9 200.9,199.8Z" style="fill:rgb(158,220,242);fill-rule:nonzero;"/>
|
||||||
|
<clipPath id="_clip1">
|
||||||
|
<path d="M98.1,244.8C99.7,252.3 103.6,256.7 107.5,259.3L148.6,259.3C153.6,255.9 158.7,249.5 158.7,237.5L158.7,206.5C158.7,206.5 159.3,198.8 166.4,196.3C166.4,196.3 170.5,193.4 166.1,191.8C166.1,191.8 146.6,190.2 146.6,206.2L146.6,229.8C146.6,229.8 147.4,238.5 142.8,242.1L142.8,212.9C142.8,212.9 143.1,203.6 147.9,200.1C147.9,200.1 151.1,194.4 144.1,195.9C144.1,195.9 130.7,197.8 130.1,213.5L129.8,243.5L126.6,243.5L126.3,213.5C125.7,197.9 112.3,195.9 112.3,195.9C105.3,194.3 108.5,200.1 108.5,200.1C113.3,203.6 113.6,212.9 113.6,212.9L113.6,242.4C109,239.1 109.8,229.8 109.8,229.8L109.8,206.2C109.8,190.2 90.3,191.8 90.3,191.8C85.8,193.4 90,196.3 90,196.3C97,198.9 97.7,206.5 97.7,206.5L97.7,228.2L98.1,244.8Z"/>
|
||||||
|
</clipPath>
|
||||||
|
<g clip-path="url(#_clip1)">
|
||||||
|
<path d="M200.9,199.8C200.9,213.7 168.7,224.9 129,224.9C89.3,224.9 57.1,213.6 57.1,199.8C57.1,185.9 89.3,174.7 129,174.7C168.7,174.7 200.9,185.9 200.9,199.8Z" style="fill:rgb(125,188,231);fill-rule:nonzero;"/>
|
||||||
|
</g>
|
||||||
|
<path d="M46.9,125.9L44.8,133.1C44.8,133.1 44.3,135.7 46.7,136.2C49.3,136.1 49.1,133.7 48.9,133L46.9,125.9Z" style="fill:rgb(158,220,242);fill-rule:nonzero;"/>
|
||||||
|
<path d="M255.8,95.6L256,94.7C234.9,90.5 213.3,90.4 200.2,91C202.3,83.3 203,74.3 203,64.4C203,50.1 197.6,38.7 189,30.1C190.5,25.2 192.5,14.3 187,0.4C187,0.4 177.2,-2.7 154.9,12.2C146.2,10 136.9,8.9 127.6,8.9C117.4,8.9 107.1,10.2 97.4,12.8C74.4,-2.9 64.3,0.3 64.3,0.3C57.7,16.8 61.8,29.1 63,32.1C55.2,40.5 50.5,51.2 50.5,64.3C50.5,74.2 51.6,83.1 54.4,90.8C41.2,90.3 20.4,90.5 0,94.6L0.2,95.5C20.6,91.4 41.6,91.3 54.7,91.8C55.3,93.4 56,95 56.7,96.5C43.7,96.9 21.6,98.6 0.4,104.6L0.7,105.5C22.1,99.5 44.4,97.9 57.3,97.5C65.1,111.9 80.3,121.3 107.5,124.2C103.6,126.8 99.7,131.2 98.1,138.7C92.8,141.2 76.2,147.4 66.2,130.2C66.2,130.2 60.6,120 49.9,119.2C49.9,119.2 39.5,119 49.2,125.7C49.2,125.7 56.1,129 60.9,141.3C60.9,141.3 67.2,162.3 97.3,155.5L97.3,177C97.3,177 96.7,184.7 89.6,187.2C89.6,187.2 85.4,190.1 89.9,191.7C89.9,191.7 109.4,193.3 109.4,177.3L109.4,153.7C109.4,153.7 108.6,144.3 113.2,141.1L113.2,179.9C113.2,179.9 112.9,189.2 108.1,192.7C108.1,192.7 104.9,198.4 111.9,196.9C111.9,196.9 125.3,195 125.9,179.3L126.2,140L129.4,140L129.7,179.3C130.3,194.9 143.7,196.9 143.7,196.9C150.7,198.5 147.5,192.7 147.5,192.7C142.7,189.2 142.4,179.9 142.4,179.9L142.4,141.4C147,145 146.2,153.7 146.2,153.7L146.2,177.3C146.2,193.3 165.7,191.7 165.7,191.7C170.2,190.1 166,187.2 166,187.2C159,184.6 158.3,177 158.3,177L158.3,146C158.3,133.9 153.2,127.5 148.2,124.2C177.2,121.3 191.1,112 197.5,97.4C210.2,97.7 233.1,99.3 254.9,105.5L255.2,104.6C233.5,98.5 210.8,96.9 197.9,96.5C198.5,95 199,93.5 199.5,91.9C212.9,91.4 234.6,91.4 255.8,95.6Z" style="fill:rgb(1,1,1);fill-rule:nonzero;"/>
|
||||||
|
<path d="M174.6,63.7C180.8,69.4 184.5,76.2 184.5,83.5C184.5,117.9 158.9,118.8 127.3,118.8C95.7,118.8 70.1,114 70.1,83.5C70.1,76.2 73.7,69.4 79.9,63.8C90.2,54.4 107.6,59.4 127.3,59.4C147,59.4 164.3,54.3 174.6,63.7Z" style="fill:rgb(245,204,179);fill-rule:nonzero;"/>
|
||||||
|
<path d="M108.3,85.3C108.3,94.8 103,102.4 96.4,102.4C89.8,102.4 84.5,94.7 84.5,85.3C84.5,75.8 89.8,68.2 96.4,68.2C103,68.1 108.3,75.8 108.3,85.3Z" style="fill:white;fill-rule:nonzero;"/>
|
||||||
|
<path d="M104.5,85.5C104.5,91.8 100.9,96.9 96.6,96.9C92.2,96.9 88.7,91.8 88.7,85.5C88.7,79.2 92.3,74.1 96.6,74.1C100.9,74.1 104.5,79.2 104.5,85.5Z" style="fill:rgb(175,92,81);fill-rule:nonzero;"/>
|
||||||
|
<path d="M172.2,85.3C172.2,94.8 166.9,102.4 160.3,102.4C153.7,102.4 148.4,94.7 148.4,85.3C148.4,75.8 153.7,68.2 160.3,68.2C166.8,68.1 172.2,75.8 172.2,85.3Z" style="fill:white;fill-rule:nonzero;"/>
|
||||||
|
<path d="M168.3,85.5C168.3,91.8 164.7,96.9 160.4,96.9C156,96.9 152.5,91.8 152.5,85.5C152.5,79.2 156.1,74.1 160.4,74.1C164.8,74.1 168.3,79.2 168.3,85.5Z" style="fill:rgb(175,92,81);fill-rule:nonzero;"/>
|
||||||
|
<path d="M130.5,100.5C130.5,102.1 129.2,103.5 127.5,103.5C125.9,103.5 124.5,102.2 124.5,100.5C124.5,98.8 125.8,97.5 127.5,97.5C129.1,97.5 130.5,98.8 130.5,100.5Z" style="fill:rgb(175,92,81);fill-rule:nonzero;"/>
|
||||||
|
<path d="M120.6,108C120.4,107.5 120.7,107 121.2,106.8C121.7,106.6 122.2,106.9 122.4,107.4C123.2,109.6 125.2,111 127.5,111C129.8,111 131.8,109.5 132.6,107.4C132.8,106.9 133.3,106.6 133.8,106.8C134.3,107 134.6,107.5 134.4,108C133.4,110.9 130.6,112.9 127.5,112.9C124.4,112.9 121.6,110.9 120.6,108Z" style="fill:rgb(175,92,81);fill-rule:nonzero;"/>
|
||||||
|
<path d="M54.5,121.6C54.5,122.4 53.6,123 52.4,123C51.3,123 50.3,122.4 50.3,121.6C50.3,120.8 51.2,120.2 52.4,120.2C53.6,120.2 54.5,120.8 54.5,121.6Z" style="fill:rgb(196,229,217);fill-rule:nonzero;"/>
|
||||||
|
<path d="M60.3,124.8C60.3,125.6 59.4,126.2 58.2,126.2C57.1,126.2 56.1,125.6 56.1,124.8C56.1,124 57,123.4 58.2,123.4C59.4,123.4 60.3,124 60.3,124.8Z" style="fill:rgb(196,229,217);fill-rule:nonzero;"/>
|
||||||
|
<path d="M63.8,129C63.8,129.8 62.9,130.4 61.7,130.4C60.6,130.4 59.6,129.8 59.6,129C59.6,128.2 60.5,127.6 61.7,127.6C62.9,127.5 63.8,128.2 63.8,129Z" style="fill:rgb(196,229,217);fill-rule:nonzero;"/>
|
||||||
|
<path d="M67,133.8C67,134.6 66.1,135.2 64.9,135.2C63.8,135.2 62.8,134.6 62.8,133.8C62.8,133 63.7,132.4 64.9,132.4C66.1,132.3 67,133 67,133.8Z" style="fill:rgb(196,229,217);fill-rule:nonzero;"/>
|
||||||
|
<path d="M70.5,138.2C70.5,139 69.6,139.6 68.4,139.6C67.3,139.6 66.3,139 66.3,138.2C66.3,137.4 67.2,136.8 68.4,136.8C69.6,136.8 70.5,137.4 70.5,138.2Z" style="fill:rgb(196,229,217);fill-rule:nonzero;"/>
|
||||||
|
<path d="M75.3,142.1C75.3,142.9 74.4,143.5 73.2,143.5C72.1,143.5 71.1,142.9 71.1,142.1C71.1,141.3 72,140.7 73.2,140.7C74.4,140.6 75.3,141.3 75.3,142.1Z" style="fill:rgb(196,229,217);fill-rule:nonzero;"/>
|
||||||
|
<path d="M82,144.6C82,145.4 81.1,146 79.9,146C78.8,146 77.8,145.4 77.8,144.6C77.8,143.8 78.7,143.2 79.9,143.2C81.1,143.2 82,143.8 82,144.6Z" style="fill:rgb(196,229,217);fill-rule:nonzero;"/>
|
||||||
|
<path d="M88.7,144.6C88.7,145.4 87.8,146 86.6,146C85.5,146 84.5,145.4 84.5,144.6C84.5,143.8 85.4,143.2 86.6,143.2C87.8,143.2 88.7,143.8 88.7,144.6Z" style="fill:rgb(196,229,217);fill-rule:nonzero;"/>
|
||||||
|
<path d="M95.5,143.5C95.5,144.3 94.6,144.9 93.4,144.9C92.3,144.9 91.3,144.3 91.3,143.5C91.3,142.7 92.2,142.1 93.4,142.1C94.5,142.1 95.5,142.7 95.5,143.5Z" style="fill:rgb(196,229,217);fill-rule:nonzero;"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
</g>
|
</g>
|
||||||
<g id="SVGCleanerId_0" transform="matrix(0.841324,0,0,0.83094,47.3555,41.9272)">
|
|
||||||
<path d="M247.992,5.163C111.048,5.163 0,116.627 0,254.163C0,364.155 71.048,457.483 169.632,490.403C182.024,492.699 186.544,485.011 186.544,478.403C186.544,472.499 186.328,456.843 186.208,436.059C117.208,451.123 102.656,402.683 102.656,402.683C91.392,373.915 75.136,366.275 75.136,366.275C52.608,350.819 76.832,351.115 76.832,351.115C101.712,352.867 114.808,376.787 114.808,376.787C136.952,414.835 172.872,403.835 187,397.459C189.232,381.379 195.656,370.395 202.736,364.179C147.68,357.883 89.792,336.539 89.792,241.139C89.792,213.963 99.448,191.731 115.312,174.307C112.744,168.011 104.24,142.707 117.728,108.435C117.728,108.435 138.56,101.747 185.928,133.955C205.712,128.435 226.928,125.675 248.024,125.563C269.072,125.675 290.304,128.427 310.12,133.955C357.448,101.747 378.248,108.435 378.248,108.435C391.768,142.707 383.264,168.011 380.704,174.307C396.608,191.731 406.208,213.955 406.208,241.139C406.208,336.779 348.224,357.819 292.976,363.995C301.88,371.683 309.808,386.867 309.808,410.107C309.808,443.403 309.512,470.235 309.512,478.403C309.512,485.075 313.984,492.827 326.56,490.371C425.016,457.387 496,364.123 496,254.163C496,116.627 384.952,5.163 247.992,5.163Z" style="fill:rgb(0,131,192);fill-rule:nonzero;"/>
|
|
||||||
</g>
|
</g>
|
||||||
<path d="M126.368,391.387C124.776,388.987 121.792,384.915 117.464,380.843C120.272,385.011 123.256,388.507 126.368,391.387Z" style="fill:rgb(108,169,234);fill-rule:nonzero;"/>
|
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 7.5 KiB |
+3
-3
@@ -1,3 +1,3 @@
|
|||||||
"use strict";function showTooltip(e,t){e.setAttribute("class","copy-button tooltipped tooltipped-s"),e.setAttribute("aria-label",t)}function fallbackMessage(e){var t="",r="cut"===e?"X":"C";return t=isMac?"Press ⌘-"+r:"Press Ctrl-"+r}var _typeof="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};!function(e){if("object"==("undefined"==typeof exports?"undefined":_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.Clipboard=e()}}(function(){var e;return function t(e,r,n){function a(o,s){if(!r[o]){if(!e[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(i)return i(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[o]={exports:{}};e[o][0].call(u.exports,function(t){var r=e[o][1][t];return a(r?r:t)},u,u.exports,t,e,r,n)}return r[o].exports}for(var i="function"==typeof require&&require,o=0;o<n.length;o++)a(n[o]);return a}({1:[function(e,t,r){var n=e("matches-selector");t.exports=function(e,t,r){for(var a=r?e:e.parentNode;a&&a!==document;){if(n(a,t))return a;a=a.parentNode}}},{"matches-selector":5}],2:[function(e,t,r){function n(e,t,r,n,i){var o=a.apply(this,arguments);return e.addEventListener(r,o,i),{destroy:function(){e.removeEventListener(r,o,i)}}}function a(e,t,r,n){return function(r){r.delegateTarget=i(r.target,t,!0),r.delegateTarget&&n.call(e,r)}}var i=e("closest");t.exports=n},{closest:1}],3:[function(e,t,r){r.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},r.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||r.node(e[0]))},r.string=function(e){return"string"==typeof e||e instanceof String},r.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},{}],4:[function(e,t,r){function n(e,t,r){if(!e&&!t&&!r)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(r))throw new TypeError("Third argument must be a Function");if(s.node(e))return a(e,t,r);if(s.nodeList(e))return i(e,t,r);if(s.string(e))return o(e,t,r);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(e,t,r){return e.addEventListener(t,r),{destroy:function(){e.removeEventListener(t,r)}}}function i(e,t,r){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,r)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,r)})}}}function o(e,t,r){return l(document.body,e,t,r)}var s=e("./is"),l=e("delegate");t.exports=n},{"./is":3,delegate:2}],5:[function(e,t,r){function n(e,t){if(i)return i.call(e,t);for(var r=e.parentNode.querySelectorAll(t),n=0;n<r.length;++n)if(r[n]==e)return!0;return!1}var a=Element.prototype,i=a.matchesSelector||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;t.exports=n},{}],6:[function(e,t,r){function n(e){var t;if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)e.focus(),e.setSelectionRange(0,e.value.length),t=e.value;else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),n=document.createRange();n.selectNodeContents(e),r.removeAllRanges(),r.addRange(n),t=r.toString()}return t}t.exports=n},{}],7:[function(e,t,r){function n(){}n.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){function n(){a.off(e,n),t.apply(r,arguments)}var a=this;return n._=t,this.on(e,n,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,a=r.length;for(n;a>n;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],a=[];if(n&&t)for(var i=0,o=n.length;o>i;i++)n[i].fn!==t&&n[i].fn._!==t&&a.push(n[i]);return a.length?r[e]=a:delete r[e],this}},t.exports=n},{}],8:[function(t,r,n){!function(a,i){if("function"==typeof e&&e.amd)e(["module","select"],i);else if("undefined"!=typeof n)i(r,t("select"));else{var o={exports:{}};i(o,a.select),a.clipboardAction=o.exports}}(this,function(e,t){function r(e){return e&&e.__esModule?e:{"default":e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=r(t),i="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":"undefined"==typeof e?"undefined":_typeof(e)},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"valueLine truncated
|
"use strict";function showTooltip(e,t){e.setAttribute("class","copy-button tooltipped tooltipped-s"),e.setAttribute("aria-label",t)}function fallbackMessage(e){var t="",r="cut"===e?"X":"C";return t=isMac?"Press ⌘-"+r:"Press Ctrl-"+r}function toggleToc(e){e.preventDefault(),e.stopPropagation(),console.log("hello"),document.getElementById("toc").classList.toggle("toc-open"),document.getElementById("toc-toggle").classList.toggle("toc-open")}var _typeof="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};!function(e){if("object"==("undefined"==typeof exports?"undefined":_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.Clipboard=e()}}(function(){var e;return function t(e,r,n){function a(o,s){if(!r[o]){if(!e[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(i)return i(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[o]={exports:{}};e[o][0].call(u.exports,function(t){var r=e[o][1][t];return a(r?r:t)},u,u.exports,t,e,r,n)}return r[o].exports}for(var i="function"==typeof require&&require,o=0;o<n.length;o++)a(n[o]);return a}({1:[function(e,t,r){var n=e("matches-selector");t.exports=function(e,t,r){for(var a=r?e:e.parentNode;a&&a!==document;){if(n(a,t))return a;a=a.parentNode}}},{"matches-selector":5}],2:[function(e,t,r){function n(e,t,r,n,i){var o=a.apply(this,arguments);return e.addEventListener(r,o,i),{destroy:function(){e.removeEventListener(r,o,i)}}}function a(e,t,r,n){return function(r){r.delegateTarget=i(r.target,t,!0),r.delegateTarget&&n.call(e,r)}}var i=e("closest");t.exports=n},{closest:1}],3:[function(e,t,r){r.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},r.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||r.node(e[0]))},r.string=function(e){return"string"==typeof e||e instanceof String},r.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},{}],4:[function(e,t,r){function n(e,t,r){if(!e&&!t&&!r)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(r))throw new TypeError("Third argument must be a Function");if(s.node(e))return a(e,t,r);if(s.nodeList(e))return i(e,t,r);if(s.string(e))return o(e,t,r);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(e,t,r){return e.addEventListener(t,r),{destroy:function(){e.removeEventListener(t,r)}}}function i(e,t,r){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,r)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,r)})}}}function o(e,t,r){return l(document.body,e,t,r)}var s=e("./is"),l=e("delegate");t.exports=n},{"./is":3,delegate:2}],5:[function(e,t,r){function n(e,t){if(i)return i.call(e,t);for(var r=e.parentNode.querySelectorAll(t),n=0;n<r.length;++n)if(r[n]==e)return!0;return!1}var a=Element.prototype,i=a.matchesSelector||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;t.exports=n},{}],6:[function(e,t,r){function n(e){var t;if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)e.focus(),e.setSelectionRange(0,e.value.length),t=e.value;else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),n=document.createRange();n.selectNodeContents(e),r.removeAllRanges(),r.addRange(n),t=r.toString()}return t}t.exports=n},{}],7:[function(e,t,r){function n(){}n.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){function n(){a.off(e,n),t.apply(r,arguments)}var a=this;return n._=t,this.on(e,n,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,a=r.length;for(n;a>n;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],a=[];if(n&&t)for(var i=0,o=n.length;o>i;i++)n[i].fn!==t&&n[i].fn._!==t&&a.push(n[i]);return a.length?r[e]=a:delete r[e],this}},t.exports=n},{}],8:[function(t,r,n){!function(a,i){if("function"==typeof e&&e.amd)e(["module","select"],i);else if("undefined"!=typeof n)i(r,t("select"));else{var o={exports:{}};i(o,a.select),a.clipboardAction=o.exports}}(this,function(e,t){function r(e){return e&&e.__esModule?e:{"default":e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=r(t),i="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeofLine truncated
|
||||||
l=w.Hooks.extractValue(c,a)}else if(w.Normalizations.registered[r]){var p,g;p=w.Normalizations.registered[r]("name",e),"transform"!==p&&(g=s(e,w.Names.prefixCheck(p)[0]),w.Values.isCSSNullValue(g)&&w.Hooks.templates[r]&&(g=w.Hooks.templates[r][1])),l=w.Normalizations.registered[r]("extract",e,g)}if(!/^[\d-]/.test(l)){var m=o(e);if(m&&m.isSVG&&w.Names.SVGAttribute(r))if(/^(height|width)$/i.test(r))try{l=e.getBBox()[r]}catch(b){l=0}else l=e.getAttribute(r);else l=s(e,w.Names.prefixCheck(r)[0])}return w.Values.isCSSNullValue(l)&&(l=0),v.debug>=2&&console.log("Get "+r+": "+l),l},setPropertyValue:function(e,r,n,a,i){var s=r;if("scroll"===r)i.container?i.container["scroll"+i.direction]=n:"Left"===i.direction?t.scrollTo(n,i.alternateValue):t.scrollTo(i.alternateValue,n);else if(w.Normalizations.registered[r]&&"transform"===w.Normalizations.registered[r]("name",e))w.Normalizations.registered[r]("inject",e,n),s="transform",n=o(e).transformCache[r];else{if(w.Hooks.registered[r]){var l=r,c=w.Hooks.getRoot(r);a=a||w.getPropertyValue(e,c),n=w.Hooks.injectValue(l,n,a),r=c}if(w.Normalizations.registered[r]&&(n=w.Normalizations.registered[r]("inject",e,n),r=w.Normalizations.registered[r]("name",e)),s=w.Names.prefixCheck(r)[0],d<=8)try{e.style[s]=n}catch(u){v.debug&&console.log("Browser does not support ["+n+"] for ["+s+"]")}else{var p=o(e);p&&p.isSVG&&w.Names.SVGAttribute(r)?e.setAttribute(r,n):e.style[s]=n}v.debug>=2&&console.log("Set "+r+" ("+s+"): "+n)}return[s,n]},flushTransformCache:function(e){var t="",r=o(e);if((d||v.State.isAndroid&&!v.State.isChrome)&&r&&r.isSVG){var n=function(t){return parseFloat(w.getPropertyValue(e,t))},a={translate:[n("translateX"),n("translateY")],skewX:[n("skewX")],skewY:[n("skewY")],scale:1!==n("scale")?[n("scale"),n("scale")]:[n("scaleX"),n("scaleY")],rotate:[n("rotateZ"),0,0]};f.each(o(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),a[e]&&(t+=e+"("+a[e].join(" ")+") ",delete a[e])})}else{var i,s;f.each(o(e).transformCache,function(r){return i=o(e).transformCache[r],"transformPerspective"===r?(s=i,!0):(9===d&&"rotateZ"===r&&(r="rotate"),void(t+=r+i+" "))}),s&&(t="perspective"+s+" "+t)}w.setPropertyValue(e,"transform",t)}};w.Hooks.register(),w.Normalizations.register(),v.hook=function(e,t,r){var a;return e=i(e),f.each(e,function(e,i){if(o(i)===n&&v.init(i),r===n)a===n&&(a=v.CSS.getPropertyValue(i,t));else{var s=v.CSS.setPropertyValue(i,t,r);"transform"===s[0]&&v.CSS.flushTransformCache(i),a=s}}),a};var x=function k(){function e(){return l?T.promise||null:d}function a(e,a){function i(i){var d,g;if(l.begin&&0===P)try{l.begin.call(b,b)}catch(h){setTimeout(function(){throw h},1)}if("scroll"===O){var x,k,N,E=/^x$/i.test(l.axis)?"Left":"Top",M=parseFloat(l.offset)||0;l.container?m.isWrapped(l.container)||m.isNode(l.container)?(l.container=l.container[0]||l.container,x=l.container["scroll"+E],N=x+f(e).position()[E.toLowerCase()]+M):l.container=null:(x=v.State.scrollAnchor[v.State["scrollProperty"+E]],k=v.State.scrollAnchor[v.State["scrollProperty"+("Left"===E?"Top":"Left")]],N=f(e).offset()[E.toLowerCase()]+M),p={scroll:{rootPropertyValue:!1,startValue:x,currentValue:x,endValue:N,unitType:"",easing:l.easing,scrollData:{container:l.container,direction:E,alternateValue:k}},element:e},v.debug&&console.log("tweensContainer (scroll): ",p.scroll,e)}else if("reverse"===O){if(d=o(e),!d)return;if(!d.tweensContainer)return void f.dequeue(e,l.queue);"none"===d.opts.display&&(d.opts.display="auto"),"hidden"===d.opts.visibility&&(d.opts.visibility="visible"),d.opts.loop=!1,d.opts.begin=null,d.opts.complete=null,S.easing||delete l.easing,S.duration||delete l.duration,l=f.extend({},d.opts,l),g=f.extend(!0,{},d?d.tweensContainer:null);for(var A in g)if("element"!==A){var I=g[A].startValue;g[A].startValue=g[A].currentValue=g[A].endValue,g[A].endValue=I,m.isEmptyObject(S)||(g[A].easing=l.easing),v.debug&&console.log("reverse tweensContainer ("+A+"): "+JSON.stringify(g[A]),e)}p=g}else if("start"===O){d=o(e),d&&d.tweensContainer&&d.isAnimating===!0&&(g=d.tweensContainer);var D=function(t,r){var i,o,s;return m.isArray(t)?(i=t[0],!m.isArray(t[1])&&/^[\d-]/.test(t[1])||m.isFunction(t[1])||w.RegEx.isHex.test(t[1])?s=t[1]:(m.isString(t[1])&&!w.RegEx.isHex.test(t[1])||m.isArray(t[1]))&&(o=r?t[1]:c(t[1],l.duration),t[2]!==n&&(s=t[2]))):i=t,r||(o=o||l.easing),m.isFunction(i)&&(i=i.call(e,a,C)),m.isFunction(s)&&(s=s.call(e,a,C)),[i||0,o,s]};f.each(y,function(e,t){if(RegExp("^"+w.Lists.colors.join("$|^")+"$").test(w.Names.camelCase(e))){var r=D(t,!0),a=r[0],i=r[1],o=r[2];if(w.RegEx.isHex.test(a)){for(var s=["Red","Green","Blue"],l=w.Values.hexToRgb(a),c=o?w.Values.hexToRgb(o):n,u=0;u<s.length;u++){var p=[l[u]];i&&p.push(i),c!==n&&p.push(c[u]),y[w.Names.camelCase(e)+s[u]]=p}delete y[e]}}});for(var L in y){var j=D(y[L]),X=j[0],Y=j[1],$=j[2];L=w.Names.camelCase(L);var F=w.Hooks.getRoot(L),z=!1;if(d&&d.isSVG||"tween"===F||w.Names.prefixCheck(F)[1]!==!Line truncated
|
}return a}var l;if(w.Hooks.registered[r]){var c=r,u=w.Hooks.getRoot(c);a===n&&(a=w.getPropertyValue(e,w.Names.prefixCheck(u)[0])),w.Normalizations.registered[u]&&(a=w.Normalizations.registered[u]("extract",e,a)),l=w.Hooks.extractValue(c,a)}else if(w.Normalizations.registered[r]){var p,g;p=w.Normalizations.registered[r]("name",e),"transform"!==p&&(g=s(e,w.Names.prefixCheck(p)[0]),w.Values.isCSSNullValue(g)&&w.Hooks.templates[r]&&(g=w.Hooks.templates[r][1])),l=w.Normalizations.registered[r]("extract",e,g)}if(!/^[\d-]/.test(l)){var m=o(e);if(m&&m.isSVG&&w.Names.SVGAttribute(r))if(/^(height|width)$/i.test(r))try{l=e.getBBox()[r]}catch(b){l=0}else l=e.getAttribute(r);else l=s(e,w.Names.prefixCheck(r)[0])}return w.Values.isCSSNullValue(l)&&(l=0),v.debug>=2&&console.log("Get "+r+": "+l),l},setPropertyValue:function(e,r,n,a,i){var s=r;if("scroll"===r)i.container?i.container["scroll"+i.direction]=n:"Left"===i.direction?t.scrollTo(n,i.alternateValue):t.scrollTo(i.alternateValue,n);else if(w.Normalizations.registered[r]&&"transform"===w.Normalizations.registered[r]("name",e))w.Normalizations.registered[r]("inject",e,n),s="transform",n=o(e).transformCache[r];else{if(w.Hooks.registered[r]){var l=r,c=w.Hooks.getRoot(r);a=a||w.getPropertyValue(e,c),n=w.Hooks.injectValue(l,n,a),r=c}if(w.Normalizations.registered[r]&&(n=w.Normalizations.registered[r]("inject",e,n),r=w.Normalizations.registered[r]("name",e)),s=w.Names.prefixCheck(r)[0],d<=8)try{e.style[s]=n}catch(u){v.debug&&console.log("Browser does not support ["+n+"] for ["+s+"]")}else{var p=o(e);p&&p.isSVG&&w.Names.SVGAttribute(r)?e.setAttribute(r,n):e.style[s]=n}v.debug>=2&&console.log("Set "+r+" ("+s+"): "+n)}return[s,n]},flushTransformCache:function(e){var t="",r=o(e);if((d||v.State.isAndroid&&!v.State.isChrome)&&r&&r.isSVG){var n=function(t){return parseFloat(w.getPropertyValue(e,t))},a={translate:[n("translateX"),n("translateY")],skewX:[n("skewX")],skewY:[n("skewY")],scale:1!==n("scale")?[n("scale"),n("scale")]:[n("scaleX"),n("scaleY")],rotate:[n("rotateZ"),0,0]};f.each(o(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),a[e]&&(t+=e+"("+a[e].join(" ")+") ",delete a[e])})}else{var i,s;f.each(o(e).transformCache,function(r){return i=o(e).transformCache[r],"transformPerspective"===r?(s=i,!0):(9===d&&"rotateZ"===r&&(r="rotate"),void(t+=r+i+" "))}),s&&(t="perspective"+s+" "+t)}w.setPropertyValue(e,"transform",t)}};w.Hooks.register(),w.Normalizations.register(),v.hook=function(e,t,r){var a;return e=i(e),f.each(e,function(e,i){if(o(i)===n&&v.init(i),r===n)a===n&&(a=v.CSS.getPropertyValue(i,t));else{var s=v.CSS.setPropertyValue(i,t,r);"transform"===s[0]&&v.CSS.flushTransformCache(i),a=s}}),a};var x=function k(){function e(){return l?T.promise||null:d}function a(e,a){function i(i){var d,g;if(l.begin&&0===P)try{l.begin.call(b,b)}catch(h){setTimeout(function(){throw h},1)}if("scroll"===O){var x,k,N,E=/^x$/i.test(l.axis)?"Left":"Top",M=parseFloat(l.offset)||0;l.container?m.isWrapped(l.container)||m.isNode(l.container)?(l.container=l.container[0]||l.container,x=l.container["scroll"+E],N=x+f(e).position()[E.toLowerCase()]+M):l.container=null:(x=v.State.scrollAnchor[v.State["scrollProperty"+E]],k=v.State.scrollAnchor[v.State["scrollProperty"+("Left"===E?"Top":"Left")]],N=f(e).offset()[E.toLowerCase()]+M),p={scroll:{rootPropertyValue:!1,startValue:x,currentValue:x,endValue:N,unitType:"",easing:l.easing,scrollData:{container:l.container,direction:E,alternateValue:k}},element:e},v.debug&&console.log("tweensContainer (scroll): ",p.scroll,e)}else if("reverse"===O){if(d=o(e),!d)return;if(!d.tweensContainer)return void f.dequeue(e,l.queue);"none"===d.opts.display&&(d.opts.display="auto"),"hidden"===d.opts.visibility&&(d.opts.visibility="visible"),d.opts.loop=!1,d.opts.begin=null,d.opts.complete=null,S.easing||delete l.easing,S.duration||delete l.duration,l=f.extend({},d.opts,l),g=f.extend(!0,{},d?d.tweensContainer:null);for(var A in g)if("element"!==A){var I=g[A].startValue;g[A].startValue=g[A].currentValue=g[A].endValue,g[A].endValue=I,m.isEmptyObject(S)||(g[A].easing=l.easing),v.debug&&console.log("reverse tweensContainer ("+A+"): "+JSON.stringify(g[A]),e)}p=g}else if("start"===O){d=o(e),d&&d.tweensContainer&&d.isAnimating===!0&&(g=d.tweensContainer);var D=function(t,r){var i,o,s;return m.isArray(t)?(i=t[0],!m.isArray(t[1])&&/^[\d-]/.test(t[1])||m.isFunction(t[1])||w.RegEx.isHex.test(t[1])?s=t[1]:(m.isString(t[1])&&!w.RegEx.isHex.test(t[1])||m.isArray(t[1]))&&(o=r?t[1]:c(t[1],l.duration),t[2]!==n&&(s=t[2]))):i=t,r||(o=o||l.easing),m.isFunction(i)&&(i=i.call(e,a,C)),m.isFunction(s)&&(s=s.call(e,a,C)),[i||0,o,s]};f.each(y,function(e,t){if(RegExp("^"+w.Lists.colors.join("$|^")+"$").test(w.Names.camelCase(e))){var r=D(t,!0),a=r[0],i=r[1],o=r[2];if(w.RegEx.isHex.test(a)){for(var s=["Red","Green","Blue"],l=w.Values.hexToRgb(a),c=o?w.Values.hexToRgb(o):n,u=0;u<s.length;u++){var p=[l[u]];i&&p.push(i),c!==n&&p.push(c[Line truncated
|
||||||
d(r.language,r.value,!1,!0)}function b(){P+=null!=x.sL?m():g(),N=""}function h(e){P+=e.cN?d(e.cN,"",!0):"",x=Object.create(e,{parent:{value:x}})}function y(e,t){if(N+=e,null==t)return b(),0;var r=o(t,x);if(r)return r.skip?N+=t:(r.eB&&(N+=t),b(),r.rB||r.eB||(N=t)),h(r,t),r.rB?0:t.length;var n=s(x,t);if(n){var a=x;a.skip?N+=t:(a.rE||a.eE||(N+=t),b(),a.eE&&(N=t));do x.cN&&(P+=T),x.skip||(E+=x.r),x=x.parent;while(x!==n.parent);return n.starts&&h(n.starts,""),a.rE?0:t.length}if(l(t,x))throw new Error('Illegal lexeme "'+t+'" for mode "'+(x.cN||"<unnamed>")+'"');return N+=t,t.length||1}var v=S(e);if(!v)throw new Error('Unknown language: "'+e+'"');c(v);var w,x=i||v,k={},P="";for(w=x;w!==v;w=w.parent)w.cN&&(P=d(w.cN,"",!0)+P);var N="",E=0;try{for(var M,A,I=0;x.t.lastIndex=I,M=x.t.exec(r),M;)A=y(r.substring(I,M.index),M[0]),I=M.index+A;for(y(r.substr(I)),w=x;w.parent;w=w.parent)w.cN&&(P+=T);return{r:E,value:P,language:e,top:x}}catch(D){if(D.message&&-1!==D.message.indexOf("Illegal"))return{r:0,value:t(r)};throw D}}function p(e,r){r=r||O.languages||x(C);var n={r:0,value:t(e)},a=n;return r.filter(S).forEach(function(t){var r=u(t,e,!1);r.language=t,r.r>a.r&&(a=r),r.r>n.r&&(a=n,n=r)}),a.language&&(n.second_best=a),n}function f(e){return O.tabReplace||O.useBR?e.replace(E,function(e,t){return O.useBR&&"\n"===e?"<br>":O.tabReplace?t.replace(/\t/g,O.tabReplace):void 0}):e}function d(e,t,r){var n=t?k[t]:r,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),-1===e.indexOf(n)&&a.push(n),a.join(" ").trim()}function g(e){var t,r,n,o,c,g=i(e);a(g)||(O.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n")):t=e,c=t.textContent,n=g?u(g,c,!0):p(c),r=s(t),r.length&&(o=document.createElementNS("http://www.w3.org/1999/xhtml","div"),o.innerHTML=n.value,n.value=l(r,s(o),c)),n.value=f(n.value),e.innerHTML=n.value,e.className=d(e.className,g,n.language),e.result={language:n.language,re:n.r},n.second_best&&(e.second_best={language:n.second_best.language,re:n.second_best.r}))}function m(e){O=o(O,e)}function b(){if(!b.called){b.called=!0;var e=document.querySelectorAll("pre code");w.forEach.call(e,g)}}function h(){addEventListener("DOMContentLoaded",b,!1),addEventListener("load",b,!1)}function y(t,r){var n=C[t]=r(e);n.aliases&&n.aliases.forEach(function(e){k[e]=t})}function v(){return x(C)}function S(e){return e=(e||"").toLowerCase(),C[e]||C[k[e]]}var w=[],x=Object.keys,C={},k={},P=/^(no-?highlight|plain|text)$/i,N=/\blang(?:uage)?-([\w-]+)\b/i,E=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,T="</span>",O={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},M={"&":"&","<":"<",">":">"};return e.highlight=u,e.highlightAuto=p,e.fixMarkup=f,e.highlightBlock=g,e.configure=m,e.initHighlighting=b,e.initHighlightingOnLoad=h,e.registerLanguage=y,e.listLanguages=v,e.getLanguage=S,e.inherit=o,e.IR="[a-zA-Z]\\w*",e.UIR="[a-zA-Z_]\\w*",e.NR="\\b\\d+(\\.\\d+)?",e.CNR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BNR="\\b(0b[01]+)",e.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BE={b:"\\\\[\\s\\S]",r:0},e.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE]},e.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE]},e.PWM={b:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|like)\b/},e.C=function(t,r,n){var a=e.inherit({cN:"comment",b:t,e:r,c:[]},n||{});return a.c.push(e.PWM),a.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",r:0}),a},e.CLCM=e.C("//","$"),e.CBCM=e.C("/\\*","\\*/"),e.HCM=e.C("#","$"),e.NM={cN:"number",b:e.NR,r:0},e.CNM={cN:"number",b:e.CNR,r:0},e.BNM={cN:"number",b:e.BNR,r:0},e.CSSNM={cN:"number",b:e.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},e.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[e.BE,{b:/\[/,e:/\]/,r:0,c:[e.BE]}]},e.TM={cN:"title",b:e.IR,r:0},e.UTM={cN:"title",b:e.UIR,r:0},e.METHOD_GUARD={b:"\\.\\s*"+e.UIR,r:0},e}),hljs.registerLanguage("xml",function(e){var t="[A-Za-z0-9\\._:-]+",r={eW:!0,i:/</,r:0,c:[{cN:"attr",b:t,r:0},{b:/=\s*/,r:0,c:[{cN:"string",endsParent:!0,v:[{b:/"/,e:/"/},{b:/'/,e:/'/},{b:/[^\s"'=<>`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],cI:!0,c:[{cN:"meta",b:"<!DOCTYPE",e:">",r:10,c:[{b:"\\[",e:"\\]"}]},e.C("<!--","-->",{r:10}),{b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{b:/<\?(php)?/,e:/\?>/,sL:"php",c:[{b:"/\\*",e:"\\*/",skip:!0}]},{cN:"tag",b:"<style(?=\\s|>|$)",e:">",k:{name:"style"},c:[r],starts:{e:"</style>",rE:!0,sL:["css","xml"]}},{cN:"tag",b:"<script(?=\\s|>|$)",e:">",k:{name:"script"},c:[r],starts:{e:"</script>",rE:!0,sL:["actionscript","javascript","handlebars","xml"]}},{cN:"meta",v:[{b:/<\?xml/,e:/\?>/,r:10},{b:/<\?\w+/,e:/\?>/}]},{cN:"tag",b:"</?",e:"/?>",c:[{cN:"name",b:/[^\/><\s]+/,r:0},r]}]}}),hljs.registerLanguage("maLine truncated
|
n=x.lR.exec(N);return a+t(N.substr(r))}function m(){var e="string"==typeof x.sL;if(e&&!C[x.sL])return t(N);var r=e?u(x.sL,N,!0,k[x.sL]):p(N,x.sL.length?x.sL:void 0);return x.r>0&&(E+=r.r),e&&(k[x.sL]=r.top),d(r.language,r.value,!1,!0)}function b(){P+=null!=x.sL?m():g(),N=""}function h(e){P+=e.cN?d(e.cN,"",!0):"",x=Object.create(e,{parent:{value:x}})}function y(e,t){if(N+=e,null==t)return b(),0;var r=o(t,x);if(r)return r.skip?N+=t:(r.eB&&(N+=t),b(),r.rB||r.eB||(N=t)),h(r,t),r.rB?0:t.length;var n=s(x,t);if(n){var a=x;a.skip?N+=t:(a.rE||a.eE||(N+=t),b(),a.eE&&(N=t));do x.cN&&(P+=T),x.skip||(E+=x.r),x=x.parent;while(x!==n.parent);return n.starts&&h(n.starts,""),a.rE?0:t.length}if(l(t,x))throw new Error('Illegal lexeme "'+t+'" for mode "'+(x.cN||"<unnamed>")+'"');return N+=t,t.length||1}var v=S(e);if(!v)throw new Error('Unknown language: "'+e+'"');c(v);var w,x=i||v,k={},P="";for(w=x;w!==v;w=w.parent)w.cN&&(P=d(w.cN,"",!0)+P);var N="",E=0;try{for(var M,A,I=0;x.t.lastIndex=I,M=x.t.exec(r),M;)A=y(r.substring(I,M.index),M[0]),I=M.index+A;for(y(r.substr(I)),w=x;w.parent;w=w.parent)w.cN&&(P+=T);return{r:E,value:P,language:e,top:x}}catch(D){if(D.message&&-1!==D.message.indexOf("Illegal"))return{r:0,value:t(r)};throw D}}function p(e,r){r=r||O.languages||x(C);var n={r:0,value:t(e)},a=n;return r.filter(S).forEach(function(t){var r=u(t,e,!1);r.language=t,r.r>a.r&&(a=r),r.r>n.r&&(a=n,n=r)}),a.language&&(n.second_best=a),n}function f(e){return O.tabReplace||O.useBR?e.replace(E,function(e,t){return O.useBR&&"\n"===e?"<br>":O.tabReplace?t.replace(/\t/g,O.tabReplace):void 0}):e}function d(e,t,r){var n=t?k[t]:r,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),-1===e.indexOf(n)&&a.push(n),a.join(" ").trim()}function g(e){var t,r,n,o,c,g=i(e);a(g)||(O.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n")):t=e,c=t.textContent,n=g?u(g,c,!0):p(c),r=s(t),r.length&&(o=document.createElementNS("http://www.w3.org/1999/xhtml","div"),o.innerHTML=n.value,n.value=l(r,s(o),c)),n.value=f(n.value),e.innerHTML=n.value,e.className=d(e.className,g,n.language),e.result={language:n.language,re:n.r},n.second_best&&(e.second_best={language:n.second_best.language,re:n.second_best.r}))}function m(e){O=o(O,e)}function b(){if(!b.called){b.called=!0;var e=document.querySelectorAll("pre code");w.forEach.call(e,g)}}function h(){addEventListener("DOMContentLoaded",b,!1),addEventListener("load",b,!1)}function y(t,r){var n=C[t]=r(e);n.aliases&&n.aliases.forEach(function(e){k[e]=t})}function v(){return x(C)}function S(e){return e=(e||"").toLowerCase(),C[e]||C[k[e]]}var w=[],x=Object.keys,C={},k={},P=/^(no-?highlight|plain|text)$/i,N=/\blang(?:uage)?-([\w-]+)\b/i,E=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,T="</span>",O={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},M={"&":"&","<":"<",">":">"};return e.highlight=u,e.highlightAuto=p,e.fixMarkup=f,e.highlightBlock=g,e.configure=m,e.initHighlighting=b,e.initHighlightingOnLoad=h,e.registerLanguage=y,e.listLanguages=v,e.getLanguage=S,e.inherit=o,e.IR="[a-zA-Z]\\w*",e.UIR="[a-zA-Z_]\\w*",e.NR="\\b\\d+(\\.\\d+)?",e.CNR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BNR="\\b(0b[01]+)",e.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BE={b:"\\\\[\\s\\S]",r:0},e.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE]},e.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE]},e.PWM={b:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|like)\b/},e.C=function(t,r,n){var a=e.inherit({cN:"comment",b:t,e:r,c:[]},n||{});return a.c.push(e.PWM),a.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",r:0}),a},e.CLCM=e.C("//","$"),e.CBCM=e.C("/\\*","\\*/"),e.HCM=e.C("#","$"),e.NM={cN:"number",b:e.NR,r:0},e.CNM={cN:"number",b:e.CNR,r:0},e.BNM={cN:"number",b:e.BNR,r:0},e.CSSNM={cN:"number",b:e.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},e.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[e.BE,{b:/\[/,e:/\]/,r:0,c:[e.BE]}]},e.TM={cN:"title",b:e.IR,r:0},e.UTM={cN:"title",b:e.UIR,r:0},e.METHOD_GUARD={b:"\\.\\s*"+e.UIR,r:0},e}),hljs.registerLanguage("xml",function(e){var t="[A-Za-z0-9\\._:-]+",r={eW:!0,i:/</,r:0,c:[{cN:"attr",b:t,r:0},{b:/=\s*/,r:0,c:[{cN:"string",endsParent:!0,v:[{b:/"/,e:/"/},{b:/'/,e:/'/},{b:/[^\s"'=<>`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],cI:!0,c:[{cN:"meta",b:"<!DOCTYPE",e:">",r:10,c:[{b:"\\[",e:"\\]"}]},e.C("<!--","-->",{r:10}),{b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{b:/<\?(php)?/,e:/\?>/,sL:"php",c:[{b:"/\\*",e:"\\*/",skip:!0}]},{cN:"tag",b:"<style(?=\\s|>|$)",e:">",k:{name:"style"},c:[r],starts:{e:"</style>",rE:!0,sL:["css","xml"]}},{cN:"tag",b:"<script(?=\\s|>|$)",e:">",k:{name:"script"},c:[r],starts:{e:"</script>",rE:!0,sL:Line truncated
|
||||||
Reference in new issue
Block a user