Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
shuttle-v2: add attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Oct 2, 2013
1 parent d2e473a commit 908880d
Show file tree
Hide file tree
Showing 10 changed files with 82 additions and 5 deletions.
9 changes: 8 additions & 1 deletion shiny/Shuttle-v2/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<!doctype html>
<!DOCTYPE html>
<!--
/*
* Copyright 2013 The Polymer Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
-->
<html>
<head>
<title>Shuttle</title>
Expand Down
6 changes: 6 additions & 0 deletions shiny/Shuttle-v2/mock_schedule.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright 2013 The Polymer Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/

(function() {

if (!window.Shuttle || Polymer.flags.mock) {
Expand Down
12 changes: 9 additions & 3 deletions shiny/Shuttle-v2/shuttle-app.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<!--
/*
* Copyright 2013 The Polymer Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
-->

<link rel="import" href="../../../polymer-elements/polymer-grid-layout/polymer-grid-layout.html">
<link rel="import" href="../../../polymer-elements/polymer-media-query/polymer-media-query.html">
<link rel="import" href="../../../polymer-ui-elements/polymer-ui-icon/polymer-ui-icon.html">
Expand Down Expand Up @@ -119,9 +127,7 @@
}.bind(this));
},
enteredView: function() {
setTimeout(function() {
this.$.map.resize();
}.bind(this));
this.$.map.resize();
},
tabSelectedChanged: function(old) {
this.classFollows(this.$[this.tabSelected], this.$[old],
Expand Down
8 changes: 8 additions & 0 deletions shiny/Shuttle-v2/shuttle-data.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<!--
/*
* Copyright 2013 The Polymer Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
-->

<link rel="import" href="../../../polymer-elements/polymer-localstorage/polymer-localstorage.html">

<polymer-element name="shuttle-data" attributes="route officeStops remoteStops favorites">
Expand Down
8 changes: 8 additions & 0 deletions shiny/Shuttle-v2/shuttle-favorites.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<!--
/*
* Copyright 2013 The Polymer Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
-->

<link rel="import" href="../../../polymer-elements/polymer-selector/polymer-selector.html">
<link rel="import" href="../../../polymer-ui-elements/polymer-ui-card/polymer-ui-card.html">

Expand Down
12 changes: 11 additions & 1 deletion shiny/Shuttle-v2/shuttle-map.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<!--
/*
* Copyright 2013 The Polymer Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
-->

<link rel="import" href="../../../more-elements/google-map/google-map.html">

<polymer-element name="shuttle-map" attributes="centerStop fromStop toStop filteredStops selectedFilteredStop">
Expand All @@ -24,7 +32,9 @@
this.resizeJob = this.job(this.resizeJob, this._resize, 100);
},
_resize: function() {
this.$.map.resize();
requestAnimationFrame(function() {
this.$.map.resize();
}.bind(this));
},
centerStopChanged: function() {
if (this.centerStop) {
Expand Down
8 changes: 8 additions & 0 deletions shiny/Shuttle-v2/shuttle-schedule.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<!--
/*
* Copyright 2013 The Polymer Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
-->

<link rel="import" href="../../../polymer-elements/polymer-flex-layout/polymer-flex-layout.html">
<link rel="import" href="../../../polymer-ui-elements/polymer-ui-icon-button/polymer-ui-icon-button.html">
<link rel="import" href="shuttle-timetable.html">
Expand Down
8 changes: 8 additions & 0 deletions shiny/Shuttle-v2/shuttle-stop-picker.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<!--
/*
* Copyright 2013 The Polymer Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
-->

<link rel="import" href="../../../polymer-elements/polymer-overlay/polymer-overlay.html">
<link rel="import" href="../../../polymer-elements/polymer-selector/polymer-selector.html">
<link rel="import" href="../../../polymer-ui-elements/polymer-ui-icon/polymer-ui-icon.html">
Expand Down
8 changes: 8 additions & 0 deletions shiny/Shuttle-v2/shuttle-timetable.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<!--
/*
* Copyright 2013 The Polymer Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
-->

<polymer-element name="shuttle-timetable" attributes="fromStop toStop">
<template>
<link rel="stylesheet" href="../../../polymer-elements/polymer-flex-layout/polymer-flex-layout.css">
Expand Down
8 changes: 8 additions & 0 deletions shiny/Shuttle-v2/shuttle-toggle-icon.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<!--
/*
* Copyright 2013 The Polymer Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
-->

<link rel="import" href="../../../polymer-ui-elements/polymer-ui-icon/polymer-ui-icon.html">

<polymer-element name="shuttle-toggle-icon" attributes="src icon active activeSrc activeIcon" on-tap="toggle">
Expand Down

0 comments on commit 908880d

Please sign in to comment.