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

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:

主站蜘蛛池模板: 霍林郭勒市| 东海县| 同江市| 嘉禾县| 西乡县| 鄯善县| 荃湾区| 海晏县| 壶关县| 新晃| 马关县| 贵定县| 沁阳市| 托克托县| 赞皇县| 芒康县| 年辖:市辖区| 泰州市| 海兴县| 许昌县| 秦皇岛市| 兴海县| 平泉县| 云霄县| 定南县| 沙雅县| 北辰区| 许昌县| 渝中区| 什邡市| 哈巴河县| 上高县| 伊金霍洛旗| 长葛市| 神农架林区| 张掖市| 龙岩市| 寿光市| 常德市| 博兴县| 望谟县|