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

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:

主站蜘蛛池模板: 婺源县| 册亨县| 阳泉市| 宾川县| 宁海县| 河北省| 始兴县| 中宁县| 宁陵县| 宜良县| 瑞昌市| 德江县| 曲麻莱县| 吉安市| 虞城县| 项城市| 堆龙德庆县| 大田县| 九龙坡区| 康马县| 淳化县| 柳江县| 察隅县| 广汉市| 普陀区| 海盐县| 湘阴县| 登封市| 同江市| 马公市| 蓬莱市| 普定县| 双城市| 郑州市| 拉孜县| 周口市| 白银市| 怀集县| 东阳市| 河池市| 娄烦县|