Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
krsatyam7 committed Apr 6, 2023
1 parent 18969de commit 1276a7e
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 0 deletions.
8 changes: 8 additions & 0 deletions content.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Get all elements with the "display:none" property
const hiddenElements = document.querySelectorAll("[style*='display:none']");

// Loop through each hidden element and remove its "display:none" property
hiddenElements.forEach(function(element) {
element.style.display = "";
});

Binary file added github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "NIET Attendance Viewer",
"version": "1.1",
"manifest_version": 2,
"description": "A Chrome extension that helps to display Attendance which is hidden by default.",
"content_scripts": [
{
"matches": ["https://niet.instituteoncloud.com/AttendanceReport/StudentAcademicAttendance"],
"js": ["content.js"]
}
],
"browser_action": {
"default_icon": "icons.png",
"default_title": "NIET Attendance Viewer",
"default_popup": "popup.html"
}
}
49 changes: 49 additions & 0 deletions popup.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
.popup-container {
width: 256px;
height: 256px;
padding: 16px;
background-color: #FDF4F5;
animation: mymove 3s infinite;
border-radius: 8px;
}
@keyframes mymove {
50% {box-shadow: 8px 8px 8px rgba(207, 122, 177, 0.50);}
}

.popup-header {
display: flex;
align-items: center;
margin-bottom: 16px;
}

.popup-header img {
width: 48px;
height: 48px;
margin-right: 16px;
}

.popup-header h1 {
font-size: 28px;
font-weight: bold;
margin: 0;
}

.popup-content {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.popup-content p {
font-size: 15px;
margin-bottom: 15px;
}

.popup-content a {
color: #0d9eab;
font-size: 20px;
text-decoration: none;
margin-bottom: 3px;
}

20 changes: 20 additions & 0 deletions popup.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>NIET Attendance Viewer</title>
<link rel="stylesheet" href="popup.css">
</head>
<body>
<div class="popup-container">
<div class="popup-header">
<h1>Attendance Viewer</h1>
</div>
<p align="center"><img src="icons.png" alt="Extension Icon" width = "50%"> </p>
<p align ="center" style="color:rgb(0, 0, 0);font-size:18px;">Have a Good Day!</p>
<div class="popup-content"></div>
<p align = "right"><a href="https://github.com/krsatyam7" target="_blank"><img src="github.png" width = "06%"> krsatyam7</a></p>
</div>
</div>
</body>
</html>

0 comments on commit 1276a7e

Please sign in to comment.