Initial commit
This commit is contained in:
16
views/redirect.blade.php
Normal file
16
views/redirect.blade.php
Normal file
@ -0,0 +1,16 @@
|
||||
@extends('layout.master')
|
||||
|
||||
@section('content')
|
||||
<p>{{ $message }}</p>
|
||||
<p>You will be redirected to homepage in <span id="sec">10</span> seconds.</p>
|
||||
|
||||
<script>
|
||||
setInterval(function () {
|
||||
var sec = document.getElementById('sec');
|
||||
sec.textContent -= 1;
|
||||
if (sec.textContent == 0) {
|
||||
window.location = '/';
|
||||
}
|
||||
}, 1000);
|
||||
</script>
|
||||
@endsection
|
Reference in New Issue
Block a user