MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / constructor

Method constructor

static/widgets/simplecook.ts:35–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 private readonly elem: JQuery;
34
35 public constructor() {
36 this.elem = $('#simplecook');
37 this.elem.hide();
38
39 this.elem.find('.cookies').on('click', () => {
40 $('#cookies').trigger('click');
41 });
42 this.elem.find('.cook-do-consent').on('click', this.callDoConsent.bind(this));
43 this.elem.find('.cook-dont-consent').on('click', this.callDontConsent.bind(this));
44 }
45
46 public show(): void {
47 this.elem.show();

Callers

nothing calls this directly

Calls 3

findMethod · 0.80
hideMethod · 0.45
onMethod · 0.45

Tested by

no test coverage detected