Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jump to content on landing page when scripts are blocked #13

Open
msiism opened this issue Sep 11, 2018 · 3 comments
Open

Jump to content on landing page when scripts are blocked #13

msiism opened this issue Sep 11, 2018 · 3 comments

Comments

@msiism
Copy link

msiism commented Sep 11, 2018

When you visit gobolinux.org with an activated script blocker, you'll see nothing but a black background beneath the navigation bar (no shiny, colorful fade-in intro text and graphics).

Therefore, it would be a good idea to jump right to the content area in such a case.

@BoQsc
Copy link
Contributor

BoQsc commented May 5, 2020

2020 Update

Tested with ScriptBlock Extension for Google Chrome
As mentioned the issue still persist.

After enabling ScriptBlock Extension, the "landing page" which uses JavaScript to draw on canvas, disappears and leaves #intro div element empty and colored in black background.

image

@BoQsc
Copy link
Contributor

BoQsc commented May 5, 2020

Probable Solution Fragment:

put a "no-js" class on your body element, and then remove it with JS at load, and use .no-js in the selector for your CSS

Source: https://stackoverflow.com/questions/4665748/define-css-if-javascript-is-not-enabled/4665765#4665765

Related Study: https://css-tricks.com/snippets/javascript/css-for-when-javascript-is-enabled/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants