Advertisement
Guest User

Untitled

a guest
May 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. var data = [
  2.  
  3. {
  4. "id": 1,
  5. "firstName": "Jan",
  6. "lastName": "Kowalski",
  7. "dateOfBirth": "1.7.1990 11:35",
  8. "company": "XSolve",
  9. "note": 90
  10. },
  11. {
  12. "id": 4,
  13. "firstName": "Justyna",
  14. "lastName": "Kowalska",
  15. "dateOfBirth": "4.02.1976 14:37",
  16. "company": "XSolve",
  17. "note": 91
  18. },
  19. {
  20. "id": 2,
  21. "firstName": "Krzysztof",
  22. "lastName": "Krawczyk",
  23. "dateOfBirth": "28.10.1950 2:15",
  24. "company": "Chilid",
  25. "note": 27
  26. },
  27. {
  28. "id": 3,
  29. "firstName": "Bogusław",
  30. "lastName": "Linda",
  31. "dateOfBirth": "03.01.1963 23:10",
  32. "company": "XSolve",
  33. "note": 50
  34. },
  35. {
  36. "id": 5,
  37. "firstName": "Krzysztof",
  38. "lastName": "Kononowicz",
  39. "dateOfBirth": "10.10.1910 18:00",
  40. "company": "Chilid",
  41. "note": 77
  42. },
  43. {
  44. "id": 6,
  45. "firstName": "Maryla",
  46. "lastName": "Rodowicz",
  47. "dateOfBirth": "29.02.1936 11:35",
  48. "company": "XSolve",
  49. "note": 8
  50. },
  51. {
  52. "id": 7,
  53. "firstName": "Edyta",
  54. "lastName": "Górniak",
  55. "dateOfBirth": "14.11.1972 06:35",
  56. "company": "XSolve",
  57. "note": 25
  58. },
  59. {
  60. "id": 8,
  61. "firstName": "Dawid",
  62. "lastName": "Podsiadło",
  63. "dateOfBirth": "23.05.1993 16:15",
  64. "company": "Chilid",
  65. "note": 19
  66. },
  67. {
  68. "id": 9,
  69. "firstName": "Elvis",
  70. "lastName": "Presley",
  71. "dateOfBirth": "09.01.1935 01:35",
  72. "company": "XSolve",
  73. "note": 8
  74. },
  75. ];
  76.  
  77. document.addEventListener( 'DOMContentLoaded', function () {
  78. var test = new am.table( document.getElementById( "table-container" ), data, 5, 1, document.getElementById( "pagination-container" ) );
  79. } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement