mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-01-09 19:15:34 +00:00
Fixed urls
This commit is contained in:
2
server/public/assets/dist/embed.min.js
vendored
2
server/public/assets/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
2
server/public/assets/dist/main.min.js
vendored
2
server/public/assets/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -194,10 +194,14 @@ var Frontpage = {
|
|||||||
img.src = "/assets/images/thumbnails/"+id+".jpg";
|
img.src = "/assets/images/thumbnails/"+id+".jpg";
|
||||||
|
|
||||||
img.onerror = function(e){ // Failed to load
|
img.onerror = function(e){ // Failed to load
|
||||||
|
var add = "";
|
||||||
|
if(window.location.hostname == "fb.zoff.me") {
|
||||||
|
add = "https://zoff.me";
|
||||||
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: {id:id},
|
data: {id:id},
|
||||||
url: "/api/imageblob",
|
url: add + "/api/imageblob",
|
||||||
success: function(data){
|
success: function(data){
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
$("#mega-background").css("background", "url(/assets/images/thumbnails/"+data+")");
|
$("#mega-background").css("background", "url(/assets/images/thumbnails/"+data+")");
|
||||||
@@ -229,8 +233,12 @@ var Frontpage = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
get_frontpage_lists: function() {
|
get_frontpage_lists: function() {
|
||||||
|
var add = "";
|
||||||
|
if(window.location.hostname == "fb.zoff.me") {
|
||||||
|
add = "https://zoff.me";
|
||||||
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "/api/frontpages",
|
url: add + "/api/frontpages",
|
||||||
method: "get",
|
method: "get",
|
||||||
success: function(response){
|
success: function(response){
|
||||||
Frontpage.frontpage_function(response);
|
Frontpage.frontpage_function(response);
|
||||||
|
|||||||
Reference in New Issue
Block a user