/shabbat-guard

A shabbat guardian for your website

Primary LanguageJavaScriptApache License 2.0Apache-2.0

#Shabbat-guardian

"Remember the sabbath day, to keep it holy.
Six days shalt thou labour, and do all thy work,
But the seventh day is the sabbath of the Lord thy God:
in it thou shalt not do any work, thou, nor thy son, nor thy daughter, thy manservant, nor thy maidservant, nor thy cattle, nor thy stranger that is within thy gates"

Framework support

  • ReactJS
  • VueJS
  • Vanilla

Features

Once the lib understand that the time is "shabbat", you can do one of the following:

  1. Redirect to another url
  2. Present another page
    1. Vanilla - pass HTML string
    2. React - pass component
    3. Vue - TBA
  3. Present a message ontop of white page
  4. If none of the above was passed -> present white page

TODO

  • Create React handler
  • Create vanilla handler
  • Fix date calculator (is-it-shabbat.js)
  • Test everything 😎