Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
yogesh-hacker authored Sep 26, 2024
1 parent a1108a9 commit a9de302
Showing 1 changed file with 32 additions and 176 deletions.
208 changes: 32 additions & 176 deletions College/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,19 @@
h2 {
font-family: "Ubuntu" !important;
}
.joke-message {
color: red;
font-weight: bold;
font-size: 1.5rem;
text-align: center;
margin-top: 20px;
}
</style>
</head>
<body>

<div class="joke-message" id="joke-message"></div>

<div>
<a class="btn btn-primary" href="" data-toggle="collapse" data-target="#monday">Monday</a>
<a class="btn btn-primary" href="" data-toggle="collapse" data-target="#tuesday">Tuesday</a>
Expand All @@ -44,192 +54,38 @@
<a class="btn btn-primary" href="" data-toggle="collapse" data-target="#saturday">Saturday</a>
</div>




<div id="monday" class="collapse">
<h2>Monday</h2>
<table class="table table-bordered table-dark table-striped">
<thead>
<tr>
<th scope="col">Course</th>
<th scope="col">Teacher</th>
<th scope="col">Time</th>
<th scope="col">Room No</th>
</tr>
</thead>
<tbody>
<tr>
<td>English(H)</td>
<td>SG</td>
<td>11:30 AM</td>
<td>308</td>
</tr>
</tbody>
</table>
</div>
<div id="tuesday" class="collapse">
<h2>Tuesday</h2>
<table class="table table-bordered table-dark table-striped">
<thead>
<tr>
<th scope="col">Course</th>
<th scope="col">Teacher</th>
<th scope="col">Time</th>
<th scope="col">Room No</th>
</tr>
</thead>
<tbody>
<tr>
<td>English(H)</td>
<td>SG</td>
<td>01:30 PM</td>
<td>308</td>
</tr>
</tbody>
</table>
</div>
<div id="wednesday" class="collapse">
<h2>Wednesday</h2>
<table class="table table-bordered table-dark table-striped">
<thead>
<tr>
<th scope="col">Course</th>
<th scope="col">Teacher</th>
<th scope="col">Time</th>
<th scope="col">Room No</th>
</tr>
</thead>
<tbody>
<tr>
<td>English(H)</td>
<td>RD</td>
<td>10:30 AM</td>
<td>308</td>
</tr>
<tr>
<td>English(H)</td>
<td>RD</td>
<td>11:30 AM</td>
<td>308</td>
</tr>
<tr>
<td>English(H)</td>
<td>SG</td>
<td>02:30 PM</td>
<td>308</td>
</tr>
</tbody>
</table>
</div>
<div id="thursday" class="collapse">
<h2>Thursday</h2>
<table class="table table-bordered table-dark table-striped">
<thead>
<tr>
<th scope="col">Course</th>
<th scope="col">Teacher</th>
<th scope="col">Time</th>
<th scope="col">Room No</th>
</tr>
</thead>
<tbody>
<tr>
<td>English(H)</td>
<td>RD</td>
<td>10:30 PM</td>
<td>308</td>
</tr>
<tr>
<td>English(H)</td>
<td>RD</td>
<td>02:30 PM</td>
<td>308</td>
</tr>
</tbody>
</table>
</div>
<div id="friday" class="collapse">
<h2>Friday</h2>
<table class="table table-bordered table-dark table-striped">
<thead>
<tr>
<th scope="col">Course</th>
<th scope="col">Teacher</th>
<th scope="col">Time</th>
<th scope="col">Room No</th>
</tr>
</thead>
<tbody>
<tr>
<td>English(H)</td>
<td>SG</td>
<td>10:30 AM</td>
<td>203</td>
</tr>
<tr>
<td>English(H)</td>
<td>RD</td>
<td>11:30 AM</td>
<td>308</td>
</tr>
</tbody>
</table>
</div>
<div id="saturday" class="collapse">
<h2>Saturday</h2>
<table class="table table-bordered table-dark table-striped">
<thead>
<tr>
<th scope="col">Course</th>
<th scope="col">Teacher</th>
<th scope="col">Time</th>
<th scope="col">Room No</th>
</tr>
</thead>
<tbody>
<tr>
<td>English(H)</td>
<td>RD</td>
<td>10:30 PM</td>
<td>308</td>
</tr>
<tr>
<td>English(H)</td>
<td>PC</td>
<td>11:30 AM</td>
<td>308</td>
</tr>
<tr>
<td>English(H)</td>
<td>PC</td>
<td>02:30 PM</td>
<td>308</td>
</tr>
</tbody>
</table>
</div>


<!-- Your routine data as before... -->

<script src="index.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script type="text/javascript" charset="utf-8">
$(".btn").click(function() {
$('.collapse').collapse('hide');
});

<script type="text/javascript">
$(document).ready(function() {
var currentDate = new Date();
if (currentDate.getDay() !== 0) {
var button = $('[data-target="#' + currentDate.toLocaleString('en-us', { weekday: 'long' }).toLowerCase() + '"]');
if (button.length) {
button.click();
// Get URL parameters
const urlParams = new URLSearchParams(window.location.search);
const access = urlParams.get('access');

if (!access) {
// If 'access' parameter is missing, show a joke message
document.getElementById('joke-message').textContent = "Pay ₹100 to see the routine 😜!";
} else {
// Show the routine as normal if the access parameter is present
$(".btn").click(function() {
$('.collapse').collapse('hide');
});

var currentDate = new Date();
if (currentDate.getDay() !== 0) {
var button = $('[data-target="#' + currentDate.toLocaleString('en-us', { weekday: 'long' }).toLowerCase() + '"]');
if (button.length) {
button.click();
}
}
}
});
</script>

</body>
</html>

0 comments on commit a9de302

Please sign in to comment.