Reputation: 8101
I am trying to use KineticJS and doing my first steps. So I am downloaded the min.js from the site and inluded it on my site. my dir tree
.
├── css
├── html
│ └── orthocal.html
├── js
│ ├── kinetic-v5.1.0.min.js
│ ├── main.js
├──media
│ └── proline_ap_pa_ceph__17839_1340650087_1280_1280.png
the html file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script type="applicaton/javascript" src="../js/kinetic-v5.1.0.min2.js"></script>
<script type="application/javascript" src="../js/main.js"></script>
<title>OrthoCal</title>
</head>
<body>
<div id="container"></div>
</body>
</html>
But while main.js is loaded nomrally kinetic library won't. In the chorme devs console it is included normally with the html file (in the elements tab) but not in the network tab (as a GET request). Am I missing something?
Upvotes: 0
Views: 111
Reputation: 25892
Your js filename is kinetic-v5.1.0.min.js
but you are including kinetic-v5.1.0.min2.js
And type="application/javascript"
Upvotes: 1
Reputation: 1413
should be
<script type="application/javascript" src="../js/kinetic-v5.1.0.min2.js"></script>
You missed one "i" in application.
Also you should check if you want to include kinetic-v5.1.0.min2.js
or kinetic-v5.1.0.min.js
(without the "2").
Upvotes: 1