Skip to content

Commit b66c273

Browse files
Markus Amalthea Magnusonajpiano
Markus Amalthea Magnuson
authored andcommitted
Remove remaining trailing whitespace from all pages. Fixes jquery#313.
1 parent 6e0db70 commit b66c273

26 files changed

+91
-91
lines changed

CONTRIBUTING.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Contributing
3-
customFields:
3+
customFields:
44
-
55
key: "is_chapter"
66
value: 0
@@ -38,7 +38,7 @@ you are probably familiar with the frustrating feeling of putting a useful tip
3838
out there, and then wondering if it's actually making its way to the people who
3939
need it, and what to do with that old post years and versions down the road.
4040
You're invited to share that energy to help us bring that ecosystem together
41-
and grow it further!
41+
and grow it further!
4242

4343
If you've ever helped anyone, colleague or stranger, with a particular problem,
4444
then you know the value of having a reference you can quickly link to that says
@@ -71,7 +71,7 @@ controls most of the layout for all of our sites, and there is a [child
7171
theme](https://github.com/jquery/jquery-wp-content/tree/master/themes/learn.jquery.com)
7272
that controls the templates and styles specific to the learn site.
7373

74-
[`jquery-wp-content`](http://github.com/jquery/jquery-wp-content) powers our sites in
74+
[`jquery-wp-content`](http://github.com/jquery/jquery-wp-content) powers our sites in
7575
production and staging environments, and can set up for local development relatively easily.
7676

7777
### Build
@@ -80,7 +80,7 @@ The static content in the `page` directory is deployed to a
8080
[`jquery-wp-content`](http://github.com/jquery/jquery-wp-content) instance
8181
using [grunt](http://gruntjs.com), specifically with two grunt plugins we've created:
8282

83-
* [grunt-jquery-content](http://github.com/jquery/grunt-jquery-content) - pre-processes content in a variety of formats (HTML, Markdown, XML) into HTML, applying syntax highlighting and some simple partial support, preparing it for processing by
83+
* [grunt-jquery-content](http://github.com/jquery/grunt-jquery-content) - pre-processes content in a variety of formats (HTML, Markdown, XML) into HTML, applying syntax highlighting and some simple partial support, preparing it for processing by
8484
* [grunt-wordpress](http://github.com/scottgonzalez/grunt-wordpress) - syncs static content to WordPress using [XML-RPC](http://codex.wordpress.org/XML-RPC_Support)
8585

8686

@@ -129,7 +129,7 @@ Once you've gotten your environment working, here are the general steps you shou
129129

130130
1. Create a new "feature" branch based on `master` -- `git branch <feature/issue name/number>`
131131
2. Move onto that branch -- `git checkout <feature/issue name/number>`
132-
3. Work on your awesome contribution.
132+
3. Work on your awesome contribution.
133133
4. As you work and want to preview your changes, use `grunt` to deploy them to the your site. You can also use `grunt watch` to have the site monitor the `page` directory for any changes and automatically have the changes deployed every time you save.
134134
5. When you're done, stage the new/modified preparation for commit -- `git add page/faq/how-do-i-add-a-new-article-to-the-learn-site.md`
135135
6. Commit the files to your local repo -- `git commit -m "add a relevant message describing the change"`
@@ -142,10 +142,10 @@ Requests](http://contribute.jquery.org/commits-and-pull-requests/) guide.
142142

143143
### Adding A New Article
144144

145-
1. Add the file to the right folder in the page folder.
145+
1. Add the file to the right folder in the page folder.
146146
2. Add the slug name (the filename without the extension) to the desired location `order.yml`
147147
3. Run `grunt`
148-
4. You should now be able to navigate to the file.
148+
4. You should now be able to navigate to the file.
149149

150150
### Formatting Articles
151151

page/events/event-basics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ multiple events and handlers.
2525
```
2626
// Event setup using a convenience method
2727
$( "p" ).click(function() {
28-
console.log( "You clicked a paragraph!" );
28+
console.log( "You clicked a paragraph!" );
2929
});
3030
```
3131

page/events/history-of-events.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Given the following HTML, for our example we want to log the text of the each `<
88

99
```
1010
<div id="container">
11-
<ul id="list">
11+
<ul id="list">
1212
<li>Item #1</li>
1313
<li>Item #2</li>
1414
<li>Item #3</li>

page/jquery-mobile/getting-started.md

+21-21
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ jQuery Mobile provides a set of touch-friendly UI widgets and an AJAX-powered na
77

88
## Create a basic page template
99

10-
To get started, you can simply paste the template below in your favorite text editor, save and open the document in a browser.
10+
To get started, you can simply paste the template below in your favorite text editor, save and open the document in a browser.
1111

12-
In the `head` of this template, a meta `viewport` tag sets the screen width to the pixel width of the device. References to jQuery, jQuery Mobile and the mobile theme stylesheet from the CDN add all the styles and scripts. jQuery Mobile 1.2 (1.2.0) works with versions of jQuery core from 1.7.0 to 1.8.2.
12+
In the `head` of this template, a meta `viewport` tag sets the screen width to the pixel width of the device. References to jQuery, jQuery Mobile and the mobile theme stylesheet from the CDN add all the styles and scripts. jQuery Mobile 1.2 (1.2.0) works with versions of jQuery core from 1.7.0 to 1.8.2.
1313

14-
In the `body`, a div with a `data-role` of `page` is the wrapper used to delineate a page. A header bar (`data-role="header"`), a content region (`data-role="content"`) and a footer bar (`data-role="footer"`) are added inside to create a basic page (all three are optional). These `data-` attributes are HTML5 attributes used throughout jQuery Mobile to transform basic markup into an enhanced and styled widget.
14+
In the `body`, a div with a `data-role` of `page` is the wrapper used to delineate a page. A header bar (`data-role="header"`), a content region (`data-role="content"`) and a footer bar (`data-role="footer"`) are added inside to create a basic page (all three are optional). These `data-` attributes are HTML5 attributes used throughout jQuery Mobile to transform basic markup into an enhanced and styled widget.
1515

1616
```
17-
<!DOCTYPE html>
18-
<html>
19-
<head>
20-
<title>My Page</title>
21-
<meta name="viewport" content="width=device-width, initial-scale=1">
17+
<!DOCTYPE html>
18+
<html>
19+
<head>
20+
<title>My Page</title>
21+
<meta name="viewport" content="width=device-width, initial-scale=1">
2222
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
2323
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
2424
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
25-
</head>
26-
<body>
25+
</head>
26+
<body>
2727
2828
<div data-role="page">
2929
<div data-role="header">
@@ -47,11 +47,11 @@ In the `body`, a div with a `data-role` of `page` is the wrapper used to delinea
4747

4848
### Add content
4949

50-
The next step is to add content inside the content container. Any standard HTML elements - headings, lists, paragraphs, etc can be added. You can write your own custom styles to create custom layouts by adding an additional stylesheet to the `head` after the jQuery Mobile stylesheet.
50+
The next step is to add content inside the content container. Any standard HTML elements - headings, lists, paragraphs, etc can be added. You can write your own custom styles to create custom layouts by adding an additional stylesheet to the `head` after the jQuery Mobile stylesheet.
5151

5252
### Make a listview
5353

54-
jQuery Mobile includes a diverse set of common listviews that are coded as lists with a `data-role="listview"` added. Here is a simple linked list that has a role of `listview`. The `data-inset="true"` attribute makes the listview look like an inset module, while `data-filter="true"` adds a dynamic search filter.
54+
jQuery Mobile includes a diverse set of common listviews that are coded as lists with a `data-role="listview"` added. Here is a simple linked list that has a role of `listview`. The `data-inset="true"` attribute makes the listview look like an inset module, while `data-filter="true"` adds a dynamic search filter.
5555

5656
```
5757
<ul data-role="listview" data-inset="true" data-filter="true">
@@ -62,10 +62,10 @@ jQuery Mobile includes a diverse set of common listviews that are coded as lists
6262
<li><a href="#">Ferrari</a></li>
6363
</ul>
6464
```
65-
65+
6666
### Add a slider
6767

68-
The framework contains a full set of form elements that automatically are enhanced into touch-friendly styled widgets. Here's a slider made with the new HTML5 input type of range, no `data-role` needed. All form elements must always be properly associated with a `label` and the group of form elements be wrapped in a `form` tag.
68+
The framework contains a full set of form elements that automatically are enhanced into touch-friendly styled widgets. Here's a slider made with the new HTML5 input type of range, no `data-role` needed. All form elements must always be properly associated with a `label` and the group of form elements be wrapped in a `form` tag.
6969

7070
```
7171
<form>
@@ -76,28 +76,28 @@ The framework contains a full set of form elements that automatically are enhanc
7676

7777
### Make a button
7878

79-
There are a few ways to make buttons. A common one is to turn a link into a button so it's easy to click. Just start with a link and add a `data-role="button"` attribute to it. You can add an icon with the `data-icon` attribute and optionally set its position with the `data-iconpos` attribute.
79+
There are a few ways to make buttons. A common one is to turn a link into a button so it's easy to click. Just start with a link and add a `data-role="button"` attribute to it. You can add an icon with the `data-icon` attribute and optionally set its position with the `data-iconpos` attribute.
8080

8181
```
8282
<a href="#" data-role="button" data-icon="star">Star button</a>
8383
```
8484

8585
### Choose a theme swatch
8686

87-
jQuery Mobile has a robust theme framework that supports up to 26 sets of toolbar, content and button colors, called a "swatch". You can add a `data-theme="e"` attribute to any of the widgets on this page: page, header, list, input for the slider, or button to turn it yellow. Different swatch letters in default theme from a-e can be used to mix and match swatches.
87+
jQuery Mobile has a robust theme framework that supports up to 26 sets of toolbar, content and button colors, called a "swatch". You can add a `data-theme="e"` attribute to any of the widgets on this page: page, header, list, input for the slider, or button to turn it yellow. Different swatch letters in default theme from a-e can be used to mix and match swatches.
8888

8989
If you add the theme swatch to the page, all the widgets inside the content will automatically inherit the theme (headers and footers don't inherit and default to swatch "a").
9090

9191
```
9292
<a href="#" data-role="button" data-icon="star" data-theme="a">Button</a>
9393
```
9494

95-
If you would like to create a custom theme, you can use [ThemeRoller](http://jquerymobile.com/themeroller/) that allows users to create their own theme through an easy to use drag and drop interface. You will then be able to download and use your newly created theme.
95+
If you would like to create a custom theme, you can use [ThemeRoller](http://jquerymobile.com/themeroller/) that allows users to create their own theme through an easy to use drag and drop interface. You will then be able to download and use your newly created theme.
9696

97-
### Go forth and build something
97+
### Go forth and build something
9898

99-
This guide has provided you with a basic structure for a jQuery Mobile page and a few enhanced elements. You can explore the full [jQuery Mobile documentation](http://jquerymobile.com/demos/1.2.0/) to learn about linking pages, adding animated page transitions, and creating dialogs and popups.
99+
This guide has provided you with a basic structure for a jQuery Mobile page and a few enhanced elements. You can explore the full [jQuery Mobile documentation](http://jquerymobile.com/demos/1.2.0/) to learn about linking pages, adding animated page transitions, and creating dialogs and popups.
100100

101-
If you're more of the type who prefers actually writing JavaScript to build your apps, and you don't want to use the `data-` attribute configuration system, you can take full control of everything and call plugins directly as these are all standard jQuery plugins built with the UI widget factory. Particularly useful information for such cases can be found in the global configuration, events, and methods sections.
101+
If you're more of the type who prefers actually writing JavaScript to build your apps, and you don't want to use the `data-` attribute configuration system, you can take full control of everything and call plugins directly as these are all standard jQuery plugins built with the UI widget factory. Particularly useful information for such cases can be found in the global configuration, events, and methods sections.
102102

103-
Finally, you can read up on scripting pages, generating dynamic pages, and building PhoneGap apps.
103+
Finally, you can read up on scripting pages, generating dynamic pages, and building PhoneGap apps.

0 commit comments

Comments
 (0)