Browse Source

update docs to JSON format

pull/17/head
Aaron Parecki 5 years ago
parent
commit
1e4b2db2d5
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      views/new-post.php

+ 6
- 6
views/new-post.php View File

@ -57,15 +57,15 @@
<table class="table table-condensed">
<tr>
<td>me</td>
<td class="break"><code><?= session('me') ?></code> (should be your URL)</td>
<td class="break"><code><?= session('me') ?></code> (should be your website)</td>
</tr>
<tr>
<td>scope</td>
<td class="break"><code><?= $this->token_scope ?></code> (should be a space-separated list of permissions including "post")</td>
<td class="break"><code><?= $this->token_scope ?></code></td>
</tr>
<tr>
<td>micropub endpoint</td>
<td class="break"><code><?= $this->micropub_endpoint ?></code> (should be a URL)</td>
<td class="break"><code><?= $this->micropub_endpoint ?></code></td>
</tr>
<tr>
<td>access token</td>
@ -75,8 +75,8 @@
<tr>
<td>ate or drank</td>
<td class="break">
<p>The parameter named <code>ate</code> or <code>drank</code> will include an <code>h-food</code> object corresponding to the item you tapped.</p>
<pre>ate[type]=h-food&amp;ate[properties][name]=Coffee</pre>
<p>A property named <code>ate</code> or <code>drank</code> will include an <code>h-food</code> object corresponding to the item you tapped.</p>
<pre>{"ate":[{"type":["h-food"],"name":["Coffee"]}]}</pre>
</td>
</tr>
<?php else: ?>
@ -119,7 +119,7 @@ $(function(){
function replacePhotoWithPhotoURL(url) {
$("#note_photo").val(url);
$("#note_photo_upload").addClass("hidden");
$("#note_photo_upload").addClass("hidden");
$("#note_photo_loading").addClass("hidden");
$("#photo_preview").attr("src", url);
$("#photo_preview_container").removeClass("hidden");

Loading…
Cancel
Save