[gnomeweb-wml] Install search plugins from webpage
- From: Jaap A. Haitsma <jhaitsma src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnomeweb-wml] Install search plugins from webpage
- Date: Sun, 30 Aug 2009 19:10:07 +0000 (UTC)
commit 2c1d2e8e986408119a0c8289a32b5bd23489b3b0
Author: Jaap A. Haitsma <jaap haitsma org>
Date: Sun Aug 30 21:09:31 2009 +0200
Install search plugins from webpage
www.gnome.org/friends/amazon/ca/index.wml | 6 +++++-
www.gnome.org/friends/amazon/de/index.wml | 6 +++++-
www.gnome.org/friends/amazon/fr/index.wml | 12 ++++++++----
www.gnome.org/friends/amazon/index.wml | 8 ++++++--
www.gnome.org/friends/amazon/jp/index.wml | 6 +++++-
www.gnome.org/friends/amazon/searchplugin.js | 8 ++++++++
www.gnome.org/friends/amazon/uk/index.wml | 12 ++++++++----
7 files changed, 45 insertions(+), 13 deletions(-)
---
diff --git a/www.gnome.org/friends/amazon/ca/index.wml b/www.gnome.org/friends/amazon/ca/index.wml
index e6fac0c..42dcb7c 100644
--- a/www.gnome.org/friends/amazon/ca/index.wml
+++ b/www.gnome.org/friends/amazon/ca/index.wml
@@ -4,7 +4,7 @@
<head>
<title>Friends of GNOME - Amazon Canada</title>
-
+ <script src="../searchplugin.js" type="text/javascript"></script>
<link media="all" type="text/css" rel="stylesheet" href="../../css/friends.css"/>
<link rel="search" type="application/opensearchdescription+xml" href="amazon-ca-gnome.xml" title="Amazon.ca GNOME"></link>
</head>
@@ -13,6 +13,10 @@
<h1>Support GNOME by shopping at Amazon Canada <img style="vertical-align: middle;" src="../images/ca.png" alt="Amazon.ca GNOME Store" border="0" /></h1>
+ <div style="float:right;">
+ <a onclick="javascript:addSearchProvider('http://www.gnome.org/friends/amazon/ca/amazon-ca-gnome.xml')" href="javascript:void(0)" title="Install GNOME Amazon.ca plugin">Install Search Plugin</a>
+ </div>
+
<table>
<tr>
<td style="vertical-align: middle;">Select other Amazon Store: </td>
diff --git a/www.gnome.org/friends/amazon/de/index.wml b/www.gnome.org/friends/amazon/de/index.wml
index 78ce22b..0b7fd8a 100644
--- a/www.gnome.org/friends/amazon/de/index.wml
+++ b/www.gnome.org/friends/amazon/de/index.wml
@@ -4,7 +4,7 @@
<head>
<title>Friends of GNOME - Amazon Germany</title>
-
+ <script src="../searchplugin.js" type="text/javascript"></script>
<link media="all" type="text/css" rel="stylesheet" href="../../css/friends.css"/>
<link rel="search" type="application/opensearchdescription+xml" href="amazon-de-gnome.xml" title="Amazon.de GNOME"></link>
</head>
@@ -13,6 +13,10 @@
<h1>Support GNOME by shopping at Amazon Germany <img style="vertical-align: middle;" src="../images/de.png" alt="Amazon.de GNOME Store" border="0" /></h1>
+ <div style="float:right;">
+ <a onclick="javascript:addSearchProvider('http://www.gnome.org/friends/amazon/de/amazon-de-gnome.xml')" href="javascript:void(0)" title="Install GNOME Amazon.de plugin">Install Search Plugin</a>
+ </div>
+
<table>
<tr>
<td style="vertical-align: middle;">Select other Amazon Store: </td>
diff --git a/www.gnome.org/friends/amazon/fr/index.wml b/www.gnome.org/friends/amazon/fr/index.wml
index 2a45c1a..322b8a9 100644
--- a/www.gnome.org/friends/amazon/fr/index.wml
+++ b/www.gnome.org/friends/amazon/fr/index.wml
@@ -3,16 +3,20 @@
<html>
<head>
- <title>Friends of GNOME - Amazon France</title>
-
- <link media="all" type="text/css" rel="stylesheet" href="../../css/friends.css"/>
- <link rel="search" type="application/opensearchdescription+xml" href="amazon-fr-gnome.xml" title="Amazon.fr GNOME"></link>
+ <title>Friends of GNOME - Amazon France</title>
+ <script src="../searchplugin.js" type="text/javascript"></script>
+ <link media="all" type="text/css" rel="stylesheet" href="../../css/friends.css"/>
+ <link rel="search" type="application/opensearchdescription+xml" href="amazon-fr-gnome.xml" title="Amazon.fr GNOME"></link>
</head>
<body>
<h1>Support GNOME by shopping at Amazon France <img style="vertical-align: middle;" src="../images/fr.png" alt="Amazon.fr GNOME Store" border="0" /></h1>
+ <div style="float:right;">
+ <a onclick="javascript:addSearchProvider('http://www.gnome.org/friends/amazon/fr/amazon-fr-gnome.xml')" href="javascript:void(0)" title="Install GNOME Amazon.fr plugin">Install Search Plugin</a>
+ </div>
+
<table>
<tr>
<td style="vertical-align: middle;">Select other Amazon Store: </td>
diff --git a/www.gnome.org/friends/amazon/index.wml b/www.gnome.org/friends/amazon/index.wml
index d004eea..5c21388 100644
--- a/www.gnome.org/friends/amazon/index.wml
+++ b/www.gnome.org/friends/amazon/index.wml
@@ -4,7 +4,7 @@
<head>
<title>Friends of GNOME - Amazon</title>
-
+ <script src="searchplugin.js" type="text/javascript"></script>
<link media="all" type="text/css" rel="stylesheet" href="../css/friends.css"/>
<link rel="search" type="application/opensearchdescription+xml" href="amazon-com-gnome.xml" title="Amazon.com GNOME"></link>
</head>
@@ -12,6 +12,11 @@
<body>
<h1>Support GNOME by shopping at Amazon.com <img style="vertical-align: middle;" src="images/us.png" alt="Amazon.com GNOME Store" border="0" /></h1>
+
+ <div style="float:right;">
+ <a onclick="javascript:addSearchProvider('http://www.gnome.org/friends/amazon/amazon-com-gnome.xml')" href="javascript:void(0)" title="Install GNOME Amazon.com plugin">Install Search Plugin</a>
+ </div>
+
<table>
<tr>
<td style="vertical-align: middle;">Select other Amazon Store: </td>
@@ -22,7 +27,6 @@
<td><a href="jp"><img style="vertical-align: middle;" src="images/jp.png" alt="Amazon.jo GNOME Store" border="0" /></a> </td>
</tr>
</table>
-
<iframe src="http://astore.amazon.com/gnomestore-20" width="800px" height="920px" frameborder="0" scrolling="no"></iframe>
</body>
diff --git a/www.gnome.org/friends/amazon/jp/index.wml b/www.gnome.org/friends/amazon/jp/index.wml
index 6b2b5a4..38aab1b 100644
--- a/www.gnome.org/friends/amazon/jp/index.wml
+++ b/www.gnome.org/friends/amazon/jp/index.wml
@@ -4,13 +4,17 @@
<head>
<title>Friends of GNOME - Amazon Japan</title>
-
+ <script src="../searchplugin.js" type="text/javascript"></script>
<link media="all" type="text/css" rel="stylesheet" href="../../css/friends.css"/>
<link rel="search" type="application/opensearchdescription+xml" href="amazon-jp-gnome.xml" title="Amazon.jp GNOME"></link>
</head>
<body>
+ <div style="float:right;">
+ <a onclick="javascript:addSearchProvider('http://www.gnome.org/friends/amazon/jp/amazon-jp-gnome.xml')" href="javascript:void(0)" title="Install GNOME Amazon.co.jp plugin">Install Search Plugin</a>
+ </div>
+
<h1>Support GNOME by shopping at Amazon Japan <img style="vertical-align: middle;" src="../images/jp.png" alt="Amazon.jp GNOME Store" border="0" /></h1>
<table>
<tr>
diff --git a/www.gnome.org/friends/amazon/searchplugin.js b/www.gnome.org/friends/amazon/searchplugin.js
new file mode 100644
index 0000000..7ff63f3
--- /dev/null
+++ b/www.gnome.org/friends/amazon/searchplugin.js
@@ -0,0 +1,8 @@
+
+function addSearchProvider(url) {
+ try {
+ window.external.AddSearchProvider(url);
+ } catch(e) {
+ alert("Your browser does not support search engines. Try for instance Firefox");
+ }
+}
diff --git a/www.gnome.org/friends/amazon/uk/index.wml b/www.gnome.org/friends/amazon/uk/index.wml
index bf088ed..e70982e 100644
--- a/www.gnome.org/friends/amazon/uk/index.wml
+++ b/www.gnome.org/friends/amazon/uk/index.wml
@@ -3,15 +3,19 @@
<html>
<head>
- <title>Friends of GNOME - Amazon UK</title>
-
- <link media="all" type="text/css" rel="stylesheet" href="../../css/friends.css"/>
- <link rel="search" type="application/opensearchdescription+xml" href="amazon-uk-gnome.xml" title="Amazon.uk GNOME"></link>
+ <title>Friends of GNOME - Amazon UK</title>
+ <script src="../searchplugin.js" type="text/javascript"></script>
+ <link media="all" type="text/css" rel="stylesheet" href="../../css/friends.css"/>
+ <link rel="search" type="application/opensearchdescription+xml" href="amazon-uk-gnome.xml" title="Amazon.uk GNOME"></link>
</head>
<body>
<h1>Support GNOME by shopping at Amazon UK <img style="vertical-align: middle;" src="../images/uk.png" alt="Amazon.co.uk GNOME Store" border="0" /></h1>
+
+ <div style="float:right;">
+ <a onclick="javascript:addSearchProvider('http://www.gnome.org/friends/amazon/uk/amazon-uk-gnome.xml')" href="javascript:void(0)" title="Install GNOME Amazon.co.uk plugin">Install Search Plugin</a>
+ </div>
<table>
<tr>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]