Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 55 lines (39 sloc) 1.985 kb
9fc1f13 @jcoglan Rewrite packages.js template to support the client picking which bran…
jcoglan authored
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
3 <html>
4 <head>
69b3b39 @jcoglan Provide a method for adding custom loader code to the generated packa…
jcoglan authored
5 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
9fc1f13 @jcoglan Rewrite packages.js template to support the client picking which bran…
jcoglan authored
6 <title>Package loader test</title>
956029f @jcoglan Test file adjustments.
jcoglan authored
7
ec891e5 @jcoglan Ignore the custom loader file in the web app, and add some comments t…
jcoglan authored
8 <!-- Step 1. Load the JS.Class loader and the package config -->
69b3b39 @jcoglan Provide a method for adding custom loader code to the generated packa…
jcoglan authored
9 <script type="text/javascript">JSCLASS_PATH = 'http://localhost:4567/static/js.class/2.1.x/build/min/';</script>
10 <script src="http://localhost:4567/static/js.class/2.1.x/build/min/loader.js" type="text/javascript"></script>
11 <script src="http://localhost:4567/static/packages.js" type="text/javascript"></script>
956029f @jcoglan Test file adjustments.
jcoglan authored
12
ec891e5 @jcoglan Ignore the custom loader file in the web app, and add some comments t…
jcoglan authored
13 <!-- Step 2. Add data required by the package manager -->
14 <script type="text/javascript">
15 JS_CONFIG.PATH = 'http://localhost:4567/static';
5c93c35 @jcoglan Add Google API key for 10.0.2.2 (for use on virtualbox).
jcoglan authored
16
17 // http://localhost:8080
ec891e5 @jcoglan Ignore the custom loader file in the web app, and add some comments t…
jcoglan authored
18 JS_CONFIG.GOOGLE_KEY = 'ABQIAAAArVbgzt5nxAQAZ_iB_77caBQCULP4XOMyhPd8d_NrQQEO8sT8XBTzVWhRwEDkVfNsvzo8bf4ntGV4ZQ';
19
5c93c35 @jcoglan Add Google API key for 10.0.2.2 (for use on virtualbox).
jcoglan authored
20 // http://10.0.2.2:8080
21 // JS_CONFIG.GOOGLE_KEY = 'ABQIAAAArVbgzt5nxAQAZ_iB_77caBR-5oywdloojr3wCGctvtY4YLrIFxTp2Uv8Tzdhpc707bQaOPGPEQ3PzA';
22
ec891e5 @jcoglan Ignore the custom loader file in the web app, and add some comments t…
jcoglan authored
23 JS_CONFIG.use('panel', 'master');
24 JS_CONFIG.use('ojay', '0.4.1');
25 </script>
26
27 <!-- A temporary measure until we get build metadata for YUI -->
28 <script src="/yui-conf.js" type="text/javascript"></script>
29
328893f @jcoglan Spruce up the example a little bit.
jcoglan authored
30 <style type="text/css" media="screen">
31 .overlay-container { background: #f2e697; }
32 .overlay-content { font: 96px Helvetica, Arial, sans-serif; padding: 24px; }
33 .close-button { position: absolute; top: 8px; right: 8px; font: bold 12px Helvetic, Arial, sans-serif; cursor: pointer; text-transform: uppercase; }
34 </style>
35
ec891e5 @jcoglan Ignore the custom loader file in the web app, and add some comments t…
jcoglan authored
36 <script type="text/javascript">
9fc1f13 @jcoglan Rewrite packages.js template to support the client picking which bran…
jcoglan authored
37
ec891e5 @jcoglan Ignore the custom loader file in the web app, and add some comments t…
jcoglan authored
38 // Load and use some libraries
69b3b39 @jcoglan Provide a method for adding custom loader code to the generated packa…
jcoglan authored
39
ec891e5 @jcoglan Ignore the custom loader file in the web app, and add some comments t…
jcoglan authored
40 require('GMap2');
9fc1f13 @jcoglan Rewrite packages.js template to support the client picking which bran…
jcoglan authored
41
328893f @jcoglan Spruce up the example a little bit.
jcoglan authored
42 require('PanelOverlay', function() {
43 var overlay = new PanelOverlay({width: 300, height: 200});
44
45 overlay.setContent('Hello, world!')
46 .fitToContent()
47 .center()
48 .show('zoom');
9fc1f13 @jcoglan Rewrite packages.js template to support the client picking which bran…
jcoglan authored
49 });
50
51 </script>
52 </head>
53 </html>
54
Something went wrong with that request. Please try again.