mirror of
https://github.com/Starlio-app/StarlioX
synced 2024-11-25 09:16:21 +03:00
97 lines
No EOL
4.4 KiB
HTML
97 lines
No EOL
4.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Starlio</title>
|
|
|
|
<link rel="icon" href="/static/image/icons/favicon.png">
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="/static/style/gallery.css" type="text/css">
|
|
<link rel="stylesheet" href="/static/style/favorite.css" type="text/css">
|
|
</head>
|
|
<nav class="navbar navbar-expand-lg bg-dark navbar-dark">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand" href="/" draggable="false">
|
|
<img src="/static/image/icons/favicon.png" width="45" alt="Starlio">
|
|
</a>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarNavDropdown">
|
|
<ul class="navbar-nav">
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/">Gallery</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link active" aria-current="page" href="/favorite">Favorite</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/settings">Settings</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/about">About</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<div class="modal fade" id="WallpaperModal" aria-hidden="true" aria-labelledby="WallpaperModal" tabindex="-1" style="color: black;">
|
|
<div class="modal-dialog modal-dialog-centered">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="WallpaperModale">
|
|
<span class="d-inline-block text-truncate w-modal-title" style="max-width: 429px;"></span>
|
|
</h5>
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
</div>
|
|
<div class="modal-body"></div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="container">
|
|
<header class="header-row"></header>
|
|
</div>
|
|
<div class="preloader">
|
|
<lottie-player src="https://assets4.lottiefiles.com/datafiles/a3YH0ragZcwfKHS/data.json" background="transparent" speed="1" style="width: 600px; height: 600px;" loop autoplay></lottie-player>
|
|
</div>
|
|
<body>
|
|
<script src="https://code.jquery.com/jquery-3.6.1.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.min.js" integrity="sha384-7VPbUDkoPSGFnVtYi0QogXtr74QeVeeIs99Qfg5YCF+TidwNdjvaKZX19NZ/e6oz" crossorigin="anonymous"></script>
|
|
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
|
|
<script src="/static/scripts/gallery.js" type="application/javascript"></script>
|
|
<script type="application/javascript">
|
|
$(document).ready(function () {
|
|
$.ajax({
|
|
url: "http://localhost:3000/api/get/favorites",
|
|
type: "GET",
|
|
success: function(data) {
|
|
console.log(data);
|
|
if(data === null) {
|
|
$(".preloader").hide();
|
|
$("body").append(`
|
|
<lottie-player id="star"
|
|
src="https://assets2.lottiefiles.com/private_files/lf30_rcvcAS.json"
|
|
background="transparent"
|
|
autoplay
|
|
speed="1">
|
|
</lottie-player>
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h1 class="text-center" style="color: white; margin-top: -5%">You don't have any favorites</h1>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`);
|
|
}
|
|
|
|
wallpaperLoad(data);
|
|
},
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |