mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-19 14:38:02 +00:00
Add download buttons for SVG + PNG, using the new functionality from 08074e394e
This commit is contained in:
@@ -67,6 +67,12 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group" role="group" style="float:right;width:50%">
|
||||||
|
<button type="button" class="btn btn-info" onclick='url=$("#avatar_image").attr("src")+"&format=svg+xml";window.open(url);'>Download SVG</button>
|
||||||
|
|
||||||
|
<button type="button" class="btn btn-info" onclick='url=$("#avatar_image").attr("src")+"&format=png";window.open(url);'>Download PNG</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<hr style="clear:both;"/>
|
<hr style="clear:both;"/>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user