summaryrefslogtreecommitdiffstats
path: root/user_guide/nav
diff options
context:
space:
mode:
authorJoël Cox <joel@joelcox.nl>2011-10-09 18:39:39 +0200
committerJoël Cox <joel@joelcox.nl>2011-10-09 18:39:39 +0200
commitf4fb1db458fab52d0493ead52c9ea7e01206eaa7 (patch)
treec549600f342f4d3f0df75a2f2f7c265be0f1cc72 /user_guide/nav
parentc4dd200c1155a118afa32cd91d9bd67bc243f83a (diff)
Moved tutorial to new user guide directory.
Diffstat (limited to 'user_guide/nav')
-rw-r--r--user_guide/nav/hacks.txt10
-rwxr-xr-xuser_guide/nav/moo.fx.js83
-rw-r--r--user_guide/nav/nav.js155
-rwxr-xr-xuser_guide/nav/prototype.lite.js127
-rw-r--r--user_guide/nav/user_guide_menu.js4
5 files changed, 0 insertions, 379 deletions
diff --git a/user_guide/nav/hacks.txt b/user_guide/nav/hacks.txt
deleted file mode 100644
index 8c17f008a..000000000
--- a/user_guide/nav/hacks.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-I did the following hack in moo.fx.js:
-
-At line 79 in the toggle: function() function, I added:
-
-document.getElementById('nav').style.display = 'block';
-
--- Rick Ellis
-
-
-Also removed fx.Opacity and fx.Height from moo.fx.js -- Pascal \ No newline at end of file
diff --git a/user_guide/nav/moo.fx.js b/user_guide/nav/moo.fx.js
deleted file mode 100755
index 256371d19..000000000
--- a/user_guide/nav/moo.fx.js
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
-moo.fx, simple effects library built with prototype.js (http://prototype.conio.net).
-by Valerio Proietti (http://mad4milk.net) MIT-style LICENSE.
-for more info (http://moofx.mad4milk.net).
-10/24/2005
-v(1.0.2)
-*/
-
-//base
-var fx = new Object();
-fx.Base = function(){};
-fx.Base.prototype = {
- setOptions: function(options) {
- this.options = {
- duration: 500,
- onComplete: ''
- }
- Object.extend(this.options, options || {});
- },
-
- go: function() {
- this.duration = this.options.duration;
- this.startTime = (new Date).getTime();
- this.timer = setInterval (this.step.bind(this), 13);
- },
-
- step: function() {
- var time = (new Date).getTime();
- var Tpos = (time - this.startTime) / (this.duration);
- if (time >= this.duration+this.startTime) {
- this.now = this.to;
- clearInterval (this.timer);
- this.timer = null;
- if (this.options.onComplete) setTimeout(this.options.onComplete.bind(this), 10);
- }
- else {
- this.now = ((-Math.cos(Tpos*Math.PI)/2) + 0.5) * (this.to-this.from) + this.from;
- //this time-position, sinoidal transition thing is from script.aculo.us
- }
- this.increase();
- },
-
- custom: function(from, to) {
- if (this.timer != null) return;
- this.from = from;
- this.to = to;
- this.go();
- },
-
- hide: function() {
- this.now = 0;
- this.increase();
- },
-
- clearTimer: function() {
- clearInterval(this.timer);
- this.timer = null;
- }
-}
-
-//stretchers
-fx.Layout = Class.create();
-fx.Layout.prototype = Object.extend(new fx.Base(), {
- initialize: function(el, options) {
- this.el = $(el);
- this.el.style.overflow = "hidden";
- this.el.iniWidth = this.el.offsetWidth;
- this.el.iniHeight = this.el.offsetHeight;
- this.setOptions(options);
- }
-});
-
-fx.Height = Class.create();
-Object.extend(Object.extend(fx.Height.prototype, fx.Layout.prototype), {
- increase: function() {
- this.el.style.height = this.now + "px";
- },
-
- toggle: function() {
- if (this.el.offsetHeight > 0) this.custom(this.el.offsetHeight, 0);
- else this.custom(0, this.el.scrollHeight);
- }
-});
diff --git a/user_guide/nav/nav.js b/user_guide/nav/nav.js
deleted file mode 100644
index bc668ec27..000000000
--- a/user_guide/nav/nav.js
+++ /dev/null
@@ -1,155 +0,0 @@
-function create_menu(basepath)
-{
- var base = (basepath == 'null') ? '' : basepath;
-
- document.write(
- '<table cellpadding="0" cellspaceing="0" border="0" style="width:98%"><tr>' +
- '<td class="td" valign="top">' +
-
- '<ul>' +
- '<li><a href="'+base+'index.html">User Guide Home</a></li>' +
- '<li><a href="'+base+'toc.html">Table of Contents Page</a></li>' +
- '</ul>' +
-
- '<h3>Basic Info</h3>' +
- '<ul>' +
- '<li><a href="'+base+'general/requirements.html">Server Requirements</a></li>' +
- '<li><a href="'+base+'license.html">License Agreement</a></li>' +
- '<li><a href="'+base+'changelog.html">Change Log</a></li>' +
- '<li><a href="'+base+'general/credits.html">Credits</a></li>' +
- '</ul>' +
-
- '<h3>Installation</h3>' +
- '<ul>' +
- '<li><a href="'+base+'installation/downloads.html">Downloading CodeIgniter</a></li>' +
- '<li><a href="'+base+'installation/index.html">Installation Instructions</a></li>' +
- '<li><a href="'+base+'installation/upgrading.html">Upgrading from a Previous Version</a></li>' +
- '<li><a href="'+base+'installation/troubleshooting.html">Troubleshooting</a></li>' +
- '</ul>' +
-
- '<h3>Introduction</h3>' +
- '<ul>' +
- '<li><a href="'+base+'overview/getting_started.html">Getting Started</a></li>' +
- '<li><a href="'+base+'overview/at_a_glance.html">CodeIgniter at a Glance</a></li>' +
- '<li><a href="'+base+'overview/cheatsheets.html">CodeIgniter Cheatsheets</a></li>' +
- '<li><a href="'+base+'overview/features.html">Supported Features</a></li>' +
- '<li><a href="'+base+'overview/appflow.html">Application Flow Chart</a></li>' +
- '<li><a href="'+base+'overview/mvc.html">Model-View-Controller</a></li>' +
- '<li><a href="'+base+'overview/goals.html">Architectural Goals</a></li>' +
- '</ul>' +
-
- '<h3>Tutorial</h3>' +
- '<ul>' +
- '<li><a href="'+base+'tutorial/index.html">Introduction</a></li>' +
- '<li><a href="'+base+'tutorial/static_pages.html">Static pages</a></li>' +
- '<li><a href="'+base+'tutorial/news_section.html">News section</a></li>' +
- '<li><a href="'+base+'tutorial/create_news_items.html">Create news items</a></li>' +
- '<li><a href="'+base+'tutorial/conclusion.html">Conclusion</a></li>' +
- '</ul>' +
-
- '</td><td class="td_sep" valign="top">' +
-
- '<h3>General Topics</h3>' +
- '<ul>' +
- '<li><a href="'+base+'general/urls.html">CodeIgniter URLs</a></li>' +
- '<li><a href="'+base+'general/controllers.html">Controllers</a></li>' +
- '<li><a href="'+base+'general/reserved_names.html">Reserved Names</a></li>' +
- '<li><a href="'+base+'general/views.html">Views</a></li>' +
- '<li><a href="'+base+'general/models.html">Models</a></li>' +
- '<li><a href="'+base+'general/helpers.html">Helpers</a></li>' +
- '<li><a href="'+base+'general/libraries.html">Using CodeIgniter Libraries</a></li>' +
- '<li><a href="'+base+'general/creating_libraries.html">Creating Your Own Libraries</a></li>' +
- '<li><a href="'+base+'general/drivers.html">Using CodeIgniter Drivers</a></li>' +
- '<li><a href="'+base+'general/creating_drivers.html">Creating Your Own Drivers</a></li>' +
- '<li><a href="'+base+'general/core_classes.html">Creating Core Classes</a></li>' +
- '<li><a href="'+base+'general/hooks.html">Hooks - Extending the Core</a></li>' +
- '<li><a href="'+base+'general/autoloader.html">Auto-loading Resources</a></li>' +
- '<li><a href="'+base+'general/common_functions.html">Common Functions</a></li>' +
- '<li><a href="'+base+'general/routing.html">URI Routing</a></li>' +
- '<li><a href="'+base+'general/errors.html">Error Handling</a></li>' +
- '<li><a href="'+base+'general/caching.html">Caching</a></li>' +
- '<li><a href="'+base+'general/profiling.html">Profiling Your Application</a></li>' +
- '<li><a href="'+base+'general/cli.html">Running via the CLI</a></li>' +
- '<li><a href="'+base+'general/managing_apps.html">Managing Applications</a></li>' +
- '<li><a href="'+base+'general/environments.html">Handling Multiple Environments</a></li>' +
- '<li><a href="'+base+'general/alternative_php.html">Alternative PHP Syntax</a></li>' +
- '<li><a href="'+base+'general/security.html">Security</a></li>' +
- '<li><a href="'+base+'general/styleguide.html">PHP Style Guide</a></li>' +
- '<li><a href="'+base+'doc_style/index.html">Writing Documentation</a></li>' +
- '</ul>' +
-
- '<h3>Additional Resources</h3>' +
- '<ul>' +
- '<li><a href="http://codeigniter.com/forums/">Community Forums</a></li>' +
- '<li><a href="http://codeigniter.com/wiki/">Community Wiki</a></li>' +
- '</ul>' +
-
- '</td><td class="td_sep" valign="top">' +
-
- '<h3>Class Reference</h3>' +
- '<ul>' +
- '<li><a href="'+base+'libraries/benchmark.html">Benchmarking Class</a></li>' +
- '<li><a href="'+base+'libraries/calendar.html">Calendar Class</a></li>' +
- '<li><a href="'+base+'libraries/cart.html">Cart Class</a></li>' +
- '<li><a href="'+base+'libraries/config.html">Config Class</a></li>' +
- '<li><a href="'+base+'libraries/email.html">Email Class</a></li>' +
- '<li><a href="'+base+'libraries/encryption.html">Encryption Class</a></li>' +
- '<li><a href="'+base+'libraries/file_uploading.html">File Uploading Class</a></li>' +
- '<li><a href="'+base+'libraries/form_validation.html">Form Validation Class</a></li>' +
- '<li><a href="'+base+'libraries/ftp.html">FTP Class</a></li>' +
- '<li><a href="'+base+'libraries/table.html">HTML Table Class</a></li>' +
- '<li><a href="'+base+'libraries/image_lib.html">Image Manipulation Class</a></li>' +
- '<li><a href="'+base+'libraries/input.html">Input Class</a></li>' +
- '<li><a href="'+base+'libraries/javascript.html">Javascript Class</a></li>' +
- '<li><a href="'+base+'libraries/loader.html">Loader Class</a></li>' +
- '<li><a href="'+base+'libraries/language.html">Language Class</a></li>' +
- '<li><a href="'+base+'libraries/output.html">Output Class</a></li>' +
- '<li><a href="'+base+'libraries/pagination.html">Pagination Class</a></li>' +
- '<li><a href="'+base+'libraries/security.html">Security Class</a></li>' +
- '<li><a href="'+base+'libraries/sessions.html">Session Class</a></li>' +
- '<li><a href="'+base+'libraries/trackback.html">Trackback Class</a></li>' +
- '<li><a href="'+base+'libraries/parser.html">Template Parser Class</a></li>' +
- '<li><a href="'+base+'libraries/typography.html">Typography Class</a></li>' +
- '<li><a href="'+base+'libraries/unit_testing.html">Unit Testing Class</a></li>' +
- '<li><a href="'+base+'libraries/uri.html">URI Class</a></li>' +
- '<li><a href="'+base+'libraries/user_agent.html">User Agent Class</a></li>' +
- '<li><a href="'+base+'libraries/xmlrpc.html">XML-RPC Class</a></li>' +
- '<li><a href="'+base+'libraries/zip.html">Zip Encoding Class</a></li>' +
- '</ul>' +
-
- '</td><td class="td_sep" valign="top">' +
-
- '<h3>Driver Reference</h3>' +
- '<ul>' +
- '<li><a href="'+base+'libraries/caching.html">Caching Class</a></li>' +
- '<li><a href="'+base+'database/index.html">Database Class</a></li>' +
- '<li><a href="'+base+'libraries/javascript.html">Javascript Class</a></li>' +
- '</ul>' +
-
- '<h3>Helper Reference</h3>' +
- '<ul>' +
- '<li><a href="'+base+'helpers/array_helper.html">Array Helper</a></li>' +
- '<li><a href="'+base+'helpers/captcha_helper.html">CAPTCHA Helper</a></li>' +
- '<li><a href="'+base+'helpers/cookie_helper.html">Cookie Helper</a></li>' +
- '<li><a href="'+base+'helpers/date_helper.html">Date Helper</a></li>' +
- '<li><a href="'+base+'helpers/directory_helper.html">Directory Helper</a></li>' +
- '<li><a href="'+base+'helpers/download_helper.html">Download Helper</a></li>' +
- '<li><a href="'+base+'helpers/email_helper.html">Email Helper</a></li>' +
- '<li><a href="'+base+'helpers/file_helper.html">File Helper</a></li>' +
- '<li><a href="'+base+'helpers/form_helper.html">Form Helper</a></li>' +
- '<li><a href="'+base+'helpers/html_helper.html">HTML Helper</a></li>' +
- '<li><a href="'+base+'helpers/inflector_helper.html">Inflector Helper</a></li>' +
- '<li><a href="'+base+'helpers/language_helper.html">Language Helper</a></li>' +
- '<li><a href="'+base+'helpers/number_helper.html">Number Helper</a></li>' +
- '<li><a href="'+base+'helpers/path_helper.html">Path Helper</a></li>' +
- '<li><a href="'+base+'helpers/security_helper.html">Security Helper</a></li>' +
- '<li><a href="'+base+'helpers/smiley_helper.html">Smiley Helper</a></li>' +
- '<li><a href="'+base+'helpers/string_helper.html">String Helper</a></li>' +
- '<li><a href="'+base+'helpers/text_helper.html">Text Helper</a></li>' +
- '<li><a href="'+base+'helpers/typography_helper.html">Typography Helper</a></li>' +
- '<li><a href="'+base+'helpers/url_helper.html">URL Helper</a></li>' +
- '<li><a href="'+base+'helpers/xml_helper.html">XML Helper</a></li>' +
- '</ul>' +
-
- '</td></tr></table>');
-} \ No newline at end of file
diff --git a/user_guide/nav/prototype.lite.js b/user_guide/nav/prototype.lite.js
deleted file mode 100755
index e6c362279..000000000
--- a/user_guide/nav/prototype.lite.js
+++ /dev/null
@@ -1,127 +0,0 @@
-/* Prototype JavaScript framework
- * (c) 2005 Sam Stephenson <sam@conio.net>
- *
- * Prototype is freely distributable under the terms of an MIT-style license.
- *
- * For details, see the Prototype web site: http://prototype.conio.net/
- *
-/*--------------------------------------------------------------------------*/
-
-
-//note: this is a stripped down version of prototype, to be used with moo.fx by mad4milk (http://moofx.mad4milk.net).
-
-var Class = {
- create: function() {
- return function() {
- this.initialize.apply(this, arguments);
- }
- }
-}
-
-Object.extend = function(destination, source) {
- for (property in source) {
- destination[property] = source[property];
- }
- return destination;
-}
-
-Function.prototype.bind = function(object) {
- var __method = this;
- return function() {
- return __method.apply(object, arguments);
- }
-}
-
-function $() {
- var elements = new Array();
-
- for (var i = 0; i < arguments.length; i++) {
- var element = arguments[i];
- if (typeof element == 'string')
- element = document.getElementById(element);
-
- if (arguments.length == 1)
- return element;
-
- elements.push(element);
- }
-
- return elements;
-}
-
-//-------------------------
-
-document.getElementsByClassName = function(className) {
- var children = document.getElementsByTagName('*') || document.all;
- var elements = new Array();
-
- for (var i = 0; i < children.length; i++) {
- var child = children[i];
- var classNames = child.className.split(' ');
- for (var j = 0; j < classNames.length; j++) {
- if (classNames[j] == className) {
- elements.push(child);
- break;
- }
- }
- }
-
- return elements;
-}
-
-//-------------------------
-
-if (!window.Element) {
- var Element = new Object();
-}
-
-Object.extend(Element, {
- remove: function(element) {
- element = $(element);
- element.parentNode.removeChild(element);
- },
-
- hasClassName: function(element, className) {
- element = $(element);
- if (!element)
- return;
- var a = element.className.split(' ');
- for (var i = 0; i < a.length; i++) {
- if (a[i] == className)
- return true;
- }
- return false;
- },
-
- addClassName: function(element, className) {
- element = $(element);
- Element.removeClassName(element, className);
- element.className += ' ' + className;
- },
-
- removeClassName: function(element, className) {
- element = $(element);
- if (!element)
- return;
- var newClassName = '';
- var a = element.className.split(' ');
- for (var i = 0; i < a.length; i++) {
- if (a[i] != className) {
- if (i > 0)
- newClassName += ' ';
- newClassName += a[i];
- }
- }
- element.className = newClassName;
- },
-
- // removes whitespace-only text node children
- cleanWhitespace: function(element) {
- element = $(element);
- for (var i = 0; i < element.childNodes.length; i++) {
- var node = element.childNodes[i];
- if (node.nodeType == 3 && !/\S/.test(node.nodeValue))
- Element.remove(node);
- }
- }
-}); \ No newline at end of file
diff --git a/user_guide/nav/user_guide_menu.js b/user_guide/nav/user_guide_menu.js
deleted file mode 100644
index ce5d0776c..000000000
--- a/user_guide/nav/user_guide_menu.js
+++ /dev/null
@@ -1,4 +0,0 @@
-window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
- myHeight.hide();
-} \ No newline at end of file