Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Unified Diff: components/physical_web/webui/resources/physical_web.html

Issue 2741823002: Update Physical Web WebUI to show new results automatically (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/physical_web/webui/resources/physical_web.html
diff --git a/components/physical_web/webui/resources/physical_web.html b/components/physical_web/webui/resources/physical_web.html
index a5a0ba698842d76e0b2decc0c2242c55fcc6c695..0328cc4f58a8fc627cda75238387c3c40e1ba773 100644
--- a/components/physical_web/webui/resources/physical_web.html
+++ b/components/physical_web/webui/resources/physical_web.html
@@ -20,24 +20,24 @@
<script src="chrome://physical-web/strings.js"></script>
</head>
<body>
-<div id="body-container" style="visibility:visible">
+<div id="body-container" style="visibility:visible">
<h1 i18n-content="title"></h1>
-
- <a class="physicalWebTemplate" id="physicalWebTemplate" jsselect="metadata"
- jsvalues="href:resolvedUrl;onclick:'physicalWebItemClicked(' + index + ')'">
- <div class="physicalWebIcon">
- <img jsvalues="src:pageInfoIcon" />
- </div>
- <div class="physicalWebText">
- <div class="title" jscontent="pageInfoTitle"></div>
- <div class="resolvedUrl" jscontent="resolvedUrl"></div>
- <div class="description" jscontent="pageInfoDescription"></div>
- </div>
- </a>
-
+ <div id="render-result"></div>
</div>
+<a hidden id="render-template" class="physicalWebTemplate" jsselect="metadata"
+ jsvalues="href:resolvedUrl;onclick:'physicalWebItemClicked(' + index + ')'">
+ <div class="physicalWebIcon">
+ <img jsvalues="src:pageInfoIcon" />
+ </div>
+ <div class="physicalWebText">
+ <div class="title" jscontent="pageInfoTitle"></div>
+ <div class="resolvedUrl" jscontent="resolvedUrl"></div>
+ <div class="description" jscontent="pageInfoDescription"></div>
+ </div>
+</a>
+
<script src="chrome://resources/js/i18n_template.js"></script>
<script src="chrome://resources/js/jstemplate_compiled.js"></script>
</body>

Powered by Google App Engine
This is Rietveld 408576698