Skip to content

Commit 7553715

Browse files
committed
Retire the iframe in favour of a button per review.
1 parent 10c3c30 commit 7553715

File tree

1 file changed

+8
-22
lines changed

1 file changed

+8
-22
lines changed

content/create.md

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
22
title: "Create a CodeMeta file"
3-
layout: wide
3+
layout: single
44
---
55

66
Need to generate a CodeMeta compliant metadata file? The folks at
77
[Software Heritage](https://www.softwareheritage.org) maintain this tool to
88
make that easy.
99

10-
The form below is both a generator and a validator for `codemeta.json` files.
11-
It can be [accessed directly](https://github.com/codemeta/codemeta-generator).
10+
Click the button below to open the CodeMeta generator in a new tab. The tool
11+
is both a generator and a validator for `codemeta.json` files.
1212

1313
## Create a new CodeMeta file
1414

15-
Generate a CodeMeta file by filling out the fields in the form below
16-
according to the [CodeMeta terms](/terms) definitions. The `Name` field in
17-
the first section is mandatory.
15+
Generate a CodeMeta file by filling out the fields in the form according to
16+
the [CodeMeta terms](/terms) definitions. The `Name` field in the first
17+
section is mandatory.
1818

1919
Providing the `Name` of your software will result in a basic `codemeta.json`
2020
output in the final textarea. Filling out additional fields will build a
@@ -37,23 +37,9 @@ textarea will allow you to:
3737
- Pre-fill the other form fields with your current values using the
3838
`Import codemeta.json` button.
3939

40+
4041
{{< rawhtml >}}
41-
<script type="text/javascript">
42-
function iframeResize() {
43-
const iFrameID = document.getElementById('generator');
44-
if(iFrameID) {
45-
iFrameID.height = "";
46-
iFrameID.height = (iFrameID.contentWindow.document.body.scrollHeight + 50) + "px";
47-
}
48-
}
49-
window.addEventListener('resize', function() {
50-
iframeResize()
51-
});
52-
53-
</script>
54-
<iframe id="generator" title="CodeMeta Generator" onload="iframeResize()" src="/codemeta-generator" class="d-inline-block w-100" frameborder="0">
55-
If there is no form visible here, you can also access the [CodeMeta Generator](https://codemeta.github.io/codemeta-generator) directly. This may be due to browser security settings.
56-
</iframe>
42+
<a class="fw-bold btn btn-lg btn-primary my-5" href="/codemeta-generator" target="_blank">Open the CodeMeta Generator</a><br>
5743

5844
<a href="https://www.softwareheritage.org">
5945
<img alt="" src="/img/swh-logo.png" style="height: 50px;"/> Software Heritage</a>

0 commit comments

Comments
 (0)