Add listeners to the change event of the manager's and guards' checkboxes
The manager to handle state changes for
The global manager toggle checkbox
The guards that have been parsed from the DOM
Whether the manager came from the savior instead of the factory
Callback used to trigger an update of the checkbox's state
Setup item activation in the <head>
tag (i.e. to execute code when the corresponding guard is enabled)
The manager to attach the activation logic to
The selector to query all the related items (must include [data-gdpr-on-enable]
)
The function to call to set up the item before putting it in the DOM
Setup scripts activation logic to load them when the corresponding guard is enabled (type must initially be text and the src attribute mst be present)
The manager to attach the activation logic to
Setup stylesheets activation logic to load them when the corresponding guard is enabled (rel attribute must be different from stylesheet and the href attribute must be present)
The manager to attach the activation logic to
Bind event listeners to the general buttons