Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PHP-Chat
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BA_SST
PHP-Chat
Commits
fc21859f
Commit
fc21859f
authored
Jul 18, 2016
by
Markus Bergt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added initial scroll
parent
511393ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
customJS.js
customJS.js
+10
-3
No files found.
customJS.js
View file @
fc21859f
...
...
@@ -6,6 +6,8 @@ $(document).ready(function() {
});
},
1000
);
scrollToEnd
();
function
UseData
(
data
){
var
obj
=
jQuery
.
parseJSON
(
data
);
if
(
!!
obj
.
UsersTable
)
...
...
@@ -15,12 +17,17 @@ $(document).ready(function() {
if
(
!!
obj
.
newMessages
)
{
$
(
'#chatbody'
).
append
(
obj
.
newMessages
);
$
(
'html, body'
).
animate
({
scrollToEnd
();
}
}
function
scrollToEnd
()
{
$
(
'html, body'
).
animate
({
scrollTop
:
$
(
document
).
height
()
-
$
(
window
).
height
()},
500
,
"swing"
);
}
);
}
$
(
'#showRegBtn'
).
click
(
function
(){
...
...
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