<html>
<head>
    <meta charset="utf-8">
    <title>testing offline</title>
    <script src="https://code.jquery.com/jquery-1.11.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        function addToLocalStorage () {
            var input = SafeExamBrowser.security.browserExamKey;
            localStorage.setItem('testitem', input);
            alert('added to storage: '+input);

        }

        function readFromLocalStorage () {
            var output = SafeExamBrowser.security.configKey;
            alert('from storage: '+output);
        }
    </script>
</head>
<body>
    <p>
        <input type="text" name="testdata" id="testdata" value="" placeholder="">
    </p>
    <p>
        <button onclick="addToLocalStorage()">Store</button>
    </p>
    <p>
        <button onclick="readFromLocalStorage()">Read</button>
    </p>
</body>
</html>

<html>
<head>
    <meta charset="utf-8">
    <title>Testing SEB JavaScript API</title>
    <script src="https://code.jquery.com/jquery-1.11.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        function addToLocalStorage () {
            var input = SafeExamBrowser.security.browserExamKey;
            localStorage.setItem('testitem', input);
            alert('added to storage: '+input);

        }

        function readFromSEBAPI () {
            var pageConfigKey = SafeExamBrowser.security.configKey;
            var pageBrowserExamKey = SafeExamBrowser.security.browserExamKey;
            var sebClientVersion = SafeExamBrowser.security.clientVersion
            alert('SEB Security Information: CK: '+pageConfigKey+'\nBEK: '+pageBrowserExamKey+'\nApplication version: '+sebClientVersion);
        }
    </script>
</head>
<body>
<!--    <p>-->
<!--        <input type="text" name="testdata" id="testdata" value="" placeholder="">-->
<!--    </p>-->
<!--    <p>-->
<!--        <button onclick="addToLocalStorage()">Store</button>-->
<!--    </p>-->
    <p>
        <button onclick="readFromSEBAPI()">Read security information</button>
    </p>
</body>
</html>

Test page for reading security information from SEB clients supporting SEB JavaScript API.
Test page for reading security information from SEB clients supporting SEB JavaScript API.
