mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-24 02:02:53 +02:00
Selfify example (#251)
* 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
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user