Skip to content

Instantly share code, notes, and snippets.

@civ2boss
Last active August 29, 2015 14:14

Revisions

  1. civ2boss revised this gist Feb 24, 2015. No changes.
  2. civ2boss revised this gist Feb 24, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion designer.html
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,7 @@
    <link rel="import" href="../core-icon/core-icon.html">
    <link rel="import" href="../core-input/core-input.html">
    <link rel="import" href="../core-icons/core-icons.html">
    <link rel="import" href="../speech-mic/speech-mic.html">
    <link rel="import" href="../core-menu/core-submenu.html">
    <link rel="import" href="../google-map/google-map.html">
    <link rel="import" href="../google-map/google-map-search.html">
    @@ -71,8 +72,9 @@
    <core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
    <core-icon icon="search" id="core_icon"></core-icon>
    <core-input id="core_input" flex>
    <input id="input" placeholder="type something..." is="core-input">
    <input id="input" value="{{ $.speech_mic.transcript }}" placeholder="type something..." is="core-input">
    </core-input>
    <speech-mic id="speech_mic"></speech-mic>
    </core-field>
    </core-toolbar>
    <core-menu selected="Roadmap" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
  3. civ2boss revised this gist Feb 24, 2015. No changes.
  4. civ2boss revised this gist Feb 24, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion designer.html
    Original file line number Diff line number Diff line change
    @@ -82,7 +82,7 @@
    </core-header-panel>
    <div id="div" tool>Title</div>
    <google-map latitude="{{ $.google_map_search.result.latitude }}" longitude="{{ $.google_map_search.result.longitude }}" zoom="18" id="google_map"></google-map>
    <google-map-search map="{{ $.google_map.map }}" query="{{ $.core_input.value }}" id="google_map_search"></google-map-search>
    <google-map-search map="{{ $.google_map.map }}" query="{{ $.input.value }}" id="google_map_search"></google-map-search>
    </core-scaffold>
    </template>

  5. civ2boss revised this gist Feb 24, 2015. No changes.
  6. civ2boss revised this gist Feb 24, 2015. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion designer.html
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,7 @@
    <link rel="import" href="../core-icons/core-icons.html">
    <link rel="import" href="../core-menu/core-submenu.html">
    <link rel="import" href="../google-map/google-map.html">
    <link rel="import" href="../google-map/google-map-search.html">

    <polymer-element name="my-element">

    @@ -58,6 +59,11 @@
    padding: 15px;
    width: 100%;
    }
    #google_map_search {
    left: 480px;
    top: 560px;
    position: absolute;
    }
    </style>
    <core-scaffold id="core_scaffold">
    <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
    @@ -75,7 +81,8 @@
    </core-menu>
    </core-header-panel>
    <div id="div" tool>Title</div>
    <google-map latitude="37.249333266345225" longitude="-122.31985640136719" id="google_map"></google-map>
    <google-map latitude="{{ $.google_map_search.result.latitude }}" longitude="{{ $.google_map_search.result.longitude }}" zoom="18" id="google_map"></google-map>
    <google-map-search map="{{ $.google_map.map }}" query="{{ $.core_input.value }}" id="google_map_search"></google-map-search>
    </core-scaffold>
    </template>

  7. civ2boss revised this gist Feb 4, 2015. No changes.
  8. civ2boss revised this gist Feb 4, 2015. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -56,15 +56,17 @@
    }
    #input {
    padding: 15px;
    width: 100%;
    }
    </style>
    <core-scaffold id="core_scaffold">
    <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
    <core-toolbar id="core_toolbar">
    <core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
    <core-icon icon="search" id="core_icon"></core-icon>
    <core-input id="core_input" flex></core-input>
    <input id="input" placeholder="type something..." is="core-input">
    <core-input id="core_input" flex>
    <input id="input" placeholder="type something..." is="core-input">
    </core-input>
    </core-field>
    </core-toolbar>
    <core-menu selected="Roadmap" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
  9. civ2boss revised this gist Feb 4, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -64,6 +64,7 @@
    <core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
    <core-icon icon="search" id="core_icon"></core-icon>
    <core-input id="core_input" flex></core-input>
    <input id="input" placeholder="type something..." is="core-input">
    </core-field>
    </core-toolbar>
    <core-menu selected="Roadmap" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
  10. civ2boss revised this gist Feb 4, 2015. No changes.
  11. civ2boss revised this gist Feb 3, 2015. No changes.
  12. civ2boss revised this gist Feb 3, 2015. No changes.
  13. civ2boss revised this gist Feb 3, 2015. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,6 @@
    <link rel="import" href="../core-icon/core-icon.html">
    <link rel="import" href="../core-input/core-input.html">
    <link rel="import" href="../core-icons/core-icons.html">
    <link rel="import" href="../paper-input/paper-input.html">
    <link rel="import" href="../core-menu/core-submenu.html">
    <link rel="import" href="../google-map/google-map.html">

    @@ -55,14 +54,16 @@
    position: absolute;
    background-color: rgb(255, 255, 255);
    }
    #input {
    padding: 15px;
    }
    </style>
    <core-scaffold id="core_scaffold">
    <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
    <core-toolbar id="core_toolbar">
    <core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
    <core-icon icon="search" id="core_icon"></core-icon>
    <core-input id="core_input" flex></core-input>
    <paper-input label="Type something..." id="paper_input"></paper-input>
    </core-field>
    </core-toolbar>
    <core-menu selected="Roadmap" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
  14. civ2boss revised this gist Feb 3, 2015. No changes.
  15. civ2boss revised this gist Feb 3, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion designer.html
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,7 @@
    <link rel="import" href="../core-icon/core-icon.html">
    <link rel="import" href="../core-input/core-input.html">
    <link rel="import" href="../core-icons/core-icons.html">
    <link rel="import" href="../paper-input/paper-input.html">
    <link rel="import" href="../core-menu/core-submenu.html">
    <link rel="import" href="../google-map/google-map.html">

    @@ -49,7 +50,7 @@
    position: absolute;
    }
    #core_field {
    left: 18px;
    left: 8px;
    top: 10px;
    position: absolute;
    background-color: rgb(255, 255, 255);
    @@ -61,6 +62,7 @@
    <core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
    <core-icon icon="search" id="core_icon"></core-icon>
    <core-input id="core_input" flex></core-input>
    <paper-input label="Type something..." id="paper_input"></paper-input>
    </core-field>
    </core-toolbar>
    <core-menu selected="Roadmap" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
  16. civ2boss revised this gist Feb 3, 2015. No changes.
  17. civ2boss revised this gist Feb 3, 2015. 1 changed file with 16 additions and 1 deletion.
    17 changes: 16 additions & 1 deletion designer.html
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,10 @@
    <link rel="import" href="../core-item/core-item.html">
    <link rel="import" href="../core-icon-button/core-icon-button.html">
    <link rel="import" href="../core-toolbar/core-toolbar.html">
    <link rel="import" href="../core-field/core-field.html">
    <link rel="import" href="../core-icon/core-icon.html">
    <link rel="import" href="../core-input/core-input.html">
    <link rel="import" href="../core-icons/core-icons.html">
    <link rel="import" href="../core-menu/core-submenu.html">
    <link rel="import" href="../google-map/google-map.html">

    @@ -44,10 +48,21 @@
    top: 0px;
    position: absolute;
    }
    #core_field {
    left: 18px;
    top: 10px;
    position: absolute;
    background-color: rgb(255, 255, 255);
    }
    </style>
    <core-scaffold id="core_scaffold">
    <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
    <core-toolbar id="core_toolbar"></core-toolbar>
    <core-toolbar id="core_toolbar">
    <core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
    <core-icon icon="search" id="core_icon"></core-icon>
    <core-input id="core_input" flex></core-input>
    </core-field>
    </core-toolbar>
    <core-menu selected="Roadmap" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
    <core-item id="core_item" on-tap="{{ showRoad }}" icon="settings" label="Roadmap" horizontal center layout active></core-item>
    <core-item id="core_item1" on-tap="{{ showSat }}" icon="settings" label="Satellite" horizontal center layout></core-item>
  18. civ2boss revised this gist Feb 3, 2015. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -49,8 +49,8 @@
    <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
    <core-toolbar id="core_toolbar"></core-toolbar>
    <core-menu selected="Roadmap" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
    <core-item id="core_item" on-tap="{{showRoad}}" icon="settings" label="Roadmap" horizontal center layout active></core-item>
    <core-item id="core_item1" on-tap="{{showSat}}" icon="settings" label="Satellite" horizontal center layout></core-item>
    <core-item id="core_item" on-tap="{{ showRoad }}" icon="settings" label="Roadmap" horizontal center layout active></core-item>
    <core-item id="core_item1" on-tap="{{ showSat }}" icon="settings" label="Satellite" horizontal center layout></core-item>
    </core-menu>
    </core-header-panel>
    <div id="div" tool>Title</div>
    @@ -60,11 +60,11 @@

    <script>

    Polymer('my-element', {
    showRoad: function(){
    Polymer({
    showRoad: function (){
    this.$.google_map.mapType = 'roadmap';
    },
    showSat: function(){
    showSat: function (){
    this.$.google_map.mapType = 'satellite';
    }
    });
  19. civ2boss revised this gist Feb 3, 2015. 1 changed file with 7 additions and 2 deletions.
    9 changes: 7 additions & 2 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -60,8 +60,13 @@

    <script>

    Polymer({

    Polymer('my-element', {
    showRoad: function(){
    this.$.google_map.mapType = 'roadmap';
    },
    showSat: function(){
    this.$.google_map.mapType = 'satellite';
    }
    });

    </script>
  20. civ2boss revised this gist Feb 3, 2015. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -48,9 +48,9 @@
    <core-scaffold id="core_scaffold">
    <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
    <core-toolbar id="core_toolbar"></core-toolbar>
    <core-menu selected="Item1" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
    <core-item id="core_item" icon="settings" label="Item1" horizontal center layout active>Roadmap</core-item>
    <core-item id="core_item1" icon="settings" label="Item2" horizontal center layout>Satellite</core-item>
    <core-menu selected="Roadmap" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
    <core-item id="core_item" on-tap="{{showRoad}}" icon="settings" label="Roadmap" horizontal center layout active></core-item>
    <core-item id="core_item1" on-tap="{{showSat}}" icon="settings" label="Satellite" horizontal center layout></core-item>
    </core-menu>
    </core-header-panel>
    <div id="div" tool>Title</div>
  21. civ2boss revised this gist Feb 3, 2015. No changes.
  22. civ2boss revised this gist Feb 3, 2015. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -48,9 +48,9 @@
    <core-scaffold id="core_scaffold">
    <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
    <core-toolbar id="core_toolbar"></core-toolbar>
    <core-menu valueattr="label" id="core_menu" theme="core-light-theme">
    <core-item id="core_item" icon="settings" label="Item1" horizontal center layout></core-item>
    <core-item id="core_item1" icon="settings" label="Item2" horizontal center layout></core-item>
    <core-menu selected="Item1" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
    <core-item id="core_item" icon="settings" label="Item1" horizontal center layout active>Roadmap</core-item>
    <core-item id="core_item1" icon="settings" label="Item2" horizontal center layout>Satellite</core-item>
    </core-menu>
    </core-header-panel>
    <div id="div" tool>Title</div>
  23. civ2boss revised this gist Feb 3, 2015. No changes.
  24. civ2boss revised this gist Feb 3, 2015. No changes.
  25. civ2boss revised this gist Feb 3, 2015. No changes.
  26. civ2boss created this gist Feb 3, 2015.
    69 changes: 69 additions & 0 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,69 @@
    <link rel="import" href="../core-scaffold/core-scaffold.html">
    <link rel="import" href="../core-header-panel/core-header-panel.html">
    <link rel="import" href="../core-menu/core-menu.html">
    <link rel="import" href="../core-item/core-item.html">
    <link rel="import" href="../core-icon-button/core-icon-button.html">
    <link rel="import" href="../core-toolbar/core-toolbar.html">
    <link rel="import" href="../core-menu/core-submenu.html">
    <link rel="import" href="../google-map/google-map.html">

    <polymer-element name="my-element">

    <template>
    <style>
    :host {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    }
    #core_scaffold {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    }
    #core_header_panel {
    background-color: rgb(255, 255, 255);
    }
    #core_toolbar {
    color: rgb(255, 255, 255);
    background-color: rgb(79, 125, 201);
    }
    #core_menu {
    font-size: 16px;
    }
    #google_map {
    width: 100%;
    height: 100%;
    display: block;
    left: 0px;
    top: 0px;
    position: absolute;
    }
    </style>
    <core-scaffold id="core_scaffold">
    <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
    <core-toolbar id="core_toolbar"></core-toolbar>
    <core-menu valueattr="label" id="core_menu" theme="core-light-theme">
    <core-item id="core_item" icon="settings" label="Item1" horizontal center layout></core-item>
    <core-item id="core_item1" icon="settings" label="Item2" horizontal center layout></core-item>
    </core-menu>
    </core-header-panel>
    <div id="div" tool>Title</div>
    <google-map latitude="37.249333266345225" longitude="-122.31985640136719" id="google_map"></google-map>
    </core-scaffold>
    </template>

    <script>

    Polymer({

    });

    </script>

    </polymer-element>