Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
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
Packages
Packages
Container Registry
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
Dmitry Korolev
taskonsite-архив-перенесен
Commits
1787b0c1
Commit
1787b0c1
authored
Mar 02, 2016
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1025 - Нужно добавить элемент прокрутки вверх (для длинных страниц)
parent
d7be3b48
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
50 additions
and
1 deletion
+50
-1
frontend/views/layouts/footer-index.php
frontend/views/layouts/footer-index.php
+4
-0
frontend/views/layouts/footer-testing.php
frontend/views/layouts/footer-testing.php
+5
-1
frontend/views/layouts/footer.php
frontend/views/layouts/footer.php
+4
-0
frontend/web/css/custom.css
frontend/web/css/custom.css
+22
-0
frontend/web/images/up-button.png
frontend/web/images/up-button.png
+0
-0
frontend/web/js/custom.js
frontend/web/js/custom.js
+15
-0
No files found.
frontend/views/layouts/footer-index.php
View file @
1787b0c1
...
@@ -128,4 +128,8 @@ FileUploadBundle::register($this);
...
@@ -128,4 +128,8 @@ FileUploadBundle::register($this);
</div>
</div>
</footer>
</footer>
<div
class=
"up-button-container"
>
<div
class=
"up-button"
></div>
</div>
<?php
echo
$this
->
render
(
'block/callback'
);
?>
<?php
echo
$this
->
render
(
'block/callback'
);
?>
\ No newline at end of file
frontend/views/layouts/footer-testing.php
View file @
1787b0c1
...
@@ -14,4 +14,8 @@
...
@@ -14,4 +14,8 @@
</div>
</div>
</div>
</div>
</div>
</div>
</footer>
</footer>
\ No newline at end of file
<div
class=
"up-button-container"
>
<div
class=
"up-button"
></div>
</div>
\ No newline at end of file
frontend/views/layouts/footer.php
View file @
1787b0c1
...
@@ -31,4 +31,8 @@
...
@@ -31,4 +31,8 @@
</div>
</div>
</footer>
</footer>
<div
class=
"up-button-container"
>
<div
class=
"up-button"
></div>
</div>
<?php
echo
$this
->
render
(
'block/callback'
);
?>
<?php
echo
$this
->
render
(
'block/callback'
);
?>
\ No newline at end of file
frontend/web/css/custom.css
View file @
1787b0c1
...
@@ -275,6 +275,28 @@ pre code {
...
@@ -275,6 +275,28 @@ pre code {
.preview-image
{
.preview-image
{
text-align
:
center
;
text-align
:
center
;
}
}
.up-button
{
background
:
url(../images/up-button.png)
no-repeat
left
top
;
width
:
56px
;
height
:
72px
;
position
:
absolute
;
left
:
-80px
;
top
:
0
;
cursor
:
pointer
;
display
:
none
;
}
.up-button
:hover
{
background-position
:
right
top
;
}
.up-button-container
{
position
:
fixed
;
width
:
970px
;
height
:
0px
;
bottom
:
150px
;
left
:
50%
;
margin-left
:
-485px
;
z-index
:
2
;
}
/* ------------ BLOG MODAL ------------------ */
/* ------------ BLOG MODAL ------------------ */
...
...
frontend/web/images/up-button.png
0 → 100644
View file @
1787b0c1
6.03 KB
frontend/web/js/custom.js
View file @
1787b0c1
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
$
(
window
).
scroll
(
function
(){
if
(
$
(
window
).
scrollTop
()
>
700
)
{
$
(
'
.up-button
'
).
show
();
}
else
{
$
(
'
.up-button
'
).
hide
();
}
});
$
(
'
.up-button
'
).
click
(
function
(){
$
(
"
html, body
"
).
animate
({
scrollTop
:
0
},
"
slow
"
);
});
$
(
"
a.toggle_bottom
"
).
click
(
function
()
{
$
(
"
a.toggle_bottom
"
).
click
(
function
()
{
var
a
=
$
(
this
);
var
a
=
$
(
this
);
$
(
"
html, body
"
).
animate
({
scrollTop
:
$
(
a
.
attr
(
'
href
'
)).
position
().
top
-
50
},
"
slow
"
);
$
(
"
html, body
"
).
animate
({
scrollTop
:
$
(
a
.
attr
(
'
href
'
)).
position
().
top
-
50
},
"
slow
"
);
...
...
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