Permalink
Browse files

made design changes

  • Loading branch information...
Andy Chung
Andy Chung committed Nov 30, 2010
1 parent 6fc58bd commit 7d0f71082d006c0eb9c7d53b743a089bbb51135b
View
@@ -1,28 +1,19 @@
-# RequireJS
-
-RequireJS loads plain JavaScript files as well as more defined modules. It is optimized for in-browser use, including in [a Web Worker](requirejs/tree/master/docs/api.md#webworker), but it can be used in other JavaScript environments, like Rhino and [Node](requirejs/tree/master/docs/node.md). It implements the [Asynchronous Module](http://wiki.commonjs.org/wiki/Modules/AsynchronousDefinition) API.
-
-RequireJS uses plain script tags to load modules/files, so it should allow for easy debugging. It can be used [simply to load existing JavaScript files](requirejs/tree/master/docs/api.md#jsfiles), so you can add it to your existing project without having to re-write your JavaScript files.
-
-RequireJS includes [an optimization tool](requirejs/tree/master/docs/optimization.md) you can run as part of your packaging steps for deploying your code. The optimization tool can combine and minify your JavaScript files to allow for better performance.
-
-If the JavaScript file defines a JavaScript module via [define()](requirejs/tree/master/docs/api.md#define), then there are other benefits RequireJS can offer: [better CommonJS support](requirejs/tree/master/docs/commonjs.md) and [loading multiple versions](requirejs/tree/master/docs/api.md#multiversion) of a module in a page. RequireJS also allows for [module modifiers](requirejs/tree/master/docs/api.md#modifiers) and has a plugin system that supports features like [i18n string bundles](requirejs/tree/master/docs/api.md#i18n), and [text file dependencies](requirejs/tree/master/docs/api.md#text).
-
-RequireJS does not have any dependencies on a JavaScript framework. It is dual-licensed -- new BSD or MIT.
-
-The standard require.js file is around 5KB when minified via Closure Compiler and gzipped.
-
-RequireJS works in IE 6+, Firefox 2+, Safari 3.2+, Chrome 3+, and Opera 10+.
-
-Latest Release: [0.15.0](http://requirejs.org/docs/download.html)
-
-* [Start](requirejs/tree/master/docs/start.md)
- * [Using it with jQuery](requirejs/tree/master/docs/jquery.md)
-* [Download](requirejs/tree/master/docs/download.md)
-* [API](requirejs/tree/master/docs/api.md)
-* [Optimization](requirejs/tree/master/docs/optimization.md)
-* [Why](requirejs/tree/master/docs/why.md)
-* [Requirements](requirejs/tree/master/docs/requirements.md)
-* [History](requirejs/tree/master/docs/history.md)
-* [Get involved or ask questions](http://groups.google.com/group/requirejs)
-* [Blog](http://tagneto.blogspot.com)
+<div id="intro" class="mono">
+ <p>/* ---</p>
+
+ <p>RequireJS is a JavaScript file and module loader. It is optimized for
+ in-browser use, but it can be used in other JavaScript environments,
+ like Rhino and <a href="requirejs/tree/master/docs/node.md">Node</a>. Using
+ RequireJS will improve the speed and quality of your code.</p>
+
+ <p>
+ IE 6+ .......... compatible &#x2714;<br>
+ Safari 3.2 ..... compatible &#x2714;<br>
+ Chrome 3+ ...... compatible &#x2714;<br>
+ Opera 10+ ...... compatible &#x2714;
+ </p>
+
+ <p><a href="requirejs/tree/master/docs/start.md">Get started</a> then check out the <a href="requirejs/tree/master/docs/api.md">API</a>.</p>
+
+ <p>--- */</p>
+</div>
View
@@ -26,11 +26,14 @@ load("../build/jslib/fileUtil.js");
var files, i, mdFile, htmlFile, fileContents,
runtime = Packages.java.lang.Runtime.getRuntime(),
- process, preContents, postContents, h1, homePath, cssPath, length, j, isTopPage = false;
+ process, preContents, postContents, h1, homePath, cssPath,
+ jsPath, length, j, isTopPage = false;
//Copy all the text files to a dist directory
-fileUtil.deleteFile("./dist-site/");
+//fileUtil.deleteFile("./dist-site/");
fileUtil.copyFile("main.css", "./dist-site/main.css");
+fileUtil.copyFile("init.js", "./dist-site/init.js");
+fileUtil.copyDir("i/", "./dist-site/i/", /\w/);
fileUtil.copyDir("fonts", "./dist-site/fonts", /\w/);
fileUtil.copyFile("../README.md", "./dist-site/index.md");
fileUtil.copyDir("../docs/", "./dist-site/docs/", /\w/);
@@ -73,6 +76,7 @@ for (i = 0; (mdFile = files[i]); i++) {
isTopPage = true;
homePath = "./";
cssPath = "main.css";
+ jsPath = "init.js";
} else {
isTopPage = false;
length = homePath.split("/").length;
@@ -81,9 +85,11 @@ for (i = 0; (mdFile = files[i]); i++) {
homePath += "../";
}
cssPath = homePath + "main.css";
+ jsPath = homePath + "init.js";
}
fileContents = fileContents.replace(/HOMEPATH/, homePath);
fileContents = fileContents.replace(/\main\.css/, cssPath);
+ fileContents = fileContents.replace(/\init\.js/, jsPath);
//If it is the top page, adjust the header links
View
Binary file not shown.
View
0 dist/fonts/PT-Sans/PT_Sans.ttf 100755 → 100644
No changes.
View
No changes.
View
No changes.
View
No changes.
View
No changes.
View
No changes.
View
No changes.
View
No changes.
No changes.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
@@ -0,0 +1,27 @@
+$(document).ready(function($) {
+
+ // set panel min-height to full browser height
+ $(window).bind("load resize", function(){
+ var h = $(window).height();
+ $("#wrapper, #grid, #navBg, #content").css({ "min-height" : (h) });
+ });
+
+ // toggle grid
+
+ $("#grid").hide();
+
+ $(document.documentElement).keyup(function (event) {
+ if (event.keyCode == 71) {
+ $("#grid").fadeToggle(100);
+ }
+ });
+
+ // if window is larger than #nav then #nav == fixed, if #nav is larger than window #nav == relative
+ $(window).bind("load resize", function(){
+ var w = jQuery(window).height();
+ var h = jQuery('#nav').outerHeight();
+ jQuery("#nav").css("position",(w < h) ? ("relative") : ("fixed"));
+ });
+
+ // done!
+});
Oops, something went wrong.

0 comments on commit 7d0f710

Please sign in to comment.