KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/markrose/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/markrose/flash-hebrew.html
<html>
<meta http-equiv="content-type" content="text-html; charset=utf-8">


<head><title>Hebrew Flashcards</title></head>





<body bgcolor="#F0F0F0">

<form action="" name="theform">



<script>



// This is a web page for displaying a set of flashcards.

// Copyright (C) 2000 by Mark Rosenfelder ([email protected])

// May be freely used and modified for non-commercial use (for commerical use, write me).

// Original page: http://www.zompist.com/flash.html



// Whether to label the cards or not

hidden = 0;



// An array listing the pictures that make up the cards

cards = new Array( "א",  "ב", "ג",  "ד", "ה",  "ו", "ז", "ח", "ט",  "י", 
			"כ",  "ל",  "מ",  "נ",  "ס",  "ע",  "פ",  "צ", 
			"ק", 
"ר",
"ש",
"ת",
"ך",
"ם",
 "ן",
 "ף", 
"ץ"
   );

cardsName = new Array( "ʔ aleph", "b beth", "g gimel", "d daleth", "h he", "w waw", "z zayin", "ħ heth", "ṭ teth", "y yodh", "k kaf", 

 "l lamedh", "m mem", "n nun", "s samekh", "ʕ ayin",
 "p peh", "ṣ tsade", "q qoph", "r resh", "š shin",  "t taw",
 "-k kaf", "-m mem", "-n nun", "-p peh", "-ṣ tsade" );


vows = new Array("מָ", "מֵ", "מִי", "מֹ", "מוּ", 
	"מַ", "מֶ", "מִ", "מֻ", 
	"מְ", "עֲ", "אֱ", "חֳ" );


vowsName = new Array("mā", "mē", "mī", "mō", "mū", 
	"ma", "me", "mi", "mu", 
	"mə", "ʕă", "ʔĕ", "ħŏ" );


// The last card we were on

thiscard = 0;

// Glyph set

var gset = 0;


// How many cards the user is still working with

ncard = cards.length;



// A function to generate random integers from 0 to (howMany - 1)

function makeRand(howMany) 

{

	theResult = Math.floor((Math.random()*howMany)%howMany)

	return theResult

}



// Display another card

function nextcard()

{

	// Randomly choose a card.  Don't choose the one we had.

	var i = makeRand(ncard);

	while (i == thiscard && ncard > 1)

		i = makeRand(ncard);


	// What exactly are we displaying?
	thiscard = i;

	var disp = "";
	var cheat = "";
	if (gset == 0) {
		disp = cards[thiscard];
		cheat = cardsName[thiscard];
	} else {
		disp = vows[thiscard];
		cheat = vowsName[thiscard];
	}
	
	// Display it
	document.getElementById("card").innerHTML =  disp;

	// Label it, if the user's cheating.
	if (!hidden)
		theform.key.value = cheat;

}



// Turn labelling on or off.

function label()

{
var theform = document.theform;

	if (hidden)

	{

		theform.back.value = "Don't label";

		theform.key.value = gset == 0 ? cardsName[thiscard] : vowsName[thiscard];

		hidden = 0;

	}

	else

	{

		theform.back.value = "Label";		

		theform.key.value = "";

		hidden = 1;

	}

}

var arial = true;

// Toggle the font
function togfont() {

	var d = document.getElementById("card");
	if (d != null) {
		if (arial) 
			d.style.fontFamily = "serif";
		else
			d.style.fontFamily = "Arial";

		arial = !arial;

	}
}

// Change sets
function newset() {

	gset = document.getElementById("whichSet").selectedIndex;

	if (gset == 0)
		ncard = cards.length;
	else
		ncard = vows.length;
		

	nextcard();
}

// Stop displaying the present card.

function forgetme()

{
	// Remove element thiscard.  
	// We don't modify the array.  Instead, we flip the current and last cards,
	// then decrement the usable size of the array.
	var temp = "";

	if (ncard > 1)
	{
		lasti = ncard - 1;

		if (gset == 0) {
			temp = cards[thiscard];
			cards[thiscard] = cards[lasti];
			cards[lasti] = temp;

			temp = cardsName[thiscard];
			cardsName[thiscard] = cardsName[lasti];
			cardsName[lasti] = temp;
		} else {
			temp = vows[thiscard];
			vows[thiscard] = vows[lasti];
			vows[lasti] = temp;

			temp = vowsName[thiscard];
			vowsName[thiscard] = vowsName[lasti];
			vowsName[lasti] = temp;
		}

		ncard = ncard - 1;

		nextcard();
	}
	else
		alert( "This is the last card!" );

}



// Forget what we forgot: start displaying all cards again.

function doall()

{

	ncard = gset == 0 ? cards.length : vows.length;

	alert( "All cards will be shown now." );

}



// Following is the html for the page itself.



</script>


<table width="100%" 
border=0 cellspacing="0" cellpadding="0">

<tr bgcolor="#8080ff"><td><h2> Biblical Hebrew Flashcards</h2>

</td></tr></table>

<center>

	<table border=1>

		<tr bgcolor="white">
		<td width="80" height="80">

		<center><font size='7'><div id="card" style="font-family:'Arial';">א</div></font></center>

		</td>
		</tr>
	</table>



	<br><input type="text" size=10 name="key">



	<p>

	<input type="button" name="next" value="Next card" onclick="nextcard()">&nbsp;&nbsp;&nbsp;&nbsp;

	<input type="button" name="forget" value="Forget" onclick="forgetme()">&nbsp;&nbsp;&nbsp;&nbsp;

	<input type="button" name="reset" value="Reset" onclick="doall()">&nbsp;&nbsp;&nbsp;&nbsp;

	<input type="button" name="back" value="Label" onclick="label()">&nbsp;&nbsp;&nbsp;&nbsp;

	<input type="button" name="back" value="Font" onclick="togfont()">&nbsp;&nbsp;&nbsp;&nbsp;

<p>Which card set? <select id="whichSet" onclick="newset()">
<option value="1" selected="selected">Alphabet</option>
<option value="2">Vowels</option>
</select>

</center>



<table width="100%" 
border=0 cellspacing="0" cellpadding="0">

<tr bgcolor="#8080ff"><td>&nbsp;<br>&nbsp;</td></tr></table>

<font color="#000000">

<h3>Instructions</h3>



This is a page for learning the Hebrew alphabet.  It relies on Javascript. 

<p>The basic idea is to go through the deck randomly (by pressing <b>Next card</b>), until
you can recognize all the glyphs.  Click <b>Forget</b> once you are sure you know a card.  Then it won't be displayed
as you go through the deck, leaving you to concentrate on the ones you don't know yet.
Press <b>Reset</b> to go back to displaying all cards.


<p>Press the <b>Label</b> button to display the name of each glyph.  Leave it on while you're
first learning; when you start to know the glyphs, turn it on only when you're stumped. </a>.
<p><b>Font</b> will toggle between a serif font and Arial. The Arial letters have more distinctive letter shapes.



<p>If you view the source for the page, you can modify it to display other sets of cards.

</font>

<hr>

<center><a href="default.html"><img src="home.gif" alt="Back to Metaverse"></a></center>



</form>

</body>

Anon7 - 2021