Commit Graph

385 Commits

Author SHA1 Message Date
Klemart3D b1a16c5d2b
Add nofollow on "read more" link to pass Google SEO test 2020-11-16 20:36:36 +01:00
Amauri CHAMPEAUX cdc36e94a9 Fix #516 2020-11-12 17:13:20 +01:00
Amauri CHAMPEAUX 8a87fd6e17 New logo 2020-11-11 18:05:53 +01:00
O2 Graphics c857e8037e
Fix buttons not working for dynamically added services 2020-11-05 20:47:11 +01:00
Amauri CHAMPEAUX 6ab6837849 Align the button on the middle banner 2020-11-05 09:31:17 +01:00
Amauri CHAMPEAUX 04dbc0030f Remove focus on unnecessary button 2020-11-05 09:08:51 +01:00
Amauri CHAMPEAUX f0911c873c Little adjustment on the big banner buttons 2020-11-04 15:20:17 +01:00
Amauri CHAMPEAUX 2620549ac2 Little adjustment on the big banner buttons 2020-11-04 14:23:18 +01:00
O2 Graphics 2e88cbbd9f
Don't run a replace() when not needed
Also, replace "==" by "===": it's better, cleaner and consistent with the rest of the code.
2020-11-01 21:21:38 +01:00
Amauri CHAMPEAUX 39aac6b2b3
Merge pull request #509 from mcouzinet/feature/accessibility
remove action on mandatory button
2020-10-29 19:00:31 +01:00
Amauri CHAMPEAUX 843f66cdfe
Merge pull request #507 from mcouzinet/feature/move-icon-to-css
move icon to css
2020-10-29 18:56:53 +01:00
Mickael Couzinet b4fc687f2c remove action on mandatory button 2020-10-29 14:11:51 +01:00
Amauri CHAMPEAUX ba79735d36 Add some animations 2020-10-28 17:29:02 +01:00
Mickael Couzinet 6b2e71a248 move icon to css 2020-10-28 12:58:33 +01:00
Amauri CHAMPEAUX bfd25e8344 Set the cookie for by default allowed services 2020-10-17 08:37:14 +02:00
Jérôme Fix 3371d6a3c1 Activation - Adding a class with the service name
Allows you to customize the block to activate an on-demand service.
2020-10-15 15:17:45 +02:00
Amauri CHAMPEAUX 3b334efc8d Do not try to load something for the mandatory allow button 2020-10-13 17:32:05 +02:00
Amauri CHAMPEAUX 8bd6928e85 Fix Uncaught Typerror while using the Deny/Accept all buttons fix #504 2020-10-13 16:54:24 +02:00
Amauri CHAMPEAUX 0c86a68194 Align the 3 buttons on the bar 2020-10-12 16:03:26 +02:00
Amauri CHAMPEAUX 1233699846 Hide the deny button on mandatory cookie for alignement 2020-10-12 12:06:45 +02:00
Amauri CHAMPEAUX 097617b84e Add the button class on the accept all button 2020-10-12 12:05:26 +02:00
Amauri CHAMPEAUX d8745b86d3 Update default values 2020-10-12 11:32:50 +02:00
Amauri CHAMPEAUX 0288f91219 remove onclick event on cookie icon 2020-10-10 11:43:25 +02:00
Amauri CHAMPEAUX 3c5d06bd92 New cookie icon off by default and border-radius adjustement 2020-10-10 10:59:37 +02:00
Amauri CHAMPEAUX 48ed45ba1c
Merge pull request #462 from clemdesign/master
Manage cookie icon
2020-10-10 10:18:17 +02:00
Amauri CHAMPEAUX 05bafd464b Add a timeout of 500ms before settings click event 2020-10-09 11:28:54 +02:00
Amauri CHAMPEAUX 314f22fe00 Remove the margin on the accept/reject all buttons
Not sure why this is here but it break a lot of installations
2020-10-09 10:37:38 +02:00
Amauri CHAMPEAUX fe96f7f2b1 update version 2020-10-06 10:00:33 +02:00
Amauri CHAMPEAUX 7662e097ce Fix Uncaught ReferenceError: secure is not defined 2020-10-06 08:23:24 +02:00
Amauri CHAMPEAUX 716ac1132f
Merge pull request #477 from sir-gawain/csp
remove onclick html attributes, add callbacks in code.
2020-10-05 13:50:01 +02:00
Harmen Christophe cb9542968e Cookie - Information Disclosure 2020-10-05 12:33:54 +02:00
Christian Welzel c68d41b27c Fixed typo. 2020-08-28 08:16:21 +02:00
Christian Welzel 2d989b3085 Moved some inline css to external css file. 2020-08-27 22:19:57 +02:00
Christian Welzel d481f0e911 remove onclick html attributes, add callbacks in code. 2020-08-27 21:55:23 +02:00
Amauri CHAMPEAUX 037edbbb04
Merge pull request #481 from f-to/middle-banner-patch
Don't show the middle banner of you are on the "moreLink" page.
2020-08-10 17:20:52 +02:00
Amauri CHAMPEAUX bb24488a02
Merge pull request #480 from Sylry/feature/DenyAllCtaOption
Add option for the Deny All button
2020-08-10 17:20:18 +02:00
Amauri CHAMPEAUX 92d0af3a93 Fix a Self-XSS vulnerability
Big thanks to Nicolas (nicolas.decayeux@intrinsec.com)
2020-07-30 09:49:32 +02:00
f-to 92f7df147f
middle banner displaying
The middle banner will not be shown on both more and privacy pages.
2020-07-09 11:13:59 +02:00
Sylry 7748943827 Add option for the Deny All button 2020-07-07 16:08:56 +02:00
Clement G 7f0e04ca62 Fix issue on cookie icon integration and responsive integration 2020-06-05 16:42:56 +02:00
Clement G d44bee32eb Manage cookie icon 2020-06-05 14:59:27 +02:00
Amauri CHAMPEAUX e88aa28701 Add an option to show a message about mandatory cookies 2020-05-21 15:37:31 +02:00
Amauri CHAMPEAUX dcbc7399d5 enable sweden locale 2020-05-21 14:29:11 +02:00
Amauri CHAMPEAUX 4832682dde Fix auto load of services when needconsent is true
+ add an alternative to not autoload matomo and at internet
2020-05-05 15:59:35 +02:00
Amauri CHAMPEAUX f96be0440e Prepare for the new Vietnamese translation 2020-05-05 09:24:15 +02:00
Mejans 8ebdbcf1dc
Update tarteaucitron.js 2020-05-01 15:19:19 +02:00
Amauri CHAMPEAUX da33f6e2fe Always allow service that doesnt need consent FIX #290 #437 2020-05-01 09:36:29 +02:00
Amauri CHAMPEAUX ca76bca789 Merge branch 'master' of https://github.com/AmauriC/tarteaucitron.js 2020-04-26 20:59:27 +02:00
Amauri CHAMPEAUX a975be9e5f enable all locales 2020-04-26 20:59:21 +02:00
Amauri CHAMPEAUX 6cca3a0836
Fix #442 2020-04-24 10:12:08 +02:00
Amauri CHAMPEAUX abf235b37f
Merge pull request #440 from prudloff-insite/internal-scripts
useExternalJs should only apply to internal scripts
2020-04-22 17:19:31 +02:00
Pierre Rudloff e555e47ecd Default value for internal parameter 2020-04-22 11:08:39 +02:00
Pierre Rudloff 4eb716c351 Refactor to make addScript() calls easier to read 2020-04-21 18:30:32 +02:00
Amauri CHAMPEAUX de701ba421
Merge pull request #436 from Manoz/fix/duplicate-code
[Enhancement] Duplicate code
2020-04-18 15:34:26 +02:00
Amauri CHAMPEAUX ec91bcdbaa New domain name: tarteaucitron.io 2020-04-18 15:20:20 +02:00
Kévin Legrand ae187c73ad [Enhancement] Duplicate code 2020-04-15 20:30:37 +02:00
Amauri CHAMPEAUX 88af745341 Revert #412 Fix #421 2020-03-28 06:29:27 +01:00
Amauri CHAMPEAUX dad64861c6 check outside the loop if thisScript is still null 2020-03-27 20:03:42 +01:00
Pierre Rudloff ab8bb3de65 useExternalJs should only apply to internal scripts 2020-03-23 17:25:35 +01:00
Amauri CHAMPEAUX b7e4b632e5
Merge pull request #393 from mobyou/patch-1
Add a bodyPosition param
2020-03-04 16:45:44 +01:00
Carsten Meyer b274b32bd8 Default value for "bodyPosition"
"bodyPosition": "bottom" as default value wich produce body.appendChild(div, body)
2020-03-04 16:21:44 +01:00
Amauri CHAMPEAUX 082bbf6d66 Don't show the middle bar if we are on the privacy policy page 2020-03-04 12:14:00 +01:00
Amauri CHAMPEAUX d23fadd718
Merge pull request #412 from yaaax/master
fix(js): select the relevant script to define the correct path for file inclusion
2020-03-04 10:25:40 +01:00
Yaacov 28dbc2de75 fix(tarteaucitron) select the relevant script to define the right path (bis) 2020-03-04 00:54:18 +01:00
Yaacov f00200a6dd fix(js): select the relevant script to define the correct path for files inclusion
See https://stackoverflow.com/a/22745553/5487370
2020-02-25 09:41:22 +01:00
Mikkel Scheike b5954aca5b Danish translation
Added support for Danish
2020-02-07 12:35:47 +01:00
Amauri CHAMPEAUX b0d669a016
Merge pull request #398 from prudloff-insite/infobox-class
Don't use the same class for the disclaimer and tooltips
2020-02-05 11:37:46 +01:00
Amauri CHAMPEAUX 4d870d731d
Merge pull request #401 from nstCactus/patch-3
 Dispatch an event when a service is added.
2020-02-05 11:32:07 +01:00
nstCactus e58a6ab8d2 Dispatch an event when a service is added. 2020-01-29 20:00:29 +01:00
nstCactus f5df8620cc 🐛 Dispatch an event when a service is accepted
PR #363 introduced an event to detect when a service is accepted.
This is only dispatched when the page is loaded with the service
already accepted.

This commit ensures its also dispatched when the user click the
Allow button in the service engagement placeholder.
2020-01-29 19:22:00 +01:00
Pierre Rudloff b999f73c86 Don't use the same class for the disclaimer and tooltips 2020-01-27 15:41:59 +01:00
Amauri CHAMPEAUX da7272f60d Add a Deny all button on the middle bar 2020-01-20 16:54:22 +01:00
Carsten Meyer f2eb28fa0b
Add a bodyPosition param
For blind people, the cookie banner must appear first in the source code. For this reason a bodyPosition parameter with the default value "top" is specified to  manage #tarteaucitronRoot
2020-01-08 15:35:54 +01:00
Amauri CHAMPEAUX a8404b8389 Fix Chinese translation 2019-11-27 15:34:54 +01:00
Amauri CHAMPEAUX c7c231796b
Merge pull request #376 from prudloff-insite/useExternalJs
New useExternalJs option
2019-11-05 18:24:42 +01:00
Amauri CHAMPEAUX 08a585ae1a
Merge pull request #377 from prudloff-insite/true-false
Simplify true/false checks
2019-11-05 18:23:52 +01:00
Amauri CHAMPEAUX cc5eba4937 Partial add of Japan locale 2019-11-05 18:18:19 +01:00
Amauri CHAMPEAUX feb4477e3e Fix the background with the middle banner 2019-11-05 17:59:40 +01:00
Pierre Rudloff 79be5270e2 Simplify true/false checks 2019-10-31 16:51:08 +01:00
Pierre Rudloff b94a94f21a New useExternalJs option 2019-10-31 15:36:20 +01:00
Amauri CHAMPEAUX 8d86ad84e4 High privacy by default and new middle bar 2019-10-31 08:25:35 +01:00
Amauri CHAMPEAUX 9dfba82d98 Fix #236 2019-10-31 07:55:01 +01:00
Amauri CHAMPEAUX da584fe5b6
Remove the Wrapper, it break a lot of custom css 2019-10-30 09:44:28 +01:00
Amauri CHAMPEAUX ee2f2f4690
Merge pull request #363 from drobert8584/master
push event when service loaded
2019-10-29 17:34:36 +01:00
Amauri CHAMPEAUX 4f7f2be078
Update tarteaucitron.js 2019-10-29 17:00:33 +01:00
Amauri CHAMPEAUX 1dfda3889d
Merge pull request #372 from prudloff-insite/empty
Display a message when no services are enabled (fixes #368)
2019-10-29 16:57:46 +01:00
Amauri CHAMPEAUX 85a555fc0c
Update var for v. pro 2019-10-29 16:48:56 +01:00
Pierre Rudloff 3c3654750c Display a message when no services are enabled (fixes #368) 2019-10-21 17:26:40 +02:00
DrDam a7c96955e8 push event when service loaded 2019-09-26 09:29:56 +02:00
Cédric ffdda75c2c
Fix error with ie
"new Event" is not compatible with ie
2019-09-12 22:08:13 +02:00
Cédric 8d048bea87
Déplacer la correction de mainTop
Permet d'éviter un mainTop négatif.
2019-09-05 12:21:07 +02:00
Amauri CHAMPEAUX 4ef09977ee
Merge pull request #343 from prudloff-insite/anchor
Don't scroll to top of page when closing popin
2019-08-28 09:40:21 +02:00
Amauri CHAMPEAUX 79d71466d5
Merge pull request #344 from JasonBenett/lifecycle-events
Dispatch JS events at crucial display steps
2019-08-28 09:39:59 +02:00
Jason Benedetti c6e19d73b5
Increase the ask area capability to be extended
- Encapsulate the main ask area buttons into a current state class (same comportment that the existing one on each service line).
- Add simpler methods to add/remove classes on user interface on the same way that the existing "css" method.
2019-08-23 10:44:05 +02:00
Jason Benedetti b595ca0ce5
Add higher encapsulation level to enhance design abilities
FR : Ajout de plusieurs <div> et <span> non stylisées pour faciliter le travail d'intégration et de design simplement via du CSS, notamment sur l'apparence de boutons par rapport aux textes.

EN : Add some <div> and <span> "unstylished" to enhance the integration and design work via simple CSS rules, especially about the buttons appearance compared to the texts.
2019-08-22 14:58:35 +02:00
Jason Benedetti affafafe37
Dispatch JS events at crucial display steps
FR : Ajout d'évènements JS à différents moments du cycle de vie de tarteaucitron. Permet d'ajouter de la logique métier personnalisée à différentes étapes.

EN : Add JS events to many moments of tarteaucitron life cycle. Allow to add personalized business logic to different steps.
2019-08-22 14:49:16 +02:00
Pierre Rudloff 1b5aea63dc Don't scroll to top of page when closing popin 2019-08-19 15:03:26 +02:00
Amauri CHAMPEAUX 3996698dc9
Merge pull request #266 from Adysone/master
Remove the hardcoded colors from the JS
2019-06-13 09:05:07 +02:00
Amauri CHAMPEAUX 07dbc549b4
Merge pull request #320 from AnTSaSk/master
Enhance custom "Expire" value / Amélioration de la valeur personnalisée "Expire"
2019-06-13 08:59:04 +02:00
Yannik 42cee81cea
FIX - ForceLanguage when !navigator 2019-05-17 13:12:52 +02:00
Alexis Besson 9f3873303d Feature: Modify verification of tarteaucitronExpireInDay type's value 2019-04-08 11:46:11 +02:00
Alexis Besson fb2b675889 Feature: Add possibility for user to specify a hour(s)/day(s) value as a custom expire value 2019-04-08 11:36:12 +02:00
Carsten Meyer 4020cdb12d
HTML semantics
- type="button" on all buttons
- rel="noreferrer noopener" on all links
2019-03-18 16:54:58 +01:00
Cenatiempo Yannick 8d53cfdb17
Prevent error for navigator without language 2019-02-28 18:28:48 +01:00
Emilie Pistorius 01ffbac2a0 fix aria-level values 2019-02-14 09:34:08 +01:00
Amauri CHAMPEAUX be56f21919
Changes in how stats are calculated on the pro version 2019-01-24 10:45:51 +01:00
Amauri CHAMPEAUX f4347f8536
Changes in how stats are calculated on the pro version 2019-01-19 13:48:42 +01:00
Amauri CHAMPEAUX dac62f1a22
Merge branch 'master' into feat/hide-read-more 2018-12-26 13:34:03 +01:00
Amauri CHAMPEAUX 699be0de5c
Fix a bug with Prototype Enumerable 2018-12-04 16:59:25 +01:00
Amauri CHAMPEAUX 10b8db89bb
Fix a bug with Prototype Enumerable 2018-12-04 15:52:18 +01:00
Anthony Demurtas 7c94cf65cc Remove the hardcoded colors from the JS
The hardcoded colors green and red have been removed from the JS file.
The colors are now in the CSS file.
A new class tarteaucitronIsSelected is added to the main selected button ("Allow all" or "Deny all").
2018-11-20 17:40:46 +01:00
Nicolas Cabot 8d435953ba merged duplicated rel attributes on credit link element 2018-11-14 18:33:17 +01:00
CIMEOS 32bba9e880
SEO Compatibility
Substitution of Hn for span with aria-heading
2018-10-24 16:32:11 +02:00
Amauri CHAMPEAUX 05f98f423c
Merge pull request #230 from e-adrien/seo
Remove h* use for SEO
2018-10-24 14:23:34 +02:00
Amauri CHAMPEAUX 49dbaa32ff
Add Greek translation 2018-10-23 15:39:55 +02:00
Jérôme Fix 758b8fc7f2 Ability to use an external CSS
- Added option to initialization: useExternalCSS
2018-10-20 07:27:55 +02:00
Adrien ERAUD 4fe43eb84e
Remove h* use for SEO 2018-10-09 14:16:05 +02:00
Amauri CHAMPEAUX e20c3a90bb
Fix #235
You can now change engage string with the same method as other texts:

```
<script>
var tarteaucitronCustomText = {
    "engage-twitter": "Follow us on Twitter!",
};
</script>
```
2018-10-03 08:25:01 +02:00
Amauri CHAMPEAUX c31b2a1bb3
Fix #207 - Remove ContentWrapper 2018-10-03 07:45:16 +02:00
Amauri CHAMPEAUX 8ff060c449
Merge pull request #218 from OwnWeb/feature/googlemaps-embed
 Add Google Maps Iframe embed service
2018-09-25 14:28:46 +02:00
Romain GABORIEAU 8b1696cf20 feat: add event functions to init and load 2018-09-14 14:14:07 +02:00
Hugo Heneault 1b5f0cad47 Add Google Maps Iframe embed service 2018-09-14 12:07:33 +02:00
Amauri CHAMPEAUX 096065c0bb
Fix colors of button #213 2018-09-14 09:30:29 +02:00
Amauri CHAMPEAUX 7bccde22c6
Revert #208 Do not work on IE11 2018-09-11 13:58:17 +02:00
Amauri CHAMPEAUX 29778541ee
Merge branch 'master' into master 2018-09-11 10:52:56 +02:00
Amauri CHAMPEAUX 63f0ba6866
Restore effect on general allow/deny buttons 2018-09-11 10:52:18 +02:00
Amauri CHAMPEAUX e156538555
Better scroll management 2018-09-11 10:40:49 +02:00
Yohann bianchi 842cec6dc8 🐛 Fix an incompatibility with prototype.js < 1.7.3.0 2018-09-11 10:38:01 +02:00
Amauri CHAMPEAUX 43cf19b939
Always show the main information text 2018-09-10 08:00:26 +02:00
Amauri CHAMPEAUX 4eb6f8c14f
Add a class to customize the line depending of the status 2018-09-03 14:40:08 +02:00
Amauri CHAMPEAUX 51433bf1ff
Do not use default value 2018-09-03 11:10:06 +02:00
Amauri CHAMPEAUX a31264e13d Add an option to display a link to the privacy url
"privacyUrl":  "https://example.com/privacy-policy",
2018-08-29 11:12:57 +02:00
Amauri CHAMPEAUX af76f8415a
Removed break line after service name 2018-08-29 10:05:11 +02:00
Amauri CHAMPEAUX 7cf9cd5659
Time to reload files 2018-08-28 11:18:53 +02:00
Amauri CHAMPEAUX 72bd720177
Merge branch 'master' into display-cta-accept-all-with-highPrivacy 2018-08-28 10:51:17 +02:00
Amauri CHAMPEAUX 6d6f7a77db
Add an option to hide the links to opt-out.ferank.eu and third party website 2018-08-28 10:43:35 +02:00
Amauri CHAMPEAUX 618eea713f
Fix the default value for the parameters 2018-08-28 10:33:19 +02:00
Lena f64fecd67b better comments + add translations 2018-08-14 15:55:49 +02:00
Lena 412206eea5 add focusTrap method 2018-08-14 15:45:48 +02:00
Lena 49c6cc77cd add a wrapper with aria-hidden when dialog is open + update CSS 2018-08-14 13:42:49 +02:00
Lena b79fbec9f7 Accessibility fixes 2018-08-14 10:36:33 +02:00
javiertury d8c9031d54
Fix #197: tarteaucitronForceCDN always defined
Make sure that `tarteaucitronForceCDN` is always defined. If underfined convert to empty string. When defining `cdn`, use default cdn if `tarteaucitronForceCDN` is an empty string.
2018-08-13 21:06:38 +02:00
javiertury f86f6d0b0f
Allow to force CDN 2018-08-13 13:29:50 +02:00
r-baudot b43cbce36b
Merge branch 'master' into display-cta-accept-all-with-highPrivacy 2018-08-06 13:27:24 +02:00
Amauri CHAMPEAUX cb0e23b72e
Merge pull request #185 from ygriguer-bhs/changeable-cookie-name
Give the possibility to change cookie's name
2018-08-06 07:31:05 +02:00
Yoram Griguer 933ea94c31 Give the possibility to change cookie's name 2018-07-31 17:56:45 +02:00
Ricci Dorian b4c14b9ec9 corrected call to the method 2018-07-31 09:44:18 +02:00
Ricci Dorian 1ea7bfa82a move utility function in tarteaucitron 2018-07-30 19:47:12 +02:00
Ricci Dorian a59ee49abb corrected if undefined variable 2018-07-27 19:33:31 +02:00
Ricci Dorian 1d97b3fa95 Update tarteaucitron.lang with the custom text given 2018-07-27 10:55:50 +02:00