Skip to content

Instantly share code, notes, and snippets.

@Joaquin6
Created May 23, 2019 04:56
Show Gist options
  • Save Joaquin6/957690a98292a9926a6ef7e9bef2132a to your computer and use it in GitHub Desktop.
Save Joaquin6/957690a98292a9926a6ef7e9bef2132a to your computer and use it in GitHub Desktop.
Equisolve Tech Assessment
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.css">
<!-- DataTables CSS -->
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.css">
<title>Equisolve Tech Assessment</title>
</head>
<body>
<table id="equisolve-table" class="table table-striped">
<thead>
<tr>
<th>Published</th>
<th>Title</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Published</th>
<th>Title</th>
</tr>
</tfoot>
</table>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS, then DataTables JS -->
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.js"></script>
<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"></script>
<script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#equisolve-table').DataTable({
processing: true,
deferRender: true,
order: [[0, 'desc']],
ajax: {
url: 'https://devtest.equisolve-dev.com/',
dataSrc: ''
},
columns: [
{ data: 'published_at' },
{ data: 'title' },
]
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment