Skip to content

Instantly share code, notes, and snippets.

@joshkopecek
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshkopecek/6e018442c0dce00dfa47 to your computer and use it in GitHub Desktop.
Save joshkopecek/6e018442c0dce00dfa47 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="echoes-creator">
<template>
<style>
:host {
width: 100%;
height: 100%;
box-sizing: border-box;
}
#google_map {
width: 100%;
height: 100%;
display: block;
top: 0px;
position: absolute;
left: 0px;
}
#core_toolbar {
right: 0px;
color: rgb(0, 0, 0);
fill: rgb(255, 255, 255);
opacity: 1;
position: absolute;
left: 0px;
top: 0px;
background-color: rgb(255, 235, 59);
}
#core_drawer_panel {
right: 0px;
bottom: 0px;
position: static;
left: 0px;
top: 0px;
display: block;
width: 100%;
height: 100%;
}
#drawer {
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
right: 0px;
margin: 60px 0px 0px;
background-color: rgb(250, 250, 250);
}
#main {
height: 100%;
box-sizing: border-box;
width: 100%;
margin: 60px 0px 0px;
background-color: rgb(221, 221, 221);
}
#core_card {
padding: 24px;
margin: 10px;
background-color: rgb(255, 255, 255);
}
#section {
left: 66px;
top: 260px;
position: absolute;
}
core-card {
position: relative;
width: auto;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
padding: 5px;
margin: 5px;
background-color: rgb(255, 255, 255);
}
#section1 {
display: none;
}
</style>
<core-drawer-panel transition selected="drawer" rightdrawer id="core_drawer_panel" class="right-drawer" touch-action>
<section id="main" main>
<google-map latitude="37.68912728462339" longitude="-121.98271345703125" id="google_map"></google-map>
</section>
<section id="drawer" drawer vertical>
<core-card id="sound" layout vertical>
<section id="section2" class="zone-title">
<h3 id="h3">Sound title</h3>
</section>
<section id="section1" class="zone-details">
<p id="p">Sound description</p>
<h4>Shape:</h4>
<select id="select" ng-model="zone.shapeType" ng-options="shape.name for shape in possibleShapes" ng-change="shapeTypeChanged(zone.index)" class="ng-pristine ng-untouched ng-valid">
<option value="0">Circle</option>
<option value="1" selected="selected">Polygon</option>
</select>
<h4>Zone colour:</h4>
<select id="select1" ng-model="zone.color" ng-options="c.name for c in standardColors" ng-change="updateShapeColor(zone.index)" class="ng-pristine ng-untouched ng-valid">
<option value="0">Aqua</option>
<option value="1">Aquamarine</option>
</select>
</section>
</core-card>
<section id="section"></section>
<core-card id="core_card1" layout vertical></core-card>
</section>
</core-drawer-panel>
<core-toolbar id="core_toolbar" horizontal layout start-justified start>
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
<div id="div" flex>Echoes</div>
</core-toolbar>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment