@creative-web-solution/front-library 6.1.3 → 6.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +52 -1
- package/DOM/Class.js +1 -1
- package/DOM/OuterSize.js +1 -1
- package/DOM/matrix.js +1 -1
- package/DOM/size.js +1 -1
- package/DOM/wrap.js +2 -2
- package/Events/EventsManager.js +39 -81
- package/Events/HistoryController.js +3 -3
- package/Events/ImageLoad.js +1 -1
- package/Events/IntersectObserver.js +3 -2
- package/Events/KeyboardHandler.js +2 -2
- package/Events/MediaQueriesEvents.js +2 -2
- package/Events/TouchHover.js +3 -3
- package/Events/WindowEvents.js +3 -3
- package/Events/gesture.js +2 -2
- package/Events/onAnimationEnd.js +37 -33
- package/Events/onTransitionEnd.js +38 -29
- package/Events/pubSub.js +2 -2
- package/Helpers/Cookie.js +1 -1
- package/Helpers/TransitionHelpers.js +95 -0
- package/Helpers/extend.js +1 -1
- package/Helpers/getValue.js +1 -1
- package/Helpers/sequential.js +1 -1
- package/Helpers/wait.js +1 -1
- package/ModernizrAddons/css-var-support.js +3 -0
- package/ModernizrAddons/touchdevice.js +1 -1
- package/Modules/Accordion.js +12 -6
- package/Modules/Autocomplete.js +7 -7
- package/Modules/DragSlider.js +583 -0
- package/Modules/Notifications.js +8 -8
- package/Modules/Popin.js +8 -8
- package/Modules/ScrollSnap.js +8 -8
- package/Modules/SkinCheckbox.js +2 -2
- package/Modules/SkinFile.js +4 -4
- package/Modules/SkinRadio.js +3 -3
- package/Modules/SkinSelect.js +12 -12
- package/Modules/Slider.js +100 -32
- package/Modules/Tabs.js +5 -5
- package/Modules/Validator/Tools/RadioButton.js +1 -1
- package/Modules/Validator/Tools/ValidationState.js +1 -1
- package/Modules/Validator/Tools/getQueryFromForm.js +1 -1
- package/Modules/Validator/date.js +3 -3
- package/Modules/Validator/email.js +3 -3
- package/Modules/Validator/equals.js +3 -3
- package/Modules/Validator/index.js +6 -6
- package/Modules/Validator/max.js +2 -2
- package/Modules/Validator/maxlength.js +2 -2
- package/Modules/Validator/min.js +2 -2
- package/Modules/Validator/minlength.js +2 -2
- package/Modules/Validator/multiRequired.js +5 -5
- package/Modules/Validator/number.js +3 -3
- package/Modules/Validator/pattern.js +2 -2
- package/Modules/Validator/recaptcha.js +2 -2
- package/Modules/Validator/required.js +4 -4
- package/Modules/Validator/serverCheck.js +3 -3
- package/Modules/Validator/url.js +3 -3
- package/Modules/YouTubePlayer.js +2 -2
- package/Modules/globalState.js +1 -1
- package/README.md +3 -3
- package/Tools/PrefixedProperties.js +54 -0
- package/Tools/TouchDeviceSupport.js +1 -0
- package/WebGL/GLImageTransition/GLImageTransition.js +4 -4
- package/documentation/extra/events.md +2 -2
- package/documentation/extra/modernizr.md +1 -0
- package/documentation/extra/modules/DragSlider.md +111 -0
- package/documentation/extra/modules/YouTubePlayer.md +1 -1
- package/documentation/extra/modules/autocomplete.md +1 -1
- package/documentation/extra/modules/popin.md +3 -3
- package/documentation/extra/modules/slider.md +7 -3
- package/documentation/extra/modules/template.md +1 -1
- package/documentation/extra/modules/validator.md +13 -13
- package/documentation/extra/webgl/GLImageTransition.md +1 -1
- package/documentation/jsdocs/dom/global.html +389 -2
- package/documentation/jsdocs/dom/index.html +2 -2
- package/documentation/jsdocs/dom/quicksearch.html +1 -1
- package/documentation/jsdocs/events/common/DeviceOrientation.html +1 -1
- package/documentation/jsdocs/events/common/HistoryController.html +1 -1
- package/documentation/jsdocs/events/common/IntersectObserver.html +1 -1
- package/documentation/jsdocs/events/common/KeyboardHandler.html +1 -1
- package/documentation/jsdocs/events/common/MediaQueriesEvents.html +1 -1
- package/documentation/jsdocs/events/common/TouchHover.html +1 -1
- package/documentation/jsdocs/events/common/WindowEvents.html +1 -1
- package/documentation/jsdocs/events/common/classes.list.html +1 -1
- package/documentation/jsdocs/events/common/global.html +1 -1
- package/documentation/jsdocs/events/common/index.html +1 -1
- package/documentation/jsdocs/events/common/namespaces.list.html +1 -1
- package/documentation/jsdocs/events/common/pubSub.html +1 -1
- package/documentation/jsdocs/events/common/quicksearch.html +1 -1
- package/documentation/jsdocs/events/events-manager/global.html +1 -1
- package/documentation/jsdocs/events/events-manager/index.html +1 -1
- package/documentation/jsdocs/events/events-manager/quicksearch.html +1 -1
- package/documentation/jsdocs/events/gesture/global.html +1 -1
- package/documentation/jsdocs/events/gesture/index.html +1 -1
- package/documentation/jsdocs/events/gesture/quicksearch.html +1 -1
- package/documentation/jsdocs/helpers/array/global.html +1 -1
- package/documentation/jsdocs/helpers/array/index.html +1 -1
- package/documentation/jsdocs/helpers/array/quicksearch.html +1 -1
- package/documentation/jsdocs/helpers/colors/global.html +1 -1
- package/documentation/jsdocs/helpers/colors/index.html +1 -1
- package/documentation/jsdocs/helpers/colors/quicksearch.html +1 -1
- package/documentation/jsdocs/helpers/common/Cookie.html +2 -2
- package/documentation/jsdocs/helpers/common/UrlParser.html +1 -1
- package/documentation/jsdocs/helpers/common/classes.list.html +1 -1
- package/documentation/jsdocs/helpers/common/global.html +8 -2
- package/documentation/jsdocs/helpers/common/index.html +1 -1
- package/documentation/jsdocs/helpers/common/quicksearch.html +1 -1
- package/documentation/jsdocs/helpers/types/global.html +1 -1
- package/documentation/jsdocs/helpers/types/index.html +1 -1
- package/documentation/jsdocs/helpers/types/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/accordion/Accordion.html +1 -1
- package/documentation/jsdocs/modules/accordion/classes.list.html +1 -1
- package/documentation/jsdocs/modules/accordion/index.html +1 -1
- package/documentation/jsdocs/modules/accordion/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/autocomplete/Autocomplete.html +1 -1
- package/documentation/jsdocs/modules/autocomplete/classes.list.html +1 -1
- package/documentation/jsdocs/modules/autocomplete/index.html +1 -1
- package/documentation/jsdocs/modules/autocomplete/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/common/DragSlider.html +946 -0
- package/documentation/jsdocs/modules/common/classes.list.html +310 -0
- package/documentation/jsdocs/modules/common/global.html +8 -1
- package/documentation/jsdocs/modules/common/globalState.html +8 -1
- package/documentation/jsdocs/modules/common/index.html +8 -1
- package/documentation/jsdocs/modules/common/namespaces.list.html +15 -1
- package/documentation/jsdocs/modules/common/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/form-skin/SkinCheckbox.html +1 -1
- package/documentation/jsdocs/modules/form-skin/SkinFile.html +1 -1
- package/documentation/jsdocs/modules/form-skin/SkinRadio.html +1 -1
- package/documentation/jsdocs/modules/form-skin/SkinSelect.html +1 -1
- package/documentation/jsdocs/modules/form-skin/classes.list.html +1 -1
- package/documentation/jsdocs/modules/form-skin/global.html +1 -1
- package/documentation/jsdocs/modules/form-skin/index.html +1 -1
- package/documentation/jsdocs/modules/form-skin/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/media-preloader/MediaPreloader.html +1 -1
- package/documentation/jsdocs/modules/media-preloader/classes.list.html +1 -1
- package/documentation/jsdocs/modules/media-preloader/index.html +1 -1
- package/documentation/jsdocs/modules/media-preloader/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/notifications/Notifications.html +1 -1
- package/documentation/jsdocs/modules/notifications/classes.list.html +1 -1
- package/documentation/jsdocs/modules/notifications/index.html +1 -1
- package/documentation/jsdocs/modules/notifications/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/popin/Popin.html +1 -1
- package/documentation/jsdocs/modules/popin/PopinController.html +1 -1
- package/documentation/jsdocs/modules/popin/classes.list.html +1 -1
- package/documentation/jsdocs/modules/popin/index.html +1 -1
- package/documentation/jsdocs/modules/popin/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/scroll-snap/ScrollSnap.html +1 -1
- package/documentation/jsdocs/modules/scroll-snap/classes.list.html +1 -1
- package/documentation/jsdocs/modules/scroll-snap/index.html +1 -1
- package/documentation/jsdocs/modules/scroll-snap/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/slider/Slider.html +1 -1
- package/documentation/jsdocs/modules/slider/SliderControls.html +159 -2
- package/documentation/jsdocs/modules/slider/classes.list.html +1 -1
- package/documentation/jsdocs/modules/slider/index.html +1 -1
- package/documentation/jsdocs/modules/slider/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/tabs/Tabs.html +1 -1
- package/documentation/jsdocs/modules/tabs/classes.list.html +1 -1
- package/documentation/jsdocs/modules/tabs/index.html +1 -1
- package/documentation/jsdocs/modules/tabs/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/validator/Validator.html +1 -1
- package/documentation/jsdocs/modules/validator/classes.list.html +1 -1
- package/documentation/jsdocs/modules/validator/global.html +1 -1
- package/documentation/jsdocs/modules/validator/index.html +1 -1
- package/documentation/jsdocs/modules/validator/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/youtube-player/YouTubePlayer.html +1 -1
- package/documentation/jsdocs/modules/youtube-player/classes.list.html +1 -1
- package/documentation/jsdocs/modules/youtube-player/index.html +1 -1
- package/documentation/jsdocs/modules/youtube-player/quicksearch.html +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# DragSlider
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
```js
|
|
5
|
+
const slider = new DragSlider( $slider, {
|
|
6
|
+
"viewportSelector": "",
|
|
7
|
+
"listSelector": "",
|
|
8
|
+
"itemSelector": "",
|
|
9
|
+
"dragClass": "",
|
|
10
|
+
"lockedClass": "",
|
|
11
|
+
"onDrag": ({ item, xPos, moveMaxSize, isAtStart, isAtEnd }) => {},
|
|
12
|
+
"onInit": ({ item, xPos, moveMaxSize, isAtStart, isAtEnd }) => {},
|
|
13
|
+
"onMouseEnter": ({ item, xPos, moveMaxSize, isAtStart, isAtEnd }) => {},
|
|
14
|
+
"onMouseLeave": ({ item, xPos, moveMaxSize, isAtStart, isAtEnd }) => {},
|
|
15
|
+
"onSnap": ({ item, xPos, moveMaxSize, isAtStart, isAtEnd }) => {
|
|
16
|
+
// Call at the begin of the snap animation
|
|
17
|
+
},
|
|
18
|
+
"onSnapUpdate": ({ item, xPos, moveMaxSize, isAtStart, isAtEnd }) => {
|
|
19
|
+
// Call during the snap animation
|
|
20
|
+
},
|
|
21
|
+
"onStartDrag": ({ item, xPos, moveMaxSize, isAtStart, isAtEnd }) => {},
|
|
22
|
+
"onStopDrag": ({ item, xPos, moveMaxSize, isAtStart, isAtEnd }) => {},
|
|
23
|
+
"onChangeState": ( isActive ) => {},
|
|
24
|
+
"swipeTresholdMin": 40 // in px,
|
|
25
|
+
"swipeTresholdSize": 0.5 // in % (0.5 = 50% of the size of one item)
|
|
26
|
+
} );
|
|
27
|
+
|
|
28
|
+
slider.isActive;
|
|
29
|
+
|
|
30
|
+
slider.init();
|
|
31
|
+
slider.destroy();
|
|
32
|
+
|
|
33
|
+
slider.goToItem( $item );
|
|
34
|
+
slider.next();
|
|
35
|
+
slider.previous();
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Example
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
**HTML**
|
|
42
|
+
|
|
43
|
+
```html
|
|
44
|
+
<div class="slider">
|
|
45
|
+
<div class="viewport">
|
|
46
|
+
<ul class="list">
|
|
47
|
+
<li class="item">Content</li>
|
|
48
|
+
<li class="item">Content</li>
|
|
49
|
+
<li class="item">Content</li>
|
|
50
|
+
<li class="item">Content</li>
|
|
51
|
+
<li class="item">Content</li>
|
|
52
|
+
</ul>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
**CSS**
|
|
59
|
+
|
|
60
|
+
```css
|
|
61
|
+
.slider
|
|
62
|
+
&:not(.is-active)
|
|
63
|
+
.viewport
|
|
64
|
+
overflow-x auto
|
|
65
|
+
overflow-y hidden
|
|
66
|
+
-webkit-overflow-scrolling touch
|
|
67
|
+
-ms-overflow-style none
|
|
68
|
+
scrollbar-width none
|
|
69
|
+
|
|
70
|
+
&::-webkit-scrollbar
|
|
71
|
+
display none
|
|
72
|
+
|
|
73
|
+
&::-webkit-scrollbar-thumb
|
|
74
|
+
opacity 0
|
|
75
|
+
|
|
76
|
+
.viewport
|
|
77
|
+
position relative
|
|
78
|
+
overflow hidden
|
|
79
|
+
|
|
80
|
+
.list
|
|
81
|
+
display flex
|
|
82
|
+
width 100%
|
|
83
|
+
flex 0 0 100%
|
|
84
|
+
|
|
85
|
+
.item
|
|
86
|
+
box-sizing border-box
|
|
87
|
+
width 100%
|
|
88
|
+
|
|
89
|
+
&.is-dragging
|
|
90
|
+
.viewport
|
|
91
|
+
pointer-events none
|
|
92
|
+
user-select none
|
|
93
|
+
|
|
94
|
+
&
|
|
95
|
+
.viewport
|
|
96
|
+
.list
|
|
97
|
+
.item
|
|
98
|
+
cursor none
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
**Javascript**
|
|
103
|
+
|
|
104
|
+
```js
|
|
105
|
+
const slider = new DragSlider( document.querySelector( '.slider' ), {
|
|
106
|
+
"viewportSelector": ".viewport",
|
|
107
|
+
"listSelector": ".list",
|
|
108
|
+
"itemSelector": ".item",
|
|
109
|
+
"dragClass": "is-dragging"
|
|
110
|
+
} );
|
|
111
|
+
```
|
|
@@ -119,7 +119,7 @@ popin.destroy();
|
|
|
119
119
|
Handle one popin only with the API.
|
|
120
120
|
|
|
121
121
|
```
|
|
122
|
-
import { Popin } from 'front-library/Modules/Popin'
|
|
122
|
+
import { Popin } from '@creative-web-solution/front-library/Modules/Popin'
|
|
123
123
|
|
|
124
124
|
popin = new Popin( popinOptions );
|
|
125
125
|
|
|
@@ -134,7 +134,7 @@ If the `selector.links` option is set to `a[data-popin]`, all <a> tag with a [da
|
|
|
134
134
|
|
|
135
135
|
|
|
136
136
|
```
|
|
137
|
-
import { PopinController } from 'front-library/Modules/Popin'
|
|
137
|
+
import { PopinController } from '@creative-web-solution/front-library/Modules/Popin'
|
|
138
138
|
|
|
139
139
|
popin = new PopinController( popinOptions );
|
|
140
140
|
```
|
|
@@ -153,7 +153,7 @@ All links with an href pointing to the popin (href="#my-popin") will be handled,
|
|
|
153
153
|
|
|
154
154
|
|
|
155
155
|
```
|
|
156
|
-
import { PopinController } from 'front-library/Modules/Popin'
|
|
156
|
+
import { PopinController } from '@creative-web-solution/front-library/Modules/Popin'
|
|
157
157
|
|
|
158
158
|
let $inlinePopin = document.getelementbyId( 'my-popin );
|
|
159
159
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
### Slider
|
|
4
4
|
|
|
5
5
|
```
|
|
6
|
-
import { Slider } from 'front-library/Modules/Slider'
|
|
6
|
+
import { Slider } from '@creative-web-solution/front-library/Modules/Slider'
|
|
7
7
|
|
|
8
8
|
let slider = new Slider(
|
|
9
9
|
$slider,
|
|
@@ -117,7 +117,7 @@ on( slider, {
|
|
|
117
117
|
### Slider controls
|
|
118
118
|
|
|
119
119
|
```
|
|
120
|
-
import { SliderControls } from 'front-library/Modules/Slider'
|
|
120
|
+
import { SliderControls } from '@creative-web-solution/front-library/Modules/Slider'
|
|
121
121
|
|
|
122
122
|
let controls = new SliderControls(
|
|
123
123
|
slider,
|
|
@@ -128,7 +128,8 @@ let controls = new SliderControls(
|
|
|
128
128
|
"paginationItems": selector
|
|
129
129
|
"autoslide": int, // in second
|
|
130
130
|
"swipe": false,
|
|
131
|
-
"enableKeyboard": false
|
|
131
|
+
"enableKeyboard": false,
|
|
132
|
+
"gestureOptions": Object // See gesture.md
|
|
132
133
|
}
|
|
133
134
|
);
|
|
134
135
|
|
|
@@ -137,6 +138,9 @@ promise = controls.next();
|
|
|
137
138
|
promise = controls.goto( slideIndex );
|
|
138
139
|
boolean = controls.isEnable();
|
|
139
140
|
|
|
141
|
+
controls.startAutoslide(); // options.autoslide must be set
|
|
142
|
+
controls.stopAutoslide();
|
|
143
|
+
|
|
140
144
|
controls.destroy();
|
|
141
145
|
```
|
|
142
146
|
|
|
@@ -13,7 +13,7 @@ For validation function, you can use either:
|
|
|
13
13
|
**Initialisation**
|
|
14
14
|
|
|
15
15
|
```
|
|
16
|
-
import { Validator } from 'front-library/Modules/Validator'
|
|
16
|
+
import { Validator } from '@creative-web-solution/front-library/Modules/Validator'
|
|
17
17
|
|
|
18
18
|
let $form, validator;
|
|
19
19
|
|
|
@@ -350,7 +350,7 @@ Example for an email error message:
|
|
|
350
350
|
A validator return a Promise which is ALWAYS resolve when the validation is ended. This is its parameter (called state) which will tell us if the validation is ok or not.
|
|
351
351
|
|
|
352
352
|
```
|
|
353
|
-
import { addValidator } from 'front-library/Modules/Validator'
|
|
353
|
+
import { addValidator } from '@creative-web-solution/front-library/Modules/Validator'
|
|
354
354
|
|
|
355
355
|
addValidator(
|
|
356
356
|
VALIDATOR_NAME,
|
|
@@ -366,7 +366,7 @@ The ASYNC parameter as no effect on validation, it's just here for indication pu
|
|
|
366
366
|
Can be useful for debug.
|
|
367
367
|
|
|
368
368
|
```
|
|
369
|
-
import { addValidator } from 'front-library/Modules/Validator'
|
|
369
|
+
import { addValidator } from '@creative-web-solution/front-library/Modules/Validator'
|
|
370
370
|
|
|
371
371
|
addValidator(
|
|
372
372
|
VALIDATOR_NAME,
|
|
@@ -489,15 +489,15 @@ addValidator(
|
|
|
489
489
|
Import its with:
|
|
490
490
|
|
|
491
491
|
```
|
|
492
|
-
import { createState, standardValidation } from 'front-library/Modules/Validator/Tools/ValidationState'
|
|
493
|
-
import { getRadioList, isRadioListChecked } from 'front-library/Modules/Validator/Tools/RadioButton'
|
|
494
|
-
import { getLabelElement, getLabel } from 'front-library/Modules/Validator/Tools/Label'
|
|
495
|
-
import isEmpty from 'front-library/Modules/Validator/Tools/isEmpty'
|
|
496
|
-
import isNumber from 'front-library/Modules/Validator/Tools/isNumber'
|
|
497
|
-
import isEmail from 'front-library/Modules/Validator/Tools/isEmail'
|
|
498
|
-
import isUrl from 'front-library/Modules/Validator/Tools/isUrl'
|
|
499
|
-
import isDate from 'front-library/Modules/Validator/Tools/isDate'
|
|
500
|
-
import getQueryFromForm from 'front-library/Modules/Validator/Tools/getQueryFromForm'
|
|
492
|
+
import { createState, standardValidation } from '@creative-web-solution/front-library/Modules/Validator/Tools/ValidationState'
|
|
493
|
+
import { getRadioList, isRadioListChecked } from '@creative-web-solution/front-library/Modules/Validator/Tools/RadioButton'
|
|
494
|
+
import { getLabelElement, getLabel } from '@creative-web-solution/front-library/Modules/Validator/Tools/Label'
|
|
495
|
+
import isEmpty from '@creative-web-solution/front-library/Modules/Validator/Tools/isEmpty'
|
|
496
|
+
import isNumber from '@creative-web-solution/front-library/Modules/Validator/Tools/isNumber'
|
|
497
|
+
import isEmail from '@creative-web-solution/front-library/Modules/Validator/Tools/isEmail'
|
|
498
|
+
import isUrl from '@creative-web-solution/front-library/Modules/Validator/Tools/isUrl'
|
|
499
|
+
import isDate from '@creative-web-solution/front-library/Modules/Validator/Tools/isDate'
|
|
500
|
+
import getQueryFromForm from '@creative-web-solution/front-library/Modules/Validator/Tools/getQueryFromForm'
|
|
501
501
|
```
|
|
502
502
|
|
|
503
503
|
|
|
@@ -578,7 +578,7 @@ isDate( stringDate, format? );
|
|
|
578
578
|
**Create a query form a form**
|
|
579
579
|
|
|
580
580
|
```
|
|
581
|
-
import getQueryFromForm from 'front-library/Modules/Validator/Tools/getQueryFromForm'
|
|
581
|
+
import getQueryFromForm from '@creative-web-solution/front-library/Modules/Validator/Tools/getQueryFromForm'
|
|
582
582
|
|
|
583
583
|
let query = getQueryFromForm( $form );
|
|
584
584
|
```
|
|
@@ -81,7 +81,7 @@ on( document.body, {
|
|
|
81
81
|
|
|
82
82
|
A preset is a javascript class that contains a fragment shader and its uniforms if needed.
|
|
83
83
|
|
|
84
|
-
There are some available presets in the
|
|
84
|
+
There are some available presets in the `@creative-web-solution/front-library/WebGL/GLImageTransition/Presets` folder.
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
## How to make a preset
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<li class="dropdown">
|
|
34
34
|
<a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
|
|
35
35
|
<ul class="dropdown-menu ">
|
|
36
|
-
<li><a href="global.html#aClass">aClass</a></li><li><a href="global.html#append">append</a></li><li><a href="global.html#children">children</a></li><li><a href="global.html#clone">clone</a></li><li><a href="global.html#documentSize">documentSize</a></li><li><a href="global.html#filter">filter</a></li><li><a href="global.html#getMatrix">getMatrix</a></li><li><a href="global.html#getStyle">getStyle</a></li><li><a href="global.html#getTransform">getTransform</a></li><li><a href="global.html#getTranslate">getTranslate</a></li><li><a href="global.html#hClass">hClass</a></li><li><a href="global.html#height">height</a></li><li><a href="global.html#index">index</a></li><li><a href="global.html#insertAfter">insertAfter</a></li><li><a href="global.html#insertBefore">insertBefore</a></li><li><a href="global.html#next">next</a></li><li><a href="global.html#offset">offset</a></li><li><a href="global.html#outerHeight">outerHeight</a></li><li><a href="global.html#outerSize">outerSize</a></li><li><a href="global.html#outerWidth">outerWidth</a></li><li><a href="global.html#pageToDOM">pageToDOM</a></li><li><a href="global.html#position">position</a></li><li><a href="global.html#prepend">prepend</a></li><li><a href="global.html#previous">previous</a></li><li><a href="global.html#prop">prop</a></li><li><a href="global.html#rClass">rClass</a></li><li><a href="global.html#remove">remove</a></li><li><a href="global.html#sClass">sClass</a></li><li><a href="global.html#size">size</a></li><li><a href="global.html#strToDOM">strToDOM</a></li><li><a href="global.html#tClass">tClass</a></li><li><a href="global.html#width">width</a></li><li><a href="global.html#windowScroll">windowScroll</a></li><li><a href="global.html#windowSize">windowSize</a></li><li><a href="global.html#wrap">wrap</a></li>
|
|
36
|
+
<li><a href="global.html#aClass">aClass</a></li><li><a href="global.html#append">append</a></li><li><a href="global.html#children">children</a></li><li><a href="global.html#clone">clone</a></li><li><a href="global.html#documentSize">documentSize</a></li><li><a href="global.html#filter">filter</a></li><li><a href="global.html#getCssProperty">getCssProperty</a></li><li><a href="global.html#getMatrix">getMatrix</a></li><li><a href="global.html#getStyle">getStyle</a></li><li><a href="global.html#getTransform">getTransform</a></li><li><a href="global.html#getTranslate">getTranslate</a></li><li><a href="global.html#hClass">hClass</a></li><li><a href="global.html#height">height</a></li><li><a href="global.html#index">index</a></li><li><a href="global.html#insertAfter">insertAfter</a></li><li><a href="global.html#insertBefore">insertBefore</a></li><li><a href="global.html#next">next</a></li><li><a href="global.html#offset">offset</a></li><li><a href="global.html#outerHeight">outerHeight</a></li><li><a href="global.html#outerSize">outerSize</a></li><li><a href="global.html#outerWidth">outerWidth</a></li><li><a href="global.html#pageToDOM">pageToDOM</a></li><li><a href="global.html#position">position</a></li><li><a href="global.html#prepend">prepend</a></li><li><a href="global.html#previous">previous</a></li><li><a href="global.html#prop">prop</a></li><li><a href="global.html#rClass">rClass</a></li><li><a href="global.html#remove">remove</a></li><li><a href="global.html#sClass">sClass</a></li><li><a href="global.html#setCssProperty">setCssProperty</a></li><li><a href="global.html#size">size</a></li><li><a href="global.html#strToDOM">strToDOM</a></li><li><a href="global.html#tClass">tClass</a></li><li><a href="global.html#width">width</a></li><li><a href="global.html#windowScroll">windowScroll</a></li><li><a href="global.html#windowSize">windowSize</a></li><li><a href="global.html#wrap">wrap</a></li>
|
|
37
37
|
</ul>
|
|
38
38
|
</li>
|
|
39
39
|
|
|
@@ -1115,6 +1115,184 @@
|
|
|
1115
1115
|
|
|
1116
1116
|
|
|
1117
1117
|
|
|
1118
|
+
<hr>
|
|
1119
|
+
<dt>
|
|
1120
|
+
<h4 class="name" id="getCssProperty"><span class="type-signature"></span>getCssProperty($element, property)</h4>
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
</dt>
|
|
1124
|
+
<dd>
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
<div class="description">
|
|
1128
|
+
Get a CSS property of an element
|
|
1129
|
+
</div>
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
<h5>Parameters:</h5>
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
<table class="params table table-striped">
|
|
1142
|
+
<thead>
|
|
1143
|
+
<tr>
|
|
1144
|
+
|
|
1145
|
+
<th>Name</th>
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
<th>Type</th>
|
|
1149
|
+
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
<th class="last">Description</th>
|
|
1155
|
+
</tr>
|
|
1156
|
+
</thead>
|
|
1157
|
+
|
|
1158
|
+
<tbody>
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
<tr>
|
|
1162
|
+
|
|
1163
|
+
<td class="name"><code>$element</code></td>
|
|
1164
|
+
|
|
1165
|
+
|
|
1166
|
+
<td class="type">
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
<span class="param-type">HTMLElement</span>
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
</td>
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
<td class="description last"></td>
|
|
1181
|
+
</tr>
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
<tr>
|
|
1186
|
+
|
|
1187
|
+
<td class="name"><code>property</code></td>
|
|
1188
|
+
|
|
1189
|
+
|
|
1190
|
+
<td class="type">
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
<span class="param-type">String</span>
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
</td>
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
<td class="description last"></td>
|
|
1205
|
+
</tr>
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
</tbody>
|
|
1209
|
+
</table>
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
<dl class="details">
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
</dl>
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
<h5>Returns:</h5>
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
<dl>
|
|
1270
|
+
<dt>
|
|
1271
|
+
Type
|
|
1272
|
+
</dt>
|
|
1273
|
+
<dd>
|
|
1274
|
+
|
|
1275
|
+
<span class="param-type">String</span>
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
</dd>
|
|
1280
|
+
</dl>
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
<h5>Example</h5>
|
|
1287
|
+
|
|
1288
|
+
<pre class="sunlight-highlight-javascript">value = getCssProperty($element, '--my-var')</pre>
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
</dd>
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
|
|
1118
1296
|
<hr>
|
|
1119
1297
|
<dt>
|
|
1120
1298
|
<h4 class="name" id="getMatrix"><span class="type-signature"></span>getMatrix($elem)</h4>
|
|
@@ -5058,6 +5236,215 @@ Remove oldCssClass and add newCssClass only if oldCssClass exists
|
|
|
5058
5236
|
|
|
5059
5237
|
|
|
5060
5238
|
|
|
5239
|
+
<hr>
|
|
5240
|
+
<dt>
|
|
5241
|
+
<h4 class="name" id="setCssProperty"><span class="type-signature"></span>setCssProperty($element, property, value)</h4>
|
|
5242
|
+
|
|
5243
|
+
|
|
5244
|
+
</dt>
|
|
5245
|
+
<dd>
|
|
5246
|
+
|
|
5247
|
+
|
|
5248
|
+
<div class="description">
|
|
5249
|
+
Set a CSS property on an element
|
|
5250
|
+
</div>
|
|
5251
|
+
|
|
5252
|
+
|
|
5253
|
+
|
|
5254
|
+
|
|
5255
|
+
|
|
5256
|
+
|
|
5257
|
+
|
|
5258
|
+
|
|
5259
|
+
<h5>Parameters:</h5>
|
|
5260
|
+
|
|
5261
|
+
|
|
5262
|
+
<table class="params table table-striped">
|
|
5263
|
+
<thead>
|
|
5264
|
+
<tr>
|
|
5265
|
+
|
|
5266
|
+
<th>Name</th>
|
|
5267
|
+
|
|
5268
|
+
|
|
5269
|
+
<th>Type</th>
|
|
5270
|
+
|
|
5271
|
+
|
|
5272
|
+
|
|
5273
|
+
|
|
5274
|
+
|
|
5275
|
+
<th class="last">Description</th>
|
|
5276
|
+
</tr>
|
|
5277
|
+
</thead>
|
|
5278
|
+
|
|
5279
|
+
<tbody>
|
|
5280
|
+
|
|
5281
|
+
|
|
5282
|
+
<tr>
|
|
5283
|
+
|
|
5284
|
+
<td class="name"><code>$element</code></td>
|
|
5285
|
+
|
|
5286
|
+
|
|
5287
|
+
<td class="type">
|
|
5288
|
+
|
|
5289
|
+
|
|
5290
|
+
<span class="param-type">HTMLElement</span>
|
|
5291
|
+
|
|
5292
|
+
|
|
5293
|
+
|
|
5294
|
+
|
|
5295
|
+
</td>
|
|
5296
|
+
|
|
5297
|
+
|
|
5298
|
+
|
|
5299
|
+
|
|
5300
|
+
|
|
5301
|
+
<td class="description last"></td>
|
|
5302
|
+
</tr>
|
|
5303
|
+
|
|
5304
|
+
|
|
5305
|
+
|
|
5306
|
+
<tr>
|
|
5307
|
+
|
|
5308
|
+
<td class="name"><code>property</code></td>
|
|
5309
|
+
|
|
5310
|
+
|
|
5311
|
+
<td class="type">
|
|
5312
|
+
|
|
5313
|
+
|
|
5314
|
+
<span class="param-type">String</span>
|
|
5315
|
+
|
|
|
5316
|
+
|
|
5317
|
+
<span class="param-type">Object</span>
|
|
5318
|
+
|
|
5319
|
+
|
|
5320
|
+
|
|
5321
|
+
|
|
5322
|
+
</td>
|
|
5323
|
+
|
|
5324
|
+
|
|
5325
|
+
|
|
5326
|
+
|
|
5327
|
+
|
|
5328
|
+
<td class="description last"></td>
|
|
5329
|
+
</tr>
|
|
5330
|
+
|
|
5331
|
+
|
|
5332
|
+
|
|
5333
|
+
<tr>
|
|
5334
|
+
|
|
5335
|
+
<td class="name"><code>value</code></td>
|
|
5336
|
+
|
|
5337
|
+
|
|
5338
|
+
<td class="type">
|
|
5339
|
+
|
|
5340
|
+
|
|
5341
|
+
<span class="param-type">String</span>
|
|
5342
|
+
|
|
5343
|
+
|
|
5344
|
+
|
|
5345
|
+
|
|
5346
|
+
</td>
|
|
5347
|
+
|
|
5348
|
+
|
|
5349
|
+
|
|
5350
|
+
|
|
5351
|
+
|
|
5352
|
+
<td class="description last"></td>
|
|
5353
|
+
</tr>
|
|
5354
|
+
|
|
5355
|
+
|
|
5356
|
+
</tbody>
|
|
5357
|
+
</table>
|
|
5358
|
+
|
|
5359
|
+
|
|
5360
|
+
|
|
5361
|
+
|
|
5362
|
+
<dl class="details">
|
|
5363
|
+
|
|
5364
|
+
|
|
5365
|
+
|
|
5366
|
+
|
|
5367
|
+
|
|
5368
|
+
|
|
5369
|
+
|
|
5370
|
+
|
|
5371
|
+
|
|
5372
|
+
|
|
5373
|
+
|
|
5374
|
+
|
|
5375
|
+
|
|
5376
|
+
|
|
5377
|
+
|
|
5378
|
+
|
|
5379
|
+
|
|
5380
|
+
|
|
5381
|
+
|
|
5382
|
+
|
|
5383
|
+
|
|
5384
|
+
|
|
5385
|
+
|
|
5386
|
+
|
|
5387
|
+
|
|
5388
|
+
|
|
5389
|
+
|
|
5390
|
+
|
|
5391
|
+
|
|
5392
|
+
|
|
5393
|
+
|
|
5394
|
+
|
|
5395
|
+
|
|
5396
|
+
|
|
5397
|
+
|
|
5398
|
+
</dl>
|
|
5399
|
+
|
|
5400
|
+
|
|
5401
|
+
|
|
5402
|
+
|
|
5403
|
+
|
|
5404
|
+
|
|
5405
|
+
|
|
5406
|
+
|
|
5407
|
+
|
|
5408
|
+
|
|
5409
|
+
|
|
5410
|
+
|
|
5411
|
+
|
|
5412
|
+
<h5>Returns:</h5>
|
|
5413
|
+
|
|
5414
|
+
|
|
5415
|
+
|
|
5416
|
+
|
|
5417
|
+
<dl>
|
|
5418
|
+
<dt>
|
|
5419
|
+
Type
|
|
5420
|
+
</dt>
|
|
5421
|
+
<dd>
|
|
5422
|
+
|
|
5423
|
+
<span class="param-type">HTMLElement</span>
|
|
5424
|
+
|
|
5425
|
+
|
|
5426
|
+
|
|
5427
|
+
</dd>
|
|
5428
|
+
</dl>
|
|
5429
|
+
|
|
5430
|
+
|
|
5431
|
+
|
|
5432
|
+
|
|
5433
|
+
|
|
5434
|
+
<h5>Example</h5>
|
|
5435
|
+
|
|
5436
|
+
<pre class="sunlight-highlight-javascript">$element = setCssVar($element, '--my-var', '12px')
|
|
5437
|
+
$element = setCssVar($element, {
|
|
5438
|
+
"--my-var": "12px",
|
|
5439
|
+
"--my-var-2": "100%"
|
|
5440
|
+
})</pre>
|
|
5441
|
+
|
|
5442
|
+
|
|
5443
|
+
|
|
5444
|
+
</dd>
|
|
5445
|
+
|
|
5446
|
+
|
|
5447
|
+
|
|
5061
5448
|
<hr>
|
|
5062
5449
|
<dt>
|
|
5063
5450
|
<h4 class="name" id="size"><span class="type-signature"></span>size($element)</h4>
|
|
@@ -8276,7 +8663,7 @@ tClass( $elements, cssClass, forceAdd )</pre>
|
|
|
8276
8663
|
<span class="jsdoc-message">
|
|
8277
8664
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
|
|
8278
8665
|
|
|
8279
|
-
on
|
|
8666
|
+
on 2021-02-03T15:24:32+01:00
|
|
8280
8667
|
|
|
8281
8668
|
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
|
8282
8669
|
</span>
|