Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
NAP-wordpress
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marwa Sfari
NAP-wordpress
Commits
3a9e0a9a
Commit
3a9e0a9a
authored
Jul 19, 2017
by
imac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix/Update]Catalogue : add space on last section && jump on animation && remove center slide
parent
d1d60daa
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
main.css
wp-content/themes/nap/assets/css/main.css
+2
-1
main.js
wp-content/themes/nap/assets/js/main.js
+6
-2
product.js
wp-content/themes/nap/assets/js/product.js
+2
-2
No files found.
wp-content/themes/nap/assets/css/main.css
View file @
3a9e0a9a
...
@@ -1592,7 +1592,7 @@ aside.news-wrapper {
...
@@ -1592,7 +1592,7 @@ aside.news-wrapper {
}
}
.cover-wrapper.prev
{
.cover-wrapper.prev
{
top
:
-100%
;
top
:
-100%
;
z-index
:
4
;
z-index
:
4
!important
;
}
}
.cover-wrapper.next
{
.cover-wrapper.next
{
display
:
block
;
display
:
block
;
...
@@ -1864,6 +1864,7 @@ input.search{
...
@@ -1864,6 +1864,7 @@ input.search{
border-radius
:
50%
;
border-radius
:
50%
;
background-position
:
top
;
background-position
:
top
;
margin-bottom
:
14px
;
margin-bottom
:
14px
;
background-size
:
cover
;
}
}
.commercial-details
h3
{
.commercial-details
h3
{
font-family
:
'Crete Round'
;
font-family
:
'Crete Round'
;
...
...
wp-content/themes/nap/assets/js/main.js
View file @
3a9e0a9a
...
@@ -6,6 +6,9 @@ $(function(){
...
@@ -6,6 +6,9 @@ $(function(){
$
(
'a[href^="#"], .easyzoom a'
).
click
(
function
(
e
){
$
(
'a[href^="#"], .easyzoom a'
).
click
(
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
});
});
$
(
'.download-btn'
).
click
(
function
(
e
){
e
.
stopPropagation
();
});
//load content page on left Panel
//load content page on left Panel
$
(
'.footer .right li:not(.nl)'
).
on
(
'click'
,
'a'
,
function
(
e
){
$
(
'.footer .right li:not(.nl)'
).
on
(
'click'
,
'a'
,
function
(
e
){
$
(
'html'
).
css
(
'overflow'
,
'hidden'
);
$
(
'html'
).
css
(
'overflow'
,
'hidden'
);
...
@@ -37,7 +40,7 @@ $(function(){
...
@@ -37,7 +40,7 @@ $(function(){
$
(
'.gallery-wrapper'
).
removeClass
(
'hidden-elem'
).
addClass
(
'animated visible-elem fadeInUp'
);
$
(
'.gallery-wrapper'
).
removeClass
(
'hidden-elem'
).
addClass
(
'animated visible-elem fadeInUp'
);
},
0
)
},
0
)
});
});
});
});
//Get file name of uploaded file
//Get file name of uploaded file
$
(
'#file-p'
).
on
(
'change'
,
function
(
e
){
$
(
'#file-p'
).
on
(
'change'
,
function
(
e
){
var
fileName
=
e
.
target
.
files
[
0
].
name
;
var
fileName
=
e
.
target
.
files
[
0
].
name
;
...
@@ -294,6 +297,7 @@ $.fn.getMenuBg = function(){
...
@@ -294,6 +297,7 @@ $.fn.getMenuBg = function(){
$
(
'.right-panel'
).
outerWidth
(
windowWidth
-
(
navMenuWidth
+
filterWidth
));
$
(
'.right-panel'
).
outerWidth
(
windowWidth
-
(
navMenuWidth
+
filterWidth
));
$
(
'.contact-form'
).
height
(
windowHeight
-
footerHeight
);
$
(
'.contact-form'
).
height
(
windowHeight
-
footerHeight
);
$
(
'.contact-form .inner-form'
).
outerHeight
(
windowHeight
-
footerContact
);
$
(
'.contact-form .inner-form'
).
outerHeight
(
windowHeight
-
footerContact
);
$
(
'#catalogue .panel-content section'
).
last
().
height
(
windowHeight
-
footerHeight
);
}
}
});
//END Function
});
//END Function
...
@@ -416,7 +420,7 @@ $(window).load( function() {
...
@@ -416,7 +420,7 @@ $(window).load( function() {
$
(
window
).
on
(
"scroll"
,{
items
:
"li .subcat a"
},
onScroll
)
$
(
window
).
on
(
"scroll"
,{
items
:
"li .subcat a"
},
onScroll
)
$
(
document
).
ready
(
function
(){
$
(
document
).
ready
(
function
(){
$
(
'.nav-content li'
).
on
(
'mouseover'
,
function
(){
$
(
'.nav-content li'
).
on
(
'mouseover'
,
function
(){
$
(
this
).
fadeImage
();
$
(
this
).
stop
(
true
,
true
).
fadeImage
();
});
});
// Catalog Page : Change product image depending on selected color
// Catalog Page : Change product image depending on selected color
$
(
'.product-list article ul li'
).
on
(
'mouseover'
,
function
(){
$
(
'.product-list article ul li'
).
on
(
'mouseover'
,
function
(){
...
...
wp-content/themes/nap/assets/js/product.js
View file @
3a9e0a9a
...
@@ -53,7 +53,7 @@ $.fn.slider_product = function(){
...
@@ -53,7 +53,7 @@ $.fn.slider_product = function(){
arrows
:
true
,
arrows
:
true
,
dots
:
true
,
dots
:
true
,
slidesToShow
:
1
,
slidesToShow
:
1
,
centerMode
:
true
,
//
centerMode: true,
centerPadding
:
'0px'
,
centerPadding
:
'0px'
,
});
});
}
}
...
@@ -108,7 +108,6 @@ $.fn.productAnimation = function(){
...
@@ -108,7 +108,6 @@ $.fn.productAnimation = function(){
tlProduct
.
fromTo
(
'.product-info'
,
1
,{
autoAlpha
:
0
,
marginLeft
:
"-10%"
},{
autoAlpha
:
1
,
marginLeft
:
"0"
},
1.2
);
tlProduct
.
fromTo
(
'.product-info'
,
1
,{
autoAlpha
:
0
,
marginLeft
:
"-10%"
},{
autoAlpha
:
1
,
marginLeft
:
"0"
},
1.2
);
}
}
$
(
'.product-list article img, .product-list article ul li'
).
on
(
'click'
,
function
()
{
$
(
'.product-list article img, .product-list article ul li'
).
on
(
'click'
,
function
()
{
$
(
'html'
).
css
(
'overflow'
,
'hidden'
);
var
toLink
=
$
(
this
).
data
(
'link'
);
var
toLink
=
$
(
this
).
data
(
'link'
);
$
(
'.load-page'
).
parent
().
addClass
(
'active'
);
$
(
'.load-page'
).
parent
().
addClass
(
'active'
);
$
(
'.load-page'
).
load
(
toLink
,
function
(){
$
(
'.load-page'
).
load
(
toLink
,
function
(){
...
@@ -120,6 +119,7 @@ $('.product-list article img, .product-list article ul li').on('click', function
...
@@ -120,6 +119,7 @@ $('.product-list article img, .product-list article ul li').on('click', function
$
(
'article[data-color], .list-color li span'
).
selectSlide
(
$
(
'#slides'
));
$
(
'article[data-color], .list-color li span'
).
selectSlide
(
$
(
'#slides'
));
$
(
'#mozaique'
).
open_gallery
();
$
(
'#mozaique'
).
open_gallery
();
initFunction
();
initFunction
();
$
(
'html'
).
css
(
'overflow'
,
'hidden'
);
setTimeout
(
function
(){
setTimeout
(
function
(){
$
.
fn
.
productAnimation
();
$
.
fn
.
productAnimation
();
$
(
'#product .product-list'
).
showRightPanel
();
$
(
'#product .product-list'
).
showRightPanel
();
...
...
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