gutenberg
4 years ago
debug-page.js
4 years ago
jquery.tipTip.js
4 years ago
multiple-page.js
3 years ago
network-settings-page.js
3 years ago
prior-consent-settings.js
3 years ago
settings-page.js
3 years ago
support-page.js
3 years ago
network-settings-page.js
30 lines
| 1 | jQuery( document ).ready( function ( $ ) { |
| 2 | var cookieBlockingMode = cookiebotNetworkSettings.cbm |
| 3 | $( 'input[type=radio][name=cookiebot-cookie-blocking-mode]' ).on( 'change', function () { |
| 4 | if ( this.value === 'auto' && cookieBlockingMode !== this.value ) { |
| 5 | $( '#cookiebot-setting-async, #cookiebot-setting-hide-popup' ).css( 'opacity', 0.4 ) |
| 6 | $( '#declaration-tag').addClass('disabled__item'); |
| 7 | $( 'input[type=radio][name=cookiebot-script-tag-uc-attribute], input[name=cookiebot-nooutput]' ).prop( 'disabled', true ) |
| 8 | } |
| 9 | if ( this.value === 'manual' && cookieBlockingMode !== this.value ) { |
| 10 | $( '#cookiebot-setting-async, #cookiebot-setting-hide-popup' ).css( 'opacity', 1 ) |
| 11 | $( '#declaration-tag, #cookie-popup').removeClass('disabled__item'); |
| 12 | $( 'input[type=radio][name=cookiebot-script-tag-uc-attribute], input[name=cookiebot-nooutput]' ).prop( 'disabled', false ) |
| 13 | } |
| 14 | cookieBlockingMode = this.value |
| 15 | } ) |
| 16 | if ( cookieBlockingMode === 'auto' ) { |
| 17 | $( '#cookiebot-setting-async, #cookiebot-setting-hide-popup' ).css( 'opacity', 0.4 ) |
| 18 | $( 'input[type=radio][name=cookiebot-script-tag-uc-attribute], input[name=cookiebot-nooutput]' ).prop( 'disabled', true ) |
| 19 | } |
| 20 | |
| 21 | jQuery('.cb-submit__msg').on('click',function(){ |
| 22 | jQuery(this).addClass('hidden'); |
| 23 | }); |
| 24 | |
| 25 | jQuery(':input').change( |
| 26 | function(){ |
| 27 | jQuery('p.submit #submit').addClass('enabled'); |
| 28 | } |
| 29 | ); |
| 30 | } ) |