This repository has been archived by the owner on May 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
94 lines (78 loc) · 2.33 KB
/
index.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!--
/**
* Project Name: Splinter
* Project Type: TODO List Web App
* Project Author: Al Nahian
* Date Created: 7:48 PM, 21 Jun 2022
* GitHub: https://github.com/alnahian2003/splinter
* Author Portfolio: https://alnahian2003.github.io
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Main Stylesheet -->
<link rel="stylesheet" href="assets/css/style.css" />
<!-- Toastr Stylesheet -->
<link rel="stylesheet" href="assets/css/toastr.css" />
<title>Splinter — TODO List Web App</title>
</head>
<body>
<!-- Header Section: Intro Part, TODO Form Inputs -->
<header>
<div id="intro">
<h1>SPLINTER</h1>
<h2>TODO List Web App</h2>
</div>
<div id="todoForm">
<form action="index.php" method="POST" id="splinterForm">
<input type="text" name="title" id="todo_title" placeholder="start writing your todo task" required maxlength="65" />
<input type="text" name="details" id="todo_details" placeholder="don't miss out to write the details, please!" maxlength="130" />
<button id="submitBtn" type="submit">+</button>
</form>
</div>
</header>
<!-- Main Section: TODO Cards -->
<main>
<h2>TASKS</h2>
<!-- Todo Cards Grid -->
<div id="todo"></div>
</main>
<!-- JQuery 3.6.0 Minified -->
<script src="assets/js/jquery.js"></script>
<!-- Toastr Minified -->
<script src="assets/js/toastr.min.js"></script>
<!-- Main JavaScript -->
<script src="assets/js/app.js"></script>
<script>
// Trigger Welcome Message With Session
toastr.options = {
closeButton: false,
debug: false,
newestOnTop: true,
positionClass: "toast-bottom-right",
preventDuplicates: false,
onclick: null,
showDuration: "300",
newestOnTop: true,
hideDuration: "1000",
timeOut: "3000",
extendedTimeOut: "1000",
showEasing: "swing",
hideEasing: "linear",
showMethod: "fadeIn",
hideMethod: "fadeOut",
progressBar: true,
};
<?php
session_start();
if (!isset($_SESSION["welcome"])) {
$_SESSION["welcome"] = true;
echo "toastr.info('Howdy, Welcome To Splinter! 👋');";
}
?>
</script>
</body>
</html>