Html程序  |  36行  |  968 B

<!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>