Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ The `vex.combined.min.js` file includes:
#### Confirm Demo

One of the simplest ways to use vex is to call `vex.dialog.alert`, `vex.dialog.confirm`, or `vex.dialog.prompt`. In this demo, we're using `vex.dialog.confirm` to ask the user to confirm the answer to a simple question.

```html
<a class="demo-confirm hs-brand-button">Destroy the planet</a>
<div class="demo-result-confirm hs-doc-callout hs-doc-callout-info" style="display: none"></div>
<script>
Expand All @@ -82,7 +82,7 @@ $('.demo-confirm').click(function(){
});
});
</script>

```
Play with this demo:

```javascript
Expand All @@ -101,7 +101,7 @@ vex.dialog.confirm({
#### Login Demo

Here's a more complex demo in which we use `vex.dialog.open` (a more generic method that `alert`, `confirm`, and `prompt` all call internally) to build a login dialog.

```html
<a class="demo-login hs-brand-button">Log in</a>
<div class="demo-result-login hs-doc-callout hs-doc-callout-info" style="display: none"></div>
<script>
Expand All @@ -128,7 +128,7 @@ Here's a more complex demo in which we use `vex.dialog.open` (a more generic met
});
});
</script>

```
Play with this example:

```javascript
Expand Down Expand Up @@ -166,6 +166,7 @@ vex was built by [Adam Schwartz](http://twitter.com/adamfschwartz)


<!-- Resources for the demos -->
```html
<p style="-webkit-transform: translateZ(0)"></p>
<script src="/vex/dist/js/vex.combined.js"></script>
<link rel="stylesheet" href="/vex/dist/css/vex.css" />
Expand All @@ -175,3 +176,4 @@ vex was built by [Adam Schwartz](http://twitter.com/adamfschwartz)
vex.defaultOptions.className = 'vex-theme-os';
})();
</script>
```