Error handling, localstorage fix, styling, search stuff, boobs, fucks and colored people

This commit is contained in:
Nicolas A. Tonne
2015-04-20 14:30:53 +02:00
parent 77ca7f7a6b
commit d3642364d0
7 changed files with 25 additions and 15 deletions

View File

@@ -25,11 +25,13 @@ function fitToScreen()
function initSlider()
{
if(localStorage.getItem("volume") !== undefined)
if(localStorage.volume)
{
vol = localStorage.getItem("volume");
}else
}else{
vol = 100;
localStorage.setItem("volume", vol);
}
$("#volume").slider({
min: 0,
max: 100,