Deven Caron
082f3b5827
Replace queryClosestParent with Element.prototype.closest
2021-10-19 14:46:38 -04:00
Deven Caron
df567220d5
Syntax changes & coding style
2021-10-19 14:45:24 -04:00
Deven Caron
7d35dcbf28
Precise usage & better comments
2021-10-19 14:41:43 -04:00
Deven Caron
f2b657568a
Add image lazyloading utils
2021-10-18 16:45:31 -04:00
Quentin Hocdé
e686689b52
Add shuffle function in array utils
2020-11-25 15:10:53 -05:00
Chauncey McAskill
46797cbd6d
Update isDebug condition in environment.js
...
Check if the attribute exists instead of a truthy value.
2020-11-16 10:02:28 -05:00
Antoine Boulanger
41c3fe4b49
Remove jQuery and scrollTo util
2019-07-19 16:00:31 -04:00
Quentin Hocdé
cb49c03cca
rename APP_NAME constant
2019-07-18 11:25:03 -04:00
Quentin Hocdé
6324f7ee82
Update debug attribute (now with vanilla)
2019-07-18 11:23:06 -04:00
Quentin Hocdé
883e4d202e
Update environment file
2019-07-18 11:21:17 -04:00
Quentin Hocdé
5da3bcd961
add getTranslate function in utils
2019-07-04 10:52:04 -04:00
Quentin Hocdé
26cccc7d92
Add transform function in utils
2019-06-26 16:39:03 -04:00
Jérémy Minié
7d47ae0d82
Fix small warning in app.js + Add useful methods to html.js + Add maths.js to utils + Build
2019-06-25 14:21:03 -04:00
Antoine Boulanger
d166261d0a
Add loco scroll v2, update load module and app, update html, add nomodule polyfills script tags
2019-05-23 10:06:45 -04:00
Julien Martins Da Costa
2116efb8c2
Remove jshint esnext: http://jshint.com/docs/options/#esnext and use esversion: 6
2018-05-01 09:50:13 -04:00
Quentin Hocdé
bd33e8cb02
data-transition on link, and BaseTransition as interface
2018-02-01 16:14:35 -05:00
Quentin Hocdé
75817d77f4
(WIP) : rewrite TransitionManager, init pjax, manage no-transition class, manage wrapper&container like barba, defaultTransition (interface?), add @todo.
2018-02-01 09:58:18 -05:00
Dominic Lord
551bae6211
Added array cloning to utils
2018-01-04 11:16:47 -05:00
Quentin Hocdé
0388efc1f1
export $barba from environment
2017-10-16 11:11:01 -04:00
Quentin Hocdé
30063039a3
delete modules before removing the old container
2017-10-11 10:49:40 -04:00
Antoine Boulanger
f6595c3172
JS events consts and namespaces
2017-05-30 12:16:13 -04:00
Dominic Lord
295d8f282b
Merge pull request #56 from locomotivemtl/mcaskill-has-js
...
Mcaskill has js
2017-03-02 12:36:25 -05:00
Chauncey McAskill
8a93c9d178
Added ‘.has-no-js’ and ‘.has-js’ to <html>
...
Useful for CSS, e.g.:
```
.has-js .hide-if-js,
.has-no-js .hide-if-no-js {
display: none;
}
```
2017-03-02 12:35:52 -05:00
Dominic Lord
9e8fbed232
Removing any vars + Improved module ident split
2017-03-02 09:52:12 -05:00
Dominic Lord
5eec3941c3
Added a simply debounce util to avoid using throttle plugins
2017-03-02 09:46:51 -05:00
Dominic Lord
c9c3950f8b
Reorganization of globals
...
- Simplified globals usage in App
- Removed global App
2017-03-02 09:42:37 -05:00
Dominic Lord
e22b938741
Adding scoped module creation
2017-03-02 09:22:46 -05:00
Chauncey McAskill
0facd79d7e
Revised JS
...
Changes:
- Added constants for APP_NAME, DATA_API_KEY;
- Added constants for Event and Selector to the Button and Title modules;
- Cleaned up syntax for JS modules;
2016-12-18 15:45:52 -05:00
Chauncey McAskill
553f76f2ca
Cast node data to natural types
2016-12-16 16:12:06 -05:00
Chauncey McAskill
79219e0659
Updated EditorConfig Recommendations
...
Applied 4-spaces for everything as per: https://locomotivemtl.teamwork.com/tasks/7113032
2016-09-07 18:30:36 -04:00
dominiclord
bf0c7e148c
Adding commonly used scrollTo + cleaning up utils + cleaning up globals
2016-07-19 10:21:09 -04:00
dominiclord
bb757a22f6
Reworking page visibility API + Adding more utils
2016-05-19 13:37:19 -04:00
dominiclord
b2abd51191
Testing addition of pseudo page visibility API
2016-05-18 23:58:08 -04:00
dominiclord
f07a6aba23
Restructuring of scripts for better use of ES6 concepts
...
- Optimized use of common properties (, , ...)
- Dispatching events in an attempt to de-globalize certain variables used in the past
- Attempt to organize files in a more logical manner
2016-05-18 23:12:36 -04:00