<commit_before>/*============================================================================*\
	   ________                    __
	  / ____/ /__ _   _____  _____/ /___ ___  __
	 / /   / / _ \ | / / _ \/ ___/ / __ `/ / / /
	/ /___/ /  __/ |/ /  __/ /  / / /_/ / /_/ /
	\____/_/\___/|___/\___/_/  /_/\__,_/\__, /
									   /____/
	JavaScript for Cleverlay
	-----------------------------------------------------------------------
	© 2010-2018 by Carroket, Inc.
	https://carroket.com/
	-----------------------------------------------------------------------
	Made by <NAME>.
	https://briansexton.com/
	-----------------------------------------------------------------------
	MIT License

\*============================================================================*/

(function(document, options) {

	var cleverlay = new Cleverlay();

	function Cleverlay() {

		if (options instanceof Object && options.autoRun === true) {

			this.autoRun = true;
		}
	}

	// TO DO: Write it, cut it, paste it, save it. Load it, check it, quick—rewrite it.

	Cleverlay.prototype.addHTML = function(html) {

		var fragment = document.createRange().createContextualFragment(html);

		this.overlay.appendChild(fragment);
	}

	Cleverlay.prototype.addImage = function(url, width, height, alt) {

		var contentFrame = document.createElement('div');

		var image = document.createElement('img');


		// Prepare the content frame.

		contentFrame.className = 'content-frame';

		contentFrame.style.width = width + 'px';


		// Prepare the image element.

		image.src = url;
		image.alt = alt;
		image.width = width;
		image.height = height;

		image.className = 'image';


		// Assemble the content.

		contentFrame.appendChild(image);

		this.overlay.appendChild(contentFrame);
	};

	Cleverlay.prototype.addPageOverlay = function() {

		var backdrop = document.createElement('div');

		var closeButton = document.createElement('div');


		this.overlay = document.createElement('div');


		// Prepare the overlay.

		this.overlay.className = 'cleverlay overlay';


		// Prepare the backdrop.
<commit_msg>Add a "fadeIn" option to apply the "fade-in" class automatically at the library level.<commit_after>/*============================================================================*\
	   ________                    __
	  / ____/ /__ _   _____  _____/ /___ ___  __
	 / /   / / _ \ | / / _ \/ ___/ / __ `/ / / /
	/ /___/ /  __/ |/ /  __/ /  / / /_/ / /_/ /
	\____/_/\___/|___/\___/_/  /_/\__,_/\__, /
									   /____/
	JavaScript for Cleverlay
	-----------------------------------------------------------------------
	© 2010-2018 by Carroket, Inc.
	https://carroket.com/
	-----------------------------------------------------------------------
	Made by <NAME>.
	https://briansexton.com/
	-----------------------------------------------------------------------
	MIT License

\*============================================================================*/

(function(document, options) {

	var cleverlay = new Cleverlay();

	function Cleverlay() {

		if (options instanceof Object && options.autoRun === true) {

			this.autoRun = true;
		}
	}

	// TO DO: Write it, cut it, paste it, save it. Load it, check it, quick—rewrite it.

	Cleverlay.prototype.addHTML = function(html) {

		var fragment = document.createRange().createContextualFragment(html);

		this.overlay.appendChild(fragment);
	}

	Cleverlay.prototype.addImage = function(url, width, height, alt) {

		var contentFrame = document.createElement('div');

		var image = document.createElement('img');


		// Prepare the content frame.

		contentFrame.className = 'content-frame';

		contentFrame.style.width = width + 'px';


		// Prepare the image element.

		image.src = url;
		image.alt = alt;
		image.width = width;
		image.height = height;

		image.className = 'image';


		// Assemble the content.

		contentFrame.appendChild(image);

		this.overlay.appendChild(contentFrame);
	};

	Cleverlay.prototype.addPageOverlay = function() {

		var backdrop = document.createElement('div');

		var closeButton = document.createElement('div');


		this.overlay = document.createElement('div');


		// Prepare the overlay.

		this.overlay.className = 'cleverlay overlay';

		if (options instanceof Object && options.fadeIn === true) {

			this.overlay.classList.add('fade-in');
		}


		// Prepare the backdrop.

{'fraction_non_alphanumeric': 0.29252013808975835, 'fraction_numerical': 0.003682393555811277, 'mean_word_length': 2.0584095707248418, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4511318', 'n_tokens_mistral': 1384, 'n_tokens_neox': 1190, 'n_words': 244}