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-nagari.html
<html>
<meta http-equiv="content-type" content="text-html; charset=utf-8">


<head><title>Devanagari 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( "a", "ā", "i", "ī", "u", "ū", "ṛ", "e", "ai", "o", "au", 

 "ka", "kha", "ga", "gha", "ṅa",
 "ca", "cha", "ja", "jha", "ña", 
 "ṭa", "ṭha", "ḍa", "ḍha", "ṇa", 
 "ta", "tha", "da", "dha", "na", 
 "pa", "pha", "ba", "bha", "ma", 

 "ya", "ra", "la", "va", "śa", "ṣa", "sa", "ha" );



// The last card we were on

thiscard = 0;



// How many cards the user is still working with

ncard = cards.length;



// A function to build the name of the file that displays a card.

// Change this if you want to use jpegs instead, or another directory, etc.

function cardname()

{

	return "illo/" + cards[thiscard] + ".gif";

}



// 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)

		i = makeRand(ncard);


	// Display it.

	thiscard = i;

	document.getElementById("card").innerHTML = cards[thiscard];


	// Label it, if the user's cheating.

	if (!hidden)

		theform.key.value = cardsName[thiscard];

}



// Turn labelling on or off.

function label()

{
var theform = document.theform;

	if (hidden)

	{

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

		theform.key.value = cardsName[thiscard];

		hidden = 0;

	}

	else

	{

		theform.back.value = "Label";		

		theform.key.value = "";

		hidden = 1;

	}

}



// 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.



	if (ncard > 1)

	{

		lasti = ncard - 1;

		temp = cards[thiscard];

		cards[thiscard] = cards[lasti];

		cards[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 = cards.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="#ff9933"><td><h2> Devanāgarī Flashcards</h2>

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

<center>

	<table border=1><tr><td bgcolor="white">

		<center><font size='7'><div id="card">अ</div></font></center>

		<input type="text" size=20 name="card">


	</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;

</center>



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

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

<font color="#000000">

<h3>Instructions</h3>



This is a page for learning Devanāgarī.  You'll need Javascript to run it.  (You
probably have it already.)  This page only teaches the basic symbols; combinations are not covered.



<p>The basic idea is to go through the deck randomly (by pressing <b>Next card</b>), until

you can recognize all the glyphs.  



<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>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>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