CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 00:18:10 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"740105d96d722b184b6d65b51b8761d7"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=IsXH1H0t1kCq62bNt7Pz9RVYN%2FMN1FXexuwyEsYg2e3B9l4%2BxRHcIjqRV0%2B%2BViiYQiqf3X%2BUfPUz%2FQre2KgU3OMTh2UrWBZWdchaUI7n5wKk8%2Fgi7jbVmi55XoaPxLvQjY2XPRJl7YXHTbFYCA1GiREPSiTQkRIbQ9r1No1NPZMWL%2BZSUmMKEdkuho72HXFMhTXH2D53HBu1UV9CBOyjQQcRl099CwUIczIITwb90LiOueuVZbSML8VqUhwa0koRx7qPRNA3dHCEKu3ZMR08lw%3D%3D--IBLm1%2F%2FU%2BKUkwrFO--X8a27xBgU25MQJ2ZVPcg6A%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1134133544.1760228290; Path=/; Domain=github.com; Expires=Mon, 12 Oct 2026 00:18:10 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 12 Oct 2026 00:18:10 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D552:8729A:8BE4E1:B67943:68EAF3C2
Revisions · blah.html · GitHub
Show Gist options
Save simonw/776e2a925973f889cf49ba0f5c679d5e to your computer and use it in GitHub Desktop.
{{ message }}
Instantly share code, notes, and snippets.
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save simonw/776e2a925973f889cf49ba0f5c679d5e to your computer and use it in GitHub Desktop.
Revisions
-
simonw revised this gist
Oct 20, 2024 . No changes.There are no files selected for viewing
-
simonw revised this gist
Oct 20, 2024 . No changes.There are no files selected for viewing
-
simonw revised this gist
Oct 20, 2024 . 1 changed file with 8 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Navigation Bar with Text-Wrap Toggle and Item Count Slider (400px width)</title> <title>Navigation Bar with Text-Wrap Balance</title> <style> body { font-family: Arial, sans-serif; @@ -14,7 +14,7 @@ background-color: #f0f0f0; padding: 10px; margin-bottom: 20px; width: 400px; /* Reduced from 600px to 400px */ width: 400px; box-sizing: border-box; } ul { @@ -23,9 +23,9 @@ margin: 0; } li { display: inline-block; display: inline; margin-right: 10px; margin-bottom: 15px; margin-bottom: 15px; line-height: 40px; } a { text-decoration: none; @@ -69,8 +69,8 @@ <div class="controls"> <div class="control-item"> <label for="item-count">Number of visible items:</label> <input type="range" id="item-count" min="4" max="14" value="14"> <span id="item-count-value">14</span> <input type="range" id="item-count" min="4" max="14" value="13"> <span id="item-count-value">13</span> </div> <div class="control-item"> <label> @@ -88,7 +88,7 @@ function updateVisibleItems(count) { navItems.forEach((item, index) => { item.style.display = index < count ? 'inline-block' : 'none'; item.style.display = index < count ? 'inline' : 'none'; }); } @@ -109,7 +109,7 @@ }); // Initialize with all items visible and default text-wrap updateVisibleItems(14); updateVisibleItems(13); updateTextWrap(); </script> </body> -
simonw created this gist
Oct 20, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,116 @@ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Navigation Bar with Text-Wrap Toggle and Item Count Slider (400px width)</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 20px; } nav { background-color: #f0f0f0; padding: 10px; margin-bottom: 20px; width: 400px; /* Reduced from 600px to 400px */ box-sizing: border-box; } ul { list-style-type: none; padding: 0; margin: 0; } li { display: inline-block; margin-right: 10px; margin-bottom: 15px; } a { text-decoration: none; color: #333; padding: 5px 10px; border-radius: 3px; background-color: #e0e0e0; } .controls { margin-top: 20px; width: 400px; /* Reduced from 600px to 400px to match nav */ } .control-item { margin-bottom: 10px; } #item-count-value { margin-left: 10px; } </style> </head> <body> <nav id="main-nav"> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Services</a></li> <li><a href="#">Products</a></li> <li><a href="#">Blog</a></li> <li><a href="#">Contact</a></li> <li><a href="#">FAQ</a></li> <li><a href="#">Support</a></li> <li><a href="#">Portfolio</a></li> <li><a href="#">Team</a></li> <li><a href="#">Careers</a></li> <li><a href="#">Partners</a></li> <li><a href="#">News</a></li> <li><a href="#">Events</a></li> </ul> </nav> <div class="controls"> <div class="control-item"> <label for="item-count">Number of visible items:</label> <input type="range" id="item-count" min="4" max="14" value="14"> <span id="item-count-value">14</span> </div> <div class="control-item"> <label> <input type="checkbox" id="balance-toggle"> Enable text-wrap: balance </label> </div> </div> <script> const nav = document.getElementById('main-nav'); const toggle = document.getElementById('balance-toggle'); const itemCountSlider = document.getElementById('item-count'); const itemCountValue = document.getElementById('item-count-value'); const navItems = nav.querySelectorAll('li'); function updateVisibleItems(count) { navItems.forEach((item, index) => { item.style.display = index < count ? 'inline-block' : 'none'; }); } function updateTextWrap() { if (toggle.checked) { nav.style.textWrap = 'balance'; } else { nav.style.textWrap = ''; } } toggle.addEventListener('change', updateTextWrap); itemCountSlider.addEventListener('input', function() { const count = parseInt(this.value); itemCountValue.textContent = count; updateVisibleItems(count); }); // Initialize with all items visible and default text-wrap updateVisibleItems(14); updateTextWrap(); </script> </body> </html>
You can’t perform that action at this time.