Collaborama About Help Contact Anonymous [login] Source: site.view [edit] Function name: outputs Arguments: output Description: Page type: html Render function: Module: demavu Page source: <webl>WubCall("demavu.top", []);</webl> <!-- partial --> <div class="main-panel"> <div class="content-wrapper"> <div class="row"> <div class="col-sm-12 grid-margin"> <div class="card"> <div class="card-body"> <h5>Output</h5> <div class="row"> <div class="col-8 col-sm-12 col-xl-8 my-auto"> <h1 id="name" class="mb-0"><webl>WubCall("demavu.data2", ["-","-","games","-","outputs",output,"name"]);</webl></h1> <small class="text-muted"><a onclick="addHtmlBefore('name','<input id="editName" type="text" class="form-control editable" title="-,games,-,outputs,<webl>output</webl>,name" value="<webl>WubCall("demavu.data2", ["-","-","games","-","outputs",output,"name"])</webl>">')">(Edit)</a></small> </div> </div> </div> </div> <div class="card"> <div class="card-body"> <h5>Variations</h5> <webl> var variations = WubCall("demavu.data2", ["-","-","games", "-", "outputs", output,"variations"]); var s = ""; var i = 1; every variation in variations do s = s + ` <div class="form-group">` + "\n"; s = s + ` <textarea class="form-control editable" title="-,games,-,outputs,` + output + `,variations,` + ToString(i) + `" id="txtVariation` + ToString(i) + `" rows="5">` + variation.value + "</textarea>\n"; s = s + " </div>\n\n"; i = i + 1; end; s; </webl> <button class="btn btn-primary" id="addVariationBtn" onclick="addHtmlBefore('addVariationBtn', '<div class="form-group"><textarea class="form-control editable" title="-,games,-,outputs,<webl>output+ ",variations," + ToString(Size(WubCall("demavu.data2", ["-","-","games", "-", "outputs", output, "variations"]))+1)</webl>" id="txtVariation.0" rows="5"></textarea></div>');document.getElementById('addVariationBtn').disabled=true;">+Add Variation</button> </div> </div> </div> </div> </div> <!-- content-wrapper ends --> <webl>WubCall("demavu.footer", []);</webl>