-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmessage.php
More file actions
20 lines (20 loc) · 812 Bytes
/
message.php
File metadata and controls
20 lines (20 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<div class="row justify-content-center mb-3">
<?php $counter=0; if(isset($_GET['msg'])) { ?>
<div class="col-5 alert alert alert-success alert-dismissible fade show card" id="message">
<button type="button" class="close" data-dismiss="alert" title="close">×</button><?php echo $_GET['msg'];?>
</div>
<?php }?>
<?php if(isset($_GET['error'])) { ?>
<div class="col-5 alert error alert-danger alert-dismissible fade show card" id="message">
<button type="button" class="close" data-dismiss="alert" title="close">×</button><?php echo $_GET['error'];?>
</div>
<?php }?>
</div>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script>
$( document ).ready(function(){
$('#message').fadeIn('slow', function(){
$('#message').delay(5000).fadeOut();
});
});
</script>