官术网_书友最值得收藏!

Creating the index.html file>

The application will be accessed through the index.html file located in the root of the application directory. We will set this up now.

In the root of the application directory, add a new file named index.html. This should be accessible from http://localhost/index.html.

Now, add the markup for an HTML5 document and include the external DHTMLX files:

<!DOCTYPE html>
<html lang="en">
   <head>
   <title>Users</title>
   <link href="js/dhtmlx/dhtmlx.css" type="text/css" 
      rel="stylesheet" />  
   <style>
      /* layout css */
      html, body { height: 100%; width: 100%; }
   </style>    
<script src="js/dhtmlx/dhtmlx.js"></script>
<script src="js/application/storage.js"></script>
<script src="js/application/app.js"></script>
   </head>
   <body>    
</body>
</html>
Tip

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

The dhtmlx.css and dhtmlx.js are the only DHTMLX library files necessary to include in the DHTMLX library for use. The storage.js and app.js are where the code for the user management application will be created.

Additional CSS was added that sets the html and body to a height and width of 100%. This will allow the DHTMLX layout component, added later, to stretch and grow when the browser window is resized. We will be adding more CSS here in later chapters.

The following screenshot displays how your final directory structure should appear:

主站蜘蛛池模板: 鹿泉市| 唐山市| 阳东县| 松阳县| 清流县| 合水县| 皋兰县| 洛南县| 柘城县| 华宁县| 兴业县| 开平市| 乐陵市| 彭泽县| 金秀| 永定县| 靖州| 上犹县| 视频| 梧州市| 邢台县| 滨州市| 永宁县| 宝鸡市| 芜湖市| 安福县| 安岳县| 武山县| 庆云县| 泸溪县| 白玉县| 洛南县| 华亭县| 墨江| 宁武县| 海林市| 资溪县| 潍坊市| 城步| 永吉县| 嘉定区|