mauzao9
Well-known member
Hello there.
I have been trying to fix my code i have used on a page html that includes a javascript, the thing is on the page in question, the javascript loads, but then bugs xenforo, can't load nothing (alerts/pms), all menus float around after mouse-hover, etc....
The code is:
That on it can be causing it?
I have been trying to fix my code i have used on a page html that includes a javascript, the thing is on the page in question, the javascript loads, but then bugs xenforo, can't load nothing (alerts/pms), all menus float around after mouse-hover, etc....
The code is:
Code:
<html>
<head>
<style>
body {
background-color: #3e94ec;
font-family: "Roboto", helvetica, arial, sans-serif;
font-size: 16px;
font-weight: 400;
text-rendering: optimizeLegibility;
}
div.table-title {
display: block;
margin: auto;
max-width: 500px;
padding:5px;
width: 100%;
}
.table-title h3 {
color: #fafafa;
font-size: 30px;
font-weight: 400;
font-style:normal;
font-family: "Roboto", helvetica, arial, sans-serif;
text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.1);
text-transform:uppercase;
}
/*** Table Styles **/
.table-fill {
background: white;
border-radius:3px;
border-collapse: collapse;
height: 320px;
margin: auto;
max-width: 500px;
padding:5px;
width: 100%;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
animation: float 5s infinite;
}
th {
color:#D5DDE5;;
background:#1b1e24;
border-bottom:4px solid #9ea7af;
border-right: 1px solid #343a45;
font-size:20px;
font-weight: 100;
padding:15px;
text-align:left;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
vertical-align:middle;
}
th:first-child {
border-top-left-radius:3px;
}
th:last-child {
border-top-right-radius:3px;
border-right:none;
}
tr {
border-top: 1px solid #C1C3D1;
border-bottom-: 1px solid #C1C3D1;
color:#666B85;
font-size:16px;
font-weight:normal;
text-shadow: 0 1px 1px rgba(256, 256, 256, 0.1);
}
tr:hover td {
background:#4E5066;
color:#FFFFFF;
border-top: 1px solid #22262e;
border-bottom: 1px solid #22262e;
}
tr:first-child {
border-top:none;
}
tr:last-child {
border-bottom:none;
}
tr:nth-child(odd) td {
background:#EBEBEB;
}
tr:nth-child(odd):hover td {
background:#4E5066;
}
tr:last-child td:first-child {
border-bottom-left-radius:3px;
}
tr:last-child td:last-child {
border-bottom-right-radius:3px;
}
td {
background:#FFFFFF;
padding:10px;
text-align:left;
vertical-align:middle;
font-weight:300;
font-size:17px;
text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.1);
border-right: 1px solid #C1C3D1;
}
td:last-child {
border-right: 0px;
}
th.text-left {
text-align: left;
}
th.text-center {
text-align: center;
}
th.text-right {
text-align: right;
}
td.text-left {
text-align: left;
}
td.text-center {
text-align: center;
}
td.text-right {
text-align: right;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"> </script>
<script>
var people = [];
$(function() {
$.ajax({
url: "http://143.95.99.97:21020/api/players",
dataType: 'jsonp',
success: function(data) {
$.each(data, function(i, e) {
var tblRow = null;
if (e.accountName == null) {
tblRow = "<tr>" + "<td>" + e.name + "</td>" + "<td><sup>None</td>" + "</tr>";
} else {
tblRow = "<tr>" + "<td>" + e.name + "</td>" + "<td>" + e.accountName + "</td>" + "</tr>";
}
$(tblRow).appendTo("#userdata tbody");
});
}
});
});
</script>
</head>
<body>
<div class="wrapper">
<div class="profile">
<table class="table-fill" id="userdata">
<thead>
<th class="text-left">Player Name</th>
<th class="text-left">Account</th>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</body>
</html>
That on it can be causing it?