Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dic-global-dev
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Manzar Hussain
dic-global-dev
Commits
e7d4f7b2
Commit
e7d4f7b2
authored
Dec 27, 2020
by
Manzar Hussain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add custom-d js
parent
233ddd60
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
96 additions
and
1 deletions
+96
-1
envigo.libraries.yml
themes/custom/envigo/envigo.libraries.yml
+2
-1
custom-d.js
themes/custom/envigo/js/custom-d.js
+94
-0
No files found.
themes/custom/envigo/envigo.libraries.yml
View file @
e7d4f7b2
...
@@ -18,7 +18,6 @@ global-style:
...
@@ -18,7 +18,6 @@ global-style:
js
:
js
:
js/slick.min.js
:
{}
js/slick.min.js
:
{}
js/custom.js
:
{}
js/mwheelIntent.js
:
{}
js/mwheelIntent.js
:
{}
js/masonry.pkgd.min.js
:
{}
js/masonry.pkgd.min.js
:
{}
js/lightbox.js
:
{}
js/lightbox.js
:
{}
...
@@ -26,5 +25,7 @@ global-style:
...
@@ -26,5 +25,7 @@ global-style:
js/jquery.mousewheel.js
:
{}
js/jquery.mousewheel.js
:
{}
js/jquery.jscrollpane.min.js
:
{}
js/jquery.jscrollpane.min.js
:
{}
js/imagesloaded.pkgd.min.js
:
{}
js/imagesloaded.pkgd.min.js
:
{}
js/custom.js
:
{}
js/custom-d.js
:
{}
dependencies
:
dependencies
:
-
core/jquery
-
core/jquery
themes/custom/envigo/js/custom-d.js
0 → 100644
View file @
e7d4f7b2
(
function
(
$
)
{
if
(
$
(
".e-r-slider"
).
length
)
{
$
(
".e-r-slider"
).
slick
({
autoplay
:
true
,
autoplaySpeed
:
3000
,
speed
:
1000
,
dots
:
true
,
arrows
:
false
,
infinite
:
false
,
slidesToShow
:
1
,
slidesToScroll
:
1
,
fade
:
true
,
asNavFor
:
'.e-r-img-slider'
,
responsive
:
[
{
breakpoint
:
767
,
settings
:
{
dots
:
false
,
}
}
]
});
$
(
'.e-r-img-slider'
).
slick
({
asNavFor
:
'.e-r-slider'
,
slidesToShow
:
1
,
slidesToScroll
:
1
,
arrows
:
false
,
dots
:
false
,
infinite
:
false
,
responsive
:
[
{
breakpoint
:
767
,
settings
:
{
dots
:
true
,
}
}
]
});
}
if
(
$
(
".ap-slider"
).
length
)
{
$
(
".ap-slider"
).
slick
({
slidesToShow
:
1
,
slidesToScroll
:
1
,
arrows
:
true
,
dots
:
false
,
infinite
:
false
});
}
$
(
'.f-dropdown-l .d-value'
).
click
(
function
(){
$
(
this
).
parent
().
toggleClass
(
'open'
);
});
$
(
'.f-dropdown-w .list li'
).
click
(
function
(
e
){
e
.
preventDefault
();
$
(
this
).
closest
(
'.f-dropdown-l'
).
find
(
'.d-value'
).
text
(
$
(
this
).
text
());
$
(
this
).
closest
(
'.f-dropdown-l'
).
toggleClass
(
'open'
);
});
//overlay popup
$
(
".btn-popup"
).
click
(
function
(
e
){
e
.
preventDefault
();
var
target
=
$
(
this
).
attr
(
'data-link'
);
$
(
`<div class="modal-backdrop show"></div>`
).
insertAfter
(
'.modal'
).
addClass
(
'fade '
);
$
(
".modal[id="
+
target
+
"]"
).
show
();
$
(
"body"
).
addClass
(
'modal-open'
);
});
$
(
document
).
on
(
"click"
,
".modal-backdrop, .modal .close"
,
function
()
{
$
(
".modal"
).
hide
();
$
(
".modal-backdrop"
).
remove
();
$
(
"body"
).
removeClass
(
'modal-open'
);
})
// hide element outside click of element
$
(
document
).
mouseup
(
function
(
e
)
{
var
container
=
$
(
".f-dropdown-l.open"
);
// if the target of the click isn't the container nor a descendant of the container
if
(
!
container
.
is
(
e
.
target
)
&&
container
.
has
(
e
.
target
).
length
===
0
)
{
container
.
removeClass
(
'open'
);
}
});
})(
jQuery
);
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