{"__browser":{"country":"US","device":"unknown_device","mobile":false,"name":"unknown browser","platform":"unknown_platform","version":"0"},"__constants":{},"__CPDATA":{"domain_iframe":"https://cdpn.io","environment":"production","host":"codepen.io","iframe_allow":"accelerometer *; ambient-light-sensor *; camera *; display-capture *; encrypted-media *; geolocation *; gyroscope *; microphone *; midi *; payment *; vr *; web-share *; serial *; xr-spatial-tracking *","iframe_sandbox":"allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups-to-escape-sandbox allow-popups allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation"},"__graphql":{"data":{"data":{"sessionUser":{"id":"VoDkNZ","name":"Captain Anonymous","title":"Captain Anonymous","avatar":"https://assets.codepen.io/t-1/user-default-avatar.jpg?format=auto&version=0","currentContext":{"id":"VoDkNZ","title":"Captain Anonymous","name":"Captain Anonymous","avatar":"https://assets.codepen.io/t-1/user-default-avatar.jpg?format=auto&version=0","username":"anon","__typename":"User"},"currentTeamId":null,"username":"anon","admin":false,"anon":true,"pro":false,"verified":false,"featureFlags":[],"teams":[],"__typename":"User"}}},"url":"https://codepen.io/graphql","api":"cprails"},"__user":{"anon":true,"base_url":"/anon/","cohorts":[],"current_team_hashid":null,"current_team_id":0,"hashid":"VoDkNZ","id":1,"itemType":"user","name":"Captain Anonymous","paid":false,"tier":0,"username":"anon","created_at":null,"email_verified":null,"collections_count":0,"collections_private_count":0,"followers_count":0,"followings_count":0,"pens_count":0,"pens_private_count":0,"projects_count":0,"projects_private_count":0},"__firebase":{"config":{"apiKey":"AIzaSyBgLAe7N_MdFpuVofMkcQLGwwhUu5tuxls","authDomain":"codepen-store-production.firebaseapp.com","databaseURL":"https://codepen-store-production.firebaseio.com","disabled":false,"projectId":"codepen-store-production"},"token":"eyJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJodHRwczovL2lkZW50aXR5dG9vbGtpdC5nb29nbGVhcGlzLmNvbS9nb29nbGUuaWRlbnRpdHkuaWRlbnRpdHl0b29sa2l0LnYxLklkZW50aXR5VG9vbGtpdCIsImNsYWltcyI6eyJvd25lcklkIjoiVm9Ea05aIiwiYWRtaW4iOmZhbHNlfSwiZXhwIjoxNzM2OTE3MjEzLCJpYXQiOjE3MzY5MTM2MTMsImlzcyI6ImZpcmViYXNlLWFkbWluc2RrLThva3lsQGNvZGVwZW4tc3RvcmUtcHJvZHVjdGlvbi5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInN1YiI6ImZpcmViYXNlLWFkbWluc2RrLThva3lsQGNvZGVwZW4tc3RvcmUtcHJvZHVjdGlvbi5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInVpZCI6IlZvRGtOWiJ9.LOJzPwDI4HsCv7eyIpozlmWuv2JABtrsHm65-1ezwcgY9gpoPiyBTBAUj_yGQE7OavFvlOFtSltvg-1mIxynL0uK5UzJ08mN4zA2vGEZ-bntJUOIiyVdF8zNGEyQMAl1cjsHutr_1JUOxFgGa24qXEz-C5kLRwvhl53oEFrxLpRXngAS3HhhqzAertc7sn3XGDCco5YnER-_KjVME4gcYoOGPvebeRfHWA-7uhbj6D0LJLkJSPZ6v4QKw3Zb74lyWv7lWMu4kRH83ieyFEvPW8HaTYgmHHLm4uIsTvmS0-VXMRfwb5kNVZSGahSvbbvjv9SME6l4ubUrixzT3yCTeA"},"__pay_stripe_public_key":"pk_live_2GndomDfiklqpSNQn8FrGuwZSMIMzha7DkLJqlYe7IR0ihKAlKdiHg68JJc5eVPt68rzAjzAAVXcUwjySHRCsgjQQ00gtRBUFNH","__pay_braintree_env":"production","__item":"{\"id\":74146615,\"user_id\":1616030,\"html\":\"<section class=\\\"section\\\">\\n<div class=\\\"w-richtext\\\">\\n\\n \\n<table>\\n <thead>\\n <tr>\\n <th>Feature \\/ Platform<\\/th>\\n <th>AlphaOne<\\/th>\\n <th>BetaSphere<\\/th>\\n <th>GammaTech<\\/th>\\n <th>DeltaWave<\\/th>\\n <th>EpsilonBase<\\/th>\\n <th>ZetaFlow<\\/th>\\n <th>EtaField<\\/th>\\n <th>ThetaZone<\\/th>\\n <th>IotaStream<\\/th>\\n <th>KappaPort<\\/th>\\n <\\/tr>\\n <\\/thead>\\n <tbody>\\n <tr>\\n <td>Real-time Analytics<\\/td>\\n <td>Yes<\\/td>\\n <td>No<\\/td>\\n <td>Yes<\\/td>\\n <td>No<\\/td>\\n <td>Yes<\\/td>\\n <td>No<\\/td>\\n <td>Yes<\\/td>\\n <td><svg>...<\\/svg><\\/td>\\n <td>No<\\/td>\\n <td>Yes<\\/td>\\n <\\/tr>\\n <tr>\\n <td>Cloud Integration<\\/td>\\n <td>No<\\/td>\\n <td>Yes<\\/td>\\n <td>No<\\/td>\\n <td><svg>...<\\/svg><\\/td>\\n <td>No<\\/td>\\n <td>Yes<\\/td>\\n <td>No<\\/td>\\n <td>Yes<\\/td>\\n <td>No<\\/td>\\n <td><svg>...<\\/svg><\\/td>\\n <\\/tr>\\n\\n <\\/tbody>\\n<\\/table>\\n\\n\\n\\n\\n\\n\\n\\n \\n<\\/div>\\n<\\/section>\",\"css\":\"\\ntable {\\n border-collapse: collapse;\\n width: 100%;\\n}\\n\\nth, td {\\n border: 1px solid #ccc; \\/* Change color as needed *\\/\\n text-align: left;\\n padding: 8px;\\n}\\n\\nth {\\n background-color: #f2f2f2; \\/* Gives a distinct look to header cells *\\/\\n}\\n\\n\\n\\/* Initially hide the mobile tables container *\\/\\n.mobile-tables-container {\\n display: none;\\n}\\n\\n\\/* Hide the original table on mobile *\\/\\n@media (max-width: 991px) { \\/* Adjust the breakpoint as needed *\\/\\n .desktop-table {\\n display: none;\\n }\\n\\n .mobile-tables-container {\\n display: block;\\n }\\n}\\n\\n\\/* Show the original table on desktop *\\/\\n@media (min-width: 992px) {\\n .mobile-tables-container {\\n display: none;\\n }\\n\\n .desktop-table {\\n display: table;\\n }\\n}\\n\",\"js\":\"document.addEventListener('DOMContentLoaded', function() {\\n const tables = document.querySelectorAll('.w-richtext table');\\n\\n tables.forEach(originalTable => {\\n \\/\\/ Clone the original table\\n const clonedTable = originalTable.cloneNode(true);\\n\\n \\/\\/ Create a container for the mobile-friendly tables\\n const mobileTablesContainer = document.createElement('div');\\n mobileTablesContainer.className = 'mobile-tables-container';\\n\\n \\/\\/ Extract headers\\n const headers = Array.from(originalTable.querySelectorAll('thead th')).map(th => th.textContent);\\n\\n \\/\\/ Process each row in the cloned table\\n Array.from(clonedTable.querySelectorAll('tbody tr')).forEach(row => {\\n const mobileTable = document.createElement('table');\\n mobileTable.className = 'mobile-table';\\n\\n \\/\\/ For each cell in the row, create a new row in the mobile table with the header and the cell data\\n Array.from(row.cells).forEach((cell, index) => {\\n const newRow = mobileTable.insertRow();\\n const headerCell = newRow.insertCell();\\n headerCell.textContent = headers[index];\\n const dataCell = newRow.insertCell();\\n dataCell.textContent = cell.textContent;\\n });\\n\\n mobileTablesContainer.appendChild(mobileTable);\\n });\\n\\n \\/\\/ Hide the original table on mobile\\n originalTable.classList.add('desktop-table');\\n\\n \\/\\/ Insert the mobile tables container after the original table\\n originalTable.parentNode.insertBefore(mobileTablesContainer, originalTable.nextSibling);\\n });\\n});\\n\",\"html_pre_processor\":\"none\",\"css_pre_processor\":\"scss\",\"js_pre_processor\":\"none\",\"html_classes\":\"\",\"css_starter\":\"neither\",\"js_library\":null,\"created_at\":\"2024-04-02T23:07:21.313Z\",\"updated_at\":\"2024-04-02T23:42:55.047Z\",\"title\":\"Responsive Table Test\",\"description\":\"\",\"slug_hash\":\"YzMYWMy\",\"head\":\"\",\"private\":true,\"slug_hash_private\":\"b80e85184997a7a82e36e7124bcbc211\",\"has_animation\":false,\"team_id\":0,\"css_prefix\":\"neither\",\"template\":false,\"parent_id\":0,\"comments_count\":0,\"custom_screenshot_filename\":null,\"loves_count\":0,\"pick\":false,\"popularity_score\":0,\"views_count\":0,\"pick_visible_at\":null,\"cpid\":\"018ea111-2d61-790a-81de-f1d7e8ee44bb\",\"is_new_editor_pen\":false,\"protected\":false,\"access\":\"Private\",\"pen_hash\":null,\"hashid\":\"YzMYWMy\"}"}