2020-12-19 16:10:59 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<!-- Required meta tags -->
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
|
|
|
|
2022-01-11 13:33:30 +00:00
|
|
|
<title>Wrapperr</title>
|
2020-12-19 16:10:59 +00:00
|
|
|
|
|
|
|
<!-- Bootstrap 4 CSS and custom CSS -->
|
2020-12-23 13:17:10 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="assets/css/wrapped.css" />
|
2020-12-19 16:10:59 +00:00
|
|
|
<link rel="shortcut icon" href="assets/img/favicons/favicon.ico" />
|
|
|
|
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
|
2020-12-22 16:41:46 +00:00
|
|
|
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
|
2022-01-11 13:33:30 +00:00
|
|
|
<script src="./functions.js"></script>
|
2021-03-08 18:45:06 +00:00
|
|
|
<script src="./index.js"></script>
|
|
|
|
<script src="./get_stats.js"></script>
|
|
|
|
<script src="./get_functions.js"></script>
|
2020-12-19 16:10:59 +00:00
|
|
|
|
|
|
|
</head>
|
2021-12-12 16:31:15 +00:00
|
|
|
<body id='body'>
|
2020-12-19 16:10:59 +00:00
|
|
|
|
2021-03-13 22:40:46 +00:00
|
|
|
<div class="content_landing" id="login_content" style="">
|
2020-12-19 16:10:59 +00:00
|
|
|
|
2020-12-23 13:17:10 +00:00
|
|
|
<div class="boks">
|
2020-12-19 16:10:59 +00:00
|
|
|
|
2022-01-11 13:33:30 +00:00
|
|
|
<div class="boks3" id="" style="padding: 0 !important;">
|
2021-03-08 18:45:06 +00:00
|
|
|
|
|
|
|
<div class="boks2" style="float: none !important; display: block; padding: 0; margin-top: 0em;">
|
|
|
|
<img src="assets/img/gift.svg" onclick="window.location.href = './';" style="width: 15em; cursor: pointer;">
|
|
|
|
</div>
|
2022-01-11 13:33:30 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boks3" id="search_input" style="padding: 0 !important;">
|
2021-03-08 18:45:06 +00:00
|
|
|
|
|
|
|
<div class="boks2" style="float: none !important; display: block; margin-top: 0em; padding-top: 0;">
|
|
|
|
|
2021-12-12 16:31:15 +00:00
|
|
|
<div class="stats_tekst" id='intro_text' style="height: auto;">
|
2021-03-08 18:45:06 +00:00
|
|
|
<p>
|
|
|
|
Did you get that thing from Spotify and wondered what your Plex statistics looked like?
|
|
|
|
<br><br>Well, have a look...
|
|
|
|
</p>
|
2020-12-23 13:17:10 +00:00
|
|
|
</div>
|
2020-12-19 16:10:59 +00:00
|
|
|
|
2020-12-23 13:17:10 +00:00
|
|
|
<br>
|
2020-12-19 16:10:59 +00:00
|
|
|
|
2021-03-08 18:45:06 +00:00
|
|
|
<div class="status" id="stats" style="">
|
|
|
|
|
2022-01-11 13:33:30 +00:00
|
|
|
<h1 id='application_name'>Wrapperr</h1>
|
2020-12-19 16:10:59 +00:00
|
|
|
|
2020-12-23 13:17:10 +00:00
|
|
|
<div class="search">
|
2020-12-19 16:10:59 +00:00
|
|
|
|
2021-12-12 16:31:15 +00:00
|
|
|
<form id='plex_login_form' class='form' onsubmit='return false' action="" method="post">
|
2020-12-19 16:10:59 +00:00
|
|
|
|
2021-12-12 16:31:15 +00:00
|
|
|
<div class="form-group" id='plex_login_div'>
|
2022-01-18 16:57:26 +00:00
|
|
|
<button class='form-control btn' name="plex_login_button" id="plex_login_button" onclick='plex_login()'>
|
2021-12-12 16:31:15 +00:00
|
|
|
<img src='assets/external-link.svg' class='btn_logo'>
|
|
|
|
<p2 id='plex_login_button_text'>Sign in using Plex</p2>
|
|
|
|
</button>
|
2021-03-08 18:45:06 +00:00
|
|
|
</div>
|
|
|
|
|
2021-12-12 16:31:15 +00:00
|
|
|
</form>
|
2020-12-19 16:10:59 +00:00
|
|
|
|
2022-01-17 10:04:32 +00:00
|
|
|
<form id='search_wrapped_form' class='form' onsubmit='return false;' action="" method="post" style="display: none;">
|
2020-12-19 16:10:59 +00:00
|
|
|
|
2021-12-12 16:31:15 +00:00
|
|
|
<div class="form-group" id='search_wrapped_div'>
|
2022-01-17 10:04:32 +00:00
|
|
|
<button class='form-control btn' name="search_wrapped_button" id="search_wrapped_button" style='opacity: 0.5;' onclick='search_wrapperr()' disabled>
|
2021-12-12 16:31:15 +00:00
|
|
|
<img src='assets/done.svg' class='btn_logo'>
|
2022-01-11 13:33:30 +00:00
|
|
|
<p2 id='search_wrapped_button_text'>Unwrap</p2>
|
2021-12-12 16:31:15 +00:00
|
|
|
</button>
|
2020-12-23 13:17:10 +00:00
|
|
|
</div>
|
2020-12-19 16:10:59 +00:00
|
|
|
|
2022-01-11 13:33:30 +00:00
|
|
|
<div class="form-group" id='sign_out_div' style='display: none;'>
|
|
|
|
<button class='form-control btn' name="plex_signout_button" id="plex_signout_button" onclick='sign_out()'>
|
|
|
|
<img src='assets/close.svg' class='btn_logo'>
|
|
|
|
<p2 id='plex_signout_button_text'>Sign Out</p2>
|
|
|
|
</button>
|
|
|
|
</div>
|
2020-12-19 16:10:59 +00:00
|
|
|
|
2022-01-11 13:33:30 +00:00
|
|
|
</form>
|
2021-12-12 16:31:15 +00:00
|
|
|
|
|
|
|
|
2020-12-23 13:17:10 +00:00
|
|
|
</div>
|
2020-12-22 16:27:30 +00:00
|
|
|
|
2022-01-11 13:33:30 +00:00
|
|
|
<img id="loading_icon" src="assets/loading.gif" style="border-radius: 25px; background-color: var(--white); padding: 1em;width: 4em; height: 4em; display:none; margin: 1em 0 0 0;">
|
2020-12-19 16:10:59 +00:00
|
|
|
|
2020-12-23 13:17:10 +00:00
|
|
|
<div id="results">
|
2022-01-11 13:33:30 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group" id='results_error_div'>
|
|
|
|
<div id="results_error" style="color: var(--red) !important;"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group" id='share_wrapped_title_div' style='margin: 0; display: none;'>
|
|
|
|
<h3 style='margin: 0'>Shareable link:</h3>
|
2020-12-23 13:17:10 +00:00
|
|
|
</div>
|
2020-12-19 16:10:59 +00:00
|
|
|
|
2022-01-11 13:33:30 +00:00
|
|
|
<div class="form-group" id='share_wrapped_div' style=' display: none;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-content: flex-start;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: flex-start;
|
|
|
|
border-radius: 6px;
|
|
|
|
margin: 0 0 0.5em 0;
|
|
|
|
padding: 0.5em;
|
|
|
|
'>
|
|
|
|
<div class='form-control btn' id="share_wrapped_delete_button" style='background-color: var(--white); cursor: default;'>
|
|
|
|
<span id='share_wrapped_url' style=''></span>
|
|
|
|
<img id='share_wrapped_copy' src='assets/external-link.svg' style='' onclick='copy_link_user();'>
|
|
|
|
<img id='share_wrapped_delete' src='assets/trash.svg' style='' onclick='delete_link_user();'>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-19 16:10:59 +00:00
|
|
|
|
2020-12-23 13:17:10 +00:00
|
|
|
</div>
|
2020-12-19 16:10:59 +00:00
|
|
|
|
2020-12-23 13:17:10 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-11-18 18:10:23 +00:00
|
|
|
<div class="snowflakes" aria-hidden="true" id="snowflakes">
|
|
|
|
<div class="snowflake">
|
|
|
|
❅
|
|
|
|
</div>
|
|
|
|
<div class="snowflake">
|
|
|
|
❅
|
|
|
|
</div>
|
|
|
|
<div class="snowflake">
|
|
|
|
❆
|
|
|
|
</div>
|
|
|
|
<div class="snowflake">
|
|
|
|
❄
|
|
|
|
</div>
|
|
|
|
<div class="snowflake">
|
|
|
|
❅
|
|
|
|
</div>
|
|
|
|
<div class="snowflake">
|
|
|
|
❆
|
|
|
|
</div>
|
|
|
|
<div class="snowflake">
|
|
|
|
❄
|
|
|
|
</div>
|
|
|
|
<div class="snowflake">
|
|
|
|
❅
|
|
|
|
</div>
|
|
|
|
<div class="snowflake">
|
|
|
|
❆
|
|
|
|
</div>
|
|
|
|
<div class="snowflake">
|
|
|
|
❄
|
|
|
|
</div>
|
2022-01-11 13:33:30 +00:00
|
|
|
|
2021-11-18 18:10:23 +00:00
|
|
|
</div>
|
|
|
|
|
2020-12-23 13:17:10 +00:00
|
|
|
</div>
|
2020-12-19 16:10:59 +00:00
|
|
|
</div>
|
|
|
|
|
2021-03-13 22:40:46 +00:00
|
|
|
<div class="footer" id="footer">
|
2022-01-11 13:33:30 +00:00
|
|
|
<a style="color: white; font-weight: normal; font-size: 0.75em; text-decoration: none;" href="./">Wrapperr</a> |
|
2021-11-27 23:18:14 +00:00
|
|
|
<a style="color: white; font-weight: normal; font-size: 0.75em; text-decoration: none;" href="./admin">Admin</a> |
|
2022-01-11 13:33:30 +00:00
|
|
|
<a style="color: white; font-weight: normal; font-size: 0.75em; text-decoration: none;" id="github_link" href="https://github.com/aunefyren/wrapperr" target="_blank">GitHub</a>
|
2021-03-13 22:40:46 +00:00
|
|
|
</div>
|
|
|
|
|
2021-03-12 22:45:44 +00:00
|
|
|
</div>
|
|
|
|
<div class="content" id="search_results">
|
|
|
|
</div>
|
2020-12-19 16:10:59 +00:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
2021-10-11 12:25:19 +00:00
|
|
|
|
|
|
|
var root = "./";
|
2021-12-12 16:31:15 +00:00
|
|
|
var link_mode = false;
|
|
|
|
var results;
|
|
|
|
var functions;
|
2022-01-18 16:57:26 +00:00
|
|
|
var plex_identity = false;
|
|
|
|
var cookie = false;
|
2021-10-11 12:25:19 +00:00
|
|
|
|
2020-12-19 16:10:59 +00:00
|
|
|
$(document).ready(function() {
|
|
|
|
|
2021-12-12 16:31:15 +00:00
|
|
|
var url_string = window.location.href
|
|
|
|
var url = new URL(url_string);
|
|
|
|
var hash = url.searchParams.get("hash");
|
|
|
|
var close_me = url.searchParams.get("close_me");
|
|
|
|
|
2022-01-11 13:33:30 +00:00
|
|
|
get_wrapper_version();
|
2021-12-12 16:31:15 +00:00
|
|
|
|
|
|
|
if(close_me !== null) {
|
|
|
|
window.close();
|
|
|
|
}
|
|
|
|
|
|
|
|
if(hash !== null) {
|
|
|
|
link_mode = true;
|
|
|
|
wrapped_link_actions(hash);
|
|
|
|
document.getElementById('intro_text').innerHTML = '';
|
|
|
|
document.getElementById('stats').innerHTML = '<img id="loading_icon" src="assets/loading.gif" style="border-radius: 25px; background-color: white; padding: 1em;width: 4em; height: 4em; display:block; margin: auto;">';;
|
|
|
|
} else {
|
|
|
|
cookie_login_actions();
|
|
|
|
}
|
2020-12-19 16:10:59 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
2021-03-12 22:45:44 +00:00
|
|
|
|
2020-12-19 16:10:59 +00:00
|
|
|
</html>
|