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

Unified Diff: sky/examples/city-list/index.sky

Issue 980323003: Clean up examples directory (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/examples/city-list/city-sequence.sky ('k') | sky/examples/custom-element/example-element.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/city-list/index.sky
diff --git a/sky/examples/city-list/index.sky b/sky/examples/city-list/index.sky
deleted file mode 100644
index 47f52085d4af0eae079feeff1a918895b061c3af..0000000000000000000000000000000000000000
--- a/sky/examples/city-list/index.sky
+++ /dev/null
@@ -1,52 +0,0 @@
-<!--
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
--->
-<!DOCTYPE html>
-<html>
-<head>
-<meta charset="utf-8">
-<meta name="viewport"
- content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=yes, width=device-width">
-<import src="city-list.sky" />
-<style>
-html, body {
- margin: 0;
- padding: 0;
- font-family: "Roboto", "HelveticaNeue",sans-serif;
- -webkit-font-smoothing: antialiased;
- font-size: 13px;
- color: #222;
- width: 100%;
- height: 100%;
- -webkit-user-select: none;
-}
-</style>
-</head>
-<script>
-window.startLoad = new Date().getTime();
-</script>
-<body>
- <city-list></city-list>
- <script>
- var cityList = document.querySelector('city-list');
- var scrollBy = 0;
- var toks = location.search.match(/auto=([0-9]+)/);
- if (toks) {
- scrollBy = Number(toks[1]);
- }
-
- function autoScroll() {
- cityList.scrollBy(scrollBy);
- requestAnimationFrame(autoScroll);
- }
-
- if (scrollBy) {
- setTimeout(function() {
- requestAnimationFrame(autoScroll);
- }, 200)
- }
- </script>
-</body>
-</html>
« no previous file with comments | « sky/examples/city-list/city-sequence.sky ('k') | sky/examples/custom-element/example-element.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698