'+(i+1),'
'+val);
});
c.height(this.height-26);
+ var s = this.scrollbar.height(this.height-26);
+ s.children('.list-scrollbar').height(s.height()/c[0].scrollHeight*s.height()).css('display', s.children('.list-scrollbar').height()===c.height() ? 'none' : 'inline-block');
this.el.find('.list-length').text('length: '+this.contents.length);
};
diff --git a/player.css b/player.css
index 8402a3e..61573de 100644
--- a/player.css
+++ b/player.css
@@ -113,6 +113,20 @@
font-weight: bold;
}
+.list .list-scrollbar-container {
+ float: right;
+ width: 10px;
+ position: relative;
+}
+
+.list .list-scrollbar {
+ position: absolute;
+ top: 0px;
+ width: 10px;
+ background-color: #a8aaad;
+ border-radius: 10px;
+}
+
.list .list-index {
color: rgb(81, 81, 81);
float: left;