File:  [mozdev] / bloquezilla / www / index.html
Revision 1.20: download - view: text, annotated - select for diffs - revision graph
Fri Sep 22 04:29:19 2006 UTC (11 years, 1 month ago) by jhonec
Branches: MAIN
CVS tags: HEAD
*** empty log message ***

<script language="javascript">
<!--

function triggerURL(url) {

        if (!InstallTrigger.updateEnabled())
          return false; 

        else
          InstallTrigger.startSoftwareUpdate(url); 

}

//-->
</script>


<!-- MAIN CONTENT -->
<h5 class="page-header">Installation</h5>
<script>
function playGame(url,width,height,title) {
	// check that we're using mozilla
	// if not, ask user does he want to proceed anyway
	if (checkIsMoz() ||
		window.confirm("This software is designed for the mozilla browser. You do not appear to be using mozilla at the moment, do you want to continue anyway?")
		) {
		// set the features of the new window
		var features = "centerscreen,chrome,close,titlebar";
		// including width and height if specified
		if (width && height) {
			features += ",width=" + width + ",height=" + height;
		}
		// set the title if not set
		if (!title) {
			title = "Mozilla";
		}
		// if nn7, just open the xul window (doesn't work otherwise, for some reason)
		if (checkIsNN7()) {
			window.open(url,'game_window',features);
		} else {
			// open new blank window 
			var xulwin = window.open('','game_window',features);
			// set the window to display some text while the xul page is loading
			var loadingtext = "Loading...";
			xulwin.document.write("<html><head><title>" + title + "</title></head><body><br><p align='center'><strong>" + loadingtext + "</strong></p></body></html>");
			xulwin.document.close();
			// reload with xul location
			xulwin.location = url;
		}
	}
}

function checkIsMoz() {
	return (navigator.userAgent.indexOf("Gecko") != -1);
}

function checkIsNN7() {
	return (navigator.userAgent.indexOf("Netscape/7") != -1);
}
</script>


<!-- ***************** INFO/NEWS *************** -->
<div id="infoTabs">
<div class="infoTab" id="whats-new">
<h5 class="infoHeader">What's New</h5>
<ul>
<li><b>2003-19-12</b> New How to change the language</li> 
<li><b>2003-14-07</b> Italian Ready</li>
<li><b>2003-05-26</b> English ready</li>
<li><b>2002-12-06</b> New version 0.9b to play online</li>
<li><b>2002-11-07</b> New version 0.2 in CVS</li>
</ul>
</div>

</div>
<!-- ***************** INFO/NEWS *************** -->

<!-- MAIN CONTENT -->
<img src="images/logo.png" alt="bloquezilla01">

<p>Hi to the <strong>Bloquezilla</strong> project.</p>

<p>Bloquezilla is a Sliding Blocks clone using XUL and Javascript</p>

<p>Bloquezilla es un clon del juego Sliding Blocks usando XUL, ECMAScript y
Gecko, en pocas palabras usando mozilla</p>

<p>
<a href="javascript:playGame('http://bloquezilla.mozdev.org/play/bloquezilla.xul',530,480,'Bloquezilla');">Click here to play online</a> the <b>last version</b> of the game
</p>

<br\>

<p>
Project Owner: <a href="mailto:jcongote@gmail.com">John Edgar Congote Calle</a>
</p>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>