@kudoai/chatgpt.js 2.6.3 → 2.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +341 -0
- package/chatgpt.js +6 -4
- package/dist/chatgpt.min.js +7 -0
- package/docs/README.md +341 -324
- package/docs/USERGUIDE.md +1812 -1814
- package/docs/de/README.md +341 -324
- package/docs/es/README.md +341 -324
- package/docs/fr/README.md +341 -324
- package/docs/hi/README.md +342 -325
- package/docs/it/README.md +341 -324
- package/docs/ja/README.md +341 -324
- package/docs/ko/README.md +346 -329
- package/docs/ne/README.md +342 -325
- package/docs/nl/README.md +341 -324
- package/docs/pt/README.md +341 -324
- package/docs/vi/README.md +341 -324
- package/docs/zh-cn/README.md +341 -324
- package/docs/zh-tw/README.md +340 -323
- package/package.json +50 -31
- package/starters/chrome/LICENSE.md +43 -0
- package/starters/chrome/docs/README.md +17 -1
- package/starters/chrome/docs/SECURITY.md +17 -0
- package/starters/chrome/docs/de/LICENSE.md +21 -3
- package/starters/chrome/docs/de/README.md +17 -1
- package/starters/chrome/docs/es/LICENSE.md +21 -3
- package/starters/chrome/docs/es/README.md +17 -1
- package/starters/chrome/docs/fr/LICENSE.md +21 -3
- package/starters/chrome/docs/fr/README.md +17 -1
- package/starters/chrome/docs/hi/LICENSE.md +21 -3
- package/starters/chrome/docs/hi/README.md +17 -2
- package/starters/chrome/docs/hi/SECURITY.md +17 -0
- package/starters/chrome/docs/it/LICENSE.md +21 -3
- package/starters/chrome/docs/it/README.md +17 -1
- package/starters/chrome/docs/ja/LICENSE.md +21 -3
- package/starters/chrome/docs/ja/README.md +17 -2
- package/starters/chrome/docs/ko/LICENSE.md +21 -3
- package/starters/chrome/docs/ko/README.md +17 -1
- package/starters/chrome/docs/nl/LICENSE.md +20 -3
- package/starters/chrome/docs/nl/README.md +17 -1
- package/starters/chrome/docs/pt/LICENSE.md +21 -3
- package/starters/chrome/docs/pt/README.md +17 -1
- package/starters/chrome/docs/vi/LICENSE.md +21 -3
- package/starters/chrome/docs/vi/README.md +17 -1
- package/starters/chrome/docs/zh-cn/LICENSE.md +21 -3
- package/starters/chrome/docs/zh-cn/README.md +17 -2
- package/starters/chrome/docs/zh-cn/SECURITY.md +17 -0
- package/starters/chrome/docs/zh-tw/LICENSE.md +21 -3
- package/starters/chrome/docs/zh-tw/README.md +17 -1
- package/starters/chrome/extension/content.js +1 -1
- package/starters/chrome/extension/lib/chatgpt.js +6 -4
- package/starters/chrome/extension/manifest.json +1 -1
- package/starters/greasemonkey/LICENSE.md +43 -0
- package/starters/greasemonkey/chatgpt.js-greasemonkey-starter.user.js +52 -52
- package/starters/greasemonkey/docs/SECURITY.md +17 -0
- package/starters/greasemonkey/docs/de/LICENSE.md +31 -0
- package/starters/greasemonkey/docs/es/LICENSE.md +31 -0
- package/starters/greasemonkey/docs/fr/LICENSE.md +31 -0
- package/starters/greasemonkey/docs/hi/LICENSE.md +31 -0
- package/starters/greasemonkey/docs/hi/SECURITY.md +17 -0
- package/starters/greasemonkey/docs/it/LICENSE.md +29 -0
- package/starters/greasemonkey/docs/ja/LICENSE.md +31 -0
- package/starters/greasemonkey/docs/ko/LICENSE.md +34 -0
- package/starters/greasemonkey/docs/nl/LICENSE.md +30 -0
- package/starters/greasemonkey/docs/pt/LICENSE.md +31 -0
- package/starters/greasemonkey/docs/vi/LICENSE.md +31 -0
- package/starters/greasemonkey/docs/zh-cn/LICENSE.md +31 -0
- package/starters/greasemonkey/docs/zh-cn/SECURITY.md +17 -0
- package/starters/greasemonkey/docs/zh-tw/LICENSE.md +31 -0
- package/dist/chatgpt-2.6.3.min.js +0 -1
- package/docs/.nojekyll +0 -0
- package/docs/CNAME +0 -1
- package/docs/_coverpage.md +0 -16
- package/docs/_utils/LICENSE.md +0 -21
- package/docs/_utils/minify.js +0 -50
- package/docs/assets/docsify/cursors/futuristic/pointer.cur +0 -0
- package/docs/assets/docsify/favicons/favicon16.png +0 -0
- package/docs/assets/docsify/favicons/favicon320.png +0 -0
- package/docs/assets/docsify/favicons/favicon48.png +0 -0
- package/docs/assets/docsify/favicons/favicon64.png +0 -0
- package/docs/assets/docsify/fonts/eurostile-extended-black/EurostileExtendedBlack.otf +0 -0
- package/docs/assets/docsify/fonts/eurostile-extended-black/EurostileExtendedBlack.ttf +0 -0
- package/docs/assets/docsify/fonts/eurostile-extended-black/EurostileExtendedBlack.woff +0 -0
- package/docs/assets/docsify/fonts/eurostile-extended-black/EurostileExtendedBlack.woff2 +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/OFL.txt +0 -93
- package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-Bold.otf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-BoldItalic.otf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-ExtraLight.otf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-ExtraLightItalic.otf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-Italic.otf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-Light.otf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-LightItalic.otf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-Medium.otf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-MediumItalic.otf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-Regular.otf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-SemiBold.otf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-SemiBoldItalic.otf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-Thin.otf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-ThinItalic.otf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-Bold.ttf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-BoldItalic.ttf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-ExtraLight.ttf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-ExtraLightItalic.ttf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-Italic.ttf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-Light.ttf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-LightItalic.ttf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-Medium.ttf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-MediumItalic.ttf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-Regular.ttf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-SemiBold.ttf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-SemiBoldItalic.ttf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-Thin.ttf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-ThinItalic.ttf +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-Bold.woff +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-BoldItalic.woff +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-ExtraLight.woff +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-ExtraLightItalic.woff +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-Italic.woff +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-Light.woff +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-LightItalic.woff +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-Medium.woff +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-MediumItalic.woff +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-Regular.woff +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-SemiBold.woff +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-SemiBoldItalic.woff +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-Thin.woff +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-ThinItalic.woff +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-Bold.woff2 +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-BoldItalic.woff2 +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-ExtraLight.woff2 +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-ExtraLightItalic.woff2 +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-Italic.woff2 +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-Light.woff2 +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-LightItatlic.woff2 +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-Medium.woff2 +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-MediumItalic.woff2 +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-Regular.woff2 +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-SemiBold.woff2 +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-SemiBoldItalic.woff2 +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-Thin.woff2 +0 -0
- package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-ThinItalic.woff2 +0 -0
- package/docs/assets/docsify/fonts/major-mono-display/MajorMonoDisplay-Regular.otf +0 -0
- package/docs/assets/docsify/fonts/major-mono-display/MajorMonoDisplay-Regular.ttf +0 -0
- package/docs/assets/docsify/fonts/major-mono-display/MajorMonoDisplay-Regular.woff +0 -0
- package/docs/assets/docsify/fonts/major-mono-display/MajorMonoDisplay-Regular.woff2 +0 -0
- package/docs/assets/docsify/fonts/major-mono-display/OFL.txt +0 -93
- package/docs/assets/docsify/fonts/polysans-neutral/PolySansNeutral.eot +0 -0
- package/docs/assets/docsify/fonts/polysans-neutral/PolySansNeutral.ttf +0 -0
- package/docs/assets/docsify/fonts/polysans-neutral/PolySansNeutral.woff +0 -0
- package/docs/assets/docsify/fonts/polysans-neutral/PolySansNeutral.woff2 +0 -0
- package/docs/assets/docsify/html/footer.html +0 -23
- package/docs/assets/docsify/js/min/back-to-top-button.min.js +0 -1
- package/docs/assets/docsify/js/min/copy-code-button.min.js +0 -1
- package/docs/assets/docsify/js/min/onload-hacks.min.js +0 -3
- package/docs/assets/docsify/js/min/starry-background.min.js +0 -1
- package/docs/assets/docsify/js/src/back-to-top-button.js +0 -64
- package/docs/assets/docsify/js/src/copy-code-button.js +0 -91
- package/docs/assets/docsify/js/src/onload-hacks.js +0 -613
- package/docs/assets/docsify/js/src/starry-background.js +0 -111
- package/docs/assets/docsify/styles/css/style.min.css +0 -1
- package/docs/assets/docsify/styles/css/style.min.css.map +0 -1
- package/docs/assets/docsify/styles/scss/style.scss +0 -510
- package/docs/assets/separators/aqua.png +0 -0
- package/docs/de/_coverpage.md +0 -12
- package/docs/es/_coverpage.md +0 -12
- package/docs/fr/_coverpage.md +0 -12
- package/docs/hi/_coverpage.md +0 -12
- package/docs/index.html +0 -91
- package/docs/it/_coverpage.md +0 -12
- package/docs/ja/_coverpage.md +0 -12
- package/docs/ko/_coverpage.md +0 -12
- package/docs/ne/_coverpage.md +0 -12
- package/docs/nl/_coverpage.md +0 -12
- package/docs/pt/_coverpage.md +0 -12
- package/docs/vi/_coverpage.md +0 -12
- package/docs/zh-cn/_coverpage.md +0 -12
- package/docs/zh-tw/_coverpage.md +0 -12
- package/starters/chrome/LICENSE +0 -21
- package/starters/greasemonkey/LICENSE +0 -21
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
Copyright 2018 The Major Mono Project Authors (https://github.com/googlefonts/majormono)
|
|
2
|
-
|
|
3
|
-
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
-
This license is copied below, and is also available with a FAQ at:
|
|
5
|
-
http://scripts.sil.org/OFL
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
-----------------------------------------------------------
|
|
9
|
-
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
-
-----------------------------------------------------------
|
|
11
|
-
|
|
12
|
-
PREAMBLE
|
|
13
|
-
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
-
development of collaborative font projects, to support the font creation
|
|
15
|
-
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
-
open framework in which fonts may be shared and improved in partnership
|
|
17
|
-
with others.
|
|
18
|
-
|
|
19
|
-
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
-
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
-
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
-
redistributed and/or sold with any software provided that any reserved
|
|
23
|
-
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
-
however, cannot be released under any other type of license. The
|
|
25
|
-
requirement for fonts to remain under this license does not apply
|
|
26
|
-
to any document created using the fonts or their derivatives.
|
|
27
|
-
|
|
28
|
-
DEFINITIONS
|
|
29
|
-
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
-
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
-
include source files, build scripts and documentation.
|
|
32
|
-
|
|
33
|
-
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
-
copyright statement(s).
|
|
35
|
-
|
|
36
|
-
"Original Version" refers to the collection of Font Software components as
|
|
37
|
-
distributed by the Copyright Holder(s).
|
|
38
|
-
|
|
39
|
-
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
-
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
-
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
-
new environment.
|
|
43
|
-
|
|
44
|
-
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
-
writer or other person who contributed to the Font Software.
|
|
46
|
-
|
|
47
|
-
PERMISSION & CONDITIONS
|
|
48
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
-
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
-
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
-
Software, subject to the following conditions:
|
|
52
|
-
|
|
53
|
-
1) Neither the Font Software nor any of its individual components,
|
|
54
|
-
in Original or Modified Versions, may be sold by itself.
|
|
55
|
-
|
|
56
|
-
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
-
redistributed and/or sold with any software, provided that each copy
|
|
58
|
-
contains the above copyright notice and this license. These can be
|
|
59
|
-
included either as stand-alone text files, human-readable headers or
|
|
60
|
-
in the appropriate machine-readable metadata fields within text or
|
|
61
|
-
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
-
|
|
63
|
-
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
-
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
-
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
-
presented to the users.
|
|
67
|
-
|
|
68
|
-
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
-
Software shall not be used to promote, endorse or advertise any
|
|
70
|
-
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
-
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
-
permission.
|
|
73
|
-
|
|
74
|
-
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
-
must be distributed entirely under this license, and must not be
|
|
76
|
-
distributed under any other license. The requirement for fonts to
|
|
77
|
-
remain under this license does not apply to any document created
|
|
78
|
-
using the Font Software.
|
|
79
|
-
|
|
80
|
-
TERMINATION
|
|
81
|
-
This license becomes null and void if any of the above conditions are
|
|
82
|
-
not met.
|
|
83
|
-
|
|
84
|
-
DISCLAIMER
|
|
85
|
-
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
-
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
-
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
-
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
-
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
-
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
-
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<div id="footer">
|
|
2
|
-
<div id="mc_embed_signup">
|
|
3
|
-
<form action="https://kudoai.us10.list-manage.com/subscribe/post?u=c81cb6ce947f08bd95a7797b2&id=06644e9f68&f_id=00ca2ce5f0" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" rel="noopener">
|
|
4
|
-
<div id="mc_embed_signup_scroll">
|
|
5
|
-
<h2>🔮 Get the latest updates!</h2>
|
|
6
|
-
<!-- <p>Stay up-to-date w/ infrequent emails:</p> -->
|
|
7
|
-
<div class="mc-field-group">
|
|
8
|
-
<input type="email" name="EMAIL" class="required email" id="mce-EMAIL" required="" placeholder="Your Email">
|
|
9
|
-
<input type="submit" name="subscribe" id="mc-embedded-subscribe" class="button" value="Submit">
|
|
10
|
-
<span id="mce-EMAIL-HELPERTEXT" class="helper_text"></span>
|
|
11
|
-
</div>
|
|
12
|
-
<div hidden=""><input type="hidden" name="tags" value="13470273"></div>
|
|
13
|
-
<div id="mce-responses" class="clear foot">
|
|
14
|
-
<div class="response" id="mce-error-response" style="display: none;"></div>
|
|
15
|
-
<div class="response" id="mce-success-response" style="display: none;"></div>
|
|
16
|
-
</div>
|
|
17
|
-
<div style="position: absolute; left: -5000px;" aria-hidden="true"> /* stop bots */
|
|
18
|
-
<input type="text" name="b_c81cb6ce947f08bd95a7797b2_06644e9f68" tabindex="-1" value="">
|
|
19
|
-
</div>
|
|
20
|
-
</form>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
<script type="text/javascript" src="//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js"></script><script type="text/javascript">(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]=EMAIL;ftypes[0]=merge;,fnames[1]=FNAME;ftypes[1]=merge;,fnames[2]=LNAME;ftypes[2]=merge;,fnames[3]=ADDRESS;ftypes[3]=merge;,fnames[4]=PHONE;ftypes[4]=merge;,fnames[5]=BIRTHDAY;ftypes[5]=merge;false}(jQuery));var $mcj = jQuery.noConflict(true);</script></div>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const button=document.createElement("button"),svgElement=(button.classList.add("back-to-top"),document.createElementNS("http://www.w3.org/2000/svg","svg")),pathElement=(svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),svgElement.setAttribute("height","2em"),svgElement.setAttribute("viewBox","0 0 448 512"),document.createElementNS("http://www.w3.org/2000/svg","path"));function fadeIn(e,n){if(!e.classList.contains("done")){e.classList.add("done"),e.style.opacity=0;let t=+new Date;const o=()=>{e.style.opacity=+e.style.opacity+(new Date-t)/n,t=+new Date,+e.style.opacity<1?window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16):e.style.display="block"};o()}}function fadeOut(e,n){if(e.classList.contains("done")){e.classList.remove("done"),e.style.opacity=1;let t=+new Date;const o=()=>{e.style.opacity=+e.style.opacity-(new Date-t)/n,t=+new Date,0<+e.style.opacity?window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16):e.style.display="none"};o()}}function scrollToTop(){var t=document.documentElement.scrollTop||document.body.scrollTop;0<t&&(window.requestAnimationFrame(scrollToTop),window.scrollTo(0,t-t/8))}pathElement.setAttribute("d","M246.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 109.3 361.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160zm160 352l-160-160c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 301.3 361.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"),svgElement.append(pathElement),button.append(svgElement),document.body.append(button),button.addEventListener("click",scrollToTop),window.addEventListener("scroll",()=>{(0<(window.scrollY||document.documentElement.scrollTop)?fadeIn:fadeOut)(button,500)});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(){function r(e){return(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})(e)}var e,o,t,n;e=".docsify-copy-code-button,.docsify-copy-code-button span{cursor:pointer}.docsify-copy-code-button{position:absolute;z-index:1;top:0;right:0;overflow:visible;padding:.65em .8em;border:0;border-radius:0;outline:0;font-size:1em;background:grey;background:var(--theme-color,grey);color:#fff;opacity:1}.docsify-copy-code-button span{border-radius:3px;background:inherit;pointer-events:none}.docsify-copy-code-button .error,.docsify-copy-code-button .success{position:absolute;z-index:1000;top:24px;left:12px;padding:.5em .65em;font-size:.825em;opacity:0;transform:translateX(-88%)translateY(-50%)}.docsify-copy-code-button.error .error,.docsify-copy-code-button.success .success{left:12px;top:24px;opacity:1;,pre:hover .docsify-copy-code-button{opacity:1}",o=(o=void 0===o?{}:o).insertAt,"undefined"!=typeof document&&(t=document.head||document.getElementsByTagName("head")[0],(n=document.createElement("style")).type="text/css","top"===o&&t.firstChild?t.insertBefore(n,t.firstChild):t.append(n),n.styleSheet?n.styleSheet.cssText=e:n.append(document.createTextNode(e))),document.querySelector('link[href*="docsify-copy-code"]')&&console.warn("[Deprecation] Link to external docsify-copy-code stylesheet is no longer necessary."),window.DocsifyCopyCodePlugin={init:function(){return function(e,o){e.ready(function(){console.warn("[Deprecation] Manually initializing docsify-copy-code using window.DocsifyCopyCodePlugin.init() is no longer necessary.")})}}},window.$docsify=window.$docsify||{},window.$docsify.plugins=[function(e,s){e.doneEach(function(){var e=Array.apply(null,document.querySelectorAll("pre[data-lang]")),c={buttonText:"<> Copy code",errorText:"Error",successText:"Code copied!"},o=(s.config.copyCode&&Object.keys(c).forEach(function(t){var n=s.config.copyCode[t];"string"==typeof n?c[t]=n:"object"===r(n)&&Object.keys(n).some(function(e){var o=-1<location.href.indexOf(e);return c[t]=o?n[e]:c[t],o})}),['<button class="docsify-copy-code-button">','<span class="label">'.concat(c.buttonText,"</span>"),'<span class="error">'.concat(c.errorText,"</span>"),'<span class="success">'.concat(c.successText,"</span>"),"</button>"].join(""));e.forEach(function(e){e.insertAdjacentHTML("beforeend",o)})}),e.mounted(function(){document.querySelector(".content").addEventListener("click",function(e){if(e.target.classList.contains("docsify-copy-code-button")){var o="BUTTON"===e.target.tagName?e.target:e.target.parentNode,t=document.createRange(),n=o.parentNode.querySelector("code"),c=window.getSelection();t.selectNode(n),c.removeAllRanges(),c.addRange(t);try{document.execCommand("copy")&&(o.classList.add("success"),o.querySelector(".label").style.display="none",setTimeout(function(){o.classList.remove("success"),o.querySelector(".label").style.display="inline"},2e3))}catch(e){console.error("docsify-copy-code: ".concat(e)),o.classList.add("error"),setTimeout(function(){o.classList.remove("error")},2e3)}"function"==typeof(c=window.getSelection()).removeRange?c.removeRange(t):"function"==typeof c.removeAllRanges&&c.removeAllRanges()}})})}].concat(window.$docsify.plugins||[])}();
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const taglineWords=[],features=[">> Feature-rich",">> Object-oriented",">> Easy-to-use",">> Lightweight (yet optimally performant)"],visibilityMap=[],sectionColors=["#64ffff","#f9ee16","lime","orange","#b981f9","#f581f9","#81f9c3"],iniStarZvelocity=window.starVelocity.z,warpDuration=1600,hiWarpDuration=1400,starResetDelay=15,mdLoaded=new Promise(o=>{new MutationObserver((e,t)=>{document.querySelector("#shields")&&(t.disconnect(),o())}).observe(document.body,{childList:!0,subtree:!0})}),iObserver=new IntersectionObserver(e=>{e.forEach(e=>{var t=e.target.id||e.target.className;if(visibilityMap[t]=e.isIntersecting,"cover-main"===e.target.className)if(e.isIntersecting){document.querySelector("#kudoai a").style.color="white",window.starColor="white",(document.querySelector("#scrollbar-style")||{}).innerText=":root { scrollbar-color: rgb(210,210,210) #1a1a1a }body::-webkit-scrollbar-thumb { background-color: white }";const o=document.querySelector(".kudo");o.classList.add("hover"),setTimeout(()=>{o.classList.remove("hover")},955),Array.from(document.querySelectorAll('span[id^="tagline"]')).forEach(e=>{e.textContent=""}),scrambleText([taglineWords[0]],document.querySelector("#tagline-pre-adj")),scrambleText(taglineWords[1],document.querySelector("#tagline-adj"),750),scrambleText([taglineWords[2]],document.querySelector("#tagline-post-adj")),randomizeCase(document.querySelector("#tagline-pre-adj")),randomizeCase(document.querySelector("#tagline-post-adj")),window.starVelocity.z<=iniStarZvelocity&&(window.starVelocity.z+=.024,setTimeout(()=>{window.starVelocity.z-=.02},1155),setTimeout(()=>{window.starVelocity.z=iniStarZvelocity},1355))}else clearTimeout(scrambleText.timeoutID);else"feature-list"===e.target.id&&(e.isIntersecting?typeText(features,e.target,20):(e.target.innerHTML="",clearTimeout(typeText.timeoutID)))})}),onLoadObserver=new MutationObserver(()=>{if(document.querySelector(".cover-main blockquote p")){if(smoothScroll(document,155,9),/#\/(\w{2}(-\w{2})?\/)?$/.test(location.hash)){isMobileDevice()||(document.body.className="ready close");var e=Array.from(document.querySelectorAll('span[id^="tagline"]'));e.map(e=>{taglineWords.push(/pre|post/.exec(e.id)?e.textContent:e.textContent.split("|"))}),e.forEach(e=>{e.textContent=""}),iObserver.observe(document.querySelector(".cover-main"));const t=document.querySelector(".cover"),o=document.createElement("div");function c(){o.style.display=window.scrollY>.85*t.offsetHeight?"":"none"}o.classList.add("top-gradient"),document.body.append(o),c(),mdLoaded.then(()=>{navigator.userAgent.includes("Chrome")&&window.scrollBy(0,200),setTimeout(()=>window.scrollBy(0,-200),600),document.querySelector(".search").style.display="none",document.querySelector(".sidebar-nav").style.paddingTop="102px";var e=document.querySelector("#feature-list")||document.createElement("div"),t=(e.parentElement||(e.setAttribute("id","feature-list"),(t=document.querySelector("#intro")).parentElement.insertBefore(e,t.nextElementSibling.nextElementSibling)),iObserver.observe(e),document.querySelector("article")),e=document.createElement("div"),t=(e.id="copyright-footer",e.innerHTML='<span style="font-size: 115%">Copyright © 2023–'+(new Date).getFullYear()+' <a href="https://kudoai.com" target="_blank" rel="noopener">KudoAI</a>.</span><br>Designed by <a href="https://adamlui.com" target="_blank" rel="noopener">Adam Lui</a> / Powered by <a href="https://docsify.js.org" target="_blank" rel="noopener">Docsify</a> / Hosted by <a href="https://github.com" target="_blank" rel="noopener">GitHub</a>',t.append(e),document.querySelector('a[href*="/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3140b0f8a4"]')),e=document.createElement("iframe"),t=(e.setAttribute("width","855"),e.setAttribute("height","455"),e.setAttribute("src","https://www.youtube.com/embed/yG8DtsEo0PM?rel=0"),e.setAttribute("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"),e.setAttribute("allowfullscreen",""),e.style.minWidth="fit-content",e.style.width="855px",e.style.marginBottom="30px",t.parentNode.replaceChild(e,t),e.parentNode.style.textAlign="center",document.querySelectorAll("blockquote").forEach(e=>{var t=e.parentNode,o=e.innerHTML;t.replaceChild(document.createRange().createContextualFragment(o),e)}),[]),e=[],o=[],t=(t.push(...document.querySelectorAll(".cover-main img, .cover-main a,h2, h3, p, pre, main li,div#partners-collage, #copyright-footer")),t.forEach(e=>{e.classList.add("content-fadeup")}),t.push(document.querySelector("#language-menu")),t[t.length-1].classList.add("menu-fadeup"),e.push(...document.querySelectorAll(`#showcase ~ h3:nth-of-type(odd):not(#contributors ~ *),
|
|
2
|
-
#showcase ~ h3 + p:nth-of-type(odd):not(#contributors ~ *`)),e.forEach(e=>{e.classList.add("content-faderight")}),o.push(...document.querySelectorAll(`#showcase ~ h3:nth-of-type(even):not(#contributors ~ *),
|
|
3
|
-
#showcase ~ h3 + p:nth-of-type(even):not(#contributors ~ *`)),o.forEach(e=>{e.classList.add("content-fadeleft")}),[...t,...e,...o]);const r=[...document.querySelectorAll(".sidebar-nav li")],n=new IntersectionObserver(e=>{e.forEach(e=>{var t;e.isIntersecting?(e.target.classList.add("visible"),e.target.tagName.startsWith("H")&&(t=e.target.querySelector("a").textContent,t=(document.querySelector(`a[title="${t}"]`)||{}).parentElement)&&(r.forEach(e=>e.classList.remove("nav-active")),t.classList.add("nav-active"))):e.target.classList.remove("visible")})},{root:null,threshold:.02});t.forEach(e=>{n.observe(e)});e=document.querySelector('a[href$="stargazers"]'),o=e.getAttribute("href");e.setAttribute("href",o.replace("/stargazers",""));const a=[],i=[],l=(a.push(...document.querySelectorAll("h2")),a.push(document.querySelector("h3#-greasemonkey")),a.push(document.querySelector("h3#-chrome")),a.push(document.querySelector('img[src*="chatgpt-infinity"]')),a.forEach(e=>{var t=e.getBoundingClientRect().top,e=e.id.includes("⚡")?1.5:"IMG"===e.tagName?.8:8.8;i.push(t-window.innerHeight/e)}),i.sort((e,t)=>e-t),window.addEventListener("scroll",()=>{if(!visibilityMap["cover-main"]&&!visibilityMap["feature-list"]){let e=0;for(;window.scrollY>i[e]&&e<i.length;)e++;var t=sectionColors[e-2];if(t!==window.starColor){window.starColor=t,setTimeout(()=>{window.starVelocity.z<=iniStarZvelocity&&(window.starColor="white")},warpDuration+starResetDelay),window.starVelocity.z+=.0045,setTimeout(()=>{window.starVelocity.z=Math.max(iniStarZvelocity,window.starVelocity.z-.0025)},hiWarpDuration),setTimeout(()=>{window.starVelocity.z=Math.max(iniStarZvelocity,window.starVelocity.z-.002)},warpDuration);const o=document.querySelector("#kudoai a"),r=document.querySelector(".kudo"),n=(o.style.color=t,r.classList.add("hover"),setTimeout(()=>{window.starVelocity.z<=iniStarZvelocity&&(o.style.color="white",r.classList.remove("hover"))},warpDuration+5),document.querySelector("#scrollbar-style")||document.createElement("style"));n.parentElement||(n.setAttribute("id","scrollbar-style"),document.head.append(n)),n.innerText=`:root { scrollbar-color: ${t} #1a1a1a }`+`body::-webkit-scrollbar-thumb { background-color: ${t} }`,setTimeout(()=>{window.starVelocity.z<=iniStarZvelocity&&(n.innerText=":root { scrollbar-color: rgb(210,210,210) #1a1a1a }body::-webkit-scrollbar-thumb { background-color: white }")},warpDuration+5)}}}),setTimeout(()=>{var e=document.querySelector(".active").innerText;document.getElementById("dropdown-button").innerText=e},250),document.querySelectorAll("picture").forEach(e=>{var t=e.querySelector("source").getAttribute("srcset"),o=document.createElement("img");o.setAttribute("src",t),e.parentNode.replaceChild(o,e)}),document.getElementById("partners-collage")),s=document.createElement("div");fetch("assets/docsify/html/footer.html").then(e=>e.text()).then(e=>{s.innerHTML=e,l.insertAdjacentElement("afterend",s)});t=document.querySelector('p a[href="#"]');t.previousSibling.remove(),t.remove(),setTimeout(()=>{const o=[];document.querySelectorAll('#main, h2:not([id="about"])').forEach(e=>{var t=e.getBoundingClientRect().top-window.innerHeight/1.2,e="H2"===e.tagName?e.parentElement:e;o.push({element:e,y:t})}),window.addEventListener("scroll",()=>{c(),o.forEach(n=>{if(window.scrollY>=n.y&&window.scrollY<n.y+window.innerHeight){var o=[];if("main"===n.element.id)o.push(document.querySelector(".cover-main"));else{let t=n.element.previousElementSibling;for(let e=0;e<7&&t;e++)o.push(t),t=t.previousElementSibling}o.forEach(e=>{var t=n.y-window.scrollY,o=1-Math.abs(t)/(window.innerHeight-5),r=-.55*t,t=-285<t?1:1-Math.abs(285+t)/5/window.innerHeight;try{e.classList.remove("content-fadeup")}catch(e){}e.style.opacity=o,e.style.transform=`translateY(${r}px) scale(${t})`})}})})},100)})}else document.querySelector(".app-nav").style.display="none";/LICENSE|SECURITY/.test(location.hash)&&(isMobileDevice()||(document.body.className="ready close"),mdLoaded.then(()=>{for(const e of document.querySelectorAll("h5 a"))e.href=e.href.replace(/(.*\/\/.*?\/)((\w{2}(-\w{2})?\/)?.*)\.md/,"$1#/$2")})),onLoadObserver.disconnect()}});function isMobileDevice(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function validateIntArg(e,t,o){if(void 0===e)return o;if(Number.isInteger(e)||/^\d+$/.test(e))return parseInt(e,10);throw new Error(t+" must be an integer.")}function smoothScroll(t,o,r){t===document&&(t=document.scrollingElement||document.documentElement||document.body.parentNode||document.body);let n=!1,a=t.scrollTop;const i=t===document.body&&document.documentElement?document.documentElement:t;function e(e){e.preventDefault();e=(e=e).detail?e.wheelDelta?e.wheelDelta/e.detail/40*(0<e.detail?1:-1):-e.detail/3:e.wheelDelta/120;a+=-e*o,a=Math.max(0,Math.min(a,t.scrollHeight-i.clientHeight)),n||l()}function l(){n=!0;var e=(a-t.scrollTop)/r;t.scrollTop+=e,.5<Math.abs(e)?s(l):n=!1}t.addEventListener("mousewheel",e,{passive:!1}),t.addEventListener("DOMMouseScroll",e,{passive:!1});const s=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,20)}}function scrambleText(e,t,o,r=0){if("string"==typeof e&&(e=[e]),!t?.nodeName)throw new Error("Destination (2nd arg) must be a DOM element");if(o){if(!Number.isInteger(o)&&!/^\d+$/.test(o))throw new Error("Delay betweeen words (3nd arg) must be an integer (ms)");o=parseInt(o,10)}new Scramble(t).setText(e[r]).then(()=>{o&&visibilityMap["cover-main"]&&(scrambleText.timeoutID=setTimeout(()=>{scrambleText(e,t,o,(r+1)%e.length)},o))})}function randomizeCase(e,t,o,r,n,a){if(!e?.nodeName)throw new Error("Target node (1st arg) must be a DOM element");t=validateIntArg(t,"Initial delay",5),o=validateIntArg(o,"Final delay",1e3),r=validateIntArg(r,"Increment A",10),n=validateIntArg(n,"Increment B",111),a=validateIntArg(a,"Inflection point",265),e.textContent=e.textContent.split("").map(e=>Math.random()<.5?e.toUpperCase():e.toLowerCase()).join(""),randomizeCase.iniDelay=randomizeCase.iniDelay||t,randomizeCase.iniDelay+=randomizeCase.iniDelay<a?r:n,randomizeCase.iniDelay>o&&(randomizeCase.iniDelay=o),setTimeout(()=>{randomizeCase(e,t,o,r,n,a)},randomizeCase.iniDelay)}function typeText(e,t,o,r,n,a){if("string"==typeof e&&(e=[e]),!t?.nodeName)throw new Error("Destination must be a DOM element");o=validateIntArg(o,"Typing delay",30),r=validateIntArg(r,"Initial text array index",0),n=validateIntArg(n,"Initial text string position",3),a=validateIntArg(a,"Lines to scroll at",5);let i=" ",l=Math.max(0,r-a);for(;l<r;)i+=e[l++]+"<br /><br />";t.innerHTML=i+e[r].substring(0,n)+"_",n++==e[r].length?(n=0,++r!=e.length&&(typeText.timeoutID=setTimeout(()=>{typeText(e,t,o,r,n)},88))):typeText.timeoutID=setTimeout(()=>{typeText(e,t,o,r,n)},o+220*Math.random()-110)}class Scramble{constructor(e){this.el=e,this.chars="!<>-_\\/[]{}—=+*^?#________",this.update=this.update.bind(this)}setText(t){var o=this.el.innerText,r=Math.max(o.length,t.length),e=new Promise(e=>this.resolve=e);this.queue=[];for(let e=0;e<r;e++){var n=o[e]||"",a=t[e]||"",i=Math.floor(45*Math.random()),l=i+Math.floor(45*Math.random());this.queue.push({from:n,to:a,start:i,end:l})}return cancelAnimationFrame(this.frameRequest),this.frame=0,this.update(),e}update(){let i="",l=0;for(let a=0,e=this.queue.length;a<e;a++){let{from:e,to:t,start:o,end:r,char:n}=this.queue[a];this.frame>=r?(l++,i+=t):this.frame>=o?((!n||Math.random()<.28)&&(n=this.randomChar(),this.queue[a].char=n),i+=`<span class="dud">${n}</span>`):i+=e}this.el.innerHTML=i,l===this.queue.length?this.resolve():(this.frameRequest=requestAnimationFrame(this.update),this.frame++)}randomChar(){return this.chars[Math.floor(Math.random()*this.chars.length)]}}const languageMenu=document.getElementById("language-menu"),languageSelector=document.getElementById("language-selector");languageMenu.style.display="none";let hideTimeout,fromUnhashedURL=(languageSelector.addEventListener("mouseenter",()=>{clearTimeout(hideTimeout),languageMenu.style.display="block"}),languageSelector.addEventListener("mouseleave",()=>{hideTimeout=setTimeout(()=>{languageMenu.style.display="none"},55)}),languageMenu.addEventListener("mouseenter",()=>{clearTimeout(hideTimeout),languageMenu.style.display="block"}),languageMenu.addEventListener("mouseleave",()=>{clearTimeout(hideTimeout),hideTimeout=setTimeout(()=>{languageMenu.style.display="none"},55)}),document.querySelectorAll("#language-selector a").forEach(e=>{e.addEventListener("mouseenter",()=>{e.removeAttribute("title")})}),document.querySelectorAll(".dropdown-link").forEach(e=>{e.addEventListener("click",()=>{languageMenu.style.display="none"})}),onLoadObserver.observe(document.body,{childList:!0,subtree:!0}),window.location.href.includes("#"));window.addEventListener("hashchange",()=>{fromUnhashedURL?fromUnhashedURL&&onLoadObserver.observe(document.body,{childList:!0,subtree:!0}):fromUnhashedURL=!0});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
window.starColor="white",window.starVelocity={x:0,y:0,tx:0,ty:0,z:5e-4};const starSize=6,starMinScale=2.5e-10,overflowThreshold=50,starCount=(window.innerWidth+window.innerHeight)/(-1<navigator.userAgent.indexOf("Firefox")?18:11),canvas=document.querySelector("canvas"),context=canvas.getContext("2d");let scale=.5,stars=[],width,height,pointerX,pointerY,touchInput=!1;for(let t=0;t<starCount;t++)stars.push({x:0,y:0,z:starMinScale+Math.random()*(1-starMinScale)});function updateCanvasSize(){width=window.innerWidth*scale,height=window.innerHeight*scale,canvas.width=width,canvas.height=height,stars.forEach(t=>{t.x=Math.random()*width,t.y=Math.random()*height})}function animateStars(){context.clearRect(0,0,width,height),window.starVelocity.tx*=.86,window.starVelocity.ty*=.86,window.starVelocity.x+=.8*(window.starVelocity.tx-window.starVelocity.x),window.starVelocity.y+=.8*(window.starVelocity.ty-window.starVelocity.y),stars.forEach(t=>{if(t.x+=window.starVelocity.x*t.z,t.y+=window.starVelocity.y*t.z,t.x+=(t.x-width/2)*window.starVelocity.z*t.z,t.y+=(t.y-height/2)*window.starVelocity.z*t.z,t.z+=window.starVelocity.z,t.x<-overflowThreshold||t.x>width+overflowThreshold||t.y<-overflowThreshold||t.y>height+overflowThreshold){let o="z",e=Math.abs(window.starVelocity.x),n=Math.abs(window.starVelocity.y);if(1<e||1<n){let t;t=n<e?Math.random()<e/(e+n)?"h":"v":Math.random()<n/(e+n)?"v":"h",o="h"===t?0<window.starVelocity.x?"l":"r":0<window.starVelocity.y?"t":"b"}t.z=starMinScale+Math.random()*(1-starMinScale),"z"===o?(t.z=.1,t.x=Math.random()*width,t.y=Math.random()*height):"l"===o?(t.x=-overflowThreshold,t.y=height*Math.random()):"r"===o?(t.x=width+overflowThreshold,t.y=height*Math.random()):"t"===o?(t.x=width*Math.random(),t.y=-overflowThreshold):"b"===o&&(t.x=width*Math.random(),t.y=height+overflowThreshold)}}),stars.forEach(t=>{context.beginPath(),context.lineCap="round",context.lineWidth=starSize*t.z*scale,context.globalAlpha=.5+.5*Math.random(),context.strokeStyle=window.starColor,context.beginPath(),context.moveTo(t.x,t.y);let o=2*window.starVelocity.x,e=2*window.starVelocity.y;Math.abs(o)<.1&&(o=.5),Math.abs(e)<.1&&(e=.5),context.lineTo(t.x+o,t.y+e),context.stroke()}),requestAnimationFrame(animateStars)}function movePointer(t,o){var e,n;"number"==typeof pointerX&&"number"==typeof pointerY&&(e=t-pointerX,n=o-pointerY,window.starVelocity.tx=window.starVelocity.tx+e/8*scale*(touchInput?1:-1),window.starVelocity.ty=window.starVelocity.ty+n/8*scale*(touchInput?1:-1)),pointerX=t,pointerY=o}updateCanvasSize(),animateStars(),window.onresize=updateCanvasSize,document.onmousemove=t=>{touchInput=!1,movePointer(t.clientX,t.clientY)},document.ontouchmove=t=>{touchInput=!0,movePointer(t.touches[0].clientX,t.touches[0].clientY),t.preventDefault()},document.ontouchend=()=>{pointerX=null,pointerY=null},document.onmouseleave=()=>{pointerX=null,pointerY=null};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
// Add back-to-top button
|
|
2
|
-
|
|
3
|
-
// Create/style button
|
|
4
|
-
const button = document.createElement('button');
|
|
5
|
-
button.classList.add('back-to-top');
|
|
6
|
-
|
|
7
|
-
// Create button SVG
|
|
8
|
-
const svgElement = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
|
9
|
-
svgElement.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
|
|
10
|
-
svgElement.setAttribute('height', '2em');
|
|
11
|
-
svgElement.setAttribute('viewBox', '0 0 448 512');
|
|
12
|
-
|
|
13
|
-
// Create button SVG path
|
|
14
|
-
const pathElement = document.createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
15
|
-
pathElement.setAttribute('d', 'M246.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 109.3 361.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160zm160 352l-160-160c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 301.3 361.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z');
|
|
16
|
-
|
|
17
|
-
// Merge elements
|
|
18
|
-
svgElement.append(pathElement); button.append(svgElement);
|
|
19
|
-
document.body.append(button);
|
|
20
|
-
|
|
21
|
-
function fadeIn(el, duration) {
|
|
22
|
-
if (el.classList.contains('done')) return;
|
|
23
|
-
el.classList.add('done'); el.style.opacity = 0;
|
|
24
|
-
let last = +new Date();
|
|
25
|
-
const tick = () => {
|
|
26
|
-
el.style.opacity = +el.style.opacity + (new Date() - last) / duration;
|
|
27
|
-
last = +new Date();
|
|
28
|
-
if (+el.style.opacity < 1)
|
|
29
|
-
(window.requestAnimationFrame && requestAnimationFrame(tick)) ||
|
|
30
|
-
setTimeout(tick, 16);
|
|
31
|
-
else el.style.display = 'block';
|
|
32
|
-
};
|
|
33
|
-
tick();
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function fadeOut(el, duration) {
|
|
37
|
-
if (!el.classList.contains('done')) return;
|
|
38
|
-
el.classList.remove('done'); el.style.opacity = 1;
|
|
39
|
-
let last = +new Date();
|
|
40
|
-
const tick = () => {
|
|
41
|
-
el.style.opacity = +el.style.opacity - (new Date() - last) / duration;
|
|
42
|
-
last = +new Date();
|
|
43
|
-
if (+el.style.opacity > 0)
|
|
44
|
-
(window.requestAnimationFrame && requestAnimationFrame(tick)) ||
|
|
45
|
-
setTimeout(tick, 16);
|
|
46
|
-
else el.style.display = 'none';
|
|
47
|
-
};
|
|
48
|
-
tick();
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function scrollToTop() {
|
|
52
|
-
const c = document.documentElement.scrollTop || document.body.scrollTop;
|
|
53
|
-
if (c > 0) {
|
|
54
|
-
window.requestAnimationFrame(scrollToTop);
|
|
55
|
-
window.scrollTo(0, c - c / 8);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
button.addEventListener('click', scrollToTop);
|
|
59
|
-
|
|
60
|
-
window.addEventListener('scroll', () => {
|
|
61
|
-
const scrollTop = window.scrollY || document.documentElement.scrollTop;
|
|
62
|
-
if (scrollTop > 0) fadeIn(button, 500);
|
|
63
|
-
else fadeOut(button, 500);
|
|
64
|
-
});
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
|
|
3
|
-
!(function () {
|
|
4
|
-
function s(o) {
|
|
5
|
-
return (s =
|
|
6
|
-
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
|
|
7
|
-
? function (o) {
|
|
8
|
-
return typeof o;
|
|
9
|
-
}
|
|
10
|
-
: function (o) {
|
|
11
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
12
|
-
})(o);
|
|
13
|
-
}
|
|
14
|
-
!(function (o, e) {
|
|
15
|
-
void 0 === e && (e = {});
|
|
16
|
-
var t = e.insertAt;
|
|
17
|
-
if (o && "undefined" != typeof document) {
|
|
18
|
-
var n = document.head || document.getElementsByTagName("head")[0],
|
|
19
|
-
c = document.createElement("style");
|
|
20
|
-
(c.type = "text/css"), "top" === t && n.firstChild ? n.insertBefore(c, n.firstChild) : n.append(c), c.styleSheet ? (c.styleSheet.cssText = o) : c.append(document.createTextNode(o));
|
|
21
|
-
}
|
|
22
|
-
})(
|
|
23
|
-
".docsify-copy-code-button,.docsify-copy-code-button span{cursor:pointer}.docsify-copy-code-button{position:absolute;z-index:1;top:0;right:0;overflow:visible;padding:.65em .8em;border:0;border-radius:0;outline:0;font-size:1em;background:grey;background:var(--theme-color,grey);color:#fff;opacity:1}.docsify-copy-code-button span{border-radius:3px;background:inherit;pointer-events:none}.docsify-copy-code-button .error,.docsify-copy-code-button .success{position:absolute;z-index:1000;top:24px;left:12px;padding:.5em .65em;font-size:.825em;opacity:0;transform:translateX(-88%)translateY(-50%)}.docsify-copy-code-button.error .error,.docsify-copy-code-button.success .success{left:12px;top:24px;opacity:1;,pre:hover .docsify-copy-code-button{opacity:1}"
|
|
24
|
-
),
|
|
25
|
-
document.querySelector('link[href*="docsify-copy-code"]') && console.warn("[Deprecation] Link to external docsify-copy-code stylesheet is no longer necessary."),
|
|
26
|
-
(window.DocsifyCopyCodePlugin = {
|
|
27
|
-
init: function () {
|
|
28
|
-
return function (o, e) {
|
|
29
|
-
o.ready(function () {
|
|
30
|
-
console.warn("[Deprecation] Manually initializing docsify-copy-code using window.DocsifyCopyCodePlugin.init() is no longer necessary.");
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
},
|
|
34
|
-
}),
|
|
35
|
-
(window.$docsify = window.$docsify || {}),
|
|
36
|
-
(window.$docsify.plugins = [
|
|
37
|
-
function (o, r) {
|
|
38
|
-
o.doneEach(function () {
|
|
39
|
-
var o = Array.apply(null, document.querySelectorAll("pre[data-lang]")),
|
|
40
|
-
c = { buttonText: "<> Copy code", errorText: "Error", successText: "Code copied!" };
|
|
41
|
-
r.config.copyCode &&
|
|
42
|
-
Object.keys(c).forEach(function (t) {
|
|
43
|
-
var n = r.config.copyCode[t];
|
|
44
|
-
"string" == typeof n
|
|
45
|
-
? (c[t] = n)
|
|
46
|
-
: "object" === s(n) &&
|
|
47
|
-
Object.keys(n).some(function (o) {
|
|
48
|
-
var e = -1 < location.href.indexOf(o);
|
|
49
|
-
return (c[t] = e ? n[o] : c[t]), e;
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
var e = [
|
|
53
|
-
'<button class="docsify-copy-code-button">',
|
|
54
|
-
'<span class="label">'.concat(c.buttonText, "</span>"),
|
|
55
|
-
'<span class="error">'.concat(c.errorText, "</span>"),
|
|
56
|
-
'<span class="success">'.concat(c.successText, "</span>"),
|
|
57
|
-
"</button>",
|
|
58
|
-
].join("");
|
|
59
|
-
o.forEach(function (o) {
|
|
60
|
-
o.insertAdjacentHTML("beforeend", e);
|
|
61
|
-
});
|
|
62
|
-
}),
|
|
63
|
-
o.mounted(function () {
|
|
64
|
-
document.querySelector(".content").addEventListener("click", function (o) {
|
|
65
|
-
if (o.target.classList.contains("docsify-copy-code-button")) {
|
|
66
|
-
var e = "BUTTON" === o.target.tagName ? o.target : o.target.parentNode,
|
|
67
|
-
t = document.createRange(),
|
|
68
|
-
n = e.parentNode.querySelector("code"),
|
|
69
|
-
c = window.getSelection();
|
|
70
|
-
t.selectNode(n), c.removeAllRanges(), c.addRange(t);
|
|
71
|
-
try {
|
|
72
|
-
document.execCommand("copy") &&
|
|
73
|
-
(e.classList.add("success"), e.querySelector('.label').style.display = 'none',
|
|
74
|
-
setTimeout(function () {
|
|
75
|
-
e.classList.remove("success");
|
|
76
|
-
e.querySelector('.label').style.display = 'inline';
|
|
77
|
-
}, 2000));
|
|
78
|
-
} catch (o) {
|
|
79
|
-
console.error("docsify-copy-code: ".concat(o)),
|
|
80
|
-
e.classList.add("error"),
|
|
81
|
-
setTimeout(function () {
|
|
82
|
-
e.classList.remove("error");
|
|
83
|
-
}, 2000);
|
|
84
|
-
}
|
|
85
|
-
"function" == typeof (c = window.getSelection()).removeRange ? c.removeRange(t) : "function" == typeof c.removeAllRanges && c.removeAllRanges();
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
},
|
|
90
|
-
].concat(window.$docsify.plugins || []));
|
|
91
|
-
})();
|