Unverified Commit a7a8515d authored by Stefan Brunecker's avatar Stefan Brunecker Committed by GitHub
Browse files

Merge pull request #10 from EmbeddedMontiArc/feature/add-url-input

Support input to inports from URL parameters
parents a7614a95 b49bcfc7
......@@ -137,6 +137,10 @@
</div>
<script>
var url_string = window.location.href;
var url = new URL(url_string);
document.getElementById("inport-field-inArray").value = url.searchParams.get("inArray");
function exec() {
clearOutportFields();
clearErrors();
......
......@@ -137,6 +137,10 @@
</div>
<script>
var url_string = window.location.href;
var url = new URL(url_string);
document.getElementById("inport-field-inMatrix").value = url.searchParams.get("inMatrix");
function exec() {
clearOutportFields();
clearErrors();
......
......@@ -182,6 +182,12 @@
</div>
<script>
var url_string = window.location.href;
var url = new URL(url_string);
document.getElementById("inport-field-m1").value = url.searchParams.get("m1");
document.getElementById("inport-field-m2").value = url.searchParams.get("m2");
document.getElementById("inport-field-c").value = url.searchParams.get("c");
function exec() {
clearOutportFields();
clearErrors();
......
......@@ -107,6 +107,9 @@
</div>
<script>
var url_string = window.location.href;
var url = new URL(url_string);
function exec() {
clearOutportFields();
clearErrors();
......
......@@ -137,6 +137,10 @@
</div>
<script>
var url_string = window.location.href;
var url = new URL(url_string);
document.getElementById("inport-field-inScalar").value = url.searchParams.get("inScalar");
function exec() {
clearOutportFields();
clearErrors();
......
......@@ -174,6 +174,12 @@
</div>
<script>
var url_string = window.location.href;
var url = new URL(url_string);
document.getElementById("inport-field-m1").value = url.searchParams.get("m1");
document.getElementById("inport-field-m2").value = url.searchParams.get("m2");
document.getElementById("inport-field-c").value = url.searchParams.get("c");
function exec() {
clearOutportFields();
clearErrors();
......
......@@ -134,6 +134,12 @@
</div>
<script>
var url_string = window.location.href;
var url = new URL(url_string);
<#list inports as inport>
document.getElementById("inport-field-${inport.name}").value = url.searchParams.get("${inport.name}");
</#list>
function exec() {
clearOutportFields();
clearErrors();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment