Shadowbox is not defined
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 293
- Forks
- 110
- PR merge metrics
- No merged PRs in 30d
Description
Shadowbox is not defined error when i call Shadowbox.init()
why?
the code:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Documento senza titolo</title>
<script type="text/javascript" src="shadowbox/shadowbox.js"></script>
<link href="shadowbox/shadowbox.css" rel="stylesheet" type="text/css">
</head>
<body>
<a rel="shadowbox" href="promo.jpg">Clicca qui</a>
</body>
</html>
<script language="javascript">
Shadowbox.init();
Shadowbox.open(img, { player: 'iframe' });
</script>
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the HTML example and inspect the browser console and network result for shadowbox/shadowbox.js before Shadowbox.init() runs. Trace why the Shadowbox global is unavailable, then verify the example loads the library and no longer raises the reported ReferenceError when initialization is called.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100