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 b1307a3b
authored
Aug 01, 2017
by
Semenenko Timofey
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
button
1 parent
abf07309
Pipeline
#2819
for
b1307a3b
skipped
in 0 seconds
Changes
6
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
35 deletions
css/main.css
css/media.css
js/compiled.js
js/index.js
local/components/cpeople/project/templates/.default/detail-gallery.php
local/templates/main/footer.php
css/main.css
View file @
b1307a3
...
...
@@ -6954,4 +6954,7 @@ cursor:pointer;
background-image
:
url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIiB3aWR0aD0iMTQiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNCAxNiI+PGRlZnM+PHN0eWxlPi5jbHMtMSB7IGZpbGw6ICNmZmY7IGZpbGwtcnVsZTogZXZlbm9kZDsgfTwvc3R5bGU+PC9kZWZzPjxwYXRoIGQ9Ik02LjcwOCAyLjc5NkMzLjI1OCAyLjk5LjU5NCA1Ljc1Ni41OTQgOS4xNWMwIDMuNTIgMi45NDIgNi4zNzMgNi41NzIgNi4zNzNzNi41NzItMi44NTMgNi41NzItNi4zNzNsLTEuNzYzLjA2YzAgMi42NDgtMi4yMTQgNC43OTQtNC45NDQgNC43OTRTMi4wODggMTEuODU4IDIuMDg4IDkuMjFjMC0yLjUgMi4xMTgtNC41NSA0LjYzOC00Ljc3MmwuMDM2IDMuMTY0IDQuMDA2LTMuODg0TDYuNzYtLjAyMiA2LjcxIDIuNzk1eiIgY2xhc3M9ImNscy0xIi8+PC9zdmc+')
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
}
.project-gallery-items.mobile
{
display
:
show
;
}
\ No newline at end of file
css/media.css
View file @
b1307a3
This diff is collapsed.
Click to expand it.
js/compiled.js
View file @
b1307a3
This diff could not be displayed because it is too large.
js/index.js
View file @
b1307a3
...
...
@@ -41,7 +41,7 @@ $(document).ready(function() {
if (bg) $(this).css( {'background-image' : 'url('+bg+')'} );
})
})
*/
}
...
...
@@ -60,18 +60,18 @@ $(document).ready(function() {
//toggle мобильного меню
$
(
'.mobile_menu_wrap'
).
click
(
function
(){
$
(
this
).
find
(
'.main-menu'
).
toggleClass
(
'opened-xs-menu'
);
$
(
'header.header'
).
toggleClass
(
'opened-menu-header'
);
$
(
'body'
).
toggleClass
(
'noscroll-body'
);
});
//слайд тоггл ссылок мобильного меню на мобильных устройствах
$
(
'.main-menu-item a'
).
click
(
function
(){
if
(
$
(
window
).
width
()
<
992
)
{
$
(
this
).
next
(
'ul'
).
slideToggle
();
...
...
@@ -87,25 +87,25 @@ $(document).ready(function() {
$
(
'#previewer_toggle'
).
click
(
function
(
event
){
if
(
$
(
window
).
width
()
<
992
)
{
$
(
'body'
).
toggleClass
(
'previewer'
);
}
event
.
preventDefault
();
event
.
stopPropagation
();
})
//отключение режима просмотра в карточке проекта
$
(
'#object_head_gal'
).
on
(
'click'
,
function
(){
$
(
'body'
).
removeClass
(
'previewer'
);
})
//инициализайия и настройка слайдера в карточке проектоа
//инициализайия и настройка слайдера в карточке проектоа
var
owl
=
$
(
'.project_slider'
)
owl
.
on
(
'initialized.owl.carousel'
,
function
(
event
)
{
...
...
@@ -135,14 +135,14 @@ $(document).ready(function() {
video_opened
.
play
();
}
else
{
show_prev
(
slide_num
,
item
);
}
}
owl
.
trigger
(
'to.owl.carousel'
,
slide_num
);
}
}
return
false
;
...
...
@@ -158,12 +158,12 @@ $(document).ready(function() {
if
(
$
(
window
).
width
()
/
event
.
clientX
>
2
)
{
$
(
'#cursor_inside'
).
removeClass
(
'right_cursor'
);
$
(
'#cursor_inside'
).
removeClass
(
'right_cursor'
);
}
else
{
$
(
'#cursor_inside'
).
removeClass
(
'left_cursor'
);
$
(
'#cursor_inside'
).
removeClass
(
'left_cursor'
);
$
(
'#cursor_inside'
).
addClass
(
'right_cursor'
);
}
})
...
...
@@ -176,7 +176,7 @@ $(document).ready(function() {
itemsTablet
:
[
768
,
1
],
itemsMobile
:
[
700
,
1
],
navigation
:
false
,
pagination
:
false
,
pagination
:
false
,
navigationText
:
false
,
video
:
true
...
...
@@ -200,14 +200,14 @@ $(document).ready(function() {
})
// Перелистывание слайдов в слайдере
// Перелистывание слайдов в слайдере
$
(
'#cursor'
).
click
(
function
()
{
if
(
$
(
'#cursor_inside'
).
attr
(
'class'
)
==
'right_cursor'
)
{
owl
.
trigger
(
'next.owl.carousel'
);
}
else
owl
.
trigger
(
'prev.owl.carousel'
);
})
...
...
@@ -221,12 +221,12 @@ $(document).ready(function() {
//var index = $('.project_slider').find('li').index($('._plan'));
var
index
=
$
(
this
).
attr
(
'data-image'
);
owl
.
trigger
(
'to.owl.carousel'
,
index
)
var
item
=
$
(
'.project-gallery-item'
).
eq
(
index
);
show_prev
(
index
,
item
);
show_prev
(
index
,
item
);
return
false
;
...
...
@@ -262,7 +262,7 @@ $(document).ready(function() {
show_prev
(
index
,
item
);
}
}
history
.
replaceState
(
null
,
null
,
window
.
location
.
pathname
);
...
...
@@ -297,7 +297,7 @@ $(document).ready(function() {
$
(
this
).
toggleClass
(
'active_search'
);
setTimeout
(
function
(){
$
(
'#header_search'
).
focus
();
$
(
'#header_search'
).
focus
();
}
,
200
)
})
...
...
@@ -310,7 +310,7 @@ $(document).ready(function() {
$
(
'#header_search'
).
on
(
'keyup'
,
function
(
event
){
var
self
=
$
(
this
);
var
data
=
$
(
this
).
val
();
if
(
event
.
keyCode
!=
40
&&
event
.
keyCode
!=
38
&&
event
.
keyCode
!=
13
)
{
$
.
ajax
({
...
...
@@ -320,7 +320,7 @@ $(document).ready(function() {
dataType
:
'json'
,
success
:
function
(
result
){
$
(
'#result_list'
).
addClass
(
'active_res_list'
).
html
(
result
.
text
);
$
(
'#result_list'
).
addClass
(
'active_res_list'
).
html
(
result
.
text
);
}
...
...
@@ -330,7 +330,7 @@ $(document).ready(function() {
var
items
=
$
(
'#result_list'
).
find
(
'li'
);
var
index
=
items
.
index
(
$
(
'.active_res_item'
));
var
index
=
items
.
index
(
$
(
'.active_res_item'
));
if
(
event
.
keyCode
==
40
)
{
...
...
@@ -348,7 +348,7 @@ $(document).ready(function() {
}
else
index
=
index
-
1
;
}
}
items
.
each
(
function
(){
...
...
@@ -367,7 +367,7 @@ $(document).ready(function() {
}
})
//тоггл инфо о проекте в карте
//тоггл инфо о проекте в карте
$
(
'.map-text-toggler'
).
click
(
function
(){
$
(
this
).
closest
(
'.map-project-text-wrap'
).
find
(
'.map-project-text'
).
slideToggle
();
...
...
@@ -375,7 +375,7 @@ $(document).ready(function() {
else
$
(
this
).
text
(
'Читать полностью'
);
})
})
local/components/cpeople/project/templates/.default/detail-gallery.php
View file @
b1307a3
...
...
@@ -93,7 +93,7 @@ $prevNum = 0; ?>
<span
class=
"project-gallery-num-total js-total"
>
<?=
count
(
$arImage
[
'images'
])
?>
</span>
</div>
<ul
data-fancybox
class=
"project_slider"
>
<ul
class=
"project_slider"
>
<?
foreach
(
$arImage
[
'images'
]
as
$img
)
{
$ext
=
end
(
explode
(
'.'
,
$img
->
getUrl
()));
...
...
local/templates/main/footer.php
View file @
b1307a3
...
...
@@ -74,9 +74,7 @@ if($detect->isMobile() || $detect->isTablet()){?>
<script>
if (screen.width<=768) {document.write('<link rel="stylesheet" href="/css/main.css?
<?=
filemtime
(
BASE_PATH
.
'/css/main.css'
)
?>
" id="
pre_load
">');document.body.style.display="
block
"
;}
</script>
<link
rel=
"stylesheet"
type=
'text/css'
href=
"/css/flaticon.css"
>
<link
rel=
"stylesheet"
type=
'text/css'
href=
"/css/media.css"
>
<!--<link rel="stylesheet" href="/css/fansy3.2.1.css" />-->
<!--<script src="//code.jquery.com/jquery-3.2.1.min.js"></script>-->
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.1.20/jquery.fancybox.min.js"></script>-->
<!-- Add mousewheel plugin (this is optional) -->
<script>
//Ставим Куки
...
...
@@ -123,6 +121,14 @@ $(document).ready(function() {
});
});
</script> -->
<script>
$
(
document
).
ready
(
function
()
{
$
(
".project-gallery-items"
).
fancybox
({
openEffect
:
'show'
,
closeEffect
:
'show'
});
});
</script>
<script>
$
(
window
).
scroll
(
function
()
{
...
...
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