<%+header%>

<%+tasks/embed%>

<script>
    (function(){
    })();
</script>
<div id="app">
</div>

<script>
  window.IstoreosData = {};
  window.IstoreosFormConfig = {
    getApi:"/cgi-bin/luci/admin/system/systools/form/" + window.location.search,
    submitApi:"/cgi-bin/luci/admin/system/systools/submit",
    logApi:"/cgi-bin/luci/admin/system/systools/log",
    getHook:function(resp){
      window.IstoreosData = resp.result.data;
      //console.log("resp=", resp.result.data);
      return resp;
    },
    onFormChange: function(changedField, val) {
      //console.log("changedField=", changedField, "formData=", val)
      if (changedField === "tool" && 
        val["tool"] == "speedtest" &&
        window.IstoreosData["tool"] !== val["tool"]) { 
        window.istoreos.reloadFromGetApi(val, true)
      }
    },
    submitHook:function(params){
      //console.log(params);
      return params;
    }
  }
</script>
<script type="module" crossorigin src="/luci-static/iform/1.1/index.js?v=<%=math.random(1,100000)%>"></script>
<link rel="stylesheet" href="/luci-static/iform/1.1/style.css?v=<%=math.random(1,100000)%>">

<%+footer%>
