more fix
This commit is contained in:
parent
fe572a76aa
commit
a15f6d5e12
@ -28,8 +28,8 @@ window.quotes_initialize = function(){
|
|||||||
/* Will not give you the same quote twice in a row! */
|
/* Will not give you the same quote twice in a row! */
|
||||||
window.quote_new = function(){
|
window.quote_new = function(){
|
||||||
window.quote_old = window.quote; /* The quote currently in use. */
|
window.quote_old = window.quote; /* The quote currently in use. */
|
||||||
quoteIndex = Math.floor(Math.random() * window.quotes.length);
|
quote_index = Math.floor(Math.random() * window.quotes.length);
|
||||||
window.quote = window.quotes.splice(quoteIndex, 1)[0];
|
window.quote = window.quotes.splice(quote_index, 1)[0];
|
||||||
if(window.quote_old)
|
if(window.quote_old)
|
||||||
window.quotes.push(window.quote_old);
|
window.quotes.push(window.quote_old);
|
||||||
|
|
||||||
@ -41,6 +41,6 @@ window.quote_new = function(){
|
|||||||
|
|
||||||
if(quote_author = document.getElementById(
|
if(quote_author = document.getElementById(
|
||||||
window.QUOTES_QUOTE_AUTHOR_ID))
|
window.QUOTES_QUOTE_AUTHOR_ID))
|
||||||
quoteAuthorText.textContent = window.QUOTES_QUOTE_AUTHOR_PREFIX
|
quote_author.textContent = window.QUOTES_QUOTE_AUTHOR_PREFIX
|
||||||
+ window.quote[1];
|
+ window.quote[1];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user