Commit 87929368 authored by Sanjit Singh Chouhan's avatar Sanjit Singh Chouhan

Data

parent 14e41e12
date,name,start,end
2/6/18,a,12:00,13:00
2/6/18,b,13:00,13:30
2/6/18,c,14:00,15:00
3/6/18,d,12:00,13:00
3/6/18,e,13:00,13:30
3/6/18,f,14:00,15:00
\ No newline at end of file
Date,Day,Tech,Tools
27/5,1,GNU/Linux Installation,
28/5,2,System Administration + Git + CI/CD + Security Essentials,
29/5,3,How Web Works + HTML & CSS + Developer Tools,
30/5,4,JavaScript 101,
31/5,5,DOM + 'Web APIs,
1/6,6,PWA + Web Extensions,Lighthouse + WebExtensions API
2/6,7,Localisation 1.0 + Localisation 2.0,.
3/6,8,Hackthon,
4/6,9,SVG + gLTF,Krita + Blender + 3D Printer
5/6,10,Web Graphics (2D + 3D),Canvas + 3.JS'
6/6,11,Virtual Reality,Aframe
7/6,12,Augmented Reality,AR JS
8/6,13,Python 101,Jupyter
9/6,14,WebDev Server-side + RESTful,Bottle
10/6,15,project time,
11/6,16,GIS + Web Cartography,OSM + Leaflet JS
12/6,17,Internet of Things,
13/6,18,Web of Things(IoT),Things Board
14/6,19,Data Extraction,Python Scrappy
15/6,20,Statistics + Data Analytics,Numpy+Sympy
16/6,21,Data Visualization,"Matplotlib, Pandas"
17/6,22,Project time,
18/6,23,Tools for DataScience & Business Intelligence,Apache Superset
19/6,24,Graphs and Networks,Twitter + Gephi
20/6,25,Narrow AI + Chatbots,Rivescript
21/6,26,Machine Learning 1,Tensorflow
22/6,27,Machine Learning 2,Keras
23/6,28,Cryptography and Decentralisation,Blockchain
24/6,29,Project wrap-up,
25/6,30,Project Showcase,
\ No newline at end of file
topics=['python''html''js'];
topicNumber=0;
setInterval(fun){
var fdt=new Date("may 27,2018 00:00:00 ");
var pdt=new Date();
if(pdt.getDate()<=fdt.getDate())
{
document.getElementById("dispaly").innerHTML=topics[topicNumber];
topicNumber++;
if(topicNumber==topics.length)
{
topicNumber=0;
}
}
}
,1000;
......@@ -58,7 +58,7 @@ setInterval(function () {
* */
var schedule_btn = document.createElement("button");
schedule_btn.id = 'schedule_btn';
schedule_btn.appendChild(document.createTextNode("View Today's Schedule"));
schedule_btn.appendChild(document.createTextNode("View Schedule"));
schedule_btn.style.cssFloat = 'right';
schedule_btn.style.fontSize = '0.5em';
schedule_btn.style.height = '30px';
......@@ -94,19 +94,20 @@ schedule_btn.addEventListener("click", evt => {
schedule.style.width = '100%';
schedule.style.height = '100%';
schedule.style.height = '120%';
schedule.style.backgroundColor = 'white';
schedule.style.color = 'black !important';
schedule.innerHTML = `
<h1 style="color: #000;" align="center">Summer of Data</h1>
<h2 style="color: #000;" align="center">Schedule for <span id="date_placeholder"></span></h2>
<table border="1" align="center" width="80%">
<table border="1" align="center" width="80%" style="font-size: 2em">
<thead>
<tr>
<th width="10%">S.No</th>
<th width="50%">Name</th>
<th width="30%">Timing</th>
<th>Date</th>
<th>Day</th>
<th>Tech</th>
<th>Tools</th>
</tr>
</thead>
<tbody id="schedule_table_body">
......@@ -140,7 +141,6 @@ schedule_btn.addEventListener("click", evt => {
function processData(allText) {
var allTextLines = allText.split(/\r\n|\n/);
var headers = allTextLines[0].split(',');
var s_no = 1;
for (var i = 1; i < allTextLines.length; i++) {
var data = allTextLines[i].split(',');
......@@ -151,29 +151,29 @@ schedule_btn.addEventListener("click", evt => {
tarr[headers[j]] = data[j];
}
var record_date = new Date(tarr.date.replace(/(\d)\/(\d)\/(\d)/, "$2/$1/$3"));
var record_date = new Date(tarr.Date.replace(/(\d)\/(\d)\/(\d)/, "$2/$1/$3"));
console.log(record_date);
console.log(today);
if (record_date.getDate() == today.getDate() && record_date.getMonth() == today.getMonth() && record_date.getFullYear() == today.getFullYear()) {
var row = document.createElement("tr");
var row = document.createElement("tr");
var dt = document.createElement("td");
dt.appendChild(document.createTextNode(tarr.Date));
row.appendChild(dt);
var sno = document.createElement("td");
sno.appendChild(document.createTextNode(s_no));
row.appendChild(sno);
var day = document.createElement("td");
day.appendChild(document.createTextNode(tarr.Day));
row.appendChild(day);
var tech = document.createElement("td");
tech.appendChild(document.createTextNode(tarr.Tech));
row.appendChild(tech);
var name = document.createElement("td");
name.appendChild(document.createTextNode(tarr.name));
row.appendChild(name);
var tools = document.createElement("td");
tools.appendChild(document.createTextNode(tarr.Tools));
row.appendChild(tools);
var timing = document.createElement("td");
timing.appendChild(document.createTextNode(tarr.start + ' - ' + tarr.end));
row.appendChild(timing);
table.appendChild(row);
table.appendChild(row);
s_no++;
}
}
}
}
......
var countDownDate1 = new Date("May 27, 2018 09:00:00").getTime();
var msg1 ="<center><h3 id='rem'></h3></center><br>";
document.body.innerHTML="<br><br><center><h1 id='h1'>CAMP BEGINS </h1></center>";
document.getElementById("h1").style.fontStyle = "italic";
document.getElementById("h1").style.bgcolor = "red";
document.body.innerHTML += msg1;
var rem=document.getElementById('rem');
var x = setInterval(function() {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate1 - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Output the result in an element with id="demo"
document.getElementById('rem').innerHTML = days + "d " + hours + "h " + minutes + "m " + seconds + "s ";
// If the count down is over, write some text
if (distance < 0) {
clearInterval(x);
rem.innerHTML = "EXPIRED";
}
}, 1000);
var countDownDate2 = new Date("June 25, 2018 09:00:00").getTime();
var msg2 ="<center><h3 id='dem'></h3></center></br>";
document.body.innerHTML +="<center><h1 id='a'>CAMP ENDS</h1></center";
document.getElementById("a").style.fontStyle = "italic";
document.body.innerHTML += msg2;
var dem=document.getElementById('dem');
var y = setInterval(function() {
// Get todays date and time
var now2 = new Date().getTime();
// Find the distance between now an the count down date
var distance2 = countDownDate2 - now2;
// Time calculations for days, hours, minutes and seconds
var days2 = Math.floor(distance2 / (1000 * 60 * 60 * 24));
var hours2 = Math.floor((distance2 % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes2 = Math.floor((distance2 % (1000 * 60 * 60)) / (1000 * 60));
var seconds2 = Math.floor((distance2 % (1000 * 60)) / 1000);
// Output the result in an element with id="demo"
dem.innerHTML = days2 + "d " + hours2 + "h "
+ minutes2 + "m " + seconds2 + "s ";
// If the count down is over, write some text
if (distance2 < 0) {
clearInterval(y);
dem.innerHTML = "EXPIRED";
}
}, 1000);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment