iframes
This commit is contained in:
parent
2f29378f99
commit
3a39ccc847
|
@ -18,7 +18,8 @@ function display_suggestions(suggestions) {
|
|||
let suggestion_body = '';
|
||||
|
||||
suggestions.forEach(element => {
|
||||
suggestion_body += '<a href="' + element.post_link + '">' + element.post_link + ' - ' + element.points + ' points</a><br>';
|
||||
// suggestion_body += '<a href="' + element.post_link + '">' + element.post_link + ' - ' + element.points + ' points</a><br>';
|
||||
suggestion_body += '<iframe src="' + element.post_link + '/embed" class=\"mastodon-embed\" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe><br>';
|
||||
});
|
||||
|
||||
if(suggestion_body !== '') {
|
||||
|
|
|
@ -6,3 +6,4 @@ const APPWRITE_DB_ID = '<?=getenv('APPWRITE_DB_ID')?>';
|
|||
</script>
|
||||
<script type="module" src="js/setup.js"></script>
|
||||
<?=(isset($script))?"<script type='module' src=\"$script\"></script>":''?>
|
||||
<script src="https://mastodon.social/embed.js" async="async"></script>
|
Loading…
Reference in New Issue