|
|
|
@ -1,36 +1,53 @@
|
|
|
|
|
<div class="panel">
|
|
|
|
|
<h2>Publish</h2>
|
|
|
|
|
<div class="col-left" id="file-selection-area">
|
|
|
|
|
<div id="drop-zone" ondrop="drop_handler(event);" ondragover="dragover_handler(event);" ondragend="dragend_handler(event)">
|
|
|
|
|
<p>Drag and drop your file here, or choose your file below.</p>
|
|
|
|
|
<div class="input-error" id="input-error-file-selection" hidden="true"></div>
|
|
|
|
|
<input type="file" id="siofu_input" name="file" accept="video/*,image/*" onchange="previewAndStageFile(event.target.files[0])" enctype="multipart/form-data"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="asset-preview-holder"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-right">
|
|
|
|
|
<div id="publish-active-area">
|
|
|
|
|
<div class="input-error" id="input-error-claim-name" hidden="true"></div>
|
|
|
|
|
<div class="claim-name-input-area">
|
|
|
|
|
Spee.ch/<input type="text" id="claim-name-input" placeholder="your-title-here" oninput="checkClaimName(event.target.value)">
|
|
|
|
|
<span id="claim-name-available" hidden="true" style="color: green">✔</span>
|
|
|
|
|
<div class="row" style="overflow:auto; height: 100%;">
|
|
|
|
|
<div class="col-left" id="file-selection-area">
|
|
|
|
|
<div id="drop-zone" ondrop="drop_handler(event);" ondragover="dragover_handler(event);" ondragend="dragend_handler(event)">
|
|
|
|
|
<p>Drag and drop your file here, or choose your file below.</p>
|
|
|
|
|
<div class="input-error" id="input-error-file-selection" hidden="true"></div>
|
|
|
|
|
<input type="file" id="siofu_input" name="file" accept="video/*,image/*" onchange="previewAndStageFile(event.target.files[0])" enctype="multipart/form-data"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="asset-preview-holder"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-right">
|
|
|
|
|
<div id="publish-active-area">
|
|
|
|
|
<div class="input-error" id="input-error-claim-name" hidden="true"></div>
|
|
|
|
|
<div id="claim-name-input-area">
|
|
|
|
|
Spee.ch/<input type="text" id="claim-name-input" placeholder="your-url-here" oninput="checkClaimName(event.target.value)">
|
|
|
|
|
<span id="claim-name-available" hidden="true" style="color: green">✔</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="stop-float">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label for="publish-title">Title: </label></td>
|
|
|
|
|
<td><input type="text" id="publish-title" class="publish-input"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label for="publish-description">Description: </label></td>
|
|
|
|
|
<td><textarea rows="2" id="publish-description" class="publish-input"> </textarea></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label for="publish-license">License:* </label></td>
|
|
|
|
|
<td>
|
|
|
|
|
<select type="text" id="publish-license" name="license" value="license">
|
|
|
|
|
<option value="Public Domain">Public Domain</option>
|
|
|
|
|
<option value="Creative Commons">Creative Commons</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label for="publish-nsfw">NSFW*</label></td>
|
|
|
|
|
<td><input type="checkbox" id="publish-nsfw"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<p>
|
|
|
|
|
<div class="input-error" id="input-error-publish-submit" hidden="true"></div>
|
|
|
|
|
<button id="publish-submit" onclick="publishSelectedImage(event)">Publish</button>
|
|
|
|
|
<button onclick="resetPublishArea()">Reset</button>
|
|
|
|
|
</p>
|
|
|
|
|
<p><i>By clicking 'Publish' I attest that I have read and agree to the <a href="https://lbry.io/termsofservice" target="_blank">LBRY terms of service</a>.</i></p>
|
|
|
|
|
</div>
|
|
|
|
|
<p class="stop-float">
|
|
|
|
|
<label for="publish-license">License:</label>
|
|
|
|
|
<select type="text" id="publish-license" name="license" value="license">
|
|
|
|
|
<option value="Public Domain">Public Domain</option>
|
|
|
|
|
<option value="Creative Commons">Creative Commons</option>
|
|
|
|
|
</select>
|
|
|
|
|
<br />
|
|
|
|
|
<input type="checkbox" id="publish-nsfw">
|
|
|
|
|
<label for="publish-nsfw">NSFW</label>
|
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
<div class="input-error" id="input-error-publish-submit" hidden="true"></div>
|
|
|
|
|
<button id="publish-submit" onclick="publishSelectedImage(event)">Publish</button>
|
|
|
|
|
<button onclick="resetPublishArea()">Reset</button>
|
|
|
|
|
</p>
|
|
|
|
|
<p><i>By clicking 'Publish' I attest that I have read and agree to the <a href="https://lbry.io/termsofservice" target="_blank">LBRY terms of service</a>.</i></p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|