This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Note to students: Some properties are given to you to fill out, | |
others you can modify as they stand, and if you have time, | |
there are definitely some properties you should add!*/ | |
html { | |
height: 100%; | |
} | |
body { | |
height: 100%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myModule = require("./formodular"); | |
myModule(process.argv[2], process.argv[3], function(err, data) { | |
if (err) { | |
throw err; | |
} | |
for (i = 0; i < data.length; i++) { | |
console.log(data[i]); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$('#show-tab').addClass('active-tab'); | |
$('#show-content').addClass('active-content'); | |
$('.tabs').on('click', function() { | |
var selected = $(this).attr('.tabs > class'); | |
$('.tab-text').fadeOut('slow'); | |
$('.tab-content').removeClass('active-content'); | |
$('.tabs').removeClass('active-tab'); | |
$('this').addClass('active-tab'); | |
$('.tab-content' + '.' + selected).fadeIn('slow'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var debug = true | |
//NEED WELCOME/INTRO | |
//create class of cards | |
function Card(rank, suit) { | |
this.rank = rank; | |
this.suit = suit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var debug = false | |
alert("Welcome to the Number-Guessing game! This is a two-person game. You can play against yourself, but it's more fun if you grab a friend to join you!"); | |
function User(name, guess, howClose) { | |
this.name = name; | |
this.guess = guess; | |
this.howClose = howClose; | |
this.askName = function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
keepPlaying = true | |
alert("Welcome to the Number-Guessing game! This is a two-person game. You can play against yourself, but it's more fun if you grab a friend to join you!"); | |
var name1 = prompt("Let's get started. Type the name of the first player here:"); | |
var name2 = prompt("Thanks. Now, type the name of the second player here:") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
keepPlaying = true | |
alert("Welcome to the Number-Guessing game!"); | |
do { | |
var randomNumber; |