32 lines
No EOL
1.4 KiB
Handlebars
32 lines
No EOL
1.4 KiB
Handlebars
<div id="asset-display-component">
|
|
<div id="asset-status">
|
|
<p id="searching-message" hidden="true">Sit tight, we're searching the LBRY blockchain for your asset!</p>
|
|
<div id="failure-message" hidden="true">
|
|
<p>Unfortunately, we couldn't download your asset from LBRY. You can help us out by sharing the below error message in the <a class="link--primary" href="https://discord.gg/YjYbwhS" target="_blank">LBRY discord</a>.</p>
|
|
<i><p id="error-message"></p></i>
|
|
</div>
|
|
</div>
|
|
<div id="asset-holder" hidden="true">
|
|
{{#ifConditional claimInfo.contentType '===' 'video/mp4'}}
|
|
{{> video}}
|
|
{{else}}
|
|
{{> image}}
|
|
{{/ifConditional}}
|
|
<div>
|
|
<a id="asset-boilerpate" class="link--primary fine-print" href="/{{claimInfo.claimId}}/{{claimInfo.name}}">hosted via Spee<h</a>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
showFunctions.setState('src', '{{claimInfo.name}}', '{{claimInfo.claimId}}', '{{claimInfo.fileExt}}');
|
|
showFunctions.setState('claimName', '{{claimInfo.name}}');
|
|
showFunctions.setState('claimId', '{{claimInfo.claimId}}');
|
|
showFunctions.setState('fileExt', '{{claimInfo.fileExt}}');
|
|
showFunctions.setState('contentType', '{{claimInfo.contentType}}');
|
|
console.log(showFunctions.state);
|
|
showFunctions.checkClaimAvailability();
|
|
|
|
</script> |