Copy a JavaScript from another website.

Sigchi4life
Category:
Programming
Price: $25 USD

Question description

Let me preface, by saying I don't think the answer to this question is simple. I am competent in the basics of JavaScript and well versed in other programming languages, but I have run into a bit of a wall on this one. JavaScript really is not my forte.

I would like to copy the javascript that is on this site: www.bitsyn.com

It is using JavaScript to draw these animated (kind of dancing) bezier curves in different colors. There is also other stuff going on with JavaScript on the site and I am not interested in copying that.

Any help would be appreciated. Even if you cannot help me copy exactly what this webpage has maybe you could provide a JavaScript to render some similar dancing lines on the background of a webpage. So if it is easier to do it from scratch, that would be fine. 

For ease of reference, here are the files that I have so far and I really don't know why it isn't working:

index.js

lib.js

style.css

index.html:

<!DOCTYPE html>

<html>

<head>

<metacharset="UTF-8"/>

<title>Test Page</title>

<linkrel="stylesheet"type="text/css"media="screen,print"href="style.css"/>

</head>

<body>

<canvasid='c'></canvas>

<scripttype="text/rocketscript"data-rocketsrc="lib.js"></script>

<scripttype="text/rocketscript"data-rocketsrc="index.js"></script>

</body>

</html>


Tutor Answer

(Top Tutor) Daniel C.
(997)
School: Purdue University
PREMIUM TUTOR
Studypool has helped 1,244,100 students
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1824 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors