summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/ntp4/guest_tab.html
blob: 9c54732723753c604e77f647e2b33eb514b9b01b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html i18n-values="dir:textdirection;bookmarkbarattached:bookmarkbarattached">
<head>
<meta charset="utf-8">
<title i18n-content="title"></title>
<link rel="stylesheet" href="guest_tab.css">
<script>
// Until themes can clear the cache, force-reload the theme stylesheet.
document.write('<link id="guestthemecss" rel="stylesheet" ' +
               'href="chrome://theme/css/guest_new_tab_theme.css?' +
               Date.now() + '">');
</script>
</head>
<body>
<div class="content"
    i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
  <span i18n-values=".innerHTML:content"></span>
</div>
</body>
<script src="chrome://resources/js/cr.js"></script>
<script>
cr.define('ntp', function() {
  'use strict';

  function themeChanged() {
    document.getElementById('guestthemecss').href =
        'chrome://theme/css/guest_new_tab_theme.css?' + Date.now();
  }

  return {
    themeChanged: themeChanged,
  };
});
</script>
</html>