Преглед изворни кода

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 {
   width: 210px;
+  height: 210px;
   margin-left: 35px;
 }
 #seeker-container {

+ 1 - 1
app/templates/room.html

@@ -21,7 +21,7 @@
                     </div>
                 </div>
                 <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-artist">{{{artist}}}</h2>
                 </div>