Created
June 25, 2014 19:31
-
-
Save designer-polymer/eb3f13d43f3250e6d443 to your computer and use it in GitHub Desktop.
designer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link rel="import" href="../topeka-elements/theme.html"> | |
| <link rel="import" href="../topeka-elements/topeka-resources.html"> | |
| <link rel="import" href="../topeka-elements/topeka-app.html"> | |
| <link rel="import" href="../topeka-elements/topeka-datasource.html"> | |
| <link rel="import" href="../notification-elements/notification-alert.html"> | |
| <polymer-element name="my-element" on-quiz-done="{{quizDone}}"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| box-sizing: border-box; | |
| } | |
| #topeka_app { | |
| width: 100%; | |
| height: 100%; | |
| min-height: 450px; | |
| left: 0px; | |
| top: 0px; | |
| position: absolute; | |
| } | |
| #topeka_datasource { | |
| left: 720px; | |
| top: 330px; | |
| position: absolute; | |
| } | |
| #notification_alert { | |
| left: 640px; | |
| top: 310px; | |
| position: absolute; | |
| } | |
| </style> | |
| <topeka-app user="{{ $.topeka_datasource.user }}" categories="{{ $.topeka_datasource.categories }}" id="topeka_app" vertical layout></topeka-app> | |
| <topeka-datasource url="../topeka-elements/categories.json" id="topeka_datasource" hidden></topeka-datasource> | |
| <notification-alert message="{{ $.topeka_app.user.score }}" icon="icon.png" name="notification" id="notification_alert"></notification-alert> | |
| </template> | |
| <script> | |
| Polymer('my-element', { | |
| quizDone: function() { | |
| this.$.notification_alert.notify(); | |
| } | |
| }); | |
| </script> | |
| </polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment