Skip to content

Instantly share code, notes, and snippets.

@mjradwin
Last active April 14, 2026 13:28
Show Gist options
  • Select an option

  • Save mjradwin/8a89a1fc54fbc65651639ab0a8f82973 to your computer and use it in GitHub Desktop.

Select an option

Save mjradwin/8a89a1fc54fbc65651639ab0a8f82973 to your computer and use it in GitHub Desktop.
shabbat parsha only
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="UTF-8">
<title>Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="results"></div>
<script>
document.addEventListener('DOMContentLoaded', function() {
fetch("https://www.hebcal.com/shabbat?cfg=json&geonameid=5128581&leyning=off")
.then(response => response.json())
.then(data => {
const item = data.items.find(item => item.category === 'parashat');
if (item) {
document.getElementById('results').innerHTML = '<a href="' + item.link + '">' + item.title + '</a>';
}
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment