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

Done code optimization for table part , adiition to devarshi's code #5

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
122 changes: 122 additions & 0 deletions assets/js/dry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@

var map2 = {
DYP001: "PyScripters",
DYP002: "BrownMunde",
DYP003: "Team nothing ",
DYP004: "Spartans 300",
DYP005: "Techsquad",
DYP006: "EPIC SQUAD",
DYP007: "TEAM LEGENDS",
DYP008: "Extreme Mutants",
DYP009: "PEAKY BLINDERS",
DYP010: "GLOBAL CHALLENGERS",
DYP011: "RK CHALLENGERS",
DYP012: "TECH_DUO",
DYP013: "FUTURE STARS",
DYP014: "HURRACANS",
DYP015: "TEAM ROLEX",
DYP016: "ProCluster",
DYP017: "Dominator Coders",
DYP018: "Code Wizards",
DYP019: "Tech Wizard",
DYP020: "Pyrates",
DYP021: "Python worriors",
DYP022: " Hack the Tech",
DYP023: "crazy creators ",
DYP024: "PyStark",
DYP025: "4-Zero-4",
DYP026: "Sparkers",
DYP027: "The Ruminators",
DYP028: "CodeSlayers",
DYP029: "Trouble Shouters",
DYP030: "Devisers",
DYP031: "Tech geeks",
DYP032: "Straw Hat Coders",
DYP033: "SOMS CODER",
DYP034: "TEaM1",
DYP035: "The Sheldonators",
DYP036: "Sigma Geeks",
DYP037: "Mind Sight ",
DYP038: "Binary Brains",
DYP039: "Net Surfers",
DYP040: "Base Bombers ",
DYP041: "GROCOAT",
DYP042: "Code smashers",
DYP043: "Slect ",
DYP044: "Minami Kaze",
DYP045: "Einstein Coders",
DYP046: "The One",
DYP047: "Cyber Husters",
DYP048: "Team Kraken",
DYP049: "Binary Brains",
DYP050: "Railway Accident Prevention",
DYP051: "Kick",
DYP052: "Smart Attendees",
DYP053: "Pixels",
DYP054: "The Booleans",
DYP055: "KPGU",
DYP056: "KPGU EE",
DYP057: "python killer",
DYP058: " Kpgu ",
DYP059: "Pycore Healers",
DYP060: "The Equalizers",
DYP061: "Pythakon Nuv 3",
DYP062: "Python Nuv1",
DYP063: "Pythakon NUV-3",
DYP064: "Pythakon NUV-2",
DYP065: "Binary Brains",
DYP066: "Binary Beasts",
DYP067: "Tech Fantome",
DYP068: "Phantoms",
DYP069: "Team Anarok",
DYP070: "CodeSquare",
DYP071: "PotterHeads",
DYP072: "MAPS",
DYP073: "Alohomora ",
DYP074: "The unbeatables",
DYP075: "Error 404 Found",
DYP076: "Team x",
DYP077: "Gucci Gang",
DYP078: "Asu Team ",
DYP079: "Revolutionary",
DYP080: "CodeMonkey",
DYP081: "Vikings",
DYP082: "Black Shadow ",
DYP083: "Dreamers",
DYP084: "Data Pirates",
DYP085: "Study buddies ",
DYP086: "Royal I.T.",
DYP087: "Brainstormers",
DYP088: "Bug Busters 🐛🔥",
DYP089: "META4",
DYP090: "BREEZE",
DYP091: "Code Crackers - CC",
DYP092: "Errors by Night",
DYP093: "BitByBit",
DYP094: "Tech Bees",


};


var row_counter=1;
var sizeofteams=Object.keys(map2).length/3;
var row_length=parseInt(sizeofteams,10);
console.log(row_length);
for (var key in map2) {
var newRowContent="<tr><td>"+key+"</td><td>"+map2[key]+"</td></tr>";
if (row_counter<=row_length) {
$(newRowContent).appendTo($("#mtab1"));
}else{
if (row_counter<=row_length*2) {
$(newRowContent).appendTo($("#mtab2"));

}else{

$(newRowContent).appendTo($("#mtab3"));
}
}

row_counter = row_counter+1;
// console.log(key + map2[key]);
}
83 changes: 51 additions & 32 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,42 +275,60 @@ <h1 class="" data-animation="fadeInLeft" data-delay=".3s">Unleash your Potential
</div>
</section>

<!-- <section class="infetech-information-area" style="margin-top: 50px;">
<section class="infetech-information-area" style="margin-top: 50px;">
<div class="container">
<div class="container-fluid">
<div class="row">
<div class="col-sm stroke">
<h5 class="text-center">DYP0001</h5>
<h4 class="text-center">HURRACANS</h4>
</div>
<div class="col-sm stroke">
<h5 class="text-center">DYP0001</h5>
<h4 class="text-center">HURRACANS</h4>
</div>
<div class="col-sm stroke">
<h5 class="text-center">DYP0001</h5>
<h4 class="text-center">HURRACANS</h4>
</div>
<div class="col-sm stroke">
<h5 class="text-center">DYP0001</h5>
<h4 class="text-center">HURRACANS</h4>
</div>
<div class="col-sm stroke">
<h5 class="text-center">DYP0001</h5>
<h4 class="text-center">HURRACANS</h4>
</div>
<div class="col-sm stroke">
<h5 class="text-center">DYP0001</h5>
<h4 class="text-center">HURRACANS</h4>
</div>
<div class="col-sm stroke">
<h5 class="text-center">DYP0001</h5>
<h4 class="text-center">HURRACANS</h4>
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="section-title text-center mb-55">
<h3 class="title">Teams Selected</h3>
<!-- <span>Cash prizes and all deliverables will be announced shortly. All participants will receive
Certificate of Participation</span> -->
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4">
<table class="table table-bordered table-hover" id="mtab1">
<thead>
<tr>
<th scope="col">Team Code</th>
<th scope="col">Team Name</th>
</tr>
</thead>
<tbody >
</tbody>

</table>
</div>
<div class="col-lg-4">
<table class="table table-bordered table-hover" id="mtab2">
<thead>
<tr>
<th scope="col">Team Code</th>
<th scope="col">Team Name</th>
</tr>
</thead>
<tbody >

</tbody>
</table>
</div>
<div class="col-lg-4">
<table class="table table-bordered table-hover" id="mtab3">
<thead>
<tr>
<th scope="col">Team Code</th>
<th scope="col">Team Name</th>
</tr>
</thead>
<tbody>

</tbody>
</table>
</div>
</div>
</div>
</section> -->
</section>

<section class="infetech-service-3-area" style="margin-top: 50px;">
<div class="container">
Expand Down Expand Up @@ -1197,6 +1215,7 @@ <h4 class="title">Contact</h4>
<script src="assets/js/vendor/modernizr-3.6.0.min.js"></script>
<script src="assets/js/vendor/jquery-1.12.4.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/dry.js"></script>
<script src="assets/js/jquery.magnific-popup.min.js"></script>
<script src="assets/js/jquery.counterup.min.js"></script>
<script src="assets/js/waypoints.min.js"></script>
Expand Down Expand Up @@ -1236,4 +1255,4 @@ <h4 class="title">Contact</h4>

</body>

</html>
</html>