0
Under review

Editing text display of Shabbat times

wplove 8 years ago updated by Michael J. Radwin 8 years ago 1

I'm using the following javascript to display shabbat times on my website:

<script type="text/javascript" charset="utf-8"
src="//www.hebcal.com/shabbat/?geo=geoname&geonameid=5128581&m=50&cfg=j&tgt=_top">
</script>


I want to change the display text, however, but don't know how to do it.

For example, I want to change

  • Candle lighting: 8:07pm on Friday, 15 Jul 2016
  • This week's Torah portion is Parashat Chukat
  • Havdalah (50 min): 9:14pm on Saturday, 16 Jul 2016

to:

Is there a way of just generating the times without any of the other text? Or separating the text into distinct sections that I can hide or display? Apologies if you've answered this elsewhere-I'm a bit new to coding API's.

Under review

You can use the JSON API to customize the response. You'll have to write a little bit of JavaScript yourself. Here's an example:


https://gist.github.com/mjradwin/d0b1e8096184c0452c7d6ff651fa85ad