diff --git a/gyrio/index.html b/gyrio/index.html index 00f13b4..15d1939 100644 --- a/gyrio/index.html +++ b/gyrio/index.html @@ -1,4 +1,5 @@ +<<<<<<< HEAD @@ -10,7 +11,26 @@ - + - \ No newline at end of file + +======= + + + + + Foxnet + + + + + + + + + + + + +>>>>>>> 3bcdb922df05952a164b59bdb8ad9d2aa2785b4d diff --git a/gyrio/index.js b/gyrio/index.js index c6e275e..a2437d8 100644 --- a/gyrio/index.js +++ b/gyrio/index.js @@ -1,3 +1,4 @@ + function toBinary(text){ var output = ""; for (var i = 0; i < text.length; i++) @@ -6,4 +7,37 @@ function toBinary(text){ output += "0".repeat(8-letter.length) + letter; } return output; -} \ No newline at end of file +} + + +var canvas = document.getElementById("canvas"); +var ctx = canvas.getContext("2d"); +canvas.width = screen.width; +canvas.height = screen.height; + +function randInt(min,max) { + return Math.floor(Math.random() * (max - min + 1)) + min; +} + + +function generateString() { + var final = ""; + var length = randInt(50,100); + for(var i = 0; i < length; i++) { + final += randInt(0,1); + } + return final; +} + +console.log(generateString()); + +ctx.fillStyle = "#000"; +ctx.fillRect(0,0, canvas.width, canvas.height); + +function getWebsite(geturl) { + xmlhttp=new XMLHttpRequest(); + xmlhttp.open("GET", geturl, false); + xmlhttp.send(); + var data = xmlhttp.responseText; +} +