Commit Graph

60 Commits

Author SHA1 Message Date
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
Antoine Boulanger
88aa667090 Start adding modularjs & modularload, start updating readme, update html files, change jquery cdn, remove IE from babelrc 2019-03-24 17:15:47 -04:00
Jérémy Minié
2b176132d3 @joel Fixed deleteModules splice : deleteCount param wasn't present, causing all modules with index > i to be removed from this.currentModules. Fortunately, this was only happening if a scope was given to deleteModules. 2019-03-14 14:13:34 -04:00
Quentin Hocdé
79363cd3c6 TM : adapt innerHTML new to get delete modules event 2018-11-28 14:10:39 -05:00
Quentin Hocdé
74b71db181 Transition Manager : add innerHTML to rebuild svgs 2018-11-26 10:06:22 -05:00
Quentin Hocdé
b94a7d65b7 Transition : fix append (vanilla js broke svgs) 2018-11-23 16:26:03 -05:00
Quentin Hocdé
fc6a18c457 update transition manager, can have 2 containers overlapped & rw remove() to append(), and display() to change() 2018-11-22 11:58:31 -05:00
Deven Caron
d372d1867f smoothscroll false by default, scroll module renaming 2018-10-17 12:05:33 -04:00
Deven Caron
4676d277f5 added scroll extends + LocomotiveScroll module + scroll basic style 2018-10-17 10:53:08 -04:00
Quentin Hocdé
73d0471844 pjax import, svg4everybody import, fix import App events + basic pjax css 2018-09-12 10:42:02 -04:00
Antoine Boulanger
f577e7aa92 Change grunt for gulp 2018-09-05 14:21:37 -04:00
Julien Martins Da Costa
5c77eb9c61 Merge pull request #62 from locomotivemtl/remove.jshintesnext
Remove jshint esnext and use esversion: 6
2018-05-10 11:47:58 -04:00
Deven Caron
580985fe27 Fix export event Transition 2018-05-10 11:12:05 -04:00
Quentin Hocdé
695f989067 goto event for transitionManager & clean up Event transition (import) 2018-05-03 13:50:48 -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
Antoine Boulanger
e2970fbeeb Change dom state classes to follow our classes namespaces 2018-04-30 17:26:13 -04:00
Quentin Hocdé
c571aa306a fix browser back button TransitionManager 2018-04-17 10:09:07 -04:00
Quentin Hocdé
872e543343 transition : window on load, update schema 2018-03-26 17:31:40 -04:00
Quentin Hocdé
58b8b7356e fix call pjax.onSwitch 2018-02-26 14:21:01 -05:00
Quentin Hocdé
42d8fec62d init modules then add css class + exec script inline 2018-02-20 11:20:09 -05:00
Quentin Hocdé
93c50ddc9c remove useless things, update todo 2018-02-06 14:25:30 -05:00
Quentin Hocdé
f00fc2fcd2 Update : manage clickedLink via pjax:send, logs if isDebug, manage events, add schema to explain the order of executions, refactoring after tests in a real project 2018-02-05 15:17:39 -05:00
Quentin Hocdé
27c09301db update todo, and fix innerHTML view delay 2018-02-02 09:34:24 -05:00
Quentin Hocdé
bd33e8cb02 data-transition on link, and BaseTransition as interface 2018-02-01 16:14:35 -05:00
Quentin Hocdé
8b77d8ae40 update todo 2018-02-01 10:07:52 -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
Antoine Boulanger
cf5cbc3121 Init scoped modules in default page transition 2017-11-17 11:17:34 -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
Chauncey McAskill
6d779b55c5 Fix scoped App.deleteModules()
If the scope had no submodules, the method would delete all modules.
2017-08-08 09:35:05 -04:00
Antoine Boulanger
868fd8ff60 Fix destroy 2017-05-30 12:26:24 -04:00
Antoine Boulanger
f6595c3172 JS events consts and namespaces 2017-05-30 12:16:13 -04:00
Julien Martins Da Costa
0baf4ae436 Fix arguments for barba linkClicked event 2017-05-01 15:36:43 -04:00
Chauncey McAskill
06ad6b0cb3 Simplified [data-module] split 2017-05-01 14:52:44 -04:00
Dominic Lord
8b9ee3d0ec Cleanup uid once module destroyed + destroy parent class + added example 2017-04-06 14:04:29 -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
c5d34fb0ab Added scoped module deletion
- Ability to search through a DOM element and destroy any modules within it
- Added an init() hook on AbstractModule. Used to execute any code that does not belong in a constructor (which is most of what we do)
2017-03-02 11:55:55 -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
3483e1530b Barba as a service 2017-03-02 09:43:20 -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
Dominic Lord
cc547e484b Cleanup example modules (todo: add in documentation) 2017-03-02 08:57:46 -05:00
Dominic Lord
c9cedfa727 Cleanup example modules (todo: add in documentation) 2017-03-02 08:53:44 -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
6f23c38765 Improved module ident split 2016-12-16 20:48:40 -05:00
Chauncey McAskill
553f76f2ca Cast node data to natural types 2016-12-16 16:12:06 -05:00