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