Go to Post It wasn't about the ROBOT, or about whether I was male or female, it was about getting to compete in something that was just SO cool. - BandChick [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 26-10-2014, 21:52
Bryce Paputa's Avatar
Bryce Paputa Bryce Paputa is offline
FF TSL: Frog Farce
FRC #0503 (Frog Force)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Novi Michigan
Posts: 454
Bryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond repute
Re: New Countdown To Kickoff 2015 Website

Quote:
Originally Posted by Team118Joseph View Post
The broadcast starts at 10:30 EST and 9:30 CST
That is 142029900 in epoch seconds for the software
Thanks, with javascript you can just enter it in year, month, day, hour, minute, second, millisecond format instead of calculating the time in seconds.
Reply With Quote
  #2   Spotlight this post!  
Unread 26-10-2014, 21:59
Team118Joseph's Avatar
Team118Joseph Team118Joseph is offline
The guy that did the lighting
AKA: Joseph Foster
FRC #0118 (Robonauts)
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: League City
Posts: 61
Team118Joseph will become famous soon enoughTeam118Joseph will become famous soon enough
Re: New Countdown To Kickoff 2015 Website

I decided to use the milliseconds and convert it over with this code

Code:
                var d = new Date();
		var time_until = (kickoff_date - d.getTime());
		var days = Math.floor(time_until/86400000);
		time_until = time_until%86400000
		var hours = Math.floor(time_until/3600000);
		time_until = time_until%3600000
		var minutes = Math.floor(time_until/60000);
		time_until = Math.floor(time_until%60000);
		var seconds = Math.floor(time_until/1000);
		var milliseconds = Math.floor(time_until%1000);
Reply With Quote
  #3   Spotlight this post!  
Unread 26-10-2014, 23:03
Bryce Paputa's Avatar
Bryce Paputa Bryce Paputa is offline
FF TSL: Frog Farce
FRC #0503 (Frog Force)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Novi Michigan
Posts: 454
Bryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond repute
Re: New Countdown To Kickoff 2015 Website

Code:
				var kickoff = new Date(2015, 0, 3, 10, 30, 0, 0)
					var diff = kickoff - new Date()
					var d = Math.floor(diff/1000.0/60.0/60.0/24.0)
					diff -= d * 1000 * 60 * 60 * 24
					var h = Math.floor(diff/1000.0/60.0/60.0)
					diff -= h * 1000 * 60 * 60
					var m = Math.floor(diff/1000.0/60.0)
					diff -= m * 1000 * 60
					var s = Math.floor(diff/1000)
					dDiv.innerHTML = d
					hDiv.innerHTML = h
					mDiv.innerHTML = m
					sDiv.innerHTML = s
					document.title = d + " Days Until Kickoff"
Here's how I did it, just a little bit easier to read and modify. The -= vs %= difference for the calculation is interesting.
Reply With Quote
  #4   Spotlight this post!  
Unread 26-10-2014, 23:13
Team118Joseph's Avatar
Team118Joseph Team118Joseph is offline
The guy that did the lighting
AKA: Joseph Foster
FRC #0118 (Robonauts)
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: League City
Posts: 61
Team118Joseph will become famous soon enoughTeam118Joseph will become famous soon enough
Re: New Countdown To Kickoff 2015 Website

The %= is modulus equal. Its used to get the remainder of the division. I use it to get the leftover hours, minutes, ext. then use that for the next equation. Once you start using modulus its hard to stop .

Last edited by Team118Joseph : 26-10-2014 at 23:17.
Reply With Quote
  #5   Spotlight this post!  
Unread 26-10-2014, 23:16
Bryce Paputa's Avatar
Bryce Paputa Bryce Paputa is offline
FF TSL: Frog Farce
FRC #0503 (Frog Force)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Novi Michigan
Posts: 454
Bryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond repute
Re: New Countdown To Kickoff 2015 Website

Quote:
Originally Posted by Team118Joseph View Post
The %= is modulus equal. Its used to get the remainder of the division. I use it to get the leftover hours, minutes, ext. then use that for the next equation.
Of course, it's just interesting that we did the exact same calculation differently.
Reply With Quote
  #6   Spotlight this post!  
Unread 26-10-2014, 23:21
Team118Joseph's Avatar
Team118Joseph Team118Joseph is offline
The guy that did the lighting
AKA: Joseph Foster
FRC #0118 (Robonauts)
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: League City
Posts: 61
Team118Joseph will become famous soon enoughTeam118Joseph will become famous soon enough
Re: New Countdown To Kickoff 2015 Website

I was also wondering if anyone had some cool robot pictures I could use for the background. I was thinking of either having the page choose a random robot background or showing a robot of the day.

Last edited by Team118Joseph : 26-10-2014 at 23:41.
Reply With Quote
  #7   Spotlight this post!  
Unread 27-10-2014, 03:55
waialua359's Avatar
waialua359 waialua359 is offline
Mentor
AKA: Glenn
FRC #0359 (Hawaiian Kids)
Team Role: Mentor
 
Join Date: Apr 2003
Rookie Year: 2000
Location: Waialua, HI
Posts: 3,306
waialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond repute
Re: New Countdown To Kickoff 2015 Website

Im not creating a link to this!
Everytime I see one of these, I cringe at how little days left we have before the 6 weeks of hell.
__________________

2016 Hawaii Regional #1 seed, IDesign, Safety Award
2016 NY Tech Valley Regional Champions, #1 seed, Innovation in Controls Award
2016 Lake Superior Regional Champions, #1 seed, Quality Award, Dean's List
2015 FRC Worlds-Carver Division Champions
2015 Hawaii Regional Champions, #1 seed.
2015 Australia Regional Champions, #2 seed, Engineering Excellence Award
2015 Inland Empire Regional Champions, #1 seed, Industrial Design Award
2014 OZARK Mountain Brawl Champions, #1 seed.
2014 Hawaii Regional Champions, #1 seed, UL Safety Award
2014 Dallas Regional Champions, #1 seed, Engineering Excellence Award
2014 Northern Lights Regional Champions, #1 seed, Entrepreneurship Award
2013 Championship Dean's List Winner
2013 Utah Regional Champion, #1 seed, KP&B Award, Deans List
2013 Boilermaker Regional Champion, #1 seed, Motorola Quality Award
2012 Lone Star Regional Champion, #1 seed, Motorola Quality Award
2012 Hawaii Regional Champions #1 seed, Motorola Quality Award
Reply With Quote
  #8   Spotlight this post!  
Unread 27-10-2014, 13:10
Calvin Hartley's Avatar
Calvin Hartley Calvin Hartley is offline
Registered User
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Aug 2012
Rookie Year: 2012
Location: Grand Rapids, Michigan
Posts: 513
Calvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud of
Re: New Countdown To Kickoff 2015 Website

Quote:
Originally Posted by Team118Joseph View Post
I was also wondering if anyone had some cool robot pictures I could use for the background. I was thinking of either having the page choose a random robot background or showing a robot of the day.
(I'm no website builder, so I don't know how complicated this would be, but here's an idea)
Could you make it reference CD media? I believe that's how The Blue Alliance gets photos (correct me if I'm wrong). Showing a daily random or predetermined lineup would be cool.
__________________

FRC 4967 That ONE Team 2013-Present, Founder, CAD/Everything Mentor
FRC 2771 Code Red Robotics 2012 and 2013 Drive Team, 2014 Drive Coach, Executive Leadership
FLL Team member 2005-2010, LEGO In Paradise,
FLL Mentor 2009-Present Paradise Teams (nine teams)
FLL Coach 2014-Present - The Lightning Bugs



Gracious Professionalism isn't a set of rules to follow, it's an attitude.
Reply With Quote
  #9   Spotlight this post!  
Unread 27-10-2014, 19:10
Team118Joseph's Avatar
Team118Joseph Team118Joseph is offline
The guy that did the lighting
AKA: Joseph Foster
FRC #0118 (Robonauts)
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: League City
Posts: 61
Team118Joseph will become famous soon enoughTeam118Joseph will become famous soon enough
Red face Re: New Countdown To Kickoff 2015 Website

I got the slide show code in! Now I just need pictures!
Just send pictures to Joseph.Foster118@gmail.com and I will put them into the slide show.

Last edited by Team118Joseph : 27-10-2014 at 23:24.
Reply With Quote
  #10   Spotlight this post!  
Unread 29-10-2014, 19:43
Team118Joseph's Avatar
Team118Joseph Team118Joseph is offline
The guy that did the lighting
AKA: Joseph Foster
FRC #0118 (Robonauts)
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: League City
Posts: 61
Team118Joseph will become famous soon enoughTeam118Joseph will become famous soon enough
Re: New Countdown To Kickoff 2015 Website

After I started this thread, new countdowns started popping up. Luckily competition is one of the many great things about FIRST.
Reply With Quote
  #11   Spotlight this post!  
Unread 31-10-2014, 22:18
Team118Joseph's Avatar
Team118Joseph Team118Joseph is offline
The guy that did the lighting
AKA: Joseph Foster
FRC #0118 (Robonauts)
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: League City
Posts: 61
Team118Joseph will become famous soon enoughTeam118Joseph will become famous soon enough
Re: New Countdown To Kickoff 2015 Website

I added a team display to show what team are in the photos. Go check out all the teams that are displayed!
Reply With Quote
  #12   Spotlight this post!  
Unread 14-11-2014, 10:56
Team118Joseph's Avatar
Team118Joseph Team118Joseph is offline
The guy that did the lighting
AKA: Joseph Foster
FRC #0118 (Robonauts)
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: League City
Posts: 61
Team118Joseph will become famous soon enoughTeam118Joseph will become famous soon enough
Re: New Countdown To Kickoff 2015 Website

Less than 50 days left! Thanks to everyone who submitted photos and please keep sending them in!

Last edited by Team118Joseph : 14-11-2014 at 12:26.
Reply With Quote
  #13   Spotlight this post!  
Unread 14-11-2014, 14:19
DarkRune DarkRune is offline
Registered User
AKA: Dylan Baker-Flynn
FRC #4159 (CardinalBotics)
Team Role: Driver
 
Join Date: Aug 2014
Rookie Year: 2012
Location: San Francisco
Posts: 100
DarkRune is a jewel in the roughDarkRune is a jewel in the roughDarkRune is a jewel in the rough
Re: New Countdown To Kickoff 2015 Website

Does anyone else have this error?
Attached Thumbnails
Click image for larger version

Name:	Countdown Error.PNG
Views:	116
Size:	135.5 KB
ID:	17468  
Reply With Quote
  #14   Spotlight this post!  
Unread 14-11-2014, 15:01
Team118Joseph's Avatar
Team118Joseph Team118Joseph is offline
The guy that did the lighting
AKA: Joseph Foster
FRC #0118 (Robonauts)
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: League City
Posts: 61
Team118Joseph will become famous soon enoughTeam118Joseph will become famous soon enough
Re: New Countdown To Kickoff 2015 Website

It seems to be a browser issue. I get the same error in Firefox. The site runs best in explorer but will also work in chrome.

Last edited by Team118Joseph : 14-11-2014 at 15:12.
Reply With Quote
  #15   Spotlight this post!  
Unread 14-11-2014, 15:36
devg29's Avatar
devg29 devg29 is offline
eat. build. sleep. repeat.
AKA: Devon
FRC #3654 (TechTigers)
Team Role: Leadership
 
Join Date: Oct 2014
Rookie Year: 2013
Location: Middletown CT
Posts: 50
devg29 is an unknown quantity at this point
Re: New Countdown To Kickoff 2015 Website

Nice updates to the site -- I use chrome and I haven't had any problems so far
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:16.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi