이민호

add screen lock page

<script type="text/javascript">
post_data = {
var type = '<%= type %>';
post_data = {
"collection":'<%= collection %>'
}
function winOpen() {
var type = '<%= type %>';
let sign = window.prompt("password");
if (sign == type){
}
function login() {
if (document.getElementById("password").value == type) {
redirectPost('/',post_data)
}
else{
winOpen();
else {
window.alert("비밀번호가 틀립니다!")
}
}
function redirectPost(url, data) {
}
function redirectPost(url, data) {
var form = document.createElement('form');
document.body.appendChild(form);
form.method = 'post';
......@@ -28,6 +25,41 @@
}
form.submit();
}
</script>
</script>
<body>
<div id="screen-lock" class="hide" style="opacity:0.95;">
<div class="panel panel-warning" style="width:500px;margin: 168px 0px 0px -250px;left: 50%;position: absolute;">
<!-- begin panel-heading -->
<div class="panel-heading">
<h4 class="panel-title">screenlock_message</h4>
</div>
<!-- end panel-heading -->
<body onLoad="winOpen()"></body>
\ No newline at end of file
<!-- begin panel-body -->
<div class="panel-body">
<!-- begin fieldset -->
<fieldset>
<!-- begin row -->
<div class="row">
<!-- begin col-8 -->
<div class="col-md-10 offset-md-1">
<!-- begin form-group -->
<div class="form-group row m-b-10">
<label class="col-md-5 col-form-label text-md-right">비밀번호</label>
<div class="col-md-6">
<input type="password" name="password" id="password" class="form-control" />
<button id="LockPasswordCheckAction" class="btn btn-success" onclick="login()">unlock</button>
</div>
</div>
<!-- end form-group -->
</div>
<!-- end col-8 -->
</div>
<!-- end row -->
</fieldset>
<!-- end fieldset -->
</div>
<!-- end panel-body -->
</div>
<!-- end panel -->
</div>
\ No newline at end of file
......
......@@ -52,7 +52,7 @@ limitations under the License.
<canvas id="output"></canvas>
<div id="description">
<div id="description-title">Face Detecting...</div>
<input type="button" id="close_button" onclick="location.href='/';" value="종료" />
</div>
<video id="video" playsinline style="
-webkit-transform: scaleX(-1);
......@@ -63,7 +63,6 @@ limitations under the License.
">
</video>
</div>
<input type="button" id="AWS_button" onclick="onClick();" value="버튼1" />
<form>
<input type="hidden" id="method" name="method" value=<%= method %> />
<input type="hidden" id="collection" name="collection" value=<%= collection %> />
......