Skip to content

Instantly share code, notes, and snippets.

View strack's full-sized avatar

Isaac Strack strack

  • Pluralsight
  • Layton, UT
View GitHub Profile
@strack
strack / questions.html
Last active August 29, 2015 14:06
how to add css classes appropriately - questions example
<head>
<title>questions</title>
</head>
<body>
<h1>Welcome to Meteor!</h1>
{{> hello}}
</body>
var code= "go here";
function getTeamList() {
"use strict";
var year = document.getElementById('yearPicker');
var eventPicker = document.getElementById('eventSelector');
var req2 = new XMLHttpRequest();
req2.open('GET', '/api/' + year.options[year.selectedIndex].value + '/teams/' + JSON.parse(eventPicker.options[eventPicker.selectedIndex].value).code);
req2.addEventListener('load', function () {
var data = JSON.parse(req2.responseText);
if (data.teams.length === 0) {
document.getElementById('teamsContainer').innerHTML = '<b>No teams have registered for this event.</b>';
<!DOCTYPE html>
<html>
<head>
<base target="_top">
</head>
<body>
Hello, World!
</body>
</html>