Added proper alert messages and improved security of import file.

This commit is contained in:
2019-01-18 21:29:20 -06:00
parent 0a9b1630d9
commit 8969d934ed
26 changed files with 153 additions and 399 deletions

34
pages/import.html Normal file
View File

@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Easy Session Manager Import</title>
<link rel="shortcut icon" href="../images/icons/import.png">
<link rel="stylesheet" href="../styles/styles.css"/>
<style media="screen">
body, html {
width: 100%;
height: 100%;
padding: 0em;
margin: 0em;
}
</style>
</head>
<body>
<div class="container" name="import">
<h1 id="lableTag">Select File</h1>
<input id="inputId" type="file" enctype='multipart/form-data' multiple accept="application/json"/>
</div>
<span id="allertMessage">
</span>
<script src="../scripts/background.js"></script>
</body>
</html>

45
pages/sessionManager.html Executable file
View File

@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="../styles/styles.css"/>
</head>
<body>
<center>
<button type="button" name="import">
Import <img class="icon" src="../images/icons/import.png" alt="Import JSON"/>
<input id="inputId" type="file" />
</button>
<button type="button" name="save">
Save <img class="icon" src="../images/icons/save.png" alt="Save Image"/>
</button>
<button type="button" name="download">
Download <img class="icon" src="../images/icons/download.png" alt="Download Image"/>
</button>
<div id="savedSessions">
</div>
<span id="allertMessage">
</span>
<button type="button" name="edit">
Edit <img class="icon" src="../images/icons/edit.png" alt="Edit Image"/>
</button>
<button type="button" name="delete">
Delete <img class="icon" src="../images/icons/delete.png" alt="Delete Image"/>
</button>
</center>
<a id="downloadAnchorElem" href="#"></a>
<script src="../scripts/events.js"></script>
<script src="../scripts/sessionManager.js"></script>
</body>
</html>