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
706f4976
Commit
706f4976
authored
Oct 08, 2021
by
Mihiranga G.L.V - IT18500790
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'IT18085822' into 'master'
connect chatbot to the backend See merge request
!24
parents
05f004ef
1a5fa28c
Changes
1
Hide 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 @
706f4976
...
@@ -1427,10 +1427,10 @@ function myMap() {
...
@@ -1427,10 +1427,10 @@ function myMap() {
</div>
</div>
<div
class=
"panel-footer"
id=
"inputSec"
>
<div
class=
"panel-footer"
id=
"inputSec"
>
<div
class=
"input-group"
>
<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"
>
<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>
</span>
</div>
</div>
</div>
</div>
...
@@ -1465,6 +1465,28 @@ function myMap() {
...
@@ -1465,6 +1465,28 @@ function myMap() {
document
.
getElementById
(
'
messagebody
'
).
style
.
display
=
'
none
'
;
document
.
getElementById
(
'
messagebody
'
).
style
.
display
=
'
none
'
;
document
.
getElementById
(
'
inputSec
'
).
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>
</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