Skip to content

Commit e7ac4fc

Browse files
committed
updates template
1 parent 6263f9c commit e7ac4fc

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

template/index.html

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,35 @@
22
<head>
33
<title>VVVV.js Template</title>
44
<link rel="stylesheet" type="text/css" href="../vvvviewer/vvvv.css"/>
5-
<script language="JavaScript" src="../lib/jquery/jquery-1.7.1.min.js"></script>
5+
<script language="JavaScript" src="../lib/jquery/jquery-1.8.2.min.js"></script>
66
<script language="JavaScript" src="../vvvv.js"></script>
77
<script language="VVVV" type="text/xml" src="template_patch.v4p"></script>
88
<script language="JavaScript">
99
$(document).ready(function() {
1010
// initialize vvvv.js; this loads the rest of the .js files
1111
// first argument is the path to the vvvv_js folder
1212
// second argument is either 'run', to load only run components, 'view' to load only vvvviewer, or 'full' to load both
13-
initVVVV("..", 'full');
14-
15-
$('#show_button').click(function() {
16-
console.log('aaaaiii');
17-
console.log(VVVV.Patches[0]);
18-
var vvvviewer = new VVVV.VVVViewer(VVVV.Patches[0], '#viewer_pane');
19-
$(this).attr('disabled', true);
13+
VVVV.init("..", 'full', function() {
14+
console.log("VVVV.js successfully initialized.")
2015
});
2116
});
2217
</script>
18+
<style>
19+
body{font-family:"Lucida Sans", sans-serif; color:#333; background:#CCC}
20+
</style>
2321
</head>
2422
<body>
25-
<input type="button" id="show_button" value="Show Patch"/>
26-
<br/>
23+
<h1>VVVV.js Template Page</h1>
24+
<p>
25+
This is a very basic template page which runs the VVVV.js patch <a href="template_patch.v4p">template_patch.v4p</a>. The patch is included having <pre>&lt;script language="VVVV" src="template_patch.v4p"&gt;&lt;/script&gt;</pre>
26+
in the HTML head.
27+
</p>
28+
<p>
29+
Add the string <a href="#edit/template_patch.v4p">#edit/template_patch.v4p</a> to the URL to launch the patch editor. It will open in a popup window,
30+
so make sure popups are allowed for this page.
31+
</p>
2732

2833
<canvas id="renderer" width="500" height="500"></canvas>
2934

30-
<div id="viewer_pane"></div>
31-
3235
</body>
3336
</html>

0 commit comments

Comments
 (0)