<!DOCTYPE html>
<html>
  <head>
    
    <link href="https://cdn.datatables.net/v/dt/jszip-3.10.1/dt-2.1.8/b-3.2.0/b-colvis-3.2.0/b-html5-3.2.0/b-print-3.2.0/cr-2.0.4/r-3.0.3/datatables.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">   
    <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
    <script src="https://cdn.datatables.net/v/dt/jszip-3.10.1/dt-2.1.8/b-3.2.0/b-colvis-3.2.0/b-html5-3.2.0/b-print-3.2.0/cr-2.0.4/r-3.0.3/datatables.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
    
    <meta charset=utf-8 />
    <title>DataTables - JS Bin</title>
  </head>
  <body>
    <div class="container">
      <table id="data" class="display nowrap" width="100%">
        <thead>
          <tr>
            <th>Name</th>
            <th>Position</th>
            <th>Office</th>
            <th>Age</th>
            <th>Start date</th>
            <th>Salary</th>
          </tr>
        </thead>
        <tfoot>
          <tr>
            <th>Name</th>
            <th>Position</th>
            <th>Office</th>
            <th>Age</th>
            <th>Start date</th>
            <th>Salary</th>
          </tr>
        </tfoot>
        <tbody>
          <tr>
            <td><a href='#' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Tiger Nixon Tooltip'>Tiger Nixon</a></td>
            <td>System Architect</td>
            <td>Edinburgh</td>
            <td>61</td>
            <td>2011/04/25</td>
            <td>$3,120</td>
          </tr>
          <tr>
            <td><a href='#' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Garrett Winters Tooltip'>Garrett Winters</td>
            <td>Director</td>
            <td>Edinburgh</td>
            <td>63</td>
            <td>2011/07/25</td>
            <td>$5,300</td>
          </tr>
          <tr>
            <td><a href='#' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Ashton Cox Tooltip'>Ashton Cox</td>
            <td>Technical Author</td>
            <td>San Francisco</td>
            <td>66</td>
            <td>2009/01/12</td>
            <td>$4,800</td>
          </tr>
          <tr>
            <td><a href='#' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Cedric Kelly Tooltip'>Cedric Kelly</td>
            <td>Javascript Developer</td>
            <td>Edinburgh</td>
            <td>22</td>
            <td>2012/03/29</td>
            <td>$3,600</td>
          </tr>
          <tr>
            <td><a href='#' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Jenna Elliott Tooltip'>Jenna Elliott</td>
            <td>Financial Controller</td>
            <td>Edinburgh</td>
            <td>33</td>
            <td>2008/11/28</td>
            <td>$5,300</td>
          </tr>
          <tr>
            <td><a href='#' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Brielle Williamson Tooltip'>Brielle Williamson</td>
            <td>Integration Specialist</td>
            <td>New York</td>
            <td>61</td>
            <td>2012/12/02</td>
            <td>$4,525</td>
          </tr>
          <tr>
            <td><a href='#' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Herrod Chandler Tooltip'>Herrod Chandler</td>
            <td>Sales Assistant</td>
            <td>San Francisco</td>
            <td>59</td>
            <td>2012/08/06</td>
            <td>$4,080</td>
          </tr>
          <tr>
            <td><a href='#' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Rhona Davidson Tooltip'>Rhona Davidson</td>
            <td>Integration Specialist</td>
            <td>Edinburgh</td>
            <td>55</td>
            <td>2010/10/14</td>
            <td>$6,730</td>
          </tr>
          <tr>
            <td><a href='#' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Colleen Hurst Tooltip'>Colleen Hurst</td>
            <td>Javascript Developer</td>
            <td>San Francisco</td>
            <td>39</td>
            <td>2009/09/15</td>
            <td>$5,000</td>
          </tr>
          <tr>
            <td><a href='#' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Sonya Frost Tooltip'>Sonya Frost</td>
            <td>Software Engineer</td>
            <td>Edinburgh</td>
            <td>23</td>
            <td>2008/12/13</td>
            <td>$3,600</td>
          </tr>
          <tr>
            <td><a href='#' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Jena Gaines Tooltip'>Jena Gaines</td>
            <td>System Architect</td>
            <td>London</td>
            <td>30</td>
            <td>2008/12/19</td>
            <td>$5,000</td>
          </tr>
          <tr>
            <td><a href='#' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Quinn Flynn Tooltip'>Quinn Flynn</td>
            <td>Financial Controller</td>
            <td>Edinburgh</td>
            <td>22</td>
            <td>2013/03/03</td>
            <td>$4,200</td>
          </tr>
          <tr>
            <td><a href='#' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Charde Marshall Tooltip'>Charde Marshall</td>
            <td>Regional Director</td>
            <td>San Francisco</td>
            <td>36</td>
            <td>2008/10/16</td>
            <td>$5,300</td>
          </tr>
          <tr>
            <td><a href='#' data-bs-toggle='tooltip' data-bs-placement='top' data-bs-title='Haley Kennedy Tooltip'>Haley Kennedy</td>
            <td>Senior Marketing Designer</td>
            <td>London</td>
            <td>43</td>
            <td>2012/12/18</td>
            <td>$4,800</td>
          </tr>
         </tbody>
      </table>
    </div>
  </body>
</html>
 
body {
  font: 90%/1.45em "Helvetica Neue", HelveticaNeue, Verdana, Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #fff;
}
 
// ===== Initialise Data Tables ====
const table = new DataTable('#data', {
    order: [],
    "pageLength": 5,
    layout: {
        topStart: {
            buttons: ['copy', 'csv', 'excel','colvis']
        }
    }
});
// bootstrap tooltips
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]')
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl))
2 errors 5 warnings
Line 3: 'const' is available in ES6 (use esnext option) or Mozilla JS extensions (use moz).
Line 14: 'const' is available in ES6 (use esnext option) or Mozilla JS extensions (use moz).
Line 14: Missing semicolon.
Line 15: 'const' is available in ES6 (use esnext option) or Mozilla JS extensions (use moz).
Line 15: 'spread/rest operator' is available in ES6 (use esnext option) or Mozilla JS extensions (use moz).
Line 15: 'arrow function syntax (=>)' is available in ES6 (use esnext option) or Mozilla JS extensions (use moz).
Line 15: Missing semicolon.
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers