Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added code.json preview window with copy to clipboard functionality #35

Merged
merged 6 commits into from
Mar 17, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Edited styling of buttons
Signed-off-by: Natalia Luzuriaga <[email protected]>
natalialuzuriaga committed Mar 7, 2025
commit 770facd9aafc5a1bd94931b0348a90e46be06c7d
4 changes: 4 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
body {
margin: 20px;
}

textarea {
margin-bottom: 10px;
}
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -53,8 +53,10 @@
<div id="form-header"></div>
<div id="formio"></div>
<div id="output">
<label for="json-result">Your JSON Metadata ( <a href="#" onclick="copyToClipboard(event)"> Copy</a> | <a href="#" onclick="downloadFile(event)">Download</a> ) </label>
<textarea class="form-control" rows="20" id="json-result" readonly></textarea>
<label for="json-result">Your JSON Metadata </label>
<textarea class="form-control" rows="10" id="json-result" readonly></textarea>
<button type="button" class="btn btn-outline" href="#" onclick="copyToClipboard(event)">Copy</button>
<button type="button" class="btn btn-outline" href="#" onclick="downloadFile(event)">Download</button>
</div>
</body>
</html>