2016-02-25 08:21:54 +03:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<title>Data storage service sample</title>
|
2016-12-09 20:49:45 +03:00
|
|
|
|
<script src="lib/VSS.SDK.min.js"></script>
|
2016-02-25 23:47:33 +03:00
|
|
|
|
<link rel="stylesheet" href="css/main.css" />
|
2016-02-25 08:21:54 +03:00
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
// Initialize the VSS SDK
|
|
|
|
|
VSS.init({
|
|
|
|
|
usePlatformScripts: true,
|
2016-02-25 23:47:33 +03:00
|
|
|
|
moduleLoaderConfig: {
|
|
|
|
|
paths: {
|
2016-12-09 20:49:45 +03:00
|
|
|
|
"dataStorage": "scripts"
|
2016-02-25 23:47:33 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-02-25 08:21:54 +03:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Wait for the SDK to be initialized
|
|
|
|
|
VSS.ready(function () {
|
2016-02-25 23:47:33 +03:00
|
|
|
|
require(["dataStorage/settings"], function () { });
|
2016-02-25 08:21:54 +03:00
|
|
|
|
VSS.notifyLoadSucceeded();
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
<div id="vss-extension">
|
|
|
|
|
<div class="user">
|
|
|
|
|
<div class="bool">
|
|
|
|
|
<label>Boolean Value</label>
|
|
|
|
|
<input class="booleanValue" type="checkbox" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="number">
|
|
|
|
|
<label>Integer Value</label>
|
|
|
|
|
<input class="numberValue" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="obj">
|
|
|
|
|
<label>Object Value 1</label>
|
|
|
|
|
<input class="objectValue1" />
|
|
|
|
|
|
|
|
|
|
<label>Object Value 2</label>
|
|
|
|
|
<input class="objectValue2" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="default">
|
|
|
|
|
<div class="bool">
|
|
|
|
|
<label>Boolean Value</label>
|
|
|
|
|
<input class="booleanValue" type="checkbox" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="number">
|
|
|
|
|
<label>Integer Value</label>
|
|
|
|
|
<input class="numberValue" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="obj">
|
|
|
|
|
<label>Object Value 1</label>
|
|
|
|
|
<input class="objectValue1" />
|
|
|
|
|
|
|
|
|
|
<label>Object Value 2</label>
|
|
|
|
|
<input class="objectValue2" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
<button class="saveButton">Save Settings</button>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|