Skip to content

Instantly share code, notes, and snippets.

@foscoj
Last active August 29, 2015 14:12
Show Gist options
  • Save foscoj/cdf571bfe3c91c5956fa to your computer and use it in GitHub Desktop.
Save foscoj/cdf571bfe3c91c5956fa to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../chart-js/chart-js.html">
<link rel="import" href="../cool-clock/cool-clock.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../code-mirror/code-mirror.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#chart_js {
width: 300px;
height: 200px;
left: 420px;
top: 260px;
position: absolute;
}
#cool_clock {
width: 400px;
height: 300px;
left: 380px;
top: 130px;
position: absolute;
}
#code_mirror {
width: 400px;
height: 300px;
left: 500px;
top: 260px;
position: absolute;
opacity: 0.8;
}
#google_map {
width: 100%;
height: 100%;
display: block;
left: 0px;
top: 0px;
position: absolute;
}
</style>
<chart-js id="chart_js"></chart-js>
<cool-clock id="cool_clock"></cool-clock>
<google-map latitude="37.52212525243214" longitude="-121.45536970703125" zoom="9" id="google_map"></google-map>
<code-mirror value="<polymer-element name='my-element'>
<template></template>
<script>
Polymer('my-element', {});
</script>
</polymer-element>" id="code_mirror"><polymer-element name='my-element'>
<template></template>
<script>
Polymer('my-element', {});
</script>
</polymer-element></code-mirror>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment