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

Unified Diff: third_party/polymer/components-chromium/core-localstorage/demo.html

Issue 592593002: Inline scripts were extracted from Polymer elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/echo ""/echo/ Created 6 years, 3 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: third_party/polymer/components-chromium/core-localstorage/demo.html
diff --git a/third_party/polymer/components-chromium/core-localstorage/demo.html b/third_party/polymer/components-chromium/core-localstorage/demo.html
new file mode 100644
index 0000000000000000000000000000000000000000..428ea7d7952e5acedba5aa1204909a9fe09f7dcf
--- /dev/null
+++ b/third_party/polymer/components-chromium/core-localstorage/demo.html
@@ -0,0 +1,41 @@
+<!doctype html>
+<html>
+<head>
+
+ <title>polymer-localstorage</title>
+
+ <script src="../platform/platform.js"></script>
+
+ <link rel="import" href="core-localstorage.html">
+
+</head>
+<body>
+
+ <x-test1></x-test1>
+
+ <polymer-element name="x-test1" noscript>
+ <template>
+ string entered below will be stored in localStorage and automatically retrived from localStorage when the page is reloaded<br>
+ <input value="{{value}}">
+ <core-localstorage name="polymer-localstorage-x-test1" value="{{value}}"></core-localstorage>
+ </template>
+ </polymer-element>
+
+ <br><br>
+
+ <x-test2></x-test2>
+
+ <polymer-element name="x-test2">
+ <template>
+ <input type="checkbox" checked="{{mode}}">
+ <core-localstorage name="polymer-localstorage-x-test2" value="{{mode}}"></core-localstorage>
+ </template>
+ <script>
+ Polymer('x-test2', {
+ mode: false
+ });
+ </script>
+ </polymer-element>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698