JSFiddle - React, Tailwind, and code Playground
by rasikaceg
HTML
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="crawler_css.css" />
</head>
<body>
<h1><b>Crawler Configuration</b></h1>
<p>Required fields are followed by <strong><abbr title="required">*</abbr></strong>
</p>
<center>
<label for="domain"> <span>Domain: </span>
</label>
<select name="DomainName" id="Domain_name" required="" />
<option value="Music">Music</option>
<option value="Application">Application</option>
<option value="News">News</option>
<option value="Weather">Weather</option>
<option value="Phone">Phone</option>
<option value="Conatcts">Contacts</option>
<option value="Message">Message</option>
</select> <strong><abbr title="required">*</abbr></strong>
<button onclick="load();">Submit</button>
</center>
<form name="form2" action="http://127.0.0.1:1213/CrawlerInfo" method="post">
<fieldset>
<legend><b>Websites for Selected Domain</b>
</legend>
<div id="table_container"></div>
<input type="submit" value="submit" />
</fieldset>
</form>
</body>
</html>
<script type='text/javascript'>
//<![CDATA[
function load() {
var str = document.getElementsByName("DomainName")[0].value
//alert(str);
if (typeof window.ActiveXObject != 'undefined') {
xmlDoc = new ActiveXObject("Microsoft.XMLHTTP");
xmlDoc.onreadystatechange = process;
} else {
xmlDoc = new XMLHttpRequest();
xmlDoc.onload = process;
}
xmlDoc.open("GET", "/getallusers/" + str, true);
xmlDoc.send(null);
}
function process() {
if (xmlDoc.readyState != 4) return;
createTable(xmlDoc.responseText);
}
function myFunction() {
var input_domain =...
CSS
<style> h1 {
margin-top: 0;
}
form {
background-color:#F5F5F5;
margin: 0 auto;
width : auto;
padding: 1em;
}
label {
font-weight: bold;
display: block;
width: 100px;
float: left;
text-align:left;
color: #0B0B61;
font-family:'Oswald';
font-size: 20px;
text-decoration: none;
}
legend {
font-weight: bold;
display: block;
color: #0B0B61;
font-family:'Oswald';
font-size: 20px;
text-decoration: none;
}
input {
display:inline-block;
width:200px;
text-align:left;
margin:auto;
}
fieldset {
width: auto;
-moz-box-sizing: border-box;
box-sizing: border-box;
margin : 0;
border: 1px solid #0B0B61;
}
p {
font-family:'Oswald';
color: #685F5F;
}
body {
border : 3px solid #0B0B61;
border-radius: 1em;
background: #fafafa;
color: #444;
font: 100%/30px'Helvetica Neue', helvetica, arial, sans-serif;
text-shadow: 0 1px 0 #fff;
}
strong {
font-weight: bold;
}
em {
font-style: italic;
}
table {
background: #f5f5f5;
border-collapse: separate;
box-shadow: inset 0 1px 0 #fff;
font-size: 12px;
line-height: 20px;
margin: 30px auto;
text-align: left;
width: 800px;
}
th {
background: linear-gradient(#777, #444);
border-left: 1px solid #555;
border-right: 1px solid #777;
border-top: 1px solid #555;
border-bottom: 1px solid #333;
box-shadow: inset 0 1px 0 #999;
color: #fff;
font-weight: bold;
padding: 10px 15px;
position: relative;
text-shadow: 0 1px 0 #000;
text-align: right;
}
td {
padding: 0.25rem;
text-align: left;
border: 1px solid #ccc;
}
tbody tr:hover {
background: #C0C0C0;
}
ul {
margin : 15px;
padding: 0;
list-style: square;
color: #0B0B61;
}
input[type=submit] {
width:100px;
margin-left: 100px;
background-color: #ccc;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius:6px;
...