mne-tools / mne-tools/mne-python

JS inspector error

Open
#12,147 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.5k
Forks
1.6k
Avg merge
1d 6h
Merged PRs (30d)
100

Description

          JS inspector in Safari on macOS says:
[Error] ReferenceError: Can't find variable: $
	Global Code (30_info.html:1323)

The respective line is:

<script type="text/javascript">$(function () { $("time.localized").each(function () { var el = $(this); el.text(new Date(el.attr("datetime")).toLocaleString([], {dateStyle: "medium", timeStyle: "long"})); }); } )</script></p></div>

not sure if related, though!

but it seems as if jQuery is expected but not embedded

Originally posted by @hoechenberger in https://github.com/mne-tools/mne-python/issues/12130#issuecomment-1781572448

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the generated 30_info.html mentioned in the report and inspect how its scripts are assembled and loaded. Reproduce the page in Safari on macOS, then verify that the inspector reports no missing-$ error and that the localized time elements still render correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.