How to recreate the code


#1

I am trying to get the code work in my browser. I followed the steps in the achieve but my page is always blank and I am not sure what I am doing wrong.index.txt (576 Bytes)

My index file is attached.

Main:

var red = [0, 100, 63];
var orange = [40, 100, 60];
var green = [75, 100, 40];
var blue = [196, 77, 55];
var purple = [280, 50, 60];

var myName = "Shay";
var orange=[40,100,60];
var red=[0,100,63,]; if(12> 3){ bubbleShape= "circle"; }
else { bubbleShape="square"; }
var green=[75,100,60];
var blue=[196,77,55];
var purple=[280,50,60];
var letterColors = [red, orange, green, blue, purple];

drawName(myName, letterColors);
bounceBubbles()


#2

In your

C:\Users\shalya\Documents\HTML Projects\Name Project\

Do you have both your:

main.js
index.html

files?

And the file you are viewing with your browser is the index.html file?


#3

Thanks for your help. Yes I am viewing the index file. I attached both files. main.txt (455 Bytes)index.txt (576 Bytes)
I have them both in the correct html and js formats but had to change the ext. in order to upload here.


#5

I've got it working here now but I'm not sure what the final key was.

Try this, add an http: to this URL:

<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>

It's late here so I will check in again tomorrow.


#6

Thank you. Adding the http resolved this issue. :smiley: