Fixed background stuff

This commit is contained in:
Kasper Rynning-Tønnesen
2015-11-25 21:06:40 +01:00
parent fd649665c5
commit 05ac3f8c1c
4 changed files with 25 additions and 9 deletions

View File

@@ -99,13 +99,15 @@ var Nochan = {
url: "/php/imageblob.php",
success: function(data){
//data will contain the vote count echoed by the controller i.e.
$(".mega").css("opacity", 0);
$("#mega-background").css("opacity", 0);
$(".room-namer").css("opacity", 0);
setTimeout(function(){
$(".mega").css("background", "url(data:image/png;base64,"+data+")");
$(".mega").css("background-size" , "200%");
$(".mega").css("opacity", 1);
$("#mega-background").css("background", "url(data:image/png;base64,"+data+")");
$("#mega-background").css("background-size" , "200%");
$("#mega-background").css("opacity", 1);
$("#search").attr("placeholder", list[i][3]);
},1000);
$(".room-namer").css("opacity", 1);
},500);
//then append the result where ever you want like
//$("span#votes_number").html(data); //data will be containing the vote count which you have echoed from the controller