• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingGrid Demo</title>
    7. <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    8. <style>
    9. html,
    10. body {
    11. height: 100%;
    12. width: 100%;
    13. margin: 0;
    14. padding: 0;
    15. }
    16.  
    17. zing-grid[loading] {
    18. height: 686px;
    19. }
    20. </style>
    21. </head>
    22.  
    23. <body>
    24. <zing-grid caption="Current Pipelines">
    25. <zg-data data='[
    26. {
    27. "status": "success",
    28. "branch": "dev",
    29. "username": "chocolateRainGuy",
    30. "commitId": "1582393",
    31. "runTime": "4:52",
    32. "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
    33. },
    34. {
    35. "status": "failed",
    36. "branch": "master",
    37. "username": "jennaMarbles",
    38. "commitId": "32532315",
    39. "runTime": "0:52",
    40. "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
    41. },
    42. {
    43. "status": "success",
    44. "branch": "master",
    45. "username": "starWarsKid",
    46. "commitId": "cd34123as",
    47. "runTime": "4:52",
    48. "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
    49. },
    50. {
    51. "status": "pending",
    52. "branch": "ci-integration",
    53. "username": "dramticLookGopher",
    54. "commitId": "aaf1234s",
    55. "runTime": "1:23",
    56. "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
    57. },
    58. {
    59. "status": "failed",
    60. "branch": "dev-unit-tests",
    61. "username": "leeroyJenkins",
    62. "commitId": "2345623",
    63. "runTime": "0:09",
    64. "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
    65. },
    66. {
    67. "status": "success",
    68. "branch": "master",
    69. "username": "britneySpears",
    70. "commitId": "cd34123as",
    71. "runTime": "4:52",
    72. "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
    73. },
    74. {
    75. "status": "failed",
    76. "branch": "master",
    77. "username": "numaNumaGuy",
    78. "commitId": "62562345",
    79. "runTime": "0:52",
    80. "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
    81. }
    82. ]'></zg-data>
    83. <zg-colgroup>
    84. <zg-column index="status"></zg-column>
    85. <zg-column index="branch"></zg-column>
    86. <zg-column index="runTime"></zg-column>
    87. <zg-column index="commitId"></zg-column>
    88. <zg-column index="avatar" type="image" content-width="75"></zg-column>
    89. <zg-column index="username"></zg-column>
    90. <zg-column type="custom">
    91. <select>
    92. <option value="1">Restart Build</option>
    93. <option value="2">Reset Cache</option>
    94. </select>
    95. </zg-column>
    96. </zg-colgroup>
    97. </zing-grid>
    98. <script>
    99. ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']); // window:load event for Javascript to run after HTML
    100. // because this Javascript is injected into the document head
    101. window.addEventListener('load', () => {
    102. // Javascript code to execute after DOM content
    103. });
    104. </script>
    105. </body>
    106.  
    107. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingGrid Demo</title>
    7. <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    8. </head>
    9.  
    10. <body>
    11. <zing-grid caption="Current Pipelines">
    12. <zg-data data='[
    13. {
    14. "status": "success",
    15. "branch": "dev",
    16. "username": "chocolateRainGuy",
    17. "commitId": "1582393",
    18. "runTime": "4:52",
    19. "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
    20. },
    21. {
    22. "status": "failed",
    23. "branch": "master",
    24. "username": "jennaMarbles",
    25. "commitId": "32532315",
    26. "runTime": "0:52",
    27. "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
    28. },
    29. {
    30. "status": "success",
    31. "branch": "master",
    32. "username": "starWarsKid",
    33. "commitId": "cd34123as",
    34. "runTime": "4:52",
    35. "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
    36. },
    37. {
    38. "status": "pending",
    39. "branch": "ci-integration",
    40. "username": "dramticLookGopher",
    41. "commitId": "aaf1234s",
    42. "runTime": "1:23",
    43. "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
    44. },
    45. {
    46. "status": "failed",
    47. "branch": "dev-unit-tests",
    48. "username": "leeroyJenkins",
    49. "commitId": "2345623",
    50. "runTime": "0:09",
    51. "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
    52. },
    53. {
    54. "status": "success",
    55. "branch": "master",
    56. "username": "britneySpears",
    57. "commitId": "cd34123as",
    58. "runTime": "4:52",
    59. "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
    60. },
    61. {
    62. "status": "failed",
    63. "branch": "master",
    64. "username": "numaNumaGuy",
    65. "commitId": "62562345",
    66. "runTime": "0:52",
    67. "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
    68. }
    69. ]'></zg-data>
    70. <zg-colgroup>
    71. <zg-column index="status"></zg-column>
    72. <zg-column index="branch"></zg-column>
    73. <zg-column index="runTime"></zg-column>
    74. <zg-column index="commitId"></zg-column>
    75. <zg-column index="avatar" type="image" content-width="75"></zg-column>
    76. <zg-column index="username"></zg-column>
    77. <zg-column type="custom">
    78. <select>
    79. <option value="1">Restart Build</option>
    80. <option value="2">Reset Cache</option>
    81. </select>
    82. </zg-column>
    83. </zg-colgroup>
    84. </zing-grid>
    85. </body>
    86.  
    87. </html>
    1. html,
    2. body {
    3. height: 100%;
    4. width: 100%;
    5. margin: 0;
    6. padding: 0;
    7. }
    1. // window:load event for Javascript to run after HTML
    2. // because this Javascript is injected into the document head
    3. window.addEventListener('load', () => {
    4. // Javascript code to execute after DOM content
    5. });