<?php /* Copyright 2015 SignWise Corporation Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ ?> <h1>Create template</h1> <div> <label><span>Name</span> <input name="name"></label> <?php echo generateFileSelect("Template file", "file"); ?> <label><span>Placeholders</span> <textarea name="placeholders" rows="3">[{"placeholder": "[name]", "label": "Your name"}, {"placeholder":"[location]", "label": "Location"}, {"placeholder": "[date]", "label": "Date"}]</textarea> </label> </div> <div> <button>Create template</button> </div>
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ ?> <h1>Sign with smart card</h1> <div> <?php echo generateFileSelect('Container', 'container', 'smart_card_sign_container'); ?> </div> <div> <button type="button" onclick="smartCardSign()">Sign</button> <p id="smart_card_sign_result"></p> </div> <p id="messages"></p> <script> function smartCardSign() { console.log(this); function displaySmartCardResult(str) { document.getElementById("smart_card_sign_result").innerHTML = str; } swPlugin.getSignCertificates(function(err, result) {
you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ ?> <h1>Sign with Mobile ID</h1> <div> <?php echo generateFileSelect('Container', 'container', 'mobile_id_sign_container'); ?> <label><span>MSISDN</span> <input name="msisdn" id="mobile_id_sign_msisdn" value="37200007"></label> <label><span>SSN</span> <input name="ssn" id="mobile_id_sign_ssn" value="14212128025"></label> <p id="mobile_id_sign_status"></p> <p id="mobile_id_sign_countdown"></p> </div> <div> <button type="button" onclick="mobileIdSign()">Sign</button> </div> <script> function mobileIdSign() { function setStatus(status) { document.getElementById('mobile_id_sign_status').innerText = status;
<?php /* Copyright 2015 SignWise Corporation Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ ?> <h1>Share container</h1> <div> <?php echo generateFileSelect("Container", "container"); ?> <label><span>Expires</span> <input type="date" name="expires"></label> <label><span>Recipients</span> <textarea rows="3" name="recipients">[{"email": "*****@*****.**"}]</textarea></label> </div> <div> <button>Share container</button> </div>
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ ?> <h1>Create container</h1> <div> <label><span>File name</span> <input name="filename"></label> <div id="fileInputContainer"></div> <label><span>Add more files</span> <button type="button" onclick="addFileInput()">+</button></label> </div> <div> <button>Create</button> </div> <script> function addFileInput() { var fileInputTemplate = '<?php echo generateFileSelect("Select file"); ?> '; var div = document.createElement('div'); div.innerHTML = fileInputTemplate; document.getElementById('fileInputContainer').appendChild(div.firstChild); } addFileInput(); </script>