mythbusteranimator wrote:
TorbyFork234 wrote:
mythbusteranimator wrote:
I still cant find it. I click Inspect Elemtent.There's a place where you view all the files of a website, I don't know where it is in chrome though.
Would it be a right click?
On IE, you can see with F12, but you can't edit.
With safari, you can click a checkbox in it's preferences that allows you to have a bar called "develop". and with that you click "Show Web Inspector"(if you have the new mountain lion update, you can also right click and click "Inspect Element"). Although, as I said before, I don't know how to do it in google chrome.
Offline
mythbusteranimator wrote:
Hmmm...will adding something like <script>[JSwhatever]</script> work?
Work for what? You also need to change the first script tag to: <script type="text/javascript>
Offline
TorbyFork234 wrote:
mythbusteranimator wrote:
Hmmm...will adding something like <script>[JSwhatever]</script> work?
Work for what? You also need to change the first script tag to: <script type="text/javascript>
Unless you're using HTML5.
Offline
RedRocker227 wrote:
TorbyFork234 wrote:
mythbusteranimator wrote:
Hmmm...will adding something like <script>[JSwhatever]</script> work?
Work for what? You also need to change the first script tag to: <script type="text/javascript>
Unless you're using HTML5.
I have a Windows 7. What do I have.
Offline
@mythbusteranimator: It matters by the browser.
I updated what I made before for more ease of use.
<!DOCTYPE html> <html> <head> <script type="text/javascript"> var hgj; var c; function doIt(){ var reqLetters=new Array(); var maxLetters=61; var inter=8; var Letters=new Array(); var i=0; var b=0; var hello=document.getElementById("word"); var word=hello.value; var checking=0; var xyz=20; for (i=0;i<word.length;i++){ reqLetters[i]=word.slice(i,(i+1)); } var allLetters=new Array(); allLetters[0]='a'; allLetters[1]='b'; allLetters[2]='c'; allLetters[3]='d'; allLetters[4]='e'; allLetters[5]='f'; allLetters[6]='g'; allLetters[7]='h'; allLetters[8]='i'; allLetters[9]='j'; allLetters[10]='k'; allLetters[11]='l'; allLetters[12]='m'; allLetters[13]='n'; allLetters[14]='o'; allLetters[15]='p'; allLetters[16]='q'; allLetters[17]='r'; allLetters[18]='s'; allLetters[19]='t'; allLetters[20]='u'; allLetters[21]='v'; allLetters[22]='w'; allLetters[23]='x'; allLetters[24]='y'; allLetters[25]='z'; for (i=0;i<maxLetters;i++){ var random=Math.round(Math.random()*25); var randomletter=allLetters[random]; Letters[i]=randomletter; } for (i=0;i<reqLetters.length;i++){ c=i; b=(c*inter)%maxLetters; Letters[b]=reqLetters[c] } c=""; i=0; for (i=0;i<reqLetters.length;i++){ c=c+Letters[((i*inter)%maxLetters)]; if (c!="knowledgeispower"){ xyz=1; } } hgj=""; i=0; for (i=0;i<maxLetters;i++){ hgj=hgj+""+Letters[i]; } load(); } function load(){ document.getElementById("demo").innerHTML="Scrambled Part: "+hgj; document.getElementById("check").innerHTML="Check: "+c; } </script> <style type="text/css"> #demo{ font-family:"Cambria"; } </style> </head> <body> <input type="textarea" maxlength="61" name="Sentence" value="thiswillbecomeascrambledsentence" id="word"/> <br/> <input type="button" name="Submit" value="Submit" onclick="doIt()" /> <p id="demo"></p> <p id="check"></p> </body> </html>
Offline
TorbyFork234 wrote:
@mythbusteranimator: It matters by the browser.
I updated what I made before for more ease of use.Code:
<!DOCTYPE html> <html> <head> <script type="text/javascript"> var hgj; var c; function doIt(){ var reqLetters=new Array(); var maxLetters=61; var inter=8; var Letters=new Array(); var i=0; var b=0; var hello=document.getElementById("word"); var word=hello.value; var checking=0; var xyz=20; for (i=0;i<word.length;i++){ reqLetters[i]=word.slice(i,(i+1)); } var allLetters=new Array(); allLetters[0]='a'; allLetters[1]='b'; allLetters[2]='c'; allLetters[3]='d'; allLetters[4]='e'; allLetters[5]='f'; allLetters[6]='g'; allLetters[7]='h'; allLetters[8]='i'; allLetters[9]='j'; allLetters[10]='k'; allLetters[11]='l'; allLetters[12]='m'; allLetters[13]='n'; allLetters[14]='o'; allLetters[15]='p'; allLetters[16]='q'; allLetters[17]='r'; allLetters[18]='s'; allLetters[19]='t'; allLetters[20]='u'; allLetters[21]='v'; allLetters[22]='w'; allLetters[23]='x'; allLetters[24]='y'; allLetters[25]='z'; for (i=0;i<maxLetters;i++){ var random=Math.round(Math.random()*25); var randomletter=allLetters[random]; Letters[i]=randomletter; } for (i=0;i<reqLetters.length;i++){ c=i; b=(c*inter)%maxLetters; Letters[b]=reqLetters[c] } c=""; i=0; for (i=0;i<reqLetters.length;i++){ c=c+Letters[((i*inter)%maxLetters)]; if (c!="knowledgeispower"){ xyz=1; } } hgj=""; i=0; for (i=0;i<maxLetters;i++){ hgj=hgj+""+Letters[i]; } load(); } function load(){ document.getElementById("demo").innerHTML="Scrambled Part: "+hgj; document.getElementById("check").innerHTML="Check: "+c; } </script> <style type="text/css"> #demo{ font-family:"Cambria"; } </style> </head> <body> <input type="textarea" maxlength="61" name="Sentence" value="thiswillbecomeascrambledsentence" id="word"/> <br/> <input type="button" name="Submit" value="Submit" onclick="doIt()" /> <p id="demo"></p> <p id="check"></p> </body> </html>
Did you know String.charCodeAt( x ); and String.fromCharCode( [ 12 , 65 , 78 ] ); exist ?
String.charCodeAt(x); will return the char code at the character at the parameter x in String.
String.fromCharCode(Array); will accept an array of Numbers and return an array with those .
// so basically you dont need that allLetters array :-)
Offline
mythbusteranimator wrote:
RedRocker227 wrote:
TorbyFork234 wrote:
Work for what? You also need to change the first script tag to: <script type="text/javascript>Unless you're using HTML5.
I have a Windows 7. What do I have.
What you have doesn't make a difference, it's whether or not the website designers decided to use HTML5 or not.
Offline
RedRocker227 wrote:
mythbusteranimator wrote:
RedRocker227 wrote:
Unless you're using HTML5.I have a Windows 7. What do I have.
What you have doesn't make a difference, it's whether or not the website designers decided to use HTML5 or not.
It does makes a differene ... the web - browser must support it.
Offline
fanofcena wrote:
RedRocker227 wrote:
mythbusteranimator wrote:
I have a Windows 7. What do I have.What you have doesn't make a difference, it's whether or not the website designers decided to use HTML5 or not.
It does makes a differene ... the web - browser must support it.
Oh yeah. Most of the main browsers do support it already though, even if it's only partially
Offline
RedRocker227 wrote:
fanofcena wrote:
RedRocker227 wrote:
What you have doesn't make a difference, it's whether or not the website designers decided to use HTML5 or not.It does makes a differene ... the web - browser must support it.
Oh yeah. Most of the main browsers do support it already though, even if it's only partially
Awkwardly, IE has better HTML5 support than Chrome.
Offline
BirdByte wrote:
RedRocker227 wrote:
fanofcena wrote:
It does makes a differene ... the web - browser must support it.Oh yeah. Most of the main browsers do support it already though, even if it's only partially
Awkwardly, IE has better HTML5 support than Chrome.
You kidding me ?
Offline
BirdByte wrote:
RedRocker227 wrote:
fanofcena wrote:
It does makes a differene ... the web - browser must support it.Oh yeah. Most of the main browsers do support it already though, even if it's only partially
Awkwardly, IE has better HTML5 support than Chrome.
I swear IE can't even run a lot of HTML5?
Offline
jukyter wrote:
BirdByte wrote:
RedRocker227 wrote:
Oh yeah. Most of the main browsers do support it already though, even if it's only partiallyAwkwardly, IE has better HTML5 support than Chrome.
I swear IE can't even run a lot of HTML5?
IE 10 plans to support a lot but not atm
Offline
I started learming it.
FUN
Offline
Laternenpfahl wrote:
I started learming it.
FUN
I've learned it through Khan Academy. Simple program.
Offline
I'm learning from Codeacademy
Offline
Sine curve on canvas yay
Offline
BirdByte wrote:
RedRocker227 wrote:
fanofcena wrote:
It does makes a differene ... the web - browser must support it.Oh yeah. Most of the main browsers do support it already though, even if it's only partially
Awkwardly, IE has better HTML5 support than Chrome.
Um no? Chrome has the most HTML5 support, while IE has the least
Offline