frontend/frontend-flutter/web/index.html (37 lines of code) (raw):

<!DOCTYPE html> <html> <head> <!-- If you are serving your web app in a path other than the root, change the href value below to reflect the base path you are serving from. The path provided below has to start and end with a slash "/" in order for it to work correctly. For more details: * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base This is a placeholder for base href that will be replaced by the value of the `--base-href` argument provided to `flutter build`. --> <base href="$FLUTTER_BASE_HREF"> <meta charset="UTF-8"> <meta content="IE=Edge" http-equiv="X-UA-Compatible"> <meta name="description" content="A new Flutter project."> <!-- iOS meta tags & icons --> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-title" content="frontend_flutter"> <link rel="apple-touch-icon" href="icons/Icon-192.png"> <!-- Favicon --> <link rel="icon" type="image/png" href="favicon.png"/> <title>frontend_flutter</title> <link rel="manifest" href="manifest.json"> <script type="application/javascript" src="/assets/packages/flutter_inappwebview_web/assets/web/web_support.js" defer></script> <script> function copyBase64ImageToClipboard(base64Image) { // Check for and remove any prefix from the Base64 string const base64Data = base64Image.split(',')[1] || base64Image; // Convert the Base64 string to a Blob const blob = new Blob([Uint8Array.from(atob(base64Data), c => c.charCodeAt(0))], { type: 'image/png' }); // Use the Clipboard API to copy the image navigator.clipboard.write([ new ClipboardItem({ 'image/png': blob }) ]).then(function() { console.log('Image copied to clipboard!'); }) .catch(function(error) { console.error('Copy to clipboard failed: ', error); }); } </script> </head> <body> <script src="flutter_bootstrap.js" async></script> </body> </html>