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
551b764e
Commit
551b764e
authored
Dec 28, 2020
by
Manzar Hussain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new file override.js
parent
5e56899d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
0 deletions
+62
-0
envigo.libraries.yml
themes/custom/envigo/envigo.libraries.yml
+1
-0
custom.js
themes/custom/envigo/js/custom.js
+0
-0
override.js
themes/custom/envigo/js/override.js
+61
-0
No files found.
themes/custom/envigo/envigo.libraries.yml
View file @
551b764e
...
...
@@ -28,6 +28,7 @@ global-style:
js/imagesloaded.pkgd.min.js
:
{}
js/slick.min.js
:
{}
js/custom.js
:
{}
js/override.js
:
{}
js/custom-d.js
:
{}
dependencies
:
-
core/jquery
themes/custom/envigo/js/custom.js
View file @
551b764e
This diff is collapsed.
Click to expand it.
themes/custom/envigo/js/override.js
0 → 100644
View file @
551b764e
(
function
(
$
)
{
console
.
log
(
"header"
);
// search button function start
$
(
'.h_search_dta'
).
on
(
'click'
,
function
()
{
$
(
this
).
parents
(
'body'
).
addClass
(
'h_scrollNone'
).
find
(
'.h_site_search'
).
show
();
});
$
(
document
).
click
(
function
(
e
)
{
if
(
!
$
(
e
.
target
).
is
(
'.hh_site_search_box *, .hh_site_search_box, .h_search_dta, .h_search_dta *'
))
{
$
(
'body'
).
removeClass
(
'h_scrollNone'
).
find
(
'.h_site_search'
).
hide
();
}
});
// search button function end
// change region button function start
$
(
'.h_cr_b a'
).
on
(
'click'
,
function
(
e
)
{
e
.
preventDefault
();
$
(
this
).
parents
(
'body'
).
addClass
(
'h_scrollNone'
).
find
(
'.h_header_langBox'
).
show
();
});
$
(
document
).
click
(
function
(
e
)
{
if
(
!
$
(
e
.
target
).
is
(
'.h_cr_b *, .h_cr_b, .h_header_langBox_box, .h_header_langBox_box *'
))
{
$
(
'body'
).
removeClass
(
'h_scrollNone'
).
find
(
'.h_header_langBox'
).
hide
();
}
});
// change region button function end
$
(
'.h_menu_btn'
).
on
(
'click'
,
function
(
e
)
{
var
a
=
$
(
this
);
if
(
a
.
hasClass
(
"open"
))
{
a
.
parents
(
'body'
).
removeClass
(
'menu_body_scrollNone'
);
$
(
this
).
removeClass
(
'open'
).
parents
(
'.h_rc_b'
).
removeClass
(
'activeMenucon'
);
}
else
{
a
.
parents
(
'body'
).
addClass
(
'menu_body_scrollNone'
);
$
(
this
).
addClass
(
'open'
).
parents
(
'.h_rc_b'
).
addClass
(
'activeMenucon'
);
}
});
$
(
'.h_nav_main li em'
).
on
(
'click'
,
function
(
e
)
{
$
(
this
).
parents
(
'li'
).
toggleClass
(
'activeSM'
).
siblings
().
removeClass
(
'activeSM'
);
});
console
.
log
(
"footer"
);
$
(
'.f_l_cb .h6_h_c'
).
on
(
'click'
,
function
()
{
var
a
=
$
(
this
).
parent
().
find
(
"ul"
);
$
(
this
).
parents
(
'.f_cb_m'
).
siblings
(
'.f_cb_m'
).
find
(
'.f_l_cb'
).
removeClass
(
'activeMenu'
).
find
(
'ul'
).
slideUp
();
$
(
this
).
parent
().
siblings
(
'.f_l_cb'
).
removeClass
(
'activeMenu'
).
find
(
'ul'
).
slideUp
();
if
(
a
.
is
(
":visible"
))
{
$
(
this
).
parent
().
find
(
'ul'
).
slideUp
();
$
(
this
).
parent
().
removeClass
(
'activeMenu'
);
}
else
{
$
(
this
).
parent
().
find
(
'ul'
).
slideDown
();
$
(
this
).
parent
().
addClass
(
'activeMenu'
);
}
});
})(
jQuery
);
\ No newline at end of file
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