Initial commit
This commit is contained in:
Generated
+8
@@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
Generated
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/webui.iml" filepath="$PROJECT_DIR$/.idea/webui.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
Generated
+20
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="MessDetectorOptionsConfiguration">
|
||||
<option name="transferred" value="true" />
|
||||
</component>
|
||||
<component name="PHPCSFixerOptionsConfiguration">
|
||||
<option name="transferred" value="true" />
|
||||
</component>
|
||||
<component name="PHPCodeSnifferOptionsConfiguration">
|
||||
<option name="highlightLevel" value="WARNING" />
|
||||
<option name="transferred" value="true" />
|
||||
</component>
|
||||
<component name="PhpProjectSharedConfiguration" php_language_level="8.1" />
|
||||
<component name="PhpStanOptionsConfiguration">
|
||||
<option name="transferred" value="true" />
|
||||
</component>
|
||||
<component name="PsalmOptionsConfiguration">
|
||||
<option name="transferred" value="true" />
|
||||
</component>
|
||||
</project>
|
||||
Generated
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
Generated
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
@@ -0,0 +1,73 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>URL Shortener by Emily</title>
|
||||
<script src="stuff/jquery-3.7.1.min.js"></script>
|
||||
<script src="stuff/bootstrap.min.js"></script>
|
||||
<link href="stuff/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="stuff/main.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div id="header">
|
||||
<nav class="navbar navbar-expand-lg bg-body-tertiary">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="#">Url Shortener</a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav me-auto mb-2 mb-lg-0" id="Navbar-content">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active fw-bold" href="javascript:;" id="nav-home">Home</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="javascript:;" id="nav-shortcodes">Shortcodes</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="javascript:;" id="nav-profile">Profile</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div id="profile-stuff">
|
||||
<button class="btn btn-outline-primary me-2 hide">Register</button>
|
||||
<button class="btn btn-outline-primary hide">Login</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
<div id="main-content">
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(() => {
|
||||
$("#main-content").load("pages/home.html")
|
||||
|
||||
// Navbar handler
|
||||
// Yes, i am fully aware that my code is highly cringe, but its easy to understand, quick to write
|
||||
// and most importantly, it gets the job done
|
||||
// Feel free to suggest cleaner code tho if you know any
|
||||
$("#nav-home").on("click", () => {
|
||||
$("#nav-home").addClass("active").addClass("fw-bold")
|
||||
$("#nav-profile").removeClass("active").removeClass("fw-bold")
|
||||
$("#nav-shortcodes").removeClass("active").removeClass("fw-bold")
|
||||
$("#main-content").load("pages/home.html")
|
||||
})
|
||||
$("#nav-shortcodes").on("click", () => {
|
||||
$("#nav-shortcodes").addClass("active").addClass("fw-bold")
|
||||
$("#nav-profile").removeClass("active").removeClass("fw-bold")
|
||||
$("#nav-home").removeClass("active").removeClass("fw-bold")
|
||||
$("#main-content").load("pages/shortcodes.html")
|
||||
})
|
||||
$("#nav-profile").on("click", () => {
|
||||
$("#nav-profile").addClass("active").addClass("fw-bold")
|
||||
$("#nav-shortcodes").removeClass("active").removeClass("fw-bold")
|
||||
$("#nav-home").removeClass("active").removeClass("fw-bold")
|
||||
$("#main-content").load("pages/profile.html")
|
||||
})
|
||||
})
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!--
|
||||
Page content for home tab
|
||||
-->
|
||||
|
||||
<div>
|
||||
<p>Feel free to check out my <a href="https://git.dommymommy.xyz/emily/url-shortener">Git</a></p>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$("#test").html("lol")
|
||||
</script>
|
||||
@@ -0,0 +1,5 @@
|
||||
<!--
|
||||
Page content for profile tab
|
||||
-->
|
||||
|
||||
<img src="stuff/IMG_1620.jpg">
|
||||
@@ -0,0 +1,3 @@
|
||||
<!--
|
||||
Page content for shortcodes tab
|
||||
-->
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 152 KiB |
Vendored
+6
File diff suppressed because one or more lines are too long
Vendored
+7
File diff suppressed because one or more lines are too long
Vendored
+2
File diff suppressed because one or more lines are too long
@@ -0,0 +1,3 @@
|
||||
.hide{
|
||||
display:none;
|
||||
}
|
||||
Reference in New Issue
Block a user