mirror of
https://github.com/Starlio-app/StarlioX
synced 2024-11-05 06:03:57 +03:00
rewritten from net/http to fiber, changed port from 8080, 4662 to one 3000
This commit is contained in:
parent
c1d27ef76c
commit
3d129522b2
1 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ function wallpaper(data) {
|
||||||
$(".header-row").append(`
|
$(".header-row").append(`
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<a data-bs-toggle="modal" href="#WallpaperModal" role="button">
|
<a data-bs-toggle="modal" href="#WallpaperModal" role="button">
|
||||||
<img src="http://localhost:4662/static/image/placeholder.png"
|
<img src="http://localhost:3000/static/image/placeholder.png"
|
||||||
data-src="https://img.youtube.com/vi/${ids[id]['url'].slice(30, 41)}/maxresdefault.jpg"
|
data-src="https://img.youtube.com/vi/${ids[id]['url'].slice(30, 41)}/maxresdefault.jpg"
|
||||||
alt="${ids[id]['title']}"
|
alt="${ids[id]['title']}"
|
||||||
class="card-img-top"
|
class="card-img-top"
|
||||||
|
@ -80,7 +80,7 @@ function wallpaper(data) {
|
||||||
|
|
||||||
let button = document.querySelector(".modal-footer");
|
let button = document.querySelector(".modal-footer");
|
||||||
|
|
||||||
if($(`img#${id}.card-img-top`).attr("src") !== "http://localhost:4662/static/image/placeholder.png") {
|
if($(`img#${id}.card-img-top`).attr("src") !== "http://localhost:3000/static/image/placeholder.png") {
|
||||||
button.innerHTML = `<button type="button" class="btn btn-primary" id="setWallpaper">Set Wallpaper</button>`;
|
button.innerHTML = `<button type="button" class="btn btn-primary" id="setWallpaper">Set Wallpaper</button>`;
|
||||||
} else {
|
} else {
|
||||||
button.innerHTML = `<button type="button"
|
button.innerHTML = `<button type="button"
|
||||||
|
@ -157,7 +157,7 @@ function wallpaper(data) {
|
||||||
|
|
||||||
function wallpaperUpdate(url) {
|
function wallpaperUpdate(url) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "http://localhost:8080/api/update/wallpaper",
|
url: "http://localhost:3000/api/update/wallpaper",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: {
|
data: {
|
||||||
url: url,
|
url: url,
|
||||||
|
|
Loading…
Reference in a new issue