From f51b2dc7611b85d1b49dfea17b54f789d3efee55 Mon Sep 17 00:00:00 2001 From: shirokane Date: Wed, 7 Oct 2015 21:57:26 +0000 Subject: [PATCH] skjfghsdjlk --- solutions/04_Clickhandler/click.js | 12 ++++++++++++ solutions/04_Clickhandler/index.html | 12 ++++++++++++ solutions/09_length/index.html | 10 ++++++++++ solutions/09_length/length.js | 3 +++ solutions/Cond_4/grade.js | 18 ++++++++++++++++++ solutions/Factorial/prod15.js | 6 ++++++ 6 files changed, 61 insertions(+) create mode 100644 solutions/04_Clickhandler/click.js create mode 100644 solutions/04_Clickhandler/index.html create mode 100644 solutions/09_length/index.html create mode 100644 solutions/09_length/length.js create mode 100644 solutions/Cond_4/grade.js create mode 100644 solutions/Factorial/prod15.js diff --git a/solutions/04_Clickhandler/click.js b/solutions/04_Clickhandler/click.js new file mode 100644 index 0000000..bfe970e --- /dev/null +++ b/solutions/04_Clickhandler/click.js @@ -0,0 +1,12 @@ +$(document).ready(function(){ + + console.log("hegjkhsgfsd"); + + $("div").click(function(){ + + var output = $(this).html(); + + console.log(output); + + }); +}); \ No newline at end of file diff --git a/solutions/04_Clickhandler/index.html b/solutions/04_Clickhandler/index.html new file mode 100644 index 0000000..822aa17 --- /dev/null +++ b/solutions/04_Clickhandler/index.html @@ -0,0 +1,12 @@ + + + + + + + + +
Hello
+
wieners
+ + \ No newline at end of file diff --git a/solutions/09_length/index.html b/solutions/09_length/index.html new file mode 100644 index 0000000..61594ab --- /dev/null +++ b/solutions/09_length/index.html @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/solutions/09_length/length.js b/solutions/09_length/length.js new file mode 100644 index 0000000..3bff525 --- /dev/null +++ b/solutions/09_length/length.js @@ -0,0 +1,3 @@ +var thing = "things"; + +console.log(thing.length); \ No newline at end of file diff --git a/solutions/Cond_4/grade.js b/solutions/Cond_4/grade.js new file mode 100644 index 0000000..6ae771e --- /dev/null +++ b/solutions/Cond_4/grade.js @@ -0,0 +1,18 @@ +var grade = 200; + +if(grade <= 65){ + console.log("F"); +} +else if(grade <= 74){ + console.log("C"); +} + +else if(grade <= 89){ + console.log("B"); +} + +else if(grade <= 100){ + console.log("A"); +}else{ + console.log("Number too high."); +} \ No newline at end of file diff --git a/solutions/Factorial/prod15.js b/solutions/Factorial/prod15.js new file mode 100644 index 0000000..45c9635 --- /dev/null +++ b/solutions/Factorial/prod15.js @@ -0,0 +1,6 @@ +for(var x = 1; x > 16; x++){ + var total = 1; + var newtotal *= total * x; +} + +console.log(newtotal); \ No newline at end of file