Browse Source

fixed doorbell issue

unknown 9 years ago
parent
commit
18108d493f
4 changed files with 11 additions and 18 deletions
  1. 0 4
      app/app.css
  2. 1 13
      app/templates/dashboard.html
  3. 1 1
      app/templates/home.html
  4. 9 0
      app/templates/room.html

+ 0 - 4
app/app.css

@@ -842,10 +842,6 @@ footer a:hover{
 .back:hover{
   color: white;
 }
-#doorbell-button{
-  margin-right: 2000px;
-}
-
 #volume-container {
   width: 172px; /*12.5 px each side*/
   float: right;

+ 1 - 13
app/templates/dashboard.html

@@ -13,19 +13,7 @@
           </div>
        {{/each}}
     </div>
-    <ul class="bg-bubbles">
-        <li></li>
-        <li></li>
-        <li></li>
-        <li></li>
-        <li></li>
-        <li></li>
-        <li></li>
-        <li></li>
-        <li></li>
-        <li></li>
-    </ul>
-
+    
     <script type="text/javascript">
       window.doorbellOptions = {
           appKey: 'v2Gu14c8s9HgBsAFCXNWIm2vlk11N12Plt2Wu5k2MbQIkM1Ao6kOTCbfN95ElEVM',

+ 1 - 1
app/templates/home.html

@@ -16,7 +16,7 @@
         <div class="push"></div>
     </div>
     {{> footer}}
-    
+
     <ul class="bg-bubbles">
         <li></li>
         <li></li>

+ 9 - 0
app/templates/room.html

@@ -147,4 +147,13 @@
             <li></li>
         </ul>
     </div>
+    <script type="text/javascript">
+      window.doorbellOptions = {
+          appKey: 'v2Gu14c8s9HgBsAFCXNWIm2vlk11N12Plt2Wu5k2MbQIkM1Ao6kOTCbfN95ElEVM',
+          hideEmail: true
+      };
+      (function(d, t) {
+          var g = d.createElement(t);g.id = 'doorbellScript';g.type = 'text/javascript';g.async = true;g.src = 'https://embed.doorbell.io/button/2408?t='+(new Date().getTime());(d.getElementsByTagName('head')[0]||d.getElementsByTagName('body')[0]).appendChild(g);
+      }(document, 'script'));
+    </script>
 </template>