JSFiddle - React, Tailwind, and code Playground

by boazmier

HTML

<div id=header></div>
<div id=contain>
    <h1>welcome to My first Web App</br>
        Please enter your name below and press proceed</h1>
    <form>
        <input type="text" id="name" value="full name" name="name"/>
    </form>
    <div class="awesome">proceed</div><br/>
    <div class="vi"></div>
    <div class="vi2"></div>
</div>

CSS

#header {
    background-color: #4D4D4D;
    position: absolute;
    width: 90%;
    height: 5%;
    top: 0;
    left: 80px;
    border-radius: 0 0 10px 10px;
    box-shadow: 5px 5px 5px;
}

#contain {
    background: none repeat scroll 0 0 #fff;
    border-left: 1px solid #F2F2F2;
    border-right: 1px solid #F2F2F2;
    height: auto;
    margin: 0 auto;
    padding: 0 10px 30px;
    position: relative;
    width: 80%;
    top:30px;
    box-shadow: 5px 5px 5px #ccc;
    border-radius: 10px 10px 10px 10px;
    text-transform:capitalize;
}

#footer {
    background-color: #4D4D4D;
    position: absolute;
    width: 90%;
    height: 5%;
    bottom: 0;
    left: 80px;
    border-radius: 10px 10px 0 0;
    box-shadow: 5px 5px 5px;
}

h1{
    text-align: center;
    text-transform: capitalize;
}

body{
    background-color: #F8F7FF;
}

.awesome{
    background: #222;
    display: inline-block;
    padding: 5px 10px 6px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    line-height: 1;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-box-shadow: 0 1px 3px #999;
    -webkit-box-shadow: 0 1px 3px #999;
    text-shadow: 0 -1px 1px #222;
    border-bottom: 1px solid #222;
    position: relative;
    cursor: pointer;
    margin-left:49%;
}

.awesome {
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
border-bottom: 1px solid rgba(0,0,0,0.25);
}

input{
    text-align: left;
    border: 5px solid white;
    -webkit-box-shadow:
        inset 0 0 8px  rgba(0,0,0,0.1),
        0 0 16px rgba(0,0,0,0.1);
    -moz-box-shadow:
        inset 0 0 8px  rgba(0,0,0,0.1),
        0 0 16px rgba(0,0,0,0.1);
    box-shadow:
        inset 0 0 8px  rgba(0,0,0,0.1),
        0 0 16px rgba(0,0,0,0.1);
    padding: 15px;
    background: rgba(255,255,255,0.5);
    margin: 0 0 10px 0;
    margin-left:45%;
    text-transform: capitalize;
}



.vi {
    background-color:...

JavaScript

$(document).ready(function () {
    $("input").focus(function () {
        $(this).css('outline-color', '#559FFF');
        $(this).blur(function () {
            $(this).css("outline-color", "#FF0000");
        });
    });
    $("input").click(function () {
        var value = $(this).val(function () {
            $(this).html("");
        });
    });
    $(".awesome").click(function () {
        var toStore = $("input[name=name]").val();
        if (!/^[A-Za-z]+ [A-Za-z]+$/.test(toStore)) {
            alert("You Must Put a Valid Name");
        } else {
            $("#contain").children().fadeOut(1000);
            $("#contain").delay(1000).queue(function () {
                $("#contain").append("<p>Welcome to My Quiz : " + toStore + "</br>" +
                    "Youll Get 10 Questions To Answer </br> " +
                    "Here Is the First One:</p>");

                var allQuestions = {
                    outquestions: {
                        question1: {    quest: "What number was Michel Jorden?",
                            choices: ["22", "32", "23", "5"],
                            correctAnswer: "23",
                            name: "1"},
                        question2: {    quest: "what contries are with the border of israel?",
                            choices: ["eygpt,iraq syria and lebanon", "jordan iraq iran and lebanon", "eygpt,iraq kuwiet and lebanon", "eygpt lebanon jordan and syria"],
                            correctAnswer: "eygpt lebanon jordan and syria",
                            name: "2"},
                        question3: {    quest: "who was the lead singer of queen?",
                            choices: ["jhon lenon", "freddie mercury", "neil young", "bob dylan"],
                            correctAnswer: "freddie mercury",
                            name: "3"},
                        question4: {    quest: "the island australia once was belong to?",
                            choices: ["UK", "US",...