Super secret view counting

This commit is contained in:
2019-02-11 22:41:22 +01:00
parent 95405e76d1
commit 32f715e65f
6 changed files with 8 additions and 9 deletions

View File

@@ -67,6 +67,6 @@ var Toolbar = {
}, 10000);
},
setViews: function(amount){
$("#views").html(amount);
$("#views").html("Views: "+amount);
}
};

View File

@@ -46,7 +46,7 @@
<div>
<button class="toolbar_button button_full_width" onClick="Toolbar.toggle();">Hide Toolbar</button>
<!--Views: <span id="views" th:text="${data.views}">0</span>--><br/>
<div id="views" style="text-align: center;">Views: No</div>
<a href="/" id="btnHome" class="button toolbar_button button_full_width">
<img src="/res/img/pixeldrain_small.png" alt="Back to the Home page"/>

View File

@@ -16,7 +16,6 @@
<pre>
{
"title": "My beautiful photos",
"description": "An album of photos from my vacation in Austria",
"files": [ // Ordered array of files to add to the list
{
"id": "abc123",
@@ -71,7 +70,7 @@
{
"success": false,
"value": "description_too_long",
"message": "The description of this list or one of the files in the list is too long, max 3000 characters allowed."
"message": "The description of one of the files in the list is too long, max 3000 characters allowed."
}
</pre>
<pre>HTTP 422: Unprocessable Entity