Annotation of bloquezilla/www/index.html, revision 1.6

1.6     ! jhonec      1: <script language="javascript">
        !             2: <!--
        !             3: 
        !             4: function triggerURL(url) {
        !             5: 
        !             6:         if (!InstallTrigger.updateEnabled())
        !             7:           return false; 
        !             8: 
        !             9:         else
        !            10:           InstallTrigger.startSoftwareUpdate(url); 
        !            11: 
        !            12: }
        !            13: 
        !            14: //-->
        !            15: </script>
        !            16: 
        !            17: 
        !            18: <!-- MAIN CONTENT -->
        !            19: <h5 class="page-header">Installation</h5>
        !            20: <script>
        !            21: function playGame(url,width,height,title) {
        !            22:        // check that we're using mozilla
        !            23:        // if not, ask user does he want to proceed anyway
        !            24:        if (checkIsMoz() ||
        !            25:                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?")
        !            26:                ) {
        !            27:                // set the features of the new window
        !            28:                var features = "centerscreen,chrome,close,titlebar";
        !            29:                // including width and height if specified
        !            30:                if (width && height) {
        !            31:                        features += ",width=" + width + ",height=" + height;
        !            32:                }
        !            33:                // set the title if not set
        !            34:                if (!title) {
        !            35:                        title = "Mozilla";
        !            36:                }
        !            37:                // if nn7, just open the xul window (doesn't work otherwise, for some reason)
        !            38:                if (checkIsNN7()) {
        !            39:                        window.open(url,'game_window',features);
        !            40:                } else {
        !            41:                        // open new blank window 
        !            42:                        var xulwin = window.open('','game_window',features);
        !            43:                        // set the window to display some text while the xul page is loading
        !            44:                        var loadingtext = "Loading...";
        !            45:                        xulwin.document.write("<html><head><title>" + title + "</title></head><body><br><p align='center'><strong>" + loadingtext + "</strong></p></body></html>");
        !            46:                        xulwin.document.close();
        !            47:                        // reload with xul location
        !            48:                        xulwin.location = url;
        !            49:                }
        !            50:        }
        !            51: }
        !            52: 
        !            53: function checkIsMoz() {
        !            54:        return (navigator.userAgent.indexOf("Gecko") != -1);
        !            55: }
        !            56: 
        !            57: function checkIsNN7() {
        !            58:        return (navigator.userAgent.indexOf("Netscape/7") != -1);
        !            59: }
        !            60: </script>
        !            61: 
1.1       david      62: 
                     63: <!-- ***************** INFO/NEWS *************** -->
                     64: <div id="infoTabs">
                     65: <div class="infoTab" id="whats-new">
                     66: <h5 class="infoHeader">What's New</h5>
                     67: <ul>
1.5       jhonec     68: <li><b>2002-12-06</b> New version 0.9b to play online</li>
1.4       jhonec     69: <li><b>2002-11-07</b> New version 0.2 in CVS</li>
1.3       jhonec     70: <li><b>2002-11-01</b> Launched the project</li>
1.1       david      71: </ul>
                     72: </div>
                     73: 
                     74: </div>
                     75: <!-- ***************** INFO/NEWS *************** -->
                     76: 
                     77: <!-- MAIN CONTENT -->
1.2       jhonec     78: <img src="images/logo.png" alt="bloquezilla01">
                     79: 
                     80: <p>Hi to the <strong>Bloquezilla</strong> project.</p>
1.1       david      81: 
1.2       jhonec     82: <p>Bloquezilla is a Sliding Blocks clone using XUL, EMACScript and the Gecko
1.5       jhonec     83: layout engine</p>
                     84: 
                     85: <p>Bloquezilla es un clon del juego Sliding Blocks usando XUL, EMACScript y
                     86: Gecko, en pocas palabras usando mozilla</p>
1.6     ! jhonec     87: 
        !            88: <p>
        !            89: <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
        !            90: </p>
        !            91: 
1.5       jhonec     92: 
                     93: <?php $author="jhonec@epm.net.co"; require(NOTES); ?>

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