Skip to content

Instantly share code, notes, and snippets.

var assets = data.GetAssetWarrantyResponse.GetAssetWarrantyResult.Response.DellAsset;
var faults = data.GetAssetWarrantyResponse.GetAssetWarrantyResult.Faults.FaultException
$(document).ready(function() {
//fault loop
for (var i = 0; i < faults.length; i++) {
var msg = faults[i].Message.__text;
// console.log(msg);
$('#flts').append($('<li></li>').html(msg));
};
$(function() {
console.log( "ready!" );
//Shows form to create user racer
$('button#create').on('click', function() {
$('form#userStats').removeClass('hidden');
})
var user;
$('form').on('submit', function(event) {
var $userName = $('#userName').val();
console.log("User name " + $userName)
<!DOCTYPE html>
<html>
<head>
<title>RaceGame</title>
<link rel="Stylesheet" type="text/css" href="css/race.css">
</head>
<body>
<h1 id="header"> Welcome to the racetrack! </h1>
<h2> Meet the participants...</h2>
<ul>
<!DOCTYPE html>
<html>
<head>
<title>Catch the energizer bunny</title>
<link rel="stylesheet" href="rabbit.css" />
</head>
<body>
<h2>Catch me if you can</h2>
<h3>Catch the rabbit by hovering over it with your mouse. You can make the game harder by selecting a faster rabbit and/or choosing to use a mouse click to catch it. You can change rabbit speed and catch method while game is running.</h3>
<div id="page">