Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 70 lines (64 sloc) 1.66 KB
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
The complete set of authors may be found at
The complete set of contributors may be found at
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at
<link rel="import" href="../../bower_components/polymer/polymer.html">
<dom-module id="awesome-meme">
:host {
display: block;
background-image: url("/images/awesome.png");
width: 300px;
height: 300px;
position: relative;
.top, .bottom{
position: absolute;
font-size: 30px;
font-weight: bold;
width: 100%;
text-align: center;
.top {
top: 20px;
.bottom {
bottom: 20px;
<div class="top">{{top}}</div>
<div class="bottom">{{bottom}}</div>
class AwesomeMeme {
beforeRegister() { = 'awesome-meme'; = {
top: {
type: String,
value: ''
bottom: {
type: String,
value: ''
created() {}
ready() { =;
this.bottom = this.bottom.toUpperCase();
attached() {}
detached() {}
attributeChanged() {}