-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
47 lines (37 loc) · 1.23 KB
/
footer.php
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
<div id="footer" class="col-xs-12 text-xs-center">
<?php if (isset($user) && $user) ?>
<div class="text-muted">made with <span class="love">♥</span> by <a href="https://github.com/braden337/todo">braden</a></div>
</div>
</div>
<script src="assets/jquery.min.js"></script>
<script src="assets/bootstrap.min.js"></script>
<script>
// document.write('<script src="http://' +
// (location.host || 'localhost').split(':')[0] +
// ':35729/livereload.js?snipver=1"></' +
// 'script>');
$(document).ready(function() {
if (!localStorage.learned) {
$('#instructions').show();
}
setTimeout(function(){
$('#flash').slideUp({duration: 250, easing: 'swing'});
}, 3000);
$('#todoInput').focus();
$('.todo').hover(function() {
$(this).toggleClass('bg-danger');
});
$('.todo').click(function() {
var id = $(this).attr('data-id');
if (confirm('Are you sure you want to delete this item?')) {
window.location = `/delete.php?id=${id}`;
}
});
$('#instructions').click(function() {
$('#instructions').hide();
localStorage.learned = true;
});
});
</script>
</body>
</html>