2
0
Эх сурвалжийг харах

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

KrisVos130 9 жил өмнө
parent
commit
2c85a975b1

+ 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>