mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 14:28:33 +02:00
* Selfify example for how to access files article * Restored selfify.js and updated choose_file.js as suggested by Luca * Updated comments * Updates for feedback from Will * Updates from the second round of feedback * removed activetab from manifest, removed document.body.appendChild(info);, renamed the content script (selfify > content), renamed the listener (selfify > injectImage) and moved example to imagify folder. * Correctly renamed folder and update manifest.json
25 lines
450 B
HTML
25 lines
450 B
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<link rel="stylesheet" href="sidebar.css"/>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="picker_zone" style="margin:20px ;color:blue">
|
|
<input type="file" accept="image/*" id="input">
|
|
</div>
|
|
|
|
<div id="drop_zone">
|
|
<strong id="drop_zone_label">Drag an image file into this Drop Zone ...</strong>
|
|
</div>
|
|
|
|
<script src="choose_file.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|