2.3.7 horizontal nav, media keys
This commit is contained in:
parent
53ed1bc0d4
commit
77831e1ef6
17 changed files with 1914 additions and 1553 deletions
|
@ -238,15 +238,16 @@ var timer = null;
|
|||
var scrollMsg = "";
|
||||
var pos = 0;
|
||||
function scrollTitle(text) {
|
||||
if (scrollMsg === "") {
|
||||
if (text === "") {
|
||||
if (scrollMsg == "") {
|
||||
if (text == "") {
|
||||
scrollMsg = document.title;
|
||||
} else {
|
||||
scrollMsg = text;
|
||||
}
|
||||
} else {
|
||||
if (text != undefined && text != scrollMsg) {
|
||||
if (typeof text != 'undefined' && text != scrollMsg) {
|
||||
scrollMsg = text;
|
||||
pos = 0;
|
||||
}
|
||||
}
|
||||
var msg = scrollMsg;
|
||||
|
@ -261,7 +262,7 @@ function scrollTitle(text) {
|
|||
if (pos > ml) {
|
||||
pos = 0;
|
||||
} else {
|
||||
//timer = window.setTimeout("scrollTitle()", speed);
|
||||
timer = window.setTimeout("scrollTitle()", speed);
|
||||
}
|
||||
// To stop timer, clearTimeout(timer);
|
||||
}
|
||||
|
@ -287,6 +288,7 @@ function showNotification(pic, title, text, type, bind) {
|
|||
if (bind = '#NextTrack') {
|
||||
popup.addEventListener('click', function () {
|
||||
$(bind).click();
|
||||
this.cancel();
|
||||
})
|
||||
}
|
||||
notifications.push(popup);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue