Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Тимофей Семененко
/
shold.dev5.ashmanov.com
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e4cc30fb
authored
Oct 11, 2017
by
Semenenko Timofey
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Полсдений пулл правок для keyup
1 parent
3153d33e
Pipeline
#3087
for
e4cc30fb
skipped
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
15 deletions
js/index.js
local/templates/main/footer.php
js/index.js
View file @
e4cc30f
...
@@ -25,6 +25,9 @@ $(document).ready(function() {
...
@@ -25,6 +25,9 @@ $(document).ready(function() {
}
}
});
});
var
owl
=
false
;
$
(
function
(){
$
(
function
(){
function
show_prev
(
index
,
item
)
{
function
show_prev
(
index
,
item
)
{
...
@@ -33,7 +36,7 @@ $(function(){
...
@@ -33,7 +36,7 @@ $(function(){
if
(
bg
)
item
.
css
(
{
'background-image'
:
'url('
+
bg
+
')'
}
);
if
(
bg
)
item
.
css
(
{
'background-image'
:
'url('
+
bg
+
')'
}
);
/* $('.project-gallery-item:lt('+index+')').each(function(){
/* $('.project-gallery-item:lt('+index+')').each(function(){
var bg = $(this).attr('data-original');
var bg = $(this).attr('data-original');
...
@@ -127,7 +130,9 @@ $(function(){
...
@@ -127,7 +130,9 @@ $(function(){
})
})
//инициализайия и настройка слайдера в карточке проектоа
//инициализайия и настройка слайдера в карточке проектоа
var
owl
=
$
(
'.project_slider'
)
owl
=
$
(
'.project_slider'
);
owl
.
on
(
'initialized.owl.carousel'
,
function
(
event
)
{
owl
.
on
(
'initialized.owl.carousel'
,
function
(
event
)
{
...
@@ -233,6 +238,21 @@ $(function(){
...
@@ -233,6 +238,21 @@ $(function(){
})
})
$
(
document
).
keyup
(
function
(
event
){
if
(
event
.
keyCode
==
37
)
{
owl
.
trigger
(
'prev.owl.carousel'
);
}
if
(
event
.
keyCode
==
39
)
{
owl
.
trigger
(
'next.owl.carousel'
);
}
});
$
(
document
).
keypress
(
function
()
{
debugger
;
});
// Переход к слайду с планировкой
// Переход к слайду с планировкой
$
(
'.js-slide-to-layout'
).
click
(
function
(
event
)
{
$
(
'.js-slide-to-layout'
).
click
(
function
(
event
)
{
...
@@ -452,7 +472,7 @@ $(document).ready(function() {
...
@@ -452,7 +472,7 @@ $(document).ready(function() {
// вызов
// вызов
printNumbersTimeout
();
printNumbersTimeout
();
});
});
$
(
".project-gallery-items"
).
click
(
function
()
{
$
(
".project-gallery-items"
).
click
(
function
()
{
function
printNumbersTimeout
()
{
function
printNumbersTimeout
()
{
...
@@ -647,14 +667,3 @@ $(document).on('click', "#close",function() {
...
@@ -647,14 +667,3 @@ $(document).on('click', "#close",function() {
window
.
location
.
replace
(
"https://shold.dev5.ashmanov.com/projects/"
);
window
.
location
.
replace
(
"https://shold.dev5.ashmanov.com/projects/"
);
});
});
})(
jQuery
);
})(
jQuery
);
local/templates/main/footer.php
View file @
e4cc30f
...
@@ -33,7 +33,7 @@ if($detect->isMobile() && !$detect->isTablet()){?>
...
@@ -33,7 +33,7 @@ if($detect->isMobile() && !$detect->isTablet()){?>
<?
if
(
isset
(
$_COOKIE
[
'mobile'
])
and
$_COOKIE
[
'mobile'
]
==
"no"
)
{
?>
<a
class=
"author"
href=
""
onclick=
"SetCookie('mobile=yes', 0);"
>
На мобильную версию
</a>
<?
}
else
{
?>
<a
class=
"author"
href=
""
onclick=
"SetCookie('mobile=no', 30);"
>
На полную версию
</a>
<?
}
?>
<?
if
(
isset
(
$_COOKIE
[
'mobile'
])
and
$_COOKIE
[
'mobile'
]
==
"no"
)
{
?>
<a
class=
"author"
href=
""
onclick=
"SetCookie('mobile=yes', 0);"
>
На мобильную версию
</a>
<?
}
else
{
?>
<a
class=
"author"
href=
""
onclick=
"SetCookie('mobile=no', 30);"
>
На полную версию
</a>
<?
}
?>
<a
class=
"author"
>
Stroy House
</a>
<a
class=
"author"
>
Stroy House
</a>
<span><a
class=
"menus"
>
info@s-h.ru
</a><a
class=
"menu"
>
+7 (495) 645–44–30
</a></span>
<span><a
class=
"menus"
>
info@s-h.ru
</a><a
class=
"menu"
>
+7 (495) 645–44–30
</a></span>
<
a
class=
"author"
>
Россия, Москва, Селивёрстов переулок, 1А
</a
>
<
!--<a class="author">Россия, Москва, Селивёрстов переулок, 1А</a>--
>
<?
}
else
{
?>
<?
}
else
{
?>
<?
}
?>
<?
}
?>
...
...
Write
Preview
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