mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Updating
This commit is contained in:
@@ -12,7 +12,7 @@ $output = $image->getimageblob();
|
|||||||
|
|
||||||
$image->setImageFormat("jpeg");
|
$image->setImageFormat("jpeg");
|
||||||
|
|
||||||
file_put_contents ("/images/thumbnails/".$_POST['id'].".jpg", $image);
|
file_put_contents ("/static/images/thumbnails/".$_POST['id'].".jpg", $image);
|
||||||
|
|
||||||
echo base64_encode($output);
|
echo base64_encode($output);
|
||||||
?>
|
?>
|
||||||
2
static/dist/frontpage.min.js
vendored
2
static/dist/frontpage.min.js
vendored
File diff suppressed because one or more lines are too long
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -138,6 +138,15 @@ var Nochan = {
|
|||||||
//$(".room-namer").css("opacity", 1);
|
//$(".room-namer").css("opacity", 1);
|
||||||
},500);
|
},500);
|
||||||
}else{
|
}else{
|
||||||
|
var img = new Image();
|
||||||
|
img.src = "/images/thumbnails/"+id+".jpg";
|
||||||
|
|
||||||
|
img.onerror = function(){ // Failed to load
|
||||||
|
console.log("didn't find");
|
||||||
|
};
|
||||||
|
img.onload = function(){ // Loaded successfully
|
||||||
|
console.log("found");
|
||||||
|
};
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: {id:id},
|
data: {id:id},
|
||||||
|
|||||||
Reference in New Issue
Block a user