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

Unified Diff: chrome_frame/cfinstall/examples/local_testing.html

Issue 8467005: Publish the source for CFInstall.min.js . (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Line length fixes. Created 9 years, 1 month 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_frame/cfinstall/examples/local_testing.html
diff --git a/chrome_frame/cfinstall/examples/local_testing.html b/chrome_frame/cfinstall/examples/local_testing.html
new file mode 100644
index 0000000000000000000000000000000000000000..89bf7327358503cc4f382c9fa1396a48d946d2df
--- /dev/null
+++ b/chrome_frame/cfinstall/examples/local_testing.html
@@ -0,0 +1,38 @@
+<!--
+ Copyright 2011 Google Inc. All rights reserved.
+-->
+<html>
+ <head>
+ <script src='../out/CFInstall.min.js'> </script>
+ <script>
+ // This is only required if you are hosting your own copy of the
+ // implementation script and have not set the implementation path during
+ // compilation. (See build.sh -l 'PATH').
+ CFInstall.setImplementationUrl('../out/cf-xd-install-impl.js');
+
+ // The following are only required when running this example from a local
+ // file. The default behaviour is to use the same scheme as this page,
+ // which is file://, and thus wrong.
+ CFInstall.setDownloadPageUrl('http://google.com/chromeframe/eula.html');
+ CFInstall.setSameDomainResourceUri('http://example.com/robots.txt');
+ </script>
+ </head>
+ <body>
+ <b>Chrome Frame Installed?:</b>
+ <span class="labeled" id="ChromeInstalled"></span><br />
+ <p>
+ Note that Chrome Frame will never render local pages (i.e., from 'file://'
+ URLs). The above message will, however, tell you whether Chrome Frame is
+ installed.
+ </p>
+ <script>
+ document.getElementById('ChromeInstalled').innerHTML =
+ CFInstall.isAvailable() ? "Yes" : "No";
+ </script>
+ <p>
+ <a href="javascript:CFInstall.require()">
+ This site requires Google Chrome Frame. Click here to install it now.
+ </a>
+ </p>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698