context_menu_blob_full.html (817B)
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8" content="width=device-width, height=device-height" /> 5 <title>Context Menu Test Blob</title> 6 </head> 7 <body> 8 <div id="image_container"></div> 9 </body> 10 <script> 11 window.addEventListener("DOMContentLoaded", function () { 12 const svg = `<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> 13 <circle cx="50" cy="50" r="50" stroke="orange" fill="transparent" stroke-width="5"/> 14 </svg>`; 15 const image = document.createElement("img"); 16 const blob = new Blob([svg], { type: "image/svg+xml" }); 17 image.src = URL.createObjectURL(blob); 18 image.alt = "An orange circle."; 19 document.getElementById("image_container").appendChild(image); 20 }); 21 </script> 22 </html>