Skip to content

Commit 30e5246

Browse files
committed
Update banner instructions
1 parent 17353cc commit 30e5246

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

src/content/pages/banner.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Inserts a full-width banner at the top of the page:
1313
```html
1414
<script src="https://keepandroidopen.org/banner.js"></script>
1515
```
16+
<script src="/banner.js"></script>
1617

1718
## Query parameters
1819

@@ -28,14 +29,6 @@ Customize the banner by appending query parameters to the script URL:
2829

2930
## Examples
3031

31-
Basic usage, displays at the top of the page:
32-
33-
```html
34-
<script src="https://keepandroidopen.org/banner.js"></script>
35-
```
36-
37-
<script src="/banner.js"></script>
38-
3932
French, mini size, inserted into a specific element:
4033

4134
```html
@@ -53,6 +46,10 @@ Link to a custom page, no close button:
5346
<script src="https://keepandroidopen.org/banner.js?link=https://example.com/android&hidebutton=off"></script>
5447
```
5548

49+
## Source
50+
51+
The source for the banner can be found at [https://github.com/keepandroidopen/keepandroidopen.github.io/blob/main/public/banner.js](https://github.com/keepandroidopen/keepandroidopen.github.io/blob/main/public/banner.js). Suggestions for improvement are welcome!
52+
5653
<div id="my-banner-custom"></div>
5754
<script src="/banner.js?link=https://example.com/android&hidebutton=off&size=mini&id=my-banner-custom"></script>
5855

0 commit comments

Comments
 (0)