diff options
author | Simon Schampijer <simon@schampijer.de> | 2009-04-03 12:34:22 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2009-04-03 12:34:22 (GMT) |
commit | ba2307c8437ca8e0c77fffed06009158ad3d48f2 (patch) | |
tree | 0d633cc75b83e08ca7e6011fdfddd5101e420132 | |
parent | 60d55acc69c50e6b7d3708a53d49e00098ab48ff (diff) |
Add a static web-page #645
-rw-r--r-- | data/favicon_01.png | bin | 0 -> 882 bytes | |||
-rw-r--r-- | data/index.html | 77 | ||||
-rw-r--r-- | data/logo_white_01.png | bin | 0 -> 8279 bytes | |||
-rw-r--r-- | data/logo_white_02.png | bin | 0 -> 8341 bytes | |||
-rw-r--r-- | data/logo_white_03.png | bin | 0 -> 8488 bytes | |||
-rw-r--r-- | data/logo_white_04.png | bin | 0 -> 8077 bytes | |||
-rw-r--r-- | data/logo_white_05.png | bin | 0 -> 7785 bytes | |||
-rw-r--r-- | data/logo_white_06.png | bin | 0 -> 7962 bytes | |||
-rw-r--r-- | data/logo_white_07.png | bin | 0 -> 8481 bytes | |||
-rw-r--r-- | data/logo_white_08.png | bin | 0 -> 8438 bytes | |||
-rw-r--r-- | data/logo_white_09.png | bin | 0 -> 8029 bytes | |||
-rw-r--r-- | data/logo_white_10.png | bin | 0 -> 7765 bytes | |||
-rw-r--r-- | data/logo_white_11.png | bin | 0 -> 8289 bytes | |||
-rw-r--r-- | data/logo_white_12.png | bin | 0 -> 8414 bytes | |||
-rw-r--r-- | webactivity.py | 4 |
15 files changed, 80 insertions, 1 deletions
diff --git a/data/favicon_01.png b/data/favicon_01.png Binary files differnew file mode 100644 index 0000000..2336101 --- /dev/null +++ b/data/favicon_01.png diff --git a/data/index.html b/data/index.html new file mode 100644 index 0000000..8585dd0 --- /dev/null +++ b/data/index.html @@ -0,0 +1,77 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html> +<head> +<script type="text/javascript" language="JavaScript"> +<!-- +logos = new Array(); +logos = ['logo_white_01.png', 'logo_white_02.png', 'logo_white_03.png', 'logo_white_04.png', 'logo_white_05.png', 'logo_white_06.png', 'logo_white_07.png', 'logo_white_08.png', 'logo_white_09.png', 'logo_white_10.png', 'logo_white_11.png', 'logo_white_12.png']; +link_colours = new Array(); +link_colours = ['link1', 'link2', 'link3', 'link4', 'link5', 'link6', 'link7', 'link8', 'link9', 'link10', 'link11', 'link12']; +r = Math.round(Math.random() * 11); +function logo_filename() { + return logos[r] +} +function link_colour() { + return link_colours[r] +} +--> +</script> +<style type="text/css"> +html { margin-right: 8px; margin-left: 8px; font-family: Helvetica, Arial, sans-serif;} +.links-container { padding-bottom: 4px; padding-top: 4px; display: block; text-align: right;} +.link1 { padding-bottom: 4px; padding-top: 4px; text-decoration: none; color: #006e00;} +.link1:hover { color: white; background-color: #006e00;} +.link2 { padding-bottom: 4px; padding-top: 4px; text-decoration: none; color: #033cd2;} +.link2:hover { color: white; background-color: #033cd2;} +.link3 { padding-bottom: 4px; padding-top: 4px; text-decoration: none; color: #006e00;} +.link3:hover { color: white; background-color: #006e00;} +.link4 { padding-bottom: 4px; padding-top: 4px; text-decoration: none; color: #033cd2;} +.link4:hover { color: white; background-color: #033cd2;} +.link5 { padding-bottom: 4px; padding-top: 4px; text-decoration: none; color: #6e008c;} +.link5:hover { color: white; background-color: #6e008c;} +.link6 { padding-bottom: 4px; padding-top: 4px; text-decoration: none; color: #a00000;} +.link6:hover { color: white; background-color: #a00000;} +.link7 { padding-bottom: 4px; padding-top: 4px; text-decoration: none; color: #033cd2;} +.link7:hover { color: white; background-color: #033cd2;} +.link8 { padding-bottom: 4px; padding-top: 4px; text-decoration: none; color: #6e008c;} +.link8:hover { color: white; background-color: #6e008c;} +.link9 { padding-bottom: 4px; padding-top: 4px; text-decoration: none; color: #6e008c;} +.link9:hover { color: white; background-color: #6e008c;} +.link10 { padding-bottom: 4px; padding-top: 4px; text-decoration: none; color: #033cd2;} +.link10:hover { color: white; background-color: #033cd2;} +.link11 { padding-bottom: 4px; padding-top: 4px; text-decoration: none; color: #006e00;} +.link11:hover { color: white; background-color: #006e00; } +.link12 { padding-bottom: 4px; padding-top: 4px; text-decoration: none; color: #033cd2;} +.link12:hover { color: white; background-color: #033cd2;} +</style> +<title>Sugar Labs</title> +<meta http-equiv="Content-type" content="text/html; charset=utf-8"/> +<link rel="shortcut icon" href="favicon_01.png"/> +</head> +<body> +<div class="links-container"> +<script type="text/javascript" language="JavaScript"> +<!-- +document.write("<a class=\"" + link_colour() + "\" href=\"http://www.sugarlabs.org/\">home</a> / <a class=\"" + link_colour() + "\" href=\"http://wiki.sugarlabs.org/\">wiki</a> / <a class=\"" + link_colour() + "\" href=\"http://dev.sugarlabs.org/\">bugs</a> / <a class=\"" + link_colour() + "\" href=\"http://schoolserver/\">school</a> / <a class=\"" + link_colour() + "\" href=\"http://activities.sugarlabs.org/\">activities</a>") +--> +</script> +</div> +<center> +<script type="text/javascript" language="JavaScript"> +<!-- +document.write("<br/><br/><br/><a href=\"http://www.sugarlabs.org/\"><img src=\"") +document.write(logo_filename()) +document.write("\" alt=\"Sugar Labs logo\" width=\"750\" height=\"250\" border=\"0\"/></a><br/><br/>") +--> +</script> +<table border="0" cellspacing="0" cellpadding="0" width="700px"><tr> +<td width="130px" align="center"> +<form action="http://google.com/search" name="f" target="_top"> +<input name="hl" type="hidden" value="en"/> +<br/><br/><input maxlength="2048" name="q" size="35" title="Google Search" value=""/> <input name="btnG" type="submit" value="Google Search"/> +</form> +</td> +</tr></table> +</center> +</body> +</html>
\ No newline at end of file diff --git a/data/logo_white_01.png b/data/logo_white_01.png Binary files differnew file mode 100644 index 0000000..9014985 --- /dev/null +++ b/data/logo_white_01.png diff --git a/data/logo_white_02.png b/data/logo_white_02.png Binary files differnew file mode 100644 index 0000000..5c20139 --- /dev/null +++ b/data/logo_white_02.png diff --git a/data/logo_white_03.png b/data/logo_white_03.png Binary files differnew file mode 100644 index 0000000..decc829 --- /dev/null +++ b/data/logo_white_03.png diff --git a/data/logo_white_04.png b/data/logo_white_04.png Binary files differnew file mode 100644 index 0000000..365dba7 --- /dev/null +++ b/data/logo_white_04.png diff --git a/data/logo_white_05.png b/data/logo_white_05.png Binary files differnew file mode 100644 index 0000000..0e118c2 --- /dev/null +++ b/data/logo_white_05.png diff --git a/data/logo_white_06.png b/data/logo_white_06.png Binary files differnew file mode 100644 index 0000000..88bdec3 --- /dev/null +++ b/data/logo_white_06.png diff --git a/data/logo_white_07.png b/data/logo_white_07.png Binary files differnew file mode 100644 index 0000000..1779987 --- /dev/null +++ b/data/logo_white_07.png diff --git a/data/logo_white_08.png b/data/logo_white_08.png Binary files differnew file mode 100644 index 0000000..6927684 --- /dev/null +++ b/data/logo_white_08.png diff --git a/data/logo_white_09.png b/data/logo_white_09.png Binary files differnew file mode 100644 index 0000000..e40d3a7 --- /dev/null +++ b/data/logo_white_09.png diff --git a/data/logo_white_10.png b/data/logo_white_10.png Binary files differnew file mode 100644 index 0000000..6a33695 --- /dev/null +++ b/data/logo_white_10.png diff --git a/data/logo_white_11.png b/data/logo_white_11.png Binary files differnew file mode 100644 index 0000000..34b1f20 --- /dev/null +++ b/data/logo_white_11.png diff --git a/data/logo_white_12.png b/data/logo_white_12.png Binary files differnew file mode 100644 index 0000000..b70a8d3 --- /dev/null +++ b/data/logo_white_12.png diff --git a/webactivity.py b/webactivity.py index bb0cd8d..5b1be7d 100644 --- a/webactivity.py +++ b/webactivity.py @@ -357,7 +357,9 @@ class WebActivity(activity.Activity): if os.path.isfile(_LIBRARY_PATH): self._browser.load_uri('file://' + _LIBRARY_PATH) else: - self._browser.load_uri('http://sugarlabs.org') + default_page = os.path.join(activity.get_bundle_path(), + "data/index.html") + self._browser.load_uri(default_page) def _session_history_changed_cb(self, session_history, link): _logger.debug('NewPage: %s.' %link) |