Skip to content

Commit

Permalink
getting ready to do input
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertLRead committed May 18, 2024
1 parent 1566cf2 commit 720b909
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 6 deletions.
18 changes: 12 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,17 @@ <h1> OSH Registry </h1>
<p> A work-in-progress Registry and Search tool for Open Source Hardware projects.
</p>


<p>
<button type="button" onclick="runUnitTests()">
Execute Tests!</button>
</p>



<p>
Search: <input type=text id="searchtext"></input>
<button type="button" onclick="search()">
Search</button>
</p>

<h2>Licensing</h2>

Expand All @@ -57,10 +61,11 @@ <h2>Licensing</h2>

<script>

function runUnitTests() {
function search() {
console.log($('#searchtext').val());

var repoName = "PubInv/nano-cap-table";
var fileName = "cap_table.json";
var fileName = "osh-registry.json";
// var baseURL = "https://github.com";
var baseURL = "http://127.0.0.1:8080/";

Expand All @@ -81,9 +86,10 @@ <h2>Licensing</h2>
console.error('There was a problem with the fetch operation:', error);
});

}

console.log($('#shares').val());
console.log($('#person').val());
function runUnitTests() {
alert("No Unit Tests yet, so SUCCESS!");
};

</script>
30 changes: 30 additions & 0 deletions osh-registry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[
{
"name": "VentMon",
"projectOrRegistry": "project",
"keywords": "spirometer, respiration, Arduino, ESP32",
"description": "VentMon: An open source IoT-enabled spriometer for testing medical ventilators",
"okh": "https://github.com/PubInv/ventmon-ventilator-inline-test-monitor/blob/master/ventmon-okh.yml",
"human-url": "https://www.pubinv.org/project/ventmon/",
"repository": {
"type": "git",
"url": "https://github.com/PubInv/ventmon-ventilator-inline-test-monitor"
},
"hardwareLicense": CERN-OHL-S",
"authors": [
{
"name": "Robert L. Read",
"email": "[email protected]",
"url": "https://github.com/RobertLRead",
"maintainer": true
},
{
"name": "Ben Coombs",
},
{
"name": "Lauria Clarke",
}
],
"version": "0.5",
}
]

0 comments on commit 720b909

Please sign in to comment.