rebuilding some things
This commit is contained in:
@@ -88,6 +88,14 @@
|
||||
<img src="<%= it.cover %>" alt="Cover image" style="width: 100%;"></img><br>
|
||||
<center><%= it.titleByAPI %><br><i><%= it.id %></i></center>
|
||||
</div>
|
||||
|
||||
<select id="type" name="type">
|
||||
<option value="0">Physical</option>
|
||||
<option value="1">Digital - Maxdome</option>
|
||||
<option value="2">Digital - Amazon Prime Video</option>
|
||||
<option value="3">Digital - DVR</option>
|
||||
</select>
|
||||
|
||||
<button onclick="saveToLibary()" class="button-primary" id="addToBtn"> Add to libary</button>
|
||||
<button onclick="window.location.href = '/'"><i class="fas fa-home"></i> Back to home</button>
|
||||
<button
|
||||
@@ -115,7 +123,7 @@
|
||||
}
|
||||
|
||||
function saveToLibary(){
|
||||
url = "/save?reponseID=<%= it.ean %>";
|
||||
url = "/save?reponseID=<%= it.ean %>&type=" + document.getElementById("type").value;
|
||||
document.getElementById("addToBtn").remove();
|
||||
$.get(url,function(data,status) {
|
||||
console.log(JSON.parse(data))
|
||||
|
||||
@@ -92,7 +92,8 @@
|
||||
<h4>OpenMovieDB - Moviedetails</h4>
|
||||
<div style="width: 300px;">
|
||||
<img src="<%= it.cover %>" alt="Cover image" style="width: 100%;"></img><br>
|
||||
<center><%= it.titleByAPI %><br><i><%= it.id %></i></center>
|
||||
<center><%= it.titleByAPI %><br><i><%= it.id %></i><br>
|
||||
<b>Art: </b> <%= it.type %></center>
|
||||
</div>
|
||||
<button onclick="handelDelete()" id="delBtn"><i class="fas fa-trash"></i> Delete</button>
|
||||
<button onclick="window.location.href = '/'"><i class="fas fa-home"></i> Back to home</button>
|
||||
|
||||
Reference in New Issue
Block a user