diff options
author | Derek Jones <derek.jones@ellislab.com> | 2011-10-05 22:55:20 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2011-10-05 22:55:20 +0200 |
commit | d095adf82baa420e3702c838f6fd7c55479f643a (patch) | |
tree | cd9f3c7ef0f6ace0888b5f55f492500d0c7af0f6 /user_guide_src | |
parent | 36be96982c8b8dcf19faf9de08361301499e4134 (diff) |
fixed code block spacing on Language and JS lib docs
Diffstat (limited to 'user_guide_src')
-rw-r--r-- | user_guide_src/source/libraries/javascript.rst | 28 | ||||
-rw-r--r-- | user_guide_src/source/libraries/language.rst | 4 |
2 files changed, 22 insertions, 10 deletions
diff --git a/user_guide_src/source/libraries/javascript.rst b/user_guide_src/source/libraries/javascript.rst index 12eb94dac..5e80fb998 100644 --- a/user_guide_src/source/libraries/javascript.rst +++ b/user_guide_src/source/libraries/javascript.rst @@ -52,7 +52,8 @@ your output. :: - <?php echo $library_src;?> <?php echo $script_head;?> + <?php echo $library_src;?> + <?php echo $script_head;?> $library_src, is where the actual library file will be loaded, as well @@ -73,8 +74,8 @@ need to be made. :: - $config['javascript_location'] = 'http://localhost/codeigniter/themes/js/jquery/'; $config['javascript_ajax_img'] = 'images/ajax-loader.gif'; - + $config['javascript_location'] = 'http://localhost/codeigniter/themes/js/jquery/'; + $config['javascript_ajax_img'] = 'images/ajax-loader.gif'; If you keep your files in the same directories they were downloaded from, then you need not set this configuration items. @@ -139,7 +140,8 @@ page. hide() will set an item invisible, show() will reveal it. :: - $this->jquery->hide(target, optional speed, optional extra information); $this->jquery->show(target, optional speed, optional extra information); + $this->jquery->hide(target, optional speed, optional extra information); + $this->jquery->show(target, optional speed, optional extra information); - "target" will be any valid jQuery selector or selectors. @@ -185,15 +187,20 @@ and triggered by a click using the jQuery library's click() event. :: - $params = array( 'height' => 80, 'width' => '50%', 'marginLeft' => 125 ); $this->jquery->click('#trigger', $this->jquery->animate('#note', $params, normal)); - + $params = array( + 'height' => 80, + 'width' => '50%', + 'marginLeft' => 125 + ); + $this->jquery->click('#trigger', $this->jquery->animate('#note', $params, normal)); fadeIn() / fadeOut() -------------------- :: - $this->jquery->fadeIn(target, optional speed, optional extra information); $this->jquery->fadeOut(target, optional speed, optional extra information); + $this->jquery->fadeIn(target, optional speed, optional extra information); + $this->jquery->fadeOut(target, optional speed, optional extra information); - "target" will be any valid jQuery selector or selectors. @@ -223,7 +230,8 @@ These effects cause an element(s) to disappear or reappear over time. :: - $this->jquery->fadeIn(target, optional speed, optional extra information); $this->jquery->fadeOut(target, optional speed, optional extra information); + $this->jquery->fadeIn(target, optional speed, optional extra information); + $this->jquery->fadeOut(target, optional speed, optional extra information); - "target" will be any valid jQuery selector or selectors. @@ -239,7 +247,9 @@ These effects cause an element(s) to slide. :: - $this->jquery->slideUp(target, optional speed, optional extra information); $this->jquery->slideDown(target, optional speed, optional extra information); $this->jquery->slideToggle(target, optional speed, optional extra information); + $this->jquery->slideUp(target, optional speed, optional extra information); + $this->jquery->slideDown(target, optional speed, optional extra information); + $this->jquery->slideToggle(target, optional speed, optional extra information); - "target" will be any valid jQuery selector or selectors. diff --git a/user_guide_src/source/libraries/language.rst b/user_guide_src/source/libraries/language.rst index a148d5a0d..ec678cd21 100644 --- a/user_guide_src/source/libraries/language.rst +++ b/user_guide_src/source/libraries/language.rst @@ -39,7 +39,9 @@ $lang with this prototype:: :: - $lang['error_email_missing'] = "You must submit an email address"; $lang['error_url_missing'] = "You must submit a URL"; $lang['error_username_missing'] = "You must submit a username"; + $lang['error_email_missing'] = "You must submit an email address"; + $lang['error_url_missing'] = "You must submit a URL"; + $lang['error_username_missing'] = "You must submit a username"; Loading A Language File ======================= |