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
6a367699
Commit
6a367699
authored
Sep 22, 2017
by
imac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update]Redmine #649 : Structural change + fixed menu
parent
f175ed46
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
38 deletions
+40
-38
main.css
wp-content/themes/nap/assets/css/main.css
+3
-0
responsive.css
wp-content/themes/nap/assets/css/responsive.css
+1
-0
main.js
wp-content/themes/nap/assets/js/main.js
+2
-2
map.js
wp-content/themes/nap/assets/js/map.js
+3
-3
product.js
wp-content/themes/nap/assets/js/product.js
+31
-33
No files found.
wp-content/themes/nap/assets/css/main.css
View file @
6a367699
...
...
@@ -1883,6 +1883,9 @@ label.chevron.bottom::first-letter {
color
:
#fff
;
z-index
:
9999999
;
}
.filter-list
>
input
{
display
:
block
;
}
.filter-btn
.btn-container
{
height
:
100%
;
position
:
relative
;
...
...
wp-content/themes/nap/assets/css/responsive.css
View file @
6a367699
...
...
@@ -649,6 +649,7 @@
.commercial-details.active-com
figure
{
margin-left
:
0
;
}
.filter-list
>
input
,
.commercial-details
,
.filter-bloc
{
width
:
82%
;
...
...
wp-content/themes/nap/assets/js/main.js
View file @
6a367699
...
...
@@ -667,7 +667,7 @@ var initFunction = function() {
timer
=
setTimeout
(
function
()
{
onScrollCover
();
},
33
0
);
},
60
0
);
$
(
items
).
each
(
function
()
{
var
currLink
=
$
(
this
);
var
refElement
=
$
(
currLink
.
attr
(
"href"
));
...
...
@@ -765,7 +765,7 @@ var initFunction = function() {
$
.
fn
.
showSubmenu
();
//Catalog subMenu
setTimeout
(
function
()
{
onScrollCover
();
},
5
00
);
},
6
00
);
$
(
'#fullpage'
).
fullpageSlide
();
//Stories
$
.
fn
.
responsive
();
$
(
'.list-color-filter li'
).
setBgColorList
();
...
...
wp-content/themes/nap/assets/js/map.js
View file @
6a367699
...
...
@@ -98,7 +98,7 @@ jQuery("#map-search").bind('submit',function(e) {
});
});
//Highlight zone when select country
jQuery
(
document
).
find
(
"#selectCountry"
).
on
(
'change
'
,
function
(
e
)
{
jQuery
(
document
).
on
(
'change'
,
'#selectCountry
'
,
function
(
e
)
{
var
country
=
e
.
target
.
value
,
initialClassDep
=
'st3'
,
initialClassNum
=
'st5'
;
...
...
wp-content/themes/nap/assets/js/product.js
View file @
6a367699
...
...
@@ -32,7 +32,6 @@ function loadProductContent() {
$
(
'.variations_form'
).
on
(
'reset_data'
,
function
()
{
console
.
log
(
"reset data"
);
$attributes
=
$
(
'.variations .list'
);
var
num_attr
=
$
(
'.variations .list'
).
length
;
// alert(num_attr);
...
...
@@ -42,7 +41,7 @@ function loadProductContent() {
//alert($attr.hasClass('first_attr'));
if
(
!
$attr
.
hasClass
(
"first_attr"
)
||
num_attr
==
1
)
{
console
.
log
(
i
,
$attr
,
$attr
.
find
(
'input:not(:disabled):checked'
).
length
);
//
console.log(i, $attr, $attr.find('input:not(:disabled):checked').length);
if
(
!
$attr
.
find
(
'input:not(:disabled):checked'
).
length
)
{
$firstInput
=
$attr
.
find
(
'input:not(:disabled)'
).
first
();
...
...
@@ -60,11 +59,11 @@ function loadProductContent() {
});
function
onFoundVariation
()
{
console
.
log
(
'found variation'
);
//
console.log('found variation');
$
(
'.list'
).
first
().
find
(
'input:disabled'
).
prop
(
'disabled'
,
false
);
//$('.variations_form .format_list input').prop('checked',false);
$
(
'.variations_form .color-list input:disabled'
).
prop
(
'disabled'
,
false
);
console
.
log
(
'found'
,
$
(
'.variations_form .format-list input:checked + * + .format-desc'
));
//
console.log('found', $('.variations_form .format-list input:checked + * + .format-desc'));
//var format = $('.variations_form .format-list input:checked + * + .format-desc').text();
var
format
=
''
;
$
(
'.variations_form .format-list input:checked + * + .format-desc '
).
each
(
function
()
{
...
...
@@ -256,7 +255,6 @@ $(function(){
}
else
{
$
(
'#download'
).
addClass
(
'disabled'
);
}
console
.
log
(
'dwnld'
);
}
$
.
fn
.
slider_product
=
function
(){
...
...
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