Lines of Code | 21 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | import $ from 'jquery' |
||
2 | |||
3 | import * as acceptButton from './Partials/AcceptButton/script' |
||
4 | |||
5 | class BlockCookieNotification extends window.HTMLDivElement { |
||
6 | constructor (self) { |
||
7 | self = super(self) |
||
8 | self.$ = $(self) |
||
9 | return self |
||
|
|||
10 | } |
||
11 | |||
12 | connectedCallback () { |
||
13 | this.$.on('click', '.acceptButton', (e) => { |
||
14 | e.preventDefault() |
||
15 | acceptButton.acceptCookies(this.$) |
||
16 | }) |
||
17 | acceptButton.checkCookies(this.$) |
||
18 | } |
||
19 | } |
||
20 | |||
21 | window.customElements.define('flynt-block-cookie-notification', BlockCookieNotification, {extends: 'div'}) |
||
22 |