• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2  Copyright 2011 Google Inc. All rights reserved.
3-->
4<html>
5  <head>
6    <script src='../out/CFInstall.min.js'> </script>
7    <script>
8      // This is only required if you are hosting your own copy of the
9      // implementation script and have not set the implementation path during
10      // compilation. (See build.sh -l 'PATH').
11      CFInstall.setImplementationUrl('../out/cf-xd-install-impl.js');
12
13      // The following are only required when running this example from a local
14      // file. The default behaviour is to use the same scheme as this page,
15      // which is file://, and thus wrong.
16      CFInstall.setDownloadPageUrl('http://google.com/chromeframe/eula.html');
17      CFInstall.setSameDomainResourceUri('http://example.com/robots.txt');
18    </script>
19  </head>
20  <body>
21    <b>Chrome Frame Installed?:</b>
22    <span class="labeled" id="ChromeInstalled"></span><br />
23    <p>
24      Note that Chrome Frame will never render local pages (i.e., from 'file://'
25      URLs). The above message will, however, tell you whether Chrome Frame is
26      installed.
27    </p>
28    <script>
29      document.getElementById('ChromeInstalled').innerHTML =
30        CFInstall.isAvailable() ? "Yes" : "No";
31    </script>
32    <p>
33      <a href="javascript:CFInstall.require()">
34        This site requires Google Chrome Frame. Click here to install it now.
35      </a>
36    </p>
37  </body>
38</html>
39