[canviz] r371 committed - hello_world example: remove prototype.js requirement

16 views
Skip to first unread message

can...@googlecode.com

unread,
Feb 6, 2012, 11:04:59 PM2/6/12
to canviz-...@googlegroups.com
Revision: 371
Author: ryandesign.com
Date: Mon Feb 6 19:56:20 2012
Log: hello_world example: remove prototype.js requirement

http://code.google.com/p/canviz/source/detail?r=371

Modified:
/canviz/trunk/examples/hello_world/old.html.in
/canviz/trunk/examples/hello_world/scripts_common.js

=======================================
--- /canviz/trunk/examples/hello_world/old.html.in Tue Jan 24 23:51:04 2012
+++ /canviz/trunk/examples/hello_world/old.html.in Mon Feb 6 19:56:20 2012
@@ -9,7 +9,6 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Canviz demo: Hello world: The old way</title>
<link rel="stylesheet" type="text/css" href="styles_inner.css" />
- <script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js"></script>
<script type="text/javascript" src="scripts_common.js"></script>
</head>
<body>
=======================================
--- /canviz/trunk/examples/hello_world/scripts_common.js Thu Jan 8
03:14:07 2009
+++ /canviz/trunk/examples/hello_world/scripts_common.js Mon Feb 6
19:56:20 2012
@@ -4,5 +4,5 @@
*/

function click_node(node) {
- $('click_output').update('You clicked "' + node + '"');
-}
+ document.getElementById('click_output').innerHTML = 'You clicked "' +
node + '"';
+}

Reply all
Reply to author
Forward
0 new messages