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
div { | |
height:100px; | |
width:100px; | |
display: inline-block; | |
} | |
#red { | |
background-color:#FF0000; | |
} |
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
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="stylesheet.css"/> | |
<script type="text/javascript" src="script.js"></script> | |
</head> | |
<body> |
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() { | |
$('div').mouseenter(function() { | |
$('div').fadeTo('fast', 1); | |
}); | |
$('div').mouseleave(function() { | |
$('div').fadeTo('fast', 0.5); | |
}); | |
}); |
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(input01, input02, input03){ | |
$('div').slideDown("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 random, result; | |
var findDifference = function(answer, guess) { | |
if (answer > guess) { | |
return answer - guess; | |
} | |
else { | |
return guess - answer; | |
} | |
} |
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 turtle, rabbit,monkey, km; | |
function Animal(name, speed, focus) { | |
this.name = name; | |
this.speed = speed; | |
this.position = 0; | |
this.focus = focus; |
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
// for (start; stop; how much to change each time) | |
//if we change counter + 1 for counter + 2 console.log will print our every two numbers) | |
for (var counter = 1; counter <= 5; counter = counter + 1 ) | |
{ | |
// Everything in the code block starting with '{' and | |
// ending with '}' will run once each time through the loop | |
console.log(counter); | |
} | |
console.log("End of loop!"); |
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
for (var i = 1; i <=150; i++) { | |
console.log(i*i); | |
} |
OlderNewer