JSFiddle - React, Tailwind, and code Playground

by Cameron Bernhardt

HTML

<div></div>

JavaScript

var $div = $("div");

var contentDiv = document.createElement("div");
contentDiv.setAttribute("class", "no_content_div");
contentDiv.setAttribute("id", "brief_cal_no_cont_div");

var par1 = document.createElement("p");
par1.innerText = "There is no events";

var par2 = document.createElement("p");
par2.setAttribute("class", "create_butt create_new_task");
par2.setAttribute("id", "create_butt_1");
par2.innerText = "create";

par2.onclick = function (event) {
    event.stopPropagation();
    var $addEventDialog = $('#add_event_dialog');
    showCenterDialog($addEventDialog);
};

contentDiv.appendChild(par1);
contentDiv.appendChild(par2);

$div.append(contentDiv);

function showCenterDialog(eventDialog){
    alert(JSON.stringify(eventDialog));
}