Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1064)

Unified Diff: chrome/test/data/extensions/samples/subscribe_page_action/subscribe.html

Issue 115536: Add the RSS page action extension.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/samples/subscribe_page_action/subscribe.html
===================================================================
--- chrome/test/data/extensions/samples/subscribe_page_action/subscribe.html (revision 0)
+++ chrome/test/data/extensions/samples/subscribe_page_action/subscribe.html (revision 0)
@@ -0,0 +1,24 @@
+<html>
+<head>
+<title>Subscribe to feed</title>
+
+<script type="text/javascript">
+ function navigate() {
+ var select = document.getElementById("readers");
+ // Grab the URL from the querystring, removing question mark at the front.
+ var feed_url = document.location.search.substring(1);
+ var url = select.options[select.selectedIndex].value + feed_url;
+ document.location = url;
+ }
+</script>
+</head>
+
+<body>
+ <img src="feed-icon-64x64.png" align="absmiddle" />
+ Subscribe to this feed using:
+ <select id="readers">
+ <option value="http://www.google.com/reader/view/feed/">Google</option>
+ </select>
+ <button onclick="navigate();">Subscribe Now</button>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698