Trending images #77

Merged
bones7242 merged 9 commits from trending-images into master 2017-07-12 18:03:18 +02:00
3 changed files with 17 additions and 17 deletions
Showing only changes of commit 352defd0d8 - Show all commits

View file

@ -14,3 +14,4 @@
{{> footer}} {{> footer}}
</div> </div>
<script src="/assets/js/generalFunctions.js"></script>

View file

@ -43,7 +43,7 @@
<td>{{fileInfo.fileName}}</td> <td>{{fileInfo.fileName}}</td>
</tr> </tr>
<tr> <tr>
<td class="left-column">fileType</td> <td class="left-column">File Type</td>
<td>{{#if fileInfo.fileType}} <td>{{#if fileInfo.fileType}}
{{fileInfo.fileType}} {{fileInfo.fileType}}
{{else}} {{else}}
@ -52,18 +52,4 @@
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
<script type ="text/javascript">
// update the link holder
function copyToClipboard(event){
var elementToCopy = event.target.dataset.elementtocopy;
var element = document.getElementById(elementToCopy);
element.select();
try {
var successful = document.execCommand('copy');
} catch (err) {
alert('Oops, unable to copy');
}
}
</script>

View file

@ -7,4 +7,17 @@
{{> assetInfo}} {{> assetInfo}}
</div> </div>
{{> footer}} {{> footer}}
</div> </div>
<script type ="text/javascript">
function copyToClipboard(event){
var elementToCopy = event.target.dataset.elementtocopy;
var element = document.getElementById(elementToCopy);
element.select();
try {
document.execCommand('copy');
} catch (err) {
alert('Oops, unable to copy');
}
}
</script>