JSFiddle - React, Tailwind, and code Playground

by Dariusz Gardyński

JavaScript

<style type="text/css">
#plikarnia {
	width: 200px;
	background-color: #CCDDBB;
	color: #556655;
	font-weight: bold;
	text-align: center;
	cursor: pointer;
	border-radius:10px;
	padding: 2px;
}

#plikarnia:hover {
	background-color: #556655;
	color: #CCDDBB;
	border-style: inset;
	border-color:#CCDDBB;
	padding: 0px;
	border-width:2px;
}
ol{
    margin:0px;
    padding:0px;
    list-style-position: inside;
}
</style>
<script type="text/javascript">
/**
 * @author Sławomir Kokłowski {@link http://www.kurshtml.boo.pl}
 * @copyright NIE usuwaj tego komentarza! (Do NOT remove this comment!)
 * 
 * Edited by Dariusz Gardyński :)
 * PS. Nie sprawdzałem czy wszystkie opcje tego script'u będą działać poprawnie. ( I didn't checked whether all the functions work correctly. )
 * PPS. Fucking good job Mr. Sławomir Kokłowski :). BIG THX !!!
 */

function Menu(class_czy_id, class_id, style, otworz, wysun, czasRozwin, czasZwin, czasOtworz, czasZamknij, nieInicjalizuj)
{
	if (typeof czasRozwin == 'undefined' || czasRozwin < 0) czasRozwin = 25;
	if (typeof czasZwin == 'undefined' || czasZwin < 0) czasZwin = 25;
	if (typeof czasOtworz == 'undefined' || czasOtworz < 0) czasOtworz = 250;
	if (typeof czasZamknij == 'undefined' || czasZamknij < 0) czasZamknij = 500;
	
	var url = unescape(window.location.href.replace(/#.*/, ''));
	var base = window.location.protocol + '//' + window.location.host + window.location.pathname.replace(/[^\/\\]+$/, '');
	var ilosc_class = document.getElementsByClassName(class_id).length;
	var while_ilosc_class=0;
	
	if (style)
	{
		if (style.indexOf(':') < 0)
		{
			if(class_czy_id == "id"){
				document.getElementById(class_id).className += ' ' + style;
			} else if (class_czy_id == "class") {
				document.getElementsByClassName(class_id).className += ' ' + style;
			}
		}
		else
		{
			style = style.replace(/(^\s+|(\s|;)+$)/g, '').split(/\s*;\s*/);
			for (var i = 0; i < style.length; i++)
			{
				style[i] = style[i].split(/\s*:\s*/);
				for (var j = 0,...