浏览代码

Added error image if current song image could not be loaded.

KrisVos130 9 年之前
父节点
当前提交
2c85a975b1
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      app/app.css
  2. 1 1
      app/templates/room.html

+ 1 - 0
app/app.css

@@ -667,6 +667,7 @@ footer a:hover{
 }
 }
 .song-img {
 .song-img {
   width: 210px;
   width: 210px;
+  height: 210px;
   margin-left: 35px;
   margin-left: 35px;
 }
 }
 #seeker-container {
 #seeker-container {

+ 1 - 1
app/templates/room.html

@@ -21,7 +21,7 @@
                     </div>
                     </div>
                 </div>
                 </div>
                 <div class="col-md-4" style="margin-top:15px">
                 <div class="col-md-4" style="margin-top:15px">
-                  <img class="song-img" id="song-img"/>
+                  <img class="song-img" onError="this.src='http://static.boredpanda.com/blog/wp-content/uploads/2014/04/amazing-fox-photos-182.jpg'" id="song-img"/>
                   <h2 class="room-title">{{{title}}}</h2>
                   <h2 class="room-title">{{{title}}}</h2>
                   <h2 class="room-artist">{{{artist}}}</h2>
                   <h2 class="room-artist">{{{artist}}}</h2>
                 </div>
                 </div>