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

Docs: search fails with "Please activate javaScript" #433

Open
shirriff opened this issue Oct 9, 2023 · 1 comment
Open

Docs: search fails with "Please activate javaScript" #433

shirriff opened this issue Oct 9, 2023 · 1 comment

Comments

@shirriff
Copy link

shirriff commented Oct 9, 2023

Expected Behavior

The SkyWater-PDK search page should work without errors.

Actual Behavior

The page displays "Please activate JavaScript to enable the search functionality."
The console shows errors:

search.html:173 Uncaught SyntaxError: Unexpected identifier 'versions'
search.html?q=GDSII:2764 Uncaught ReferenceError: $ is not defined
    at search.html?q=GDSII:2764:34

The problem appears to be this line of the search.html page, which has two quotation marks instead of one:
var json_loc = ""versions.json"",

Steps to Reproduce the Problem

  1. Go to the search page https://skywater-pdk.readthedocs.io/en/main/search.html

Specifications

  • Version: Chrome Version 117.0.5938.149 (Official Build) (arm64)
  • Platform: Macbook Air

The problem also happens on Safari and on my phone, so it's not a browser issue.

@adithyasunil26
Copy link

The problem actually seems to be at the $('#fallback').hide(); command in the script tag in the div with id="fallback". The console logs that it can't find the variable. I think this is a jQuery issue, as the errors seem to be resolved when I included jQuery through Google CDN on a local copy of the webpage.

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