forked from seajs/seajs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
119 lines (89 loc) · 3.22 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!doctype html>
<html>
<head>
<meta http-equiv="Pragma" content="no-cache"/>
<meta charset="utf-8"/>
<title>sea.js</title>
<link rel="stylesheet" href="docs/assets/home.css"/>
</head>
<body>
<div id="toc">
<ul>
<li><a href="#download">Download</a></li>
<li><a href="docs/">Documentation</a></li>
<li><a href="docs/zh-cn/">中文文档</a></li>
<li><a href="docs/release-notes.html">Release Notes</a></li>
<li><a href="#about">About</a></li>
</ul>
<ul>
<li><a href="https://github.com/seajs/seajs/wiki">Wiki</a></li>
<li><a href="http://lifesinger.wordpress.com/?s=seajs">Blog</a></li>
<li><a href="https://github.com/seajs/seajs/wiki/Community">Community</a></li>
<li><a href="docs/demo/">Demo</a></li>
</ul>
</div>
<div id="content">
<img id="logo" src="docs/assets/logo.png" alt="sea.js"/>
<p>A <a href="http://wiki.commonjs.org/wiki/Modules">Module</a> Loader for the Web</p>
<p>Here below is an example of a JavaScript module which provides a <code>sayHello</code> method:</p>
<pre>
define(function(require, exports, module) {
exports.sayHello = function() {
alert('Hello from module: ' + module.id);
};
});
</pre>
<p>
To use the above module, put the code into a file <code>example.js</code> and
launch it with a html file:
</p>
<pre>
<script src="sea.js"></script>
<script>
seajs.use('./example', function(example) {
example.sayHello();
});
</script>
</pre>
<p>Please refer to the <a href="docs/">API documentation</a> for more details.</p>
<!-- <h2 id="intro">Introduction</h2>
<iframe src="http://www.slideshare.net/slideshow/embed_code/7735168" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
-->
<h2 id="download">Download</h2>
<p><a href="http://github.com/seajs/seajs">git repo</a></p>
<p class="download">
<a href="http://modules.seajs.com/seajs/1.1.0/sea-debug.js">Development Version (1.1.0)</a> <i>32KB, Uncompressed with Comments</i><br/>
<a href="http://modules.seajs.com/seajs/1.1.0/sea.js">Production Version (1.1.0)</a> <i>4KB, Minified and Gzipped</i>
</p>
<p class="promotejs">
<a href="https://developer.mozilla.org/en/JavaScript/Guide" title="JavaScript Guide"><img src="docs/assets/promotejsv.gif" height="275" width="157" alt="JavaScript Guide"/></a>
</p>
<h2 id="compatible">Compatible</h2>
<pre class="text">
IE 5.5+ ✔
Chrome 3+ ✔
Firefox 2+ ✔
Safari 3.2+ ✔
Opera 10+ ✔
</pre>
<h2 id="about">About</h2>
<p>
The sea, holding water from thousands of rivers, is huge owing to its
capacity.
</p>
<p>
SeaJS is a module loader for the web. It is designed to change the way that
you organize JavaScript. With SeaJS, it is pleasure to build scalable web
applications.
</p>
<p>
SeaJS is available under the terms of the <a href="http://seajs.com/MIT-LICENSE.txt">MIT license</a>.
</p>
<p>
For questions, comments, and feedbacks, please go to <a href="http://groups.google.com/group/seajs">SeaJS Group</a>.
</p>
<p class="copyright">Copyright©2011-2022 seajs.com</p>
</div>
<script src="build/sea.js" data-main="docs/assets/init"></script>
</body>
</html>