Skip to content

Commit

Permalink
Amending indentation or HTML properties
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronCritchley committed Oct 12, 2015
1 parent bd15e2e commit 0a045d9
Show file tree
Hide file tree
Showing 16 changed files with 72 additions and 72 deletions.
8 changes: 4 additions & 4 deletions ads/a9.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ limitations under the License.

```html
<amp-ad width=300 height=250
type="a9"
data-aax_size="300x250"
data-aax_pubname="test123"
data-aax_src="302">
type="a9"
data-aax_size="300x250"
data-aax_pubname="test123"
data-aax_src="302">
</amp-ad>
```

Expand Down
8 changes: 4 additions & 4 deletions ads/adreactor.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ limitations under the License.

```html
<amp-ad width=728 height=90
type="adreactor"
data-pid=790
data-zid=9
data-custom3="No Type">
type="adreactor"
data-pid=790
data-zid=9
data-custom3="No Type">
</amp-ad>
```

Expand Down
6 changes: 3 additions & 3 deletions ads/adsense.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ limitations under the License.

```html
<amp-ad width=300 height=200
type="adsense"
data-ad-client="ca-pub-8125901705757971"
data-ad-slot="7783467241">
type="adsense"
data-ad-client="ca-pub-8125901705757971"
data-ad-slot="7783467241">
</amp-ad>
```

Expand Down
4 changes: 2 additions & 2 deletions ads/adtech.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ limitations under the License.

```html
<amp-ad width=300 height=250
type="adtech"
src="https://adserver.adtechus.com/addyn/3.0/5280.1/2274008/0/-1/ADTECH;size=300x250;key=plumber;alias=careerbear-ros-middle1;loc=300;;target=_blank;grp=27980912;misc=3767074">
type="adtech"
src="https://adserver.adtechus.com/addyn/3.0/5280.1/2274008/0/-1/ADTECH;size=300x250;key=plumber;alias=careerbear-ros-middle1;loc=300;;target=_blank;grp=27980912;misc=3767074">
</amp-ad>
```

Expand Down
10 changes: 5 additions & 5 deletions ads/doubleclick.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ limitations under the License.

```html
<amp-ad width=320 height=50
type="doubleclick"
data-slot="/4119129/mobile_ad_banner">
type="doubleclick"
data-slot="/4119129/mobile_ad_banner">
</amp-ad>
```

### With additional targeting

```html
<amp-ad width=320 height=50
type="doubleclick"
data-slot="/4119129/mobile_ad_banner"
json='{"targeting":{"sport":["rugby","cricket"]},"categoryExclusion":"health","tagForChildDirectedTreatment":1}'>
type="doubleclick"
data-slot="/4119129/mobile_ad_banner"
json='{"targeting":{"sport":["rugby","cricket"]},"categoryExclusion":"health","tagForChildDirectedTreatment":1}'>
</amp-ad>
```

Expand Down
10 changes: 5 additions & 5 deletions builtins/amp-ad.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ The `<amp-ad>` requires width and height values to be specified like all
resources in AMP. It requires a `type` argument that select what ad network is displayed. All `data-*` attributes on the tag are automatically passed as arguments to the code that eventually renders the ad. What `data-` attributes are required for a given type of network depends and must be documented with the ad network.
```html
<amp-ad width=300 height=250
type="a9"
data-aax_size="300x250"
data-aax_pubname="test123"
data-aax_src="302">
type="a9"
data-aax_size="300x250"
data-aax_pubname="test123"
data-aax_src="302">
</amp-ad>
```
#### Attributes
Expand All @@ -61,7 +61,7 @@ Optional attribute to pass configuration to the ad as an arbitrarily complex JSO
Optionally `amp-ad` supports a child element with the `placeholder` attribute. If supported by the ad network, this element if shown if no ad is available for this slot.
```html
<amp-ad width=300 height=250
type="foo">
type="foo">
<div placeholder>Have a great day!</div>
</amp-ad>
```
Expand Down
2 changes: 1 addition & 1 deletion builtins/amp-pixel.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ may make a request to something like `https://foo.com/pixel?host=example.com`.

#### Styling

`amp-pixel` should not be styled.
`amp-pixel` should not be styled.
34 changes: 17 additions & 17 deletions docs/include_features.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ An example `amp-iframe` from the

```html
<amp-iframe width=300 height=300
sandbox="allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox"
layout="responsive"
frameborder="0"
src="https://www.google.com/maps/embed/v1/place?key=AIzaSyDG9YXIhKBhqclZizcSzJ0ROiE0qgVfwzI&q=Alameda,%20CA">
sandbox="allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox"
layout="responsive"
frameborder="0"
src="https://www.google.com/maps/embed/v1/place?key=AIzaSyDG9YXIhKBhqclZizcSzJ0ROiE0qgVfwzI&q=Alameda,%20CA">
</amp-iframe>
```

Expand Down Expand Up @@ -123,8 +123,8 @@ Example `amp-twitter` from the
[twitter.amp example](../examples/twitter.amp.html):
```html
<amp-twitter width=390 height=50
layout="responsive"
data-tweetid="638793490521001985">
layout="responsive"
data-tweetid="638793490521001985">
</amp-twitter>
```

Expand Down Expand Up @@ -188,9 +188,9 @@ Z1q71gFeRqM is the video id.
Use `layout="responsive"` to yield correct layouts for 16:9 aspect ratio videos:
```html
<amp-youtube
video-id="mGENRKrdoGY"
layout="responsive"
width="480" height="270">
video-id="mGENRKrdoGY"
layout="responsive"
width="480" height="270">
</amp-youtube>
```
## Include an audio resource
Expand Down Expand Up @@ -266,21 +266,21 @@ The `type` identifies the ad network's template.
Different ad types require different `data-*` attributes.
```html
<amp-ad width=300 height=250
type="a9"
data-aax_size="300x250"
data-aax_pubname="test123"
data-aax_src="302">
type="a9"
data-aax_size="300x250"
data-aax_pubname="test123"
data-aax_src="302">
</amp-ad>
```
If supported by the ad network,
include a `placeholder`
to be shown if no ad is available:
```html
<amp-ad width=300 height=250
type="a9"
data-aax_size="300x250"
data-aax_pubname="test123"
data-aax_src="302">
type="a9"
data-aax_size="300x250"
data-aax_pubname="test123"
data-aax_src="302">
<div placeholder>Have a great day!</div>
</amp-ad>
```
2 changes: 1 addition & 1 deletion extensions/amp-fit-text/amp-fit-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The `amp-fit-text` accepts one of the following `layout` values: `fixed`,
For example:
```html
<amp-fit-text width="300" height="200" layout="responsive"
max-font-size="52">
max-font-size="52">
Lorem ipsum dolor sit amet, has nisl nihil convenire et, vim at aeque
inermis reprehendunt.
</amp-fit-text>
Expand Down
8 changes: 4 additions & 4 deletions extensions/amp-iframe/amp-iframe.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ Displays an iframe.
Example:
```html
<amp-iframe width=300 height=300
sandbox="allow-scripts"
layout="responsive"
frameborder="0"
src="https://foo.com/iframe">
sandbox="allow-scripts"
layout="responsive"
frameborder="0"
src="https://foo.com/iframe">
</amp-iframe>
```

Expand Down
8 changes: 4 additions & 4 deletions extensions/amp-image-lightbox/amp-image-lightbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ viewport, until it is closed again by the user.
The typical scenario looks like this:
```html
<amp-img
on="tap:lightbox1"
role="button"
tabindex="0"
src="image1" width=200 height=100></amp-img>
on="tap:lightbox1"
role="button"
tabindex="0"
src="image1" width=200 height=100></amp-img>
<amp-image-lightbox id="lightbox1" layout="nodisplay"></amp-image-lightbox>
```

Expand Down
8 changes: 4 additions & 4 deletions extensions/amp-instagram/amp-instagram.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ Displays an instagram embed.
Example:
```html
<amp-instagram
shortcode="fBwFP"
width="400"
height="400"
layout="responsive">
shortcode="fBwFP"
width="400"
height="400"
layout="responsive">
</amp-instagram>
```

Expand Down
6 changes: 3 additions & 3 deletions extensions/amp-twitter/amp-twitter.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Displays a Twitter Tweet.
Example:
```html
<amp-twitter width=486 height=657
layout="responsive"
data-tweetid="585110598171631616"
data-cards="hidden">
layout="responsive"
data-tweetid="585110598171631616"
data-cards="hidden">
```

**CAVEATS**
Expand Down
6 changes: 3 additions & 3 deletions extensions/amp-youtube/amp-youtube.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Displays a Youtube video.
Example:
```html
<amp-youtube
video-id="mGENRKrdoGY"
layout="responsive"
width="480" height="270"></amp-youtube>
video-id="mGENRKrdoGY"
layout="responsive"
width="480" height="270"></amp-youtube>
```


Expand Down
8 changes: 4 additions & 4 deletions spec/amp-html-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ example:
</amp-img>

<amp-img
class="grey-placeholder"
src="https://placekitten.com/g/500/300"
width=500
height=300>
class="grey-placeholder"
src="https://placekitten.com/g/500/300"
width=500
height=300>
</amp-img>
</body>
</html>
Expand Down
16 changes: 8 additions & 8 deletions spec/amp-html-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,15 @@ Example: Here we have 2 images with mutually exclusive media queries. Depending

```html
<amp-img
media="(min-width: 650px)"
src="wide.jpg"
width=466
height=355 layout="responsive" ></amp-img>
media="(min-width: 650px)"
src="wide.jpg"
width=466
height=355 layout="responsive" ></amp-img>
<amp-img
media="(max-width: 649px)"
src="narrow.jpg"
width=527
height=193 layout="responsive" ></amp-img>
media="(max-width: 649px)"
src="narrow.jpg"
width=527
height=193 layout="responsive" ></amp-img>
```

### `on`
Expand Down

0 comments on commit 0a045d9

Please sign in to comment.