JSFiddle - React, Tailwind, and code Playground

by gabriela b

JavaScript

/*! TableTools 2.2.3
 * 2009-2014 SpryMedia Ltd - datatables.net/license
 *
 * ZeroClipboard 1.0.4
 * Author: Joseph Huckaby - MIT licensed
 */


/**
 * MODIFIED BY GABRIELA BALASEL
 *
 * ATTENTION - this code has been changed to implement the Export to xls using XLSX library and FileSaver.  -- check 'xls' in TableTools.BUTTONS
 *
 *
 *
 *
 * @summary     TableTools
 * @description Tools and buttons for DataTables
 * @version     2.2.3
 * @file        dataTables.tableTools.js
 * @author      SpryMedia Ltd (www.sprymedia.co.uk)
 * @contact     www.sprymedia.co.uk/contact
 * @copyright   Copyright 2009-2014 SpryMedia Ltd.
 *
 * This source file is free software, available under the following license:
 *   MIT license - http://datatables.net/license/mit
 *
 * This source file is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
 *
 * For details please refer to: http://www.datatables.net
 */


/* Global scope for TableTools for backwards compatibility.
 * Will be removed in 2.3
 */
var TableTools;

(function (window, document, undefined) {


	var factory = function ($, DataTable) {
		"use strict";


//include ZeroClipboard.js
		/* ZeroClipboard 1.0.4
		 * Author: Joseph Huckaby
		 */

		var ZeroClipboard_TableTools = {

			version: "1.0.4-TableTools2",
			clients: {}, // registered upload clients on page, indexed by id
			moviePath: '', // URL to movie
			nextId: 1, // ID of next movie

			$: function (thingy) {
				// simple DOM lookup utility function
				if (typeof(thingy) == 'string') {
					thingy = document.getElementById(thingy);
				}
				if (!thingy.addClass) {
					// extend element with a few useful methods
					thingy.hide = function () {
						this.style.display = 'none';
					};
					thingy.show = function () {
						this.style.display = '';
					};
					thingy.addClass = function (name)...