1+ /** @format */
2+
13( function ( ) {
2- let k = window . Kapa ;
3- if ( ! k ) {
4- let i = function ( ) {
5- i . c ( arguments ) ;
6- } ;
7- i . q = [ ] ;
8- i . c = function ( args ) {
9- i . q . push ( args ) ;
10- } ;
11- window . Kapa = i ;
12- }
13- } ) ( ) ;
14-
15- // keeps MkDocs from seeing the keydown
16- function stopMkdocsShortcuts ( e ) {
17- if ( e . ctrlKey || e . metaKey || e . altKey ) return ;
18- const blocked = new Set ( [ '/' , 's' , 'f' , 'n' , 'p' , '.' ] ) ;
19- if ( blocked . has ( e . key . toLowerCase ( ) ) ) {
20- e . stopImmediatePropagation ( ) ;
21- }
4+ let k = window . Kapa ;
5+ if ( ! k ) {
6+ let i = function ( ) {
7+ i . c ( arguments ) ;
8+ } ;
9+ i . q = [ ] ;
10+ i . c = function ( args ) {
11+ i . q . push ( args ) ;
12+ } ;
13+ window . Kapa = i ;
2214 }
23-
24- Kapa ( 'onModalOpen' , ( ) => {
25- window . addEventListener ( 'keydown' , stopMkdocsShortcuts , true ) ;
26- } ) ;
27-
28- Kapa ( 'onModalClose' , ( ) => {
29- window . removeEventListener ( 'keydown' , stopMkdocsShortcuts , true ) ;
30- } ) ;
31-
32- document . addEventListener ( "DOMContentLoaded" , function ( ) {
33- var script = document . createElement ( "script" ) ;
34- script . src = "https://widget.kapa.ai/kapa-widget.bundle.js" ;
35- script . setAttribute ( "data-website-id" , "d4477ef9-8d35-448e-b5ea-3b8f13d1cf1e" ) ;
36- script . setAttribute ( "data-project-name" , "Polygon" ) ;
37- script . setAttribute ( "data-project-color" , "#8d30d0" ) ;
38- script . setAttribute ( "data-project-logo" , "https://docs.polygon.technology/img/home/main-img.svg" ) ;
39- script . setAttribute ( "data-modal-open-by-default" , "false" ) ;
40- script . setAttribute ( "data-modal-title" , "Polygon Docs Chat Bot" ) ;
41- script . setAttribute ( "data-modal-example-questions-title" , "Try asking me..." ) ;
42- script . setAttribute ( "data-font-size-sm" , "0.7rem" ) ;
43- script . setAttribute ( "data-query-input-font-size" , "0.80rem" ) ;
44- script . setAttribute ( "data-modal-disclaimer-font-size" , "0.6rem" ) ;
45- script . setAttribute ( "data-modal-title-font-size" , "1.1rem" ) ;
46- script . setAttribute (
47- "data-modal-disclaimer" ,
48- "Responses are generated by AI and may not always be accurate or complete. By using this chat, you agree that your questions and interactions may be processed and stored for support and analytics purposes. Please do not submit personal or sensitive information. For more details, see our Privacy Policy."
49- ) ;
50- script . setAttribute (
51- "data-modal-example-questions" ,
52- "What is the finality time on Polygon?, How do I connect my wallet to Polygon?"
53- ) ;
54- script . setAttribute ( "data-button-text-color" , "#ffffff" ) ;
55- script . setAttribute ( "data-modal-title-color" , "#ffffff" ) ;
56- script . setAttribute ( "data-modal-header-bg-color" , "#8d30d0" ) ;
57- script . async = true ;
58- document . head . appendChild ( script ) ;
59- } ) ;
60-
15+ } ) ( ) ;
16+
17+ // keeps MkDocs from seeing the keydown
18+ function stopMkdocsShortcuts ( e ) {
19+ if ( e . ctrlKey || e . metaKey || e . altKey ) return ;
20+ const blocked = new Set ( [ '/' , 's' , 'f' , 'n' , 'p' , '.' ] ) ;
21+ if ( blocked . has ( e . key . toLowerCase ( ) ) ) {
22+ e . stopImmediatePropagation ( ) ;
23+ }
24+ }
25+
26+ Kapa ( 'onModalOpen' , ( ) => {
27+ window . addEventListener ( 'keydown' , stopMkdocsShortcuts , true ) ;
28+ } ) ;
29+
30+ Kapa ( 'onModalClose' , ( ) => {
31+ window . removeEventListener ( 'keydown' , stopMkdocsShortcuts , true ) ;
32+ } ) ;
33+
34+ document . addEventListener ( 'DOMContentLoaded' , function ( ) {
35+ var script = document . createElement ( 'script' ) ;
36+ script . src = 'https://widget.kapa.ai/kapa-widget.bundle.js' ;
37+ script . setAttribute (
38+ 'data-website-id' ,
39+ 'd4477ef9-8d35-448e-b5ea-3b8f13d1cf1e'
40+ ) ;
41+ script . setAttribute ( 'data-project-name' , 'Polygon' ) ;
42+ script . setAttribute ( 'data-project-color' , '#6306B6' ) ;
43+ script . setAttribute (
44+ 'data-project-logo' ,
45+ 'https://polygontechnology.notion.site/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F51562dc1-1dc5-4484-bf96-2aeac848ae2f%2F2c578a74-e8a1-4b2d-aafa-3126339715ae%2FPolygon_Icon_White_Purple_Rn.png?id=f3d302a7-607b-4f4d-8490-240c7eafe3c7&table=block&spaceId=51562dc1-1dc5-4484-bf96-2aeac848ae2f&width=2000&userId=&cache=v2'
46+ ) ;
47+ script . setAttribute ( 'data-button-image-height' , '2rem' ) ;
48+ script . setAttribute ( 'data-button-image-width' , '2.5rem' ) ;
49+ script . setAttribute ( 'data-modal-open-by-default' , 'false' ) ;
50+ script . setAttribute ( 'data-modal-title' , 'Polygon Docs Chat Bot' ) ;
51+ script . setAttribute ( 'data-modal-example-questions-title' , 'Try asking me...' ) ;
52+ script . setAttribute ( 'data-font-size-sm' , '0.6rem' ) ;
53+ script . setAttribute ( 'data-query-input-font-size' , '0.80rem' ) ;
54+ script . setAttribute ( 'data-modal-disclaimer-font-size' , '0.6rem' ) ;
55+ script . setAttribute ( 'data-modal-title-font-size' , '1.1rem' ) ;
56+ script . setAttribute (
57+ 'data-modal-disclaimer' ,
58+ 'Responses are generated by AI and may not always be accurate or complete. By using this chat, you agree that your questions and interactions may be processed and stored for support and analytics purposes. Please do not submit personal or sensitive information. For more details, see our Privacy Policy.'
59+ ) ;
60+ script . setAttribute (
61+ 'data-modal-example-questions' ,
62+ 'What is the finality time on Polygon?, How do I connect my wallet to Polygon?'
63+ ) ;
64+ script . setAttribute ( 'data-button-text-color' , '#ffffff' ) ;
65+ script . setAttribute ( 'data-modal-title-color' , '#ffffff' ) ;
66+ script . setAttribute ( 'data-modal-header-bg-color' , '#6306B6' ) ;
67+ script . setAttribute ( 'data-button-position-top' , '10px' ) ;
68+ script . setAttribute ( 'data-button-position-right' , '20px' ) ;
69+ script . setAttribute ( 'data-button-text-font-size' , '0.8rem' ) ;
70+ script . setAttribute ( 'data-button-height' , '3.8rem' ) ;
71+ script . setAttribute ( 'data-button-width' , '3.6rem' ) ;
72+ script . async = true ;
73+ document . head . appendChild ( script ) ;
74+ } ) ;
0 commit comments