google / skywater-pdk

Open source process design kit for usage with SkyWater Technology Foundry's 130nm node.
https://skywater-pdk.rtfd.io
Apache License 2.0
2.95k stars 384 forks source link

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

Open shirriff opened 11 months ago

shirriff commented 11 months ago

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

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

adithyasunil26 commented 6 months ago

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.