1
1
var categories = [
2
- { name : 'Canoë & Kayak' , plural : 'canoës et kayaks' ,
3
- value : 'Kayak' , image : 'canoe.png' } ,
4
- { name : 'SUP' , plural : 'SUPs' ,
5
- value : 'SUP' , image : 'sup.png' } ,
6
- { name : 'Rame' , plural : 'avirons' ,
7
- value : 'Aviron' , image : 'rowing.png' } ,
8
- { name : 'Planche à voile' , plural : 'planches à voile' ,
9
- value : 'Planche' , image : 'windsurf.png' } ,
10
- { name : 'Voile' , plural : 'bateaux' ,
11
- value : 'Voile lestée' , image : 'sailing.png' } ,
12
- { name : 'Wingfoil' , plural : 'wingfoils' ,
13
- value : 'Wingfoil' , image : 'wingfoil.svg' }
14
- ]
2
+ { name : 'Canoë & Kayak' , plural : 'canoës et kayaks' , value : 'Kayak' , image : 'canoe.png' } ,
3
+ { name : 'SUP' , plural : 'SUPs' , value : 'SUP' , image : 'sup.png' } ,
4
+ { name : 'Rame' , plural : 'avirons' , value : 'Aviron' , image : 'rowing.png' } ,
5
+ { name : 'Planche à voile' , plural : 'planches à voile' , value : 'Planche' , image : 'windsurf.png' } ,
6
+ { name : 'Voile' , plural : 'bateaux' , value : 'Voile lestée' , image : 'sailing.png' } ,
7
+ { name : 'Wingfoil' , plural : 'wingfoils' , value : 'Wingfoil' , image : 'wingfoil.svg' } ,
8
+ ] ;
15
9
16
- function loadMateriel (
17
- container = $ ( 'divTabCahierEquipmentCategoriesContainer' )
18
- ) {
10
+ function loadMateriel ( container = $ ( 'divTabCahierEquipmentCategoriesContainer' ) ) {
19
11
for ( var i = 0 ; i < categories . length ; i ++ ) {
20
12
var d = document . createElement ( 'div' ) ;
21
13
d . id = categories [ i ] . name ;
@@ -28,9 +20,7 @@ function loadMateriel(
28
20
29
21
var dTop = div ( d1 ) ;
30
22
dTop . classList . add ( 'BoxesTop' ) ;
31
- dTop . style . backgroundImage = 'url(img/icons/chose.png),' +
32
- 'url(img/categorie/' +
33
- categories [ i ] . image + ')' ;
23
+ dTop . style . backgroundImage = 'url(img/icons/chose.png),' + 'url(img/categorie/' + categories [ i ] . image + ')' ;
34
24
35
25
var dBottom = document . createElement ( 'div' ) ;
36
26
dBottom . classList . add ( 'BoxesBottom' ) ;
@@ -44,8 +34,7 @@ function loadMateriel(
44
34
var dBottomText2 = document . createElement ( 'div' ) ;
45
35
dBottomText2 . classList . add ( 'BoxesBottomText2' ) ;
46
36
dBottom . appendChild ( dBottomText2 ) ;
47
- Requests . getBookableNbrForBookableTag ( categories [ i ] . value ,
48
- dBottomText2 , '' , ' ' + categories [ i ] . plural ) ;
37
+ Requests . getBookableNbrForBookableTag ( categories [ i ] . value , dBottomText2 , '' , ' ' + categories [ i ] . plural ) ;
49
38
50
39
if ( categories [ i ] . value == 'MP' ) {
51
40
// useless
0 commit comments