Moved old webpage, app & client into .archive folder
This commit is contained in:
4
.archive/webpage/images/verified.svg
Normal file
4
.archive/webpage/images/verified.svg
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" ?><svg id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><style type="text/css">
|
||||
.st0{fill:#2BB673;}
|
||||
.st1{fill:none;stroke:#FFFFFF;stroke-width:30;stroke-miterlimit:10;}
|
||||
</style><path class="st0" d="M489,255.9c0-0.2,0-0.5,0-0.7c0-1.6,0-3.2-0.1-4.7c0-0.9-0.1-1.8-0.1-2.8c0-0.9-0.1-1.8-0.1-2.7 c-0.1-1.1-0.1-2.2-0.2-3.3c0-0.7-0.1-1.4-0.1-2.1c-0.1-1.2-0.2-2.4-0.3-3.6c0-0.5-0.1-1.1-0.1-1.6c-0.1-1.3-0.3-2.6-0.4-4 c0-0.3-0.1-0.7-0.1-1C474.3,113.2,375.7,22.9,256,22.9S37.7,113.2,24.5,229.5c0,0.3-0.1,0.7-0.1,1c-0.1,1.3-0.3,2.6-0.4,4 c-0.1,0.5-0.1,1.1-0.1,1.6c-0.1,1.2-0.2,2.4-0.3,3.6c0,0.7-0.1,1.4-0.1,2.1c-0.1,1.1-0.1,2.2-0.2,3.3c0,0.9-0.1,1.8-0.1,2.7 c0,0.9-0.1,1.8-0.1,2.8c0,1.6-0.1,3.2-0.1,4.7c0,0.2,0,0.5,0,0.7c0,0,0,0,0,0.1s0,0,0,0.1c0,0.2,0,0.5,0,0.7c0,1.6,0,3.2,0.1,4.7 c0,0.9,0.1,1.8,0.1,2.8c0,0.9,0.1,1.8,0.1,2.7c0.1,1.1,0.1,2.2,0.2,3.3c0,0.7,0.1,1.4,0.1,2.1c0.1,1.2,0.2,2.4,0.3,3.6 c0,0.5,0.1,1.1,0.1,1.6c0.1,1.3,0.3,2.6,0.4,4c0,0.3,0.1,0.7,0.1,1C37.7,398.8,136.3,489.1,256,489.1s218.3-90.3,231.5-206.5 c0-0.3,0.1-0.7,0.1-1c0.1-1.3,0.3-2.6,0.4-4c0.1-0.5,0.1-1.1,0.1-1.6c0.1-1.2,0.2-2.4,0.3-3.6c0-0.7,0.1-1.4,0.1-2.1 c0.1-1.1,0.1-2.2,0.2-3.3c0-0.9,0.1-1.8,0.1-2.7c0-0.9,0.1-1.8,0.1-2.8c0-1.6,0.1-3.2,0.1-4.7c0-0.2,0-0.5,0-0.7 C489,256,489,256,489,255.9C489,256,489,256,489,255.9z" id="XMLID_3_"/><g id="XMLID_1_"><line class="st1" id="XMLID_2_" x1="213.6" x2="369.7" y1="344.2" y2="188.2"/><line class="st1" id="XMLID_4_" x1="233.8" x2="154.7" y1="345.2" y2="266.1"/></g></svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
88
.archive/webpage/js/main.js
Normal file
88
.archive/webpage/js/main.js
Normal file
@@ -0,0 +1,88 @@
|
||||
function getUrlParameter(name) {
|
||||
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
|
||||
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
|
||||
var results = regex.exec(location.search);
|
||||
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
|
||||
};
|
||||
|
||||
function getURLId() {
|
||||
var sPageURL = window.location.search.substring(1);
|
||||
var sParameterName = sPageURL.split('=');
|
||||
if (sParameterName[0] == 'id') {
|
||||
var query_id = document.getElementById('title').innerHTML = sParameterName[1];
|
||||
|
||||
return query_id;
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
getShow();
|
||||
});
|
||||
|
||||
|
||||
// this is the id of the form
|
||||
$("#searchForm").submit(function(e) {
|
||||
var url = env_variables.url + 'verify/' + getUrlParameter('id');
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: 'POST',
|
||||
success: function (data) {
|
||||
Materialize.toast('Episode successfully verified and moved!', 4000);
|
||||
},
|
||||
error: function(data) {
|
||||
Materialize.toast(data.responseJSON.error, 4000);
|
||||
console.log(data.responseJSON.error);
|
||||
e.preventDefault(); // avoid to execute the actual submit of the form.
|
||||
}
|
||||
});
|
||||
e.preventDefault(); // avoid to execute the actual submit of the form.
|
||||
});
|
||||
|
||||
|
||||
function foo(id) {
|
||||
console.log(id[0]);
|
||||
var el = $(id[0]);
|
||||
// if (el.attr('contenteditable') == 'true'){
|
||||
// el.attr('contenteditable', 'false');
|
||||
// } else {
|
||||
// el.attr('contenteditable', 'true')
|
||||
// }
|
||||
el.attr('contenteditable', 'true');
|
||||
}
|
||||
|
||||
function getShow() {
|
||||
var url = env_variables.url + getUrlParameter('id');
|
||||
$.ajax({
|
||||
url: url,
|
||||
dataType: "json",
|
||||
success: function (data) {
|
||||
$('#parent').append('<br><span>' + data['parent'] + '</span>');
|
||||
if (data['verified']) {
|
||||
$('#verified').append('<img src="images/verified.svg">');
|
||||
}
|
||||
$('#name').append('<p>' + data['name'] + '</p>');
|
||||
$('#season').append('<p>' + data['season'] + '</p>');
|
||||
$('#episode').append('<p>' + data['episode'] + '</p>');
|
||||
var itemList= JSON.parse(data['video_files']);
|
||||
for (item in itemList) {
|
||||
$('#video_files').append('<p>' + itemList[item][0] + '</p>');
|
||||
$('#video_files').append('<p onclick="foo($(this));">' + itemList[item][1] + '</p>');
|
||||
}
|
||||
|
||||
var itemList= JSON.parse(data['subtitles']);
|
||||
for (item in itemList) {
|
||||
$('#subtitles').append('<p>' + itemList[item][0] + '</p>');
|
||||
$('#subtitles').append('<p onclick="foo($(this));">' + itemList[item][1] + '</p>');
|
||||
}
|
||||
|
||||
var itemList= JSON.parse(data['trash']);
|
||||
for (item in itemList) {
|
||||
$('#trash').append('<p>' + itemList[item] + '</p>');
|
||||
}
|
||||
console.log(data);
|
||||
},
|
||||
error: function(data) {
|
||||
console.log(data.responseJSON.error);
|
||||
}
|
||||
});
|
||||
}
|
||||
32
.archive/webpage/style.css
Normal file
32
.archive/webpage/style.css
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* @Author: KevinMidboe
|
||||
* @Date: 2017-04-07 00:47:40
|
||||
* @Last Modified by: KevinMidboe
|
||||
* @Last Modified time: 2017-05-13 13:10:41
|
||||
*/
|
||||
|
||||
h3 {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
#verified {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#verified img {
|
||||
position: absolute;
|
||||
width: 22px;
|
||||
margin-left: 12px;
|
||||
}
|
||||
|
||||
/* valid color */
|
||||
.input-field input[type=text].valid {
|
||||
border-bottom: 1px solid #00a69a;
|
||||
box-shadow: 0 1px 0 0 #00a69a;
|
||||
}
|
||||
|
||||
/* invalid color */
|
||||
.input-field input[type=text].invalid {
|
||||
border-bottom: 1px solid #9e9e9e;
|
||||
box-shadow: 0 1px 0 0 #9e9e9e;
|
||||
}
|
||||
77
.archive/webpage/verify.html
Normal file
77
.archive/webpage/verify.html
Normal file
@@ -0,0 +1,77 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>seasoned | verify</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
||||
|
||||
<!-- Compiled and minified CSS -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.1/css/materialize.min.css">
|
||||
|
||||
<!-- Compiled and minified JavaScript -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.1/js/materialize.min.js"></script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<h3 id='title'></h3>
|
||||
|
||||
<div class="row formContainer">
|
||||
<form action="/" id="searchForm" class="col s12">
|
||||
<div class="row">
|
||||
<div class="input-field col s12">
|
||||
<span id='parent'>
|
||||
<label for="parent">Parent</label><br>
|
||||
</span>
|
||||
<span id='verified'>
|
||||
</span>
|
||||
</div>
|
||||
<div class="col s12"></div>
|
||||
<div class="input-field col s4">
|
||||
<span id='name'>
|
||||
<label for="name">Name</label><br>
|
||||
</span>
|
||||
</div>
|
||||
<div class="input-field col s4">
|
||||
<span id='season'>
|
||||
<label for="season">Season</label><br>
|
||||
</span>
|
||||
</div>
|
||||
<div class="input-field col s4">
|
||||
<span id='episode'>
|
||||
<label for="episode">Episode</label><br>
|
||||
</span>
|
||||
</div>
|
||||
<div class="col s12"></div>
|
||||
<div class="input-field col s12">
|
||||
<!-- <input placeholder="" id="video_files" type="text" class="validate">
|
||||
<label for="video_files">Video files</label> -->
|
||||
<span id='video_files'>
|
||||
<label>Video files</label><br>
|
||||
</span>
|
||||
</div>
|
||||
<div class="input-field col s12">
|
||||
<!-- <input placeholder="" id="subtitles" type="text" class="validate">
|
||||
<label for="subtitles">Subtitles</label> -->
|
||||
<span id='subtitles'>
|
||||
<label>Subtitles</label><br>
|
||||
</span>
|
||||
</div>
|
||||
<div class="input-field col s12">
|
||||
<!-- <input placeholder="" id="trash" type="text" class="validate">
|
||||
<label for="trash">Trash</label> -->
|
||||
<span id='trash'>
|
||||
<label>Trash</label><br>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn waves-effect waves-light" type="submit" name="action">Submit
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<script type="text/javascript" src="js/env_variables.js"></script>
|
||||
<script type="text/javascript" src="js/main.js"></script>
|
||||
</html>
|
||||
Reference in New Issue
Block a user