src/cm/templates/static/experiment/test0.html
changeset 0 40c8f766c9b8
child 160 0c01050f9717
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cm/templates/static/experiment/test0.html	Mon Nov 23 15:14:29 2009 +0100
@@ -0,0 +1,57 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=utf-8">
+<title>Building a UI with AsyncQueue</title>
+
+<style type="text/css">
+/*margin and padding on body element
+  can introduce errors in determining
+  element position and are not recommended;
+  we turn them off as a foundation for YUI
+  CSS treatments. */
+body {
+    margin:0;
+    padding:0;
+}
+</style>
+
+<link type="text/css" rel="stylesheet" href="{{ MEDIA_URL }}js/lib/yui/{{ YUI_VERSION }}/build/cssfonts/fonts-min.css" />
+<script type="text/javascript" src="{{ MEDIA_URL }}js/lib/yui/{{ YUI_VERSION }}/build/yui/yui-min.js"></script>
+
+</head>
+
+<body class=" yui-skin-sam">
+
+qsdfqsdfqsdfqsdf
+
+
+<script type="text/javascript">
+
+YUI.add('coment', function(Y) {
+	function Coment() {
+	    this._init();
+	} ;
+	Coment.prototype = {
+	    _init : function () {
+	        Y.log('inited');
+	    },
+	    fun : function () {
+	        Y.log('fun') ;
+	    }
+	};
+	Y.Coment = Coment;
+	}, '0.0.1');
+
+YUI({base:"{{ MEDIA_URL }}js/lib/yui/{{ YUI_VERSION }}/build/", timeout: 10000}).use("coment",function (Y) {
+	Y.log('in here') ;
+    var coment = new Y.Coment() ;
+    coment.fun() ;
+});
+</script>
+
+<!--END SOURCE CODE FOR EXAMPLE =============================== -->
+
+</body>
+</html>