summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.snippets.animation.js
AgeCommit message (Collapse)Author
2017-08-16[MOV] web_editor, website: reorganize filesqsm-odoo
2017-08-09[MERGE] forward port branch 10.0 up to f69655829a1Christophe Simonis
2017-08-09[MERGE] forward port branch saas-11 up to acbcfa37034Christophe Simonis
2017-08-07[MERGE] forward port branch 9.0 up to af7eb04fc77Christophe Simonis
2017-08-03[FIX] website: correctly renders iframe for videosLucas Perais (lpe)
Before this commit, the iframe tags were sanitized as the should, but never spawn back from JS. Now, the iframe is actually created opw 750830 Closes #18643
2017-06-01[FIX] website: properly update parralax imageDharmraj Jhala
Fixed some issues with parralax image updates: - Background updated without clicking - Default wallpaper not coming back - Background disappearring sometimes
2017-05-16[FIX] website: remove extra % char in forward-portOlivier Dony
2017-05-16[MERGE] Forward-port 10.0 up to 1545995b393a1d347c6c1988da03dd1c6f1ea037Olivier Dony
2017-05-12[FIX] website: slideshow image gallery was not responsiveqsm-odoo
The slideshow image gallery code was quiet old and ugly. This commit refactores it so that it works better, especially its responsiveness. Before this commit, the number of thumbnail images was limited to 10. If there were more images than 10, the user was able to navigate between groups of 10 images thanks to arrow buttons. The problem is obvious: on small devices, 10 images is too much. Now this "10" limit is not fixed, it is determined according to the width of the browser at the time the user loads the snippet. Some animation and style was also wrong in some cases. This commit was made as a 10.0 fix, the snippet should keep improving in advanced versions.
2016-11-22[REF] website: refactor parallax snippetstefanorigano
This commit is a refactoring of the 's_parallax' snippet. Note that it is compatible with previous parallax snippet (old snippets are just transformed into the brand new one on page load). Note that scroll speed are changed by this implementation though. This solves several issues: - Bg image went easily off of the frame if scroll speed was too fast - The 'scroll speed' effect was visually inconsistent across different devices. - If the Bg image was smaller than the frame (condition which occurs often in a responsive environment), then the image was totally offset. - Since the previous implementation use background-position property to perform the effect, It was not possible to define an image focus point. This implementation solves the previous issues introducing a safe-area that limit the effect range. It's calculated dynamically, according to the current screen size and the 'speed' option. The effect if now achieved thanks to the translation of a DOM element instead of background-position changes. This allows to solve the last mentionned problem and improve performance. The implementation rely on the new animation methods of the snippets Animation class. As this use the "requestAnimationFrame" function, the snippet knows the right time to repaint itself, instead of using the "scroll" event which is triggered too many times and thus occurs between painting frames. This change greatly improved performances (CPU/painting usage many times smaller).
2016-11-22[IMP] website: allow better animations thanks to requestAnimationFrameqsm-odoo
This commit extends the behavior of the Animation class of the "web_editor.snippets.animation" module. Now, all animations can easily define an animation algo update without much caring about performances. All that must be done is: * If the "start"/"stop" method is/are defined, do not forget to call the _super parent method (which will now initializes the animation components). * Define particulary-named method in your Animation class extension. See in-code comment of the _prepareComponents method. This extension should be used to define all animations. For example the use of $(window).scroll(function () { /* do stuff */ }) is now the same as defining the function with on_scroll: function () { /* do stuff */ } except that the later one will be more efficient, smoother and allow you to not care about throttling / event binding/unbinding / ...
2016-10-18[FIX] website: properly show iframe video in websiteqsm-odoo
Sometimes the video DOM content is present except the iframe which prevents the iframe to be loaded.
2016-10-11[MERGE] forward port branch saas-12 up to 54ebe31Christophe Simonis
2016-10-11[MERGE] forward port branch 9.0 up to 7bdb6f9Christophe Simonis
2016-10-10[FIX] website: fix FAQ Roller opening on old apple devicesqsm-odoo
On old apple devices (IPad 2, IPhone 4, ...), the FAQ Roller could not be opened on click. This is because the snippet does not use standard bootstrap correctly and put the toggle on a <div/> element instead of a <a/> element. This fix forces an empty click handler on these <div/>, which allows standard bootstrap to work.
2016-09-15[FIX] website: refactore parallax snippet (perf / browser compatibility)qsm-odoo
* Do not read multiple DOM data on each scroll. Simply read this when necessary (edition / initialization). * Throttle scroll event and debounce resize events (-> performance in edition and navigation improved). * Do not save useless data in the DOM. * Have the parallax state consistent if the page undergo other changes * Simplify DOM structure and LESS - Allow to better see how to place snippets inside the area - Before this commit, default parallax had different height on chrome and firefox
2016-05-13[MERGE] forward port of branch saas-9 up to da8a312Christophe Simonis
2016-05-13[IMP] website: share widget and multi languageNicolas Lempereur
The lang of the content of the "Share" widget was the one used when inserting it in the view. Thus if someone see a page with it in another language the title and url for sharing is not translated. This commit use the current page language to set the widget data. opw-676062
2016-02-24[REF] web_editor,website,mass_mailing: JS/XML updateqsm-odoo
* Adapt DOM selectors * Refactore dialog XMLs to have odoo styling * New editor options (background-position, ...) * Various improvements
2016-02-24[REF] website,web_editor: complete restylingstefanorigano
2016-02-15[MERGE] forward port of branch saas-6 up to 0a1362aChristophe Simonis
2016-02-15[FIX] website: video snippet size detectionChristophe Simonis
2015-07-22[MERGE] forward port of branch saas-6 up to 63e92cbChristophe Simonis
2015-07-10[IMP] web_editor: adapt css, js and xml to use web_editorChristophe Matthieu
2015-07-10[IMP] web_editor: split website into web_editor (to use editor in backend ↵Christophe Matthieu
for html field) and website
2015-07-01[MERGE] forward port of branch 8.0 up to 22bd3bdChristophe Simonis
2015-07-01[FIX] web_calendar, website: avoid rendering errors with special charactersOlivier Dony
2015-05-28[MERGE] forward port of branch saas-6 up to bf1e999Christophe Simonis
2015-05-18[MERGE] forward port of branch 8.0 up to f722254Christophe Simonis
2015-05-15[FIX] website: widget share doesn't always workNicolas Lempereur
Depending on the area (in this case a html field), the editor can escape the url which wasn't taken into account by this widget. closes #6726 opw-639852
2015-04-17[MERGE] forward port of branch saas-6 up to e941c0fChristophe Simonis
2015-04-01[FIX] website: render data-oe-call when website is readyDavid Monjoie
In master, js files are loaded at the top of the page so we need to call this function only when the website is ready
2015-03-18[IMP] web+addons: improvement to module systemGéry Debongnie
The module system needs to know the dependencies of a given module before executing the function. This is why the dependencies were defined once in an array, and then were described one more times in the call to require. But a trick can simplify this: the boot function can parse the string representation of the module and extract the calls to require from it. It is more work for the processor, but it leads to simpler module definitions.
2015-03-18[REF] website: update to the new module systemGéry Debongnie
2015-01-23[FIX] website: snippet gallery in mode slideshow: When selecting an image, ↵Christophe Matthieu
the previous one is highlighted when add images. Can't display the first image.
2015-01-23[FIX] website: page go to top when click on unfold ulChristophe Matthieu
2015-01-16[FIX] website editor: On click Of edit unable to call start of ↵Christophe Matthieu
website.snippet.animationRegistry of the stopped snippet animation
2015-01-05[IMP] website: use the new summernote editorChristophe Matthieu
2014-12-18[IMP] website.snippet: add data-oe-call to call a template from the website ↵Christophe Matthieu
and keep all content editable; used for demo page of snippets
2014-08-21[IMP] website snippet new option, galleryChristophe Matthieu
website.snippet: The methods described in javascript will be called automatically from the data-method_name = value on li snippets options. The methods are called in the order relative to children of xml (eg: <li data-method1=value1> ... <li data-method2=value2> ... </ li>, the method1 is then called method2). Methods receive two arguments: type (over, click, reset) and value. data-snippet-id-option becomes data-snippet-id. Several xml options can use the same data-snippet-id. add a new gallery snippet convert website_sale to the new option system
2014-04-10[FIX] website: avoid discarding snippet animator after edit + properly ↵Olivier Dony
restart animation while disabling clicks bzr revid: odo@openerp.com-20140410174314-vecg7inmfgm7r5fq
2014-03-28[IMP] website: media editor doubleclick for video and begin to use snippet ↵chm@openerp.com
builder bzr revid: chm@openerp.com-20140328141619-x9okgixai2v5dekr
2014-03-28[IMP] website: add video media editorchm@openerp.com
bzr revid: chm@openerp.com-20140328104453-2faynhhc1wi5598l
2014-03-12[IMP] website: simplify code share button; wip: fix overlaychm@openerp.com
bzr revid: chm@openerp.com-20140312093440-4uzrpkguzu0fc5p5
2014-03-11[MERGE] from trunkchm@openerp.com
bzr revid: chm@openerp.com-20140311154616-tb35jfweo3xuzqws
2014-03-10[IMP] website: use mailto for share snippet insead of mail formchm@openerp.com
bzr revid: chm@openerp.com-20140310141947-zs9ltuzx48k5ej5x
2014-03-10[IMP] website: create share snippet. TODO: controller to send mail or mailto ↵chm@openerp.com
href bzr revid: chm@openerp.com-20140310135434-7xt2sy89if9116l3
2014-03-06[IMP] website: snippet : website.snippet.animationRegistry.followchm@openerp.com
bzr revid: chm@openerp.com-20140306140323-o2e77a66eu28bddu
2014-03-06[IMP] website: dynamic website_mail snippet with jschm@openerp.com
bzr revid: chm@openerp.com-20140306130240-cpsd5mssziuvrpf8
2014-03-03[IMP] website: snippet: remove data-snippet-id and add auto resize on ↵Christophe Matthieu
resising option bzr revid: chm@openerp.com-20140303142017-jcb3401wpiuvbc1n