File:  [mozdev] / bookmarkshome / src / bookmarksHome.html
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Wed Nov 17 20:54:55 2004 UTC (13 years, 1 month ago) by jagrboom
Branches: MAIN
CVS tags: HEAD
1.2.4

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<!--
- The contents of this file are subject to the Mozilla Public
- License Version 1.1 (the "License"); you may not use this file
- except in compliance with the License. You may obtain a copy of
- the License at http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS
- IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- implied. See the License for the specific language governing
- rights and limitations under the License.
-
- The Original Code is mozilla.org view-source front end.
-
- The Initial Developer of the Original Code is mozilla.org.
- Portions created by the Initial Developer are Copyright (C) 2002
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-   Jeroen Groenenboom <jagrboom@zonnet.nl> (Original Author)
-   Dimiter Dimitrov <dimiter@blue-edge.bg>
-   Josh Powell <Josh@ki4bbo.org> 
- 
- Alternatively, the contents of this file may be used under the
- terms of the GNU General Public License Version 2 or later (the
- "GPL"), in which case the provisions of the GPL are applicable 
- instead of those above.  If you wish to allow use of your 
- version of this file only under the terms of the GPL and not to
- allow others to use your version of this file under the MPL,
- indicate your decision by deleting the provisions above and
- replace them with the notice and other provisions required by
- the GPL.  If you do not delete the provisions above, a recipient
- may use your version of this file under either the MPL or the
- GPL.
-->

<html>
    <!--
    // xhtml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

	// html 4.01 
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
	<html>
	    -->
	    <head>
		<!--
		// xhtml with application/xhtml+xml content
		<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />

		// xhtml with text/html content
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		// html 4.01
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		-->
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="Content-Script-Type" content="text/javascript">
		<link rel="icon" href="chrome://bookmarkshome/skin/bookmarkshome16.png" type="image/png">
		<title>BookmarksHome</title>
		<style type="text/css"></style>
		<!--
		// empty script tag with terminating slash in xhtml document not recognized by mozilla
		-->
		<!--
		// xhtml with applictation/xhtml+xml content
		<script  type="application/x-javascript" src="chrome://bookmarkshome/content/bookmarksHome.js"></script>
		<script type="application/x-javascript" src="chrome://bookmarkshome/content/bookmarksHomePrefs.js"></script>
		<script type="application/x-javascript">

		    // xhtml with text/html content and html 4.01
		    <script  type="text/javascript" src="chrome://bookmarkshome/content/bookmarksHome.js"></script>
		    <script  type="text/javascript" src="chrome://bookmarkshome/content/bookmarksHomePrefs.js"></script>
		    <script type="text/javascript">
			-->
			<script  type="text/javascript" src="chrome://bookmarkshome/content/bookmarksHome.js"></script>
			<script  type="text/javascript" src="chrome://bookmarkshome/content/bookmarksHomePrefs.js"></script>
			<script  type="text/javascript" src="chrome://bookmarkshome/content/feedlib.js"></script>
			<script type="text/javascript">
			    <!--//<![CDATA[
			    function bmhInternetSearch() {
				var engineSelect = document.getElementById( "engineSelect" );
				var engine = engineSelect.options[engineSelect.selectedIndex].value;
				var query = encodeURI( document.getElementById( "queryInput" ).value );
				window.location.href = ( "http://" + engine + query );
			    }

			    function bmhCheck( func ) {
				// checks if document has chrome url. If not,
				// alerts that functions are not available
				// this function is useful for the uploaded file
				var regExp = new RegExp( "^" + "chrome" );
				if( ! regExp.test( document.location.href )) {
				    alert( "This feature is not available" );
				    return;
				}
				switch( func ) {
				    case "openFolder":
				    bMHPrefs.openFolder( bmhCheck.arguments[1] );
				    break;
				    case "openOptions":
				    var prefsWindow = window.open( "bookmarksHomePrefsWindow.xul", "prefs",
				    "height=350,width=400,top=50,left=50,resizable=yes");
				    prefsWindow.focus();
				    break;
				    case "upload":
				    //bMHPrefs.upload();
				    break;
				}
			    }
			    //]]>-->
			</script>
		    </head>
		    <body>
			<script type="text/javascript" defer="defer">
			    <!--//<![CDATA[
			    window.setTimeout( bookmarksHome.main, 0 );
			    //]]>-->
			</script>
			<form id="searchForm" action="javascript:bmhInternetSearch()">
			    <div id="searchDiv" class="bar">
				<select id="engineSelect">
				    <option value="www.google.com/search?q=">Google</option>
				    <option value="search.yahoo.com/bin/search?p=">Yahoo</option>
				    <option value="web.ask.com/web?q=">Ask Jeeves</option>
				    <option value="search.dmoz.org/cgi-bin/search?search=">dmoz.org</option>
				</select>
				<input id="queryInput" type="text">
				<input id="submitInput" type="submit" value="Search"> 
			    </div>
			</form>
			<table id="bookmarksSheet">
			    <tr>
				<td style="display:none"></td>
			    </tr>
			</table>

			<div id="otherLinks" class="bar">
			    <ul>
				<li><a href="http://bookmarkshome.mozdev.org">home</a></li>
				<li><a href="javascript:void(bmhCheck('openOptions'))">options</a></li>
				<!--
				<li><a href="javascript:void(bmhCheck('upload'))">upload</a></li>
				-->
			    </ul>
			</div>
		    </body>
		</html>


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