Ticket #5402: requireCss.html

File requireCss.html, 0.9 kB (added by jburke, 11 months ago)

Test file. Place as a sibling to the dojo dir.

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5<head>
6        <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
7        <title>requireCss test</title>
8
9        <script type="text/javascript">
10
11                djConfig = {
12                        isDebug: true,
13                        debugAtAllCosts: true
14                };
15        </script>
16
17        <script type="text/javascript" src="dojo/dojo.js"></script>
18        <script type="text/javascript">
19                dojo.require("dojo.requireCss");
20                dojo.addOnLoad(function(){
21                        dojo.requireCss("dijit.themes.tundra.tundra");
22                        dojo.requireCss("dojo.resources.dojo");
23                        dojo.requireCss("http://o.aolcdn.com/dojo/1.0.2/dijit/themes/tundra/tundra.css");
24                        dojo.requireCss("http://www.tagneto.org/cgi-bin/timeout.cgi");
25                });
26        </script>
27</head>
28<body class="tundra">
29    <h1>dojo.requireCss test</h1>
30                <p>This is a test of dojo.requireCss</p>
31</body>
32</html>