NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<script type="text/javascript" id="myscript_1">

function Exception(txt) {
print("Exception: " + txt);
}
function print(txt) {
console.log(txt)
}

var wgssSignatureSDK = null;
var sigObj = null;
var sigCtl = null;
var dynCapt = null;

function OnLoad(callback)
{
print("CLEAR");
restartSession(callback);
}

function restartSession(callback)
{
wgssSignatureSDK = null;
sigObj = null;
sigCtl = null;
dynCapt = null;
var imageBox = document.getElementById("imageBox");
if(null != imageBox.firstChild)
{
imageBox.removeChild(imageBox.firstChild);
}
var timeout = setTimeout(timedDetect, 1500);
// pass the starting service port number as configured in the registry
wgssSignatureSDK = new WacomGSS_SignatureSDK(onDetectRunning, 8000);

function timedDetect()
{
if (wgssSignatureSDK.running)
{
print("Signature SDK Service detected.");
start();
}
else
{
print("Signature SDK Service not detected.");
}
}


function onDetectRunning()
{
if (wgssSignatureSDK.running)
{
print("Signature SDK Service detected.");
clearTimeout(timeout);
start();
}
else
{
print("Signature SDK Service not detected.");
}
}

function start()
{
if (wgssSignatureSDK.running)
{
sigCtl = new wgssSignatureSDK.SigCtl(onSigCtlConstructor);
}
}

function onSigCtlConstructor(sigCtlV, status)
{
if(wgssSignatureSDK.ResponseStatus.OK == status)
{
dynCapt = new wgssSignatureSDK.DynamicCapture(onDynCaptConstructor);
}
else
{
print("SigCtl constructor error: " + status);
}
}

function onDynCaptConstructor(dynCaptV, status)
{
if(wgssSignatureSDK.ResponseStatus.OK == status)
{
sigCtl.GetSignature(onGetSignature);
}
else
{
print("DynCapt constructor error: " + status);
}
}

function onGetSignature(sigCtlV, sigObjV, status)
{
if(wgssSignatureSDK.ResponseStatus.OK == status)
{
sigObj = sigObjV;
sigCtl.GetProperty("Component_FileVersion", onSigCtlGetProperty);
}
else
{
print("SigCapt GetSignature error: " + status);
}
}

function onSigCtlGetProperty(sigCtlV, property, status)
{
if(wgssSignatureSDK.ResponseStatus.OK == status)
{
print("DLL: flSigCOM.dll v" + property.text);
dynCapt.GetProperty("Component_FileVersion", onDynCaptGetProperty);
}
else
{
print("SigCtl GetProperty error: " + status);
}
}

function onDynCaptGetProperty(dynCaptV, property, status)
{
if(wgssSignatureSDK.ResponseStatus.OK == status)
{
print("DLL: flSigCapt.dll v" + property.text);
print("Test application ready.");
print("Press 'Start' to capture a signature.");
if('function' === typeof callback)
{
callback();
}
}
else
{
print("DynCapt GetProperty error: " + status);
}
}
}

function Capture()
{
if(!wgssSignatureSDK.running || null == dynCapt)
{
print("Session error. Restarting the session.");
restartSession(window.Capture);
return;
}
dynCapt.Capture(sigCtl, "who", "why", null, null, onDynCaptCapture);

function onDynCaptCapture(dynCaptV, SigObjV, status)
{
if(wgssSignatureSDK.ResponseStatus.INVALID_SESSION == status)
{
print("Error: invalid session. Restarting the session.");
restartSession(window.Capture);
}
else
{
if(wgssSignatureSDK.DynamicCaptureResult.DynCaptOK != status)
{
print("Capture returned: " + status);
}
switch( status )
{
case wgssSignatureSDK.DynamicCaptureResult.DynCaptOK:
sigObj = SigObjV;
print("Signature captured successfully");
var flags = wgssSignatureSDK.RBFlags.RenderOutputBase64 |
wgssSignatureSDK.RBFlags.RenderColor24BPP;
var imageBox = document.getElementById("imageBox");
sigObj.RenderBitmap("bmp", imageBox.clientWidth, imageBox.clientHeight, 0.7, 0x00000000, 0x00FFFFFF, flags, 0, 0, onRenderBitmap);
break;
case wgssSignatureSDK.DynamicCaptureResult.DynCaptCancel:
print("Signature capture cancelled");
break;
case wgssSignatureSDK.DynamicCaptureResult.DynCaptPadError:
print("No capture service available");
break;
case wgssSignatureSDK.DynamicCaptureResult.DynCaptError:
print("Tablet Error");
break;
case wgssSignatureSDK.DynamicCaptureResult.DynCaptIntegrityKeyInvalid:
print("The integrity key parameter is invalid (obsolete)");
break;
case wgssSignatureSDK.DynamicCaptureResult.DynCaptNotLicensed:
print("No valid Signature Capture licence found");
break;
case wgssSignatureSDK.DynamicCaptureResult.DynCaptAbort:
print("Error - unable to parse document contents");
break;
default:
print("Capture Error " + status);
break;
}
}
}

function onRenderBitmap(sigObjV, bmpObj, status)
{
if(wgssSignatureSDK.ResponseStatus.OK == status)
{
var imageBox = document.getElementById("imageBox");
if(null == imageBox.firstChild)
{
imageBox.appendChild(bmpObj.image);
}
else
{
imageBox.replaceChild(bmpObj.image, imageBox.firstChild);
}
}
else
{
print("Signature Render Bitmap error: " + status);
}
}

}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.