<commit_before>﻿import { throwIfNull } from "./helpers";

export class EasterEgg {
	constructor(private doc: Document) {}

	init(): void {
		let element = this.doc.querySelector('#easter-egg');

		throwIfNull(element, 'element');

		let self = this;

		element.addEventListener('mouseenter', function () {
			self.doc.getElementById('danger-sign').classList.remove('hidden');
		});

		element.addEventListener('mouseleave', function () {
			self.doc.getElementById('danger-sign').classList.add('hidden');
		});
	}
}<commit_msg>swapped show/hide helpers.<commit_after>﻿import { show, hide } from "./helpers";

export class EasterEgg {
	constructor(private doc: Document) {}

	init(): void {
		let element = <Element>this.doc.querySelector('#easter-egg');
		let dangerSign = <Element>this.doc.querySelector('#danger-sign');
		
		element.addEventListener('mouseenter', function () {
			show(dangerSign);
		});

		element.addEventListener('mouseleave', function () {
			hide(dangerSign);
		});
	}
}
{'fraction_non_alphanumeric': 0.17002012072434608, 'fraction_numerical': 0.0, 'mean_word_length': 4.958083832335329, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6020011', 'n_tokens_mistral': 323, 'n_tokens_neox': 290, 'n_words': 53}