The Oratsouyts Widget

One of the primary goals of the Oratsouyts Online Project was to create a tool that could be used by the various parish and diocesan websites of the Armenian Church.

Using the Oratsouyts Widget you can embed the Armenian Calendar on your website, such that it can display the day’s feast, its explanation if it has one, and also the readings and corresponding biblical texts.

How to use the Widget

Its simple to add the widget to your website. To add the full widget to a give page, cut and paste the following code into the HTML:

<script src="http://www.oratsouyts.com/javascript/embed.js"></script>  
<div id="oratsouyts-container"></div>

You can view this demo, to see what the widget will load on your page.

Widget Options

All of the following set true by default. These are set as parameters on the remote javascript file. For example:

<script src="http://www.oratsouyts.com/javascript/embed.js?readings=false&visitLink=false"></script>
  • includeDate: Set to false to prevent from the date loading in the header
  • readings: Set to false to prevent from loading Bible reading information
  • bibleContent: Set to false to prevent from loading Bible Content
  • visitLink: Set to false to prevent Orastsouyts link from being generated at bottom

Example

Disabling Bible Readings and or Bible Content can be useful when loading the widget as a single element thats part of a larger page, perhaps in a sidebar. In fact, look at the example on the sidebar of this website.

Styling

For your benefit, the widget isn’t really styled in anyway, so that it can just adopt your site’s CSS. If you want to apply styles for the widget, you can use the following classes.

.o-title
The title which is an h2
.o-date
The date which is in the title
.o-readings
Wrapper for the list of Bible readings
.o-reading-content
Wrapper for the Biblical passages