Changeset - 2df0dc79ce76
[Not reviewed]
default
6 2 6
Drew Perttula - 9 years ago 2016-06-08 06:02:07
drewp@bigasterisk.com
modernize polymer on index page. move live and timeline to subdirs
Ignore-this: 99a836d91ddbc8117abbe04788772409
8 files changed with 37 insertions and 36 deletions:
0 comments (0 inline, 0 general)
light9/web/index.html
Show inline comments
 
@@ -3,49 +3,48 @@
 
  <head>
 
    <title></title>
 
    <meta charset="utf-8" />
 
    <script src="/lib/webcomponentsjs/webcomponents-lite.min.js"></script>
 
    <link rel="stylesheet" href="/style.css">
 
    <link rel="import" href="/lib/polymer/polymer.html">
 
  </head>
 
  <body>
 
    <dom-module id="service-button-row">
 
      <style>
 
       div {
 
         display: flex;
 
         justify-content: space-between;
 
         padding: 2px 3px;
 
       }
 
       div:hover {
 
         background: gray;
 
      <template>
 
        <style>
 
         div {
 
             display: flex;
 
             justify-content: space-between;
 
             padding: 2px 3px;
 
         }
 
       .left {
 
         display: inline-block;
 
         margin-right: 3px;
 
       }
 
      </style>
 
      <template>
 
         div:hover {
 
             background: gray;
 
         }
 
         .left {
 
             display: inline-block;
 
             margin-right: 3px;
 
         }
 
        </style>
 
        <div>
 
          <span class="left"><a class="big" href="{{withSlash}}">{{name}}</a></span>
 
          <span class="left"><a class="big" href="{{name}}/">{{name}}</a></span>
 
          <span><button on-click="click">window</button></span>
 
        </div>
 
      </template>
 
      <script>
 
       HTMLImports.whenReady(function () {
 
           Polymer({
 
               is: "service-button-row",
 
               properties: {
 
                   name: String,
 
               },
 
               click: function() {
 
                   window.open(this.name + '/', '_blank',
 
                               'scrollbars=1,resizable=1,titlebar=0,location=0');
 
               }
 
           });
 
       });
 
      </script>
 
    </dom-module>
 
    <script>
 
     Polymer({
 
       is: "service-button-row",
 
       properties: {
 
         name: String,
 
         withSlash: { type: String, computed: 'computeWithSlash(name)' },
 
       },
 
       computeWithSlash: function (name) {
 
         return name + '/';
 
       },
 
       click: function() {
 
         window.open(this.withSlash, '_blank',
 
                     'scrollbars=1,resizable=1,titlebar=0,location=0');
 
       }
 
     });
 
    </script>
 

	
 
    
 
    <h1>light9 home page</h1>
 

	
 
    <div style="float: left">
 
@@ -57,6 +56,8 @@
 
      <service-button-row name="picamserve"></service-button-row>
 
      <service-button-row name="vidref"></service-button-row>
 
      <service-button-row name="."></service-button-row>
 
      <service-button-row name="live"></service-button-row>
 
      <service-button-row name="timeline"></service-button-row>
 
    </div>
 
    
 
  </body>
light9/web/live/index.html
Show inline comments
 
file renamed from light9/web/live.html to light9/web/live/index.html
light9/web/timeline/adjustable.coffee
Show inline comments
 
file renamed from light9/web/adjustable.coffee to light9/web/timeline/adjustable.coffee
light9/web/timeline/index.html
Show inline comments
 
file renamed from light9/web/timeline.html to light9/web/timeline/index.html
light9/web/timeline/light9-timeline-audio.html
Show inline comments
 
file renamed from light9/web/light9-timeline-audio.html to light9/web/timeline/light9-timeline-audio.html
light9/web/timeline/timeline-elements.html
Show inline comments
 
file renamed from light9/web/timeline-elements.html to light9/web/timeline/timeline-elements.html
 
<link rel="import" href="/lib/polymer/polymer.html">
 
<link rel="import" href="light9-timeline-audio.html">
 
<link rel="import" href="/lib/iron-resizable-behavior/iron-resizable-behavior.html">
 
<link rel="import" href="/lib/iron-ajax/iron-ajax.html">
 
<link rel="import" href="rdfdb-synced-graph.html">
 
<link rel="import" href="light9-music.html">
 
<link rel="import" href="light9-timeline-audio.html">
 
<link rel="import" href="../rdfdb-synced-graph.html">
 
<link rel="import" href="../light9-music.html">
 

	
 

	
 
<!-- Whole editor- include this on your page.
light9/web/timeline/timeline.coffee
Show inline comments
 
file renamed from light9/web/timeline.coffee to light9/web/timeline/timeline.coffee
makefile
Show inline comments
 
@@ -98,4 +98,4 @@ arduino_upload: /usr/share/arduino/Ardui
 
effect_node_setup: create_virtualenv packages binexec install_python_deps
 

	
 
coffee:
 
	coffee -cw light9/web/*.coffee
 
	coffee -cw light9/web/{.,timeline}/*.coffee
0 comments (0 inline, 0 general)