Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/tranchausky/demo
Browse files Browse the repository at this point in the history
  • Loading branch information
tranchausky committed Apr 18, 2024
2 parents 1180451 + df95da7 commit 6031812
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 1 deletion.
84 changes: 84 additions & 0 deletions links/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<li class=""><a href="#todo">Todo</a></li>
<li class=""><a href="#photo">Photo</a></li>
<li class=""><a href="#video">Video</a></li>
<li class=""><a href="#ebook">Ebook</a></li>
<li class=""><a href="#note">Note</a></li>
<!-- <li class=""><a href="../600">600</a></li> -->
<!-- <li class=""><a href="../timedown" target="_blank">Time</a></li> -->
Expand Down Expand Up @@ -793,6 +794,89 @@ <h3>Video </h3>
</div>
</div>
</div>

<div id="ebook" class="hide v-m-content ebook">
<div class="row">
<div class="col-sm-12">
<h3>Ebook</h3>
</div>

</div>
<div class="row">
<div class="form-group col-sm-4">
<label for="ebook-title-input">Title</label>
<input type="text" class="form-control" id="ebook-title-input" required="" placeholder="Title">
<label for="" class="pt-2">Description</label>
<input type="text" class="form-control" id="ebook-description-input" required="" placeholder="Description">

</div>
<div class="form-group col-sm-4 basic-add">
<label for="">Category</label>
<select name="basic-select" class="form-control basic-select">
</select>
</div>

<div class="form-group col-sm-4">
<label for="">Image Link</label>
<input type="text" class="form-control" id="ebook-image-input" required="" placeholder="Title">
<label for="" class="pt-2">Link Ebook</label>
<input type="text" class="form-control" id="ebook-file-input" required="" placeholder="Title">
</div>
<!-- <div class="form-group col-sm-3">
<button id="addImage" class="form-control">Add image</button>
</div> -->
</div>
<hr />
<div class="row">
<div class="col-sm-3 basic-view">
<select name="basic-select" class="form-control basic-select" ></select>
</div>
<div class="col-sm-3">
<p>List total: <span id="total-ebook"></span></p>
</div>

</div>
<br>
<div class="row">


<div class="col-sm-6 ">
<div class="row">
<div class="list-image"></div>
</div>
<!-- <div class="row">
<button onclick="getListPhotoNext()">Next</button>
</div> -->
</div>

<div class="col-sm-6">
<div class="row">
<div class="col-sm-3">
<label for="">Edit category</label>
<select name="list-cat-btn-edit" class="form-control list-cat-btn-edit" id="list-cat-btn-edit"></select>
</div>
<div class="col-sm-4"><span id="ebook-time"></span>
<input id="edit-private-ebook" type="checkbox">
<label for="edit-private-ebook">is ebook hay</label>
</div>
<div class="col-sm-5">
<label for="">Feel</label>
<input type="text" class="form-control" id="ebook-feel-input" required="" placeholder="Feel">
</div>
<div class="col-sm-12">
<label for="">Feel</label>
<input type="text" class="form-control" id="ebook-feel-input" required="" placeholder="Feel">
</div>
</div>
<br><br>
<div class="row">
<img class="img-responsive" id="image-img-ebook" src="https://i.imgur.com/mVJdgKk.png" alt="">
</div>

<br /><br><br></span><br>
</div>
</div>
</div>

<div id="note" class="hide v-m-content note">
<div class="row">
Expand Down
30 changes: 30 additions & 0 deletions links/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,27 @@ function changeDataAttribute(at, attribtue, value) {
}
}

let idleTime = 0;
setInterval(timerIncrement, 1000);
//function check after 5minus
function timerIncrement() {
if(user_ID !='' && !$('#my-ss-login-view').is(':visible')){
idleTime++;
}
// console.log(idleTime)
if (idleTime > 300) { // 300 seconds = 5 minutes
// Call your function here
//console.log('No activity for 5 minutes');
idleTime = 0; // Reset idle time
showNeedEnterAfter5Minus();
}
}

$(document).ready(function () {
$(document).on('mousemove keydown', function() {
idleTime = 0;
});

var height = $('.navbar-header').height();
$('#start-content').css('margin-top', height);
$('#myNavbar a').click(function () {
Expand Down Expand Up @@ -298,6 +317,17 @@ function showHideSessionLogin() {
return true;
}
}
function showNeedEnterAfter5Minus(){
var hash = glb_password_hash;
if(hash == ''){
//logout
signOut();
return true;
}
sessionStorage.setItem("sessionLogin", 'false');
$('#my-ss-login-view').modal('show');

}

//try active last click
function tabClick() {
Expand Down
10 changes: 9 additions & 1 deletion qr/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
#qrcode img {
margin: auto;
}
pre {
width: 90vw;
overflow: auto;
white-space: pre-wrap;
margin: auto;
margin-top: 20px;
word-wrap: break-word;
}
</style>
</head>

Expand All @@ -29,7 +37,7 @@
<br />
<br />
<br />
<div id="qrcode"></div>
<div id="qrcode" onmouseover="this.title='';"></div>
<pre id="viewtext"></pre>


Expand Down

0 comments on commit 6031812

Please sign in to comment.