Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!-- | |
| 2 Copyright 2015 The Chromium Authors. All rights reserved. | |
| 3 Use of this source code is governed by a BSD-style license that can be | |
| 4 found in the LICENSE file. | |
| 5 --> | |
| 6 <!DOCTYPE html> | |
| 7 <html> | |
| 8 <head> | |
| 9 <meta charset="utf-8"> | |
| 10 <if expr="is_android or is_ios"> | |
| 11 <meta name="viewport" content="width=device-width, initial-scale=1.0, | |
| 12 maximum-scale=1.0, user-scalable=no"> | |
| 13 </if> | |
| 14 <title>Snippets Internals</title> | |
| 15 <link rel="stylesheet" href="chrome://resources/css/text_defaults.css"> | |
| 16 <link rel="stylesheet" href="snippets_internals.css"> | |
| 17 <script src="chrome://resources/js/cr.js"></script> | |
| 18 <script src="chrome://resources/js/jstemplate_compiled.js"></script> | |
| 19 <script src="chrome://resources/js/util.js"></script> | |
| 20 <script src="snippets_internals.js"></script> | |
| 21 </head> | |
| 22 | |
| 23 <body> | |
| 24 <div id="info"> | |
| 25 <div class="section" jsskip="true"> | |
| 26 <h2>Properties</h2> | |
| 27 <table class="section-details"> | |
| 28 <tr> | |
| 29 <td class="name">Snippets enabled</td> | |
| 30 <td id="flag-snippets" class="value"></td> | |
| 31 </tr> | |
| 32 <tr> | |
| 33 <td class="name">Snippets restricted to hosts</td> | |
| 34 <td id="switch-restrict-to-hosts" class="value"></td> | |
| 35 </tr> | |
| 36 </table> | |
| 37 </div> | |
| 38 | |
| 39 <div id="snippets" class="section"> | |
| 40 <h2>Snippets <span class="detail">(click for details)</span></h2> | |
| 41 <table class="section-details"> | |
| 42 <tr jsselect="list" style="display:none"> | |
| 43 <td class="title-link"> | |
| 44 <span class="snippet-title" jsvalues="myid:id"><span jscontent="title" ></span> >></a> | |
|
Marc Treib
2016/04/13 08:45:51
Line too long (a few more of those below too).
Als
jkrcal
2016/04/14 15:27:00
Done.
| |
| 45 <div jsvalues="id:id" class="snippet-detail snippet-hidden"> | |
| 46 <table> | |
| 47 <tr> | |
| 48 <td>Validity | |
|
Marc Treib
2016/04/13 08:45:51
<td> tags should be closed.
jkrcal
2016/04/14 15:26:59
Not in HTML5.
https://www.w3.org/TR/2014/REC-html
Marc Treib
2016/04/14 15:43:44
Huh, today I learned!
But then please be consisten
| |
| 49 <td class="expiry"> | |
| 50 <span class="date" jscontent="published"></span> – | |
| 51 <span class="date" jscontent="expires"></span> | |
| 52 <tr> | |
| 53 <td>Site title | |
| 54 <td jscontent="siteTitle"> | |
| 55 <tr> | |
| 56 <td>Text | |
| 57 <td jscontent="snippet"> | |
| 58 <tr> | |
| 59 <td>URL | |
| 60 <td><a class="url" jsvalues="href:url" jscontent="url"></a> | |
| 61 <tr> | |
| 62 <td>Favicon | |
| 63 <td><a class="url" jsvalues="href:faviconUrl" jscontent="favicon Url"></a> | |
| 64 <tr> | |
| 65 <td>Salient image | |
| 66 <td><a class="url" jsvalues="href:salientImageUrl" jscontent="sa lientImageUrl"></a> | |
| 67 </table> | |
| 68 </div> | |
| 69 </td> | |
| 70 </tr> | |
| 71 </table> | |
| 72 <div class="detail" id="snippets-empty" jsskip="1"></div> | |
| 73 <div class="forms" jsskip="1"> | |
| 74 <input id="submit-clear" type="submit" value="Clear the list"> | |
| 75 </div> | |
| 76 <div class="forms" jsskip="1"> | |
| 77 <input id="submit-download" type="submit" value="Add snippets"> | |
| 78 from hosts <input id="hosts-input" type="text"> | |
| 79 <div class="detail"> | |
| 80 e.g. "www.wired.com www.bbc.co.uk", | |
| 81 <span id="hosts-help"></span>. | |
| 82 </div> | |
| 83 </div> | |
| 84 </div> | |
| 85 | |
| 86 <div id="discarded-snippets" class="section"> | |
| 87 <h2>Discarded snippets <span class="detail">(click for details)</span></h2> | |
| 88 <table class="section-details"> | |
| 89 <tr jsselect="list" style="display:none"> | |
| 90 <td class="title-link"> | |
| 91 <span class="discarded-snippet-title" jsvalues="myid:id"><span jsconte nt="title"></span> >></a> | |
|
Marc Treib
2016/04/13 08:45:51
">></a>" ?
jkrcal
2016/04/14 15:26:59
Done.
| |
| 92 <div jsvalues="id:id" class="snippet-detail snippet-hidden"> | |
| 93 <table> | |
| 94 <tr> | |
| 95 <td>Validity | |
| 96 <td class="expiry"> | |
| 97 <span class="date" jscontent="published"></span> – | |
| 98 <span class="date" jscontent="expires"></span> | |
| 99 <tr> | |
| 100 <td>Text | |
| 101 <td jscontent="snippet"> | |
| 102 <tr> | |
| 103 <td>URL | |
| 104 <td><a class="url" jsvalues="href:url" jscontent="url"></a> | |
| 105 <tr> | |
| 106 <td>Favicon | |
| 107 <td><a class="url" jsvalues="href:faviconUrl" jscontent="favicon Url"></a> | |
| 108 <tr> | |
| 109 <td>Salient image | |
| 110 <td><a class="url" jsvalues="href:salientImageUrl" jscontent="sa lientImageUrl"></a> | |
| 111 </table> | |
| 112 </div> | |
| 113 </td> | |
| 114 </tr> | |
| 115 </table> | |
| 116 <div class="detail" id="discarded-snippets-empty" jsskip="1"></div> | |
| 117 <div class="forms" jsskip="1"> | |
| 118 <input id="discarded-snippets-clear" type="submit" value="Clear list"> | |
| 119 </div> | |
| 120 </div> | |
| 121 | |
| 122 <div id="hosts" class="section"> | |
| 123 <h2>Suggestion hosts</h2> | |
| 124 <table class="section-details"> | |
| 125 <tr jsselect="list"> | |
| 126 <td jscontent="url"></td> | |
| 127 </tr> | |
| 128 </table> | |
| 129 <div class="detail" id="hosts-empty" jsskip="1"></div> | |
| 130 </div> | |
| 131 </div> | |
| 132 | |
| 133 </body> | |
| 134 </html> | |
| 135 | |
| OLD | NEW |