Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git] / examples / portal / portal.html
index 6e302b7..84ba5ae 100644 (file)
@@ -1,41 +1,43 @@
-<html>\r
-<head>\r
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
-    <title>Custom Layouts and Containers - Portal Example</title>\r
-\r
-    <!-- ** CSS ** -->\r
-    <!-- base library -->\r
-    <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />\r
-\r
-    <!-- overrides to base library -->\r
-    <link rel="stylesheet" type="text/css" href="../ux/css/Portal.css" />\r
-\r
-    <!-- page specific -->\r
-    <link rel="stylesheet" type="text/css" href="sample.css" />\r
-    <style type="text/css">\r
-\r
-    </style>\r
-\r
-    <!-- ** Javascript ** -->\r
-    <!-- ExtJS library: base/adapter -->\r
-    <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>\r
-\r
-    <!-- ExtJS library: all widgets -->\r
-    <script type="text/javascript" src="../../ext-all.js"></script>\r
-\r
-    <!-- overrides to base library -->\r
-\r
-    <!-- extensions -->\r
-    <script type="text/javascript" src="../ux/Portal.js"></script>\r
-    <script type="text/javascript" src="../ux/PortalColumn.js"></script>\r
-    <script type="text/javascript" src="../ux/Portlet.js"></script>\r
-\r
-    <!-- page specific -->\r
-       <script type="text/javascript" src="sample-grid.js"></script>\r
-    <script type="text/javascript" src="../shared/examples.js"></script>\r
-\r
-       <script type="text/javascript" src="portal.js"></script>\r
-\r
-</head>\r
-<body></body>\r
-</html>
\ No newline at end of file
+<!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>Portal Layout Sample</title>
+
+    <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
+    <link rel="stylesheet" type="text/css" href="portal.css" />
+
+    <script type="text/javascript" src="../../builds/ext-core.js"></script>
+
+    <!-- shared example code -->
+    <script type="text/javascript" src="../shared/examples.js"></script>
+    <script type="text/javascript" src="classes.js"></script>
+
+    <script type="text/javascript" src="portal.js"></script>
+    <script type="text/javascript">
+        Ext.Loader.setPath('Ext.app', 'classes');
+
+        Ext.require([
+            'Ext.layout.container.*',
+            'Ext.resizer.Splitter',
+            'Ext.fx.target.Element',
+            'Ext.fx.target.Component',
+            'Ext.window.Window',
+            'Ext.app.Portlet',
+            'Ext.app.PortalColumn',
+            'Ext.app.PortalPanel',
+            'Ext.app.Portlet',
+            'Ext.app.PortalDropZone',
+            'Ext.app.GridPortlet',
+            'Ext.app.ChartPortlet'
+        ]);
+
+        Ext.onReady(function(){
+            Ext.create('Ext.app.Portal');
+        });
+    </script>
+</head>
+<body>
+    <span id="app-msg" style="display:none;"></span>
+</body>
+</html>