mirror of
https://github.com/twisterarmy/twister-react.git
synced 2025-01-11 23:47:55 +00:00
53 lines
1.6 KiB
HTML
53 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
|
|
<script src="build/jquery.min.js"></script>
|
|
<script src="build/jquery.json-2.4.js"></script>
|
|
<script src="build/jquery.jsonrpcclient.js"></script>
|
|
<script src="build/twister-lib.js"></script>
|
|
|
|
<!-- Latest compiled and minified CSS -->
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
|
|
|
|
<!-- Optional theme -->
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
|
|
|
|
<!-- Latest compiled and minified JavaScript -->
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="css/main.css">
|
|
<script>
|
|
|
|
|
|
var loadCache = function () {
|
|
|
|
Twister.deserializeCache(JSON.parse(localStorage.getItem("twister-cache")));
|
|
|
|
};
|
|
|
|
var clearCache = function () {
|
|
|
|
localStorage.setItem("twister-cache", null);
|
|
|
|
};
|
|
|
|
var saveCache = function () {
|
|
|
|
localStorage.setItem("twister-cache", JSON.stringify(Twister.serializeCache()))
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<a href="javascript:loadCache()">Load Cache</a>
|
|
<a href="javascript:saveCache()">Save Cache</a>
|
|
<a href="javascript:clearCache()">Clear Cache</a>
|
|
<br/>
|
|
|
|
<div id="content" class="container"></div>
|
|
|
|
<script src="build/app-bundle.js"></script>
|
|
|
|
</body>
|
|
</html> |