-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
141 lines (134 loc) · 5.09 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html>
<!-- -->
<!-- -->
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<!-- <link rel="stylesheet" href="bootstrap.min.css"> -->
<!-- -->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> -->
<!-- -->
</head>
<!-- -->
<!-- -->
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="index.html">JSql</a>
</div>
<ul class="nav navbar-nav">
<li><a href="index.html">Home</a></li>
<li><a href="second.html">joins</a></li>
<!-- <li><a href="#">Page 2</a></li> -->
<!-- <li><a href="#">Page 3</a></li> -->
</ul>
</div>
</nav>
<!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- -->
<div class="jumbotron text-center">
<h1>Welcome to JSql drive</h1>
<p>Fast reliable Data-transmission using JS & NoSql database with localstorage </p>
</div>
<!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- -->
<div class="container">
<div class="row">
<div class="col-sm-6">
<h1>NewEntry</h1>
First name:<br>
<input type="text" id ="first" name="name"><br>
Email:<br>
<input type="text" id ="email" name="email"><br><br>
<input type="submit" value="Submit1" onclick="insertDB('newU','LocalDBtable')">
<input type="submit" value="Submit2" onclick="insertDB('newU2','LocalDBtable2')">
</div>
<div class="col-sm-6">
<h1>Update</h1>
First name:<br>
<input type="text" id ="first-update" name="firstname">
<br>
Email:<br>
<input type="text" id ="email-update" name="email">
<br><br>
<input type="submit" value="Submit1" onclick="updateDB('newU','LocalDBtable')">
<input type="submit" value="Submit2" onclick="updateDB('newU2','LocalDBtable2')">
</div>
</div>
</div>
<!-- --> <!-- --> <!-- --> <!-- -->
<br><br>
<!-- --> <!-- --> <!-- --> <!-- -->
<div class="container">
<!-- --> <!-- --> <!-- --> <!-- -->
<div class="row">
<div class="col-sm-6">
<p>ServerDB at the START - table1</p>
</div>
<div class="col-sm-6">
<input type="button" value="LocalDB1" onclick="viewDB('newU', 'LocalDBtable')">
</div>
</div>
<!-- --> <!-- --> <!-- --> <!-- -->
<div class="row">
<!-- <p>After Reload</p> -->
<div class="col-sm-6">
<table class="table table-striped" id="demo1"></table>
</div>
<div class="col-sm-6">
<table class="table table-striped" id="LocalDBtable"></table>
</div>
</div>
<!-- --> <!-- --> <!-- --> <!-- -->
<br><br>
<div class="row">
<div class="col-sm-6">
<p>ServerDB at the START - table2</p>
</div>
<div class="col-sm-6">
<input type="button" value="LocalDB2" onclick="viewDB('newU2', 'LocalDBtable2')">
</div>
</div>
<!-- --> <!-- --> <!-- --> <!-- -->
<div class="row">
<!-- <p>After Reload</p> -->
<div class="col-sm-6">
<table class="table table-striped" id="demo3"></table>
</div>
<div class="col-sm-6">
<table class="table table-striped" id="LocalDBtable2"></table>
</div>
</div>
<!-- --> <!-- --> <!-- --> <!-- -->
<br><br>
<div class="row">
<div class="col-sm-6">
<button onclick="postDB('star', 'newU', 'post1')">Post1</button><br>
</div>
<div class="col-sm-6">
<!-- <p id="post1"></p> -->
<button onclick="postDB('star2', 'newU2', 'post2')">Post2</button><br>
</div>
</div>
<!-- --> <!-- --> <!-- --> <!-- -->
<div class="row">
<div class="col-sm-6">
<table class="table table-striped" id="post1"></table>
</div>
<div class="col-sm-6">
<table class="table table-striped" id="post2"></table>
</div>
</div>
</div>
<div id="demo"></div>
<div id="demop"></div>
<p id="msg"></p>
<script type="text/javascript" src="LocalStorageDB.js"></script>
<script type="text/javascript" src="backend.js"></script>
</body>
</html>