OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <!-- printf() style params: | |
3 embedder_origin: Origin of the page embedding this HTML as an iframe. | |
4 omnibox_font: Omnibox font - used to display suggestions. | |
5 omnibox_font_size: Omnibox font size - used as suggestion font size. | |
6 url_color: Color used to display URL component of suggestion. | |
7 title_color: Color used to display title component of suggestion. | |
8 url_text: URL component of the suggestion. | |
9 title_text: Title component of the suggestion. | |
10 --> | |
11 <html> | |
12 <head> | |
13 <script> | |
14 function handleClick(event) { | |
15 var details = { | |
16 'eventType': 'click', | |
17 'button' : event.button | |
18 }; | |
19 top.postMessage(details, '%s'); | |
20 } | |
21 function handleLoad() { | |
22 if (document.getElementById('title').innerHTML == "") | |
23 document.getElementById('optional').classList.add('hide'); | |
24 } | |
25 </script> | |
26 <style> | |
27 body { | |
28 -webkit-user-select: none; | |
29 cursor: default; | |
30 font: %s; | |
31 font-size: %lupx; | |
32 margin: 0; | |
33 overflow: hidden; | |
34 position: fixed; | |
35 white-space: nowrap; | |
36 } | |
37 .url { color: #%06X; } | |
38 .title { color: #%06X; } | |
39 .hide { display: none; } | |
40 </style> | |
41 </head> | |
42 <body onclick="handleClick(event);" onload="handleLoad();"> | |
43 <span class="url">%s</span> | |
44 <span class="title" id="optional"> – <span id="title">%s</span></span> | |
45 </body> | |
46 </html> | |
OLD | NEW |