Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

. #198

Closed
wants to merge 13 commits into from
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
[![Generic badge](https://img.shields.io/badge/Version-3.0.1-brightgreen?style=for-the-badge&logo=appveyor)](https://github.com/vishal-lokare/AutoJoomer)
[![Generic badge](https://img.shields.io/badge/Version-3.0.2-brightgreen?style=for-the-badge&logo=appveyor)](https://github.com/vishal-lokare/AutoJoomer)

[contributors-shield]: https://img.shields.io/github/contributors/vishal-lokare/AutoJoomer.svg?style=for-the-badge
[contributors-url]: https://github.com/vishal-lokare/AutoJoomer/graphs/contributors
Expand All @@ -21,7 +21,7 @@
![Firebase](https://camo.githubusercontent.com/ea0283d34b92d1905070c14ffe1c48412fef80c44232679c0657db176708403f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f46697265626173652d79656c6c6f773f7374796c653d666f722d7468652d6261646765266c6f676f3d666972656261736526)

<p align="center">
<a href="https://github.com/vishal-lokare/AutoJoomer/"><img src="https://github.com/vishal-lokare/AutoJoomer/blob/main/src/images/icon.jpeg?raw=true" alt="AutoJoomer" width="100" height="100"></a><br>
<a href="https://github.com/vishal-lokare/AutoJoomer/"><img src="https://github.com/vishal-lokare/AutoJoomer/blob/main/src/images/icon.png" alt="AutoJoomer" width="100" height="100"></a><br>
<a href="https://github.com/vishal-lokare/AutoJoomer/"><b>AutoJoomer</b></a>
<br><br><hr>
<p> AutoJoomer extension on Chrome Webstore - <a href="https://chrome.google.com/webstore/detail/autojoomer/gbclbcfjcjnajkkibmadammhkbmgbiao">Add to your browser</a></p>
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "AutoJoomer",
"version": "3.0.1",
"version": "3.0.2",
"manifest_version": 3,
"icons": {
"128": "src/images/icon.png"
Expand Down
7 changes: 7 additions & 0 deletions src/js/checklog.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
chrome.storage.local.get(["AutoJoomerUsername"], function (result) { //checks if user has logged in to show login page on opening popup
if (!result.AutoJoomerUsername) {
window.open("/src/pages/login/login.html", "_self");
} else {

}
});
5 changes: 3 additions & 2 deletions src/js/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
<script src="popup.js"></script>
<script src="checklog.js"></script>
<script src="popup.js" async="async"></script> <!-- async to run checklog before popup.js -->

</head>
<style>
Expand Down Expand Up @@ -352,4 +353,4 @@

</body>

</html>
</html>
5 changes: 4 additions & 1 deletion src/pages/login/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,11 @@ btn.addEventListener("click", () => {
);
btn.disabled = true;
btn.innerText = "Saved";
setTimeout(() => { //redirecting to popup.html
window.open("/src/js/popup.html", "_self");
}, 1000);
} else {
alert("Roll number does not exist");
return;
}
});
});
2 changes: 1 addition & 1 deletion src/pages/login/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ <h1>Login</h1>
<option value="ECE">ECE</option>
<option value="BCY">BCY</option>
</select>

</div>
<div class="form-group-col">
<label for="batch">Batch: </label>
Expand All @@ -58,5 +59,4 @@ <h1>Login</h1>

<script src="app.js"></script>
</body>

</html>
16 changes: 3 additions & 13 deletions src/pages/login/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,22 @@
body {
background: var(--bg-gradient);
font-family: var(--font-family);
min-height: 100vh;
height: 100vh;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 20px 0;
}
.logo {
display: flex;
justify-content: center;
align-items: center;
width: 120px;
height: 120px;
margin-bottom: 80px;
}
.logo img {
width: 100%;
}
.form-container {
padding: 24px;
display: flex;
justify-content: flex-start;
align-items: center;
flex-direction: column;
background-color: var(--light);
border-radius: 8px;
/* border-radius: 8px; */
}
.form-container h1 {
padding-bottom: 2rem;
Expand Down Expand Up @@ -103,6 +92,7 @@ body {

background: rgba(9, 9, 121, 1);
color: var(--light);

}
.submit-btn:hover {
color: rgba(9, 9, 121, 1);
Expand Down
4 changes: 3 additions & 1 deletion version_updates.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"2.4": "Early join feature added",
"2.5": "Added Auto Login to College WiFi",
"2.6": "Improved auto login feature",
"3.0": "Updated with Manifest Version 3"
"3.0": "Updated with Manifest Version 3",
"3.0.1": "Fixed wifi login, auto populate, UI changes",
"3.0.2": "Login page on startup"
}