Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-193 User-friendly enhanced machine learning-based railway management system
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-193
2021-193 User-friendly enhanced machine learning-based railway management system
Commits
1a5fa28c
Commit
1a5fa28c
authored
Oct 08, 2021
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
connect chatbot to the backend
parent
05f004ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
3 deletions
+25
-3
index.php
index.php
+25
-3
No files found.
index.php
View file @
1a5fa28c
...
...
@@ -1428,9 +1428,9 @@ function myMap() {
<div
class=
"panel-footer"
id=
"inputSec"
>
<div
class=
"input-group"
>
<input
id=
"btn-input
"
type=
"text"
class=
"form-control input-sm chat_input"
placeholder=
"Write your message here..."
required=
"required"
/>
<input
id=
"msg_value"
autocomplete=
"off
"
type=
"text"
class=
"form-control input-sm chat_input"
placeholder=
"Write your message here..."
required=
"required"
/>
<span
class=
"input-group-btn"
>
<button
class=
"btn btn-primary btn-sm"
style=
"margin-top: 5%;"
id=
"btn-chat"
>
Send
<i
class=
"fa fa-send-o"
style=
"font-size:15px; padding-left: 5%;"
></i></button>
<button
class=
"btn btn-primary btn-sm"
style=
"margin-top: 5%;"
id=
"btn-chat"
onclick =
"MsgSend()"
>
Send
<i
class=
"fa fa-send-o"
style=
"font-size:15px; padding-left: 5%;"
></i></button>
</span>
</div>
</div>
...
...
@@ -1465,6 +1465,28 @@ function myMap() {
document
.
getElementById
(
'
messagebody
'
).
style
.
display
=
'
none
'
;
document
.
getElementById
(
'
inputSec
'
).
style
.
display
=
'
none
'
;
}
function
MsgSend
()
{
var
msg
=
document
.
getElementById
(
"
msg_value
"
).
value
;
var
req
=
getXmlHttpRequestObject
();
if
(
req
)
{
req
.
onreadystatechange
=
function
()
{
if
(
req
.
readyState
==
4
)
{
if
(
req
.
status
==
200
)
{
alert
(
req
.
responseText
);
// alert('Line no : '+lineno);
}
}
}
req
.
open
(
"
GET
"
,
'
chat.php?&msg=
'
+
msg
,
true
);
req
.
send
();
}
}
</script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment