Commit 17fda6b 1 parent e882fc0 commit 17fda6b Copy full SHA for 17fda6b
File tree 3 files changed +25
-3
lines changed
3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 3
3
"baseUrl" : " https://techradar.aoe.com" ,
4
4
"editUrl" : " https://github.dev/AOEpeople/techradar/blob/main/radar/{release}/{id}.md" ,
5
5
"logoFile" : " logo.svg" ,
6
- "jsFile" : " " ,
6
+ "jsFile" : " js/init.js " ,
7
7
"toggles" : {
8
8
"showChart" : true ,
9
9
"showTagFilter" : true ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ server {
10
10
root /usr/share/nginx/html;
11
11
index index.html index.htm;
12
12
13
- add_header Content-Security-Policy "frame-ancestors 'self'; default-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' cookie-cdn.cookiepro.com; connect-src 'self' cookie-cdn.cookiepro.com privacyportal.cookiepro.com; img-src *";
13
+ add_header Content-Security-Policy "frame-ancestors 'self'; default-src 'self' 'unsafe-inline'; img-src *";
14
14
add_header Strict-Transport-Security "max-age=31536000";
15
15
add_header Cache-Control "max-age=86400";
16
16
add_header X-Content-Type-Options nosniff;
@@ -23,6 +23,5 @@ server {
23
23
}
24
24
25
25
error_page 404 /404.html;
26
-
27
26
}
28
27
Original file line number Diff line number Diff line change
1
+ ( function ( ) {
2
+ const chatbotElement = document . createElement ( "div" ) ;
3
+ chatbotElement . id = "chatbot" ;
4
+ chatbotElement . style =
5
+ "position: fixed; bottom: 0; right: 0; z-index: 9999; margin-right: 0; margin-bottom: 20px" ;
6
+ document . body . append ( chatbotElement ) ;
7
+
8
+ // initially load chatbot script
9
+ const chatbot = document . createElement ( "script" ) ;
10
+ chatbot . src = "/chatbot/chatbot.umd.js" ;
11
+ chatbot . type = "text/javascript" ;
12
+ chatbot . onload = function ( ) {
13
+ Chatbot . init ( { height : 700 , width : 400 , botName : "TechScout" } )
14
+ Chatbot . show ( ) ;
15
+ }
16
+ document . head . append ( chatbot ) ;
17
+
18
+ // load chatbot styles
19
+ const chatbotStyles = document . createElement ( "link" ) ;
20
+ chatbotStyles . rel = "stylesheet" ;
21
+ chatbotStyles . href = "/chatbot/style.css" ;
22
+ document . head . append ( chatbotStyles ) ;
23
+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments