Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Administrator
/
chatgpt.ai-pro.org
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
3
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
37b2f5a4
authored
2024-08-13 16:23:23 +0800
by
Jonille Arreglo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update
1 parent
543d62be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
client/public/index.html
client/src/ChatBox.js
client/public/index.html
View file @
37b2f5a
...
...
@@ -31,11 +31,6 @@
let
btutilAsset
=
document
.
createElement
(
'script'
);
btutilAsset
.
setAttribute
(
'src'
,
"%REACT_APP_BTUTIL_ASSET_URL%"
+
ver
);
document
.
head
.
appendChild
(
btutilAsset
);
let
vuzoScript
=
document
.
createElement
(
"script"
)
var
start_URL
=
"%REACT_APP_START_SERVER_URL%/"
;
vuzoScript
.
setAttribute
(
"src"
,
start_URL
+
'snippets/com.global.vuzo/js/com.global.vuzo.js?ver='
+
ver
);
document
.
head
.
appendChild
(
vuzoScript
);
</script>
</head>
<body>
...
...
client/src/ChatBox.js
View file @
37b2f5a
...
...
@@ -30,6 +30,16 @@ const ChatBox = ({chatLog, setChatInput, handleSubmit, chatInput, startedInterac
<
/input
>
<
button
className
=
"submit"
type
=
"submit"
onClick
=
{(
e
)
=>
{
setStartedInteraction
(
true
);
if
(
document
.
querySelector
(
'.chat-log'
))
{
setTimeout
(()
=>
{
let
posLeft
=
document
.
querySelector
(
'.chat-log'
).
scrollLeft
;
let
posBottom
=
0
;
for
(
let
i
=
0
;
i
<
document
.
querySelectorAll
(
'.chat-message'
).
length
;
i
++
)
{
posBottom
+=
(
parseInt
(
document
.
querySelectorAll
(
'.chat-message'
)[
i
].
clientHeight
)
*
100
);
}
document
.
querySelector
(
'.chat-log'
).
scroll
(
posLeft
,
posBottom
);
})
}
}}
>
Submit
<
/button
>
<
/form
>
<
div
id
=
"openai_disclaimer"
>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment