gutenberg
4 years ago
debug-page.js
4 years ago
jquery.tipTip.js
4 years ago
network-settings-page.js
4 years ago
prior-consent-settings.js
4 years ago
settings-page.js
4 years ago
network-settings-page.js
18 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 | $( 'input[type=radio][name=cookiebot-script-tag-uc-attribute], input[name=cookiebot-nooutput]' ).prop( 'disabled', true ) |
| 7 | } |
| 8 | if ( this.value === 'manual' && cookieBlockingMode !== this.value ) { |
| 9 | $( '#cookiebot-setting-async, #cookiebot-setting-hide-popup' ).css( 'opacity', 1 ) |
| 10 | $( 'input[type=radio][name=cookiebot-script-tag-uc-attribute], input[name=cookiebot-nooutput]' ).prop( 'disabled', false ) |
| 11 | } |
| 12 | cookieBlockingMode = this.value |
| 13 | } ) |
| 14 | if ( cookieBlockingMode === 'auto' ) { |
| 15 | $( '#cookiebot-setting-async, #cookiebot-setting-hide-popup' ).css( 'opacity', 0.4 ) |
| 16 | $( 'input[type=radio][name=cookiebot-script-tag-uc-attribute], input[name=cookiebot-nooutput]' ).prop( 'disabled', true ) |
| 17 | } |
| 18 | } ) |