Skip to content

1. More Examples

In Example 1.1 if you click on the link of the name of Saint or a Reading it redirects you to Holy Trinity website. To prevent this redirection in the <head> section of HTML you can put following JavaScipt:

<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
var showWin = window.open(href, windowname, 'width=600,height=500,resizable=yes,dependent=yes,scrollbars=yes');
showWin.focus();
return false;
}
//-->
</SCRIPT>

Now if you click on the link new window will pop up. See Example 1.2. You can modify size of windows by changing width and height parameters of window.open method. Also you can modify window's view. Check window.open method at the W3Schools website.

In the same example we also disabled output of Troparion by changing code

var tt=1;

to

var tt=0;

Let's modify Example 1.2 in order to see the Lives of Saints in one paragraph. To do this we need change

var ll=1;

to

var ll=2;

See Example 1.3.

If we change

var ll=2;

to

var ll=0;

then the Lives of Saints will disappeared and we can see only today's Scripture Reading. See Example 1.4.