Skip to content

Commit

Permalink
Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
lipis committed Oct 21, 2014
1 parent a666e92 commit 61f77bd
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@
<h1>SweetAlert for Bootstrap</h1>
<p>A beautiful replacement for JavaScript's "alert"</p>
<p class="small">
This is just a clone for Bootstrap of the original <a href="http://tristanedwards.me/sweetalert" target="_blank">SweetAlert</a>.
This is just a clone for Bootstrap of the original
<a href="http://tristanedwards.me/sweetalert" target="_blank" onclick="_gaq.push(['_trackEvent', 'exit', 'header', 'Original']);">SweetAlert</a>.
</p>
<p>
<a class="btn btn-outline btn-lg" href="https://github.com/lipis/sweetalert">
<a class="btn btn-outline btn-lg" href="https://github.com/lipis/sweetalert" onclick="_gaq.push(['_trackEvent', 'exit', 'main', 'GitHub']);">
<span class="fa fa-github"></span>
View on GitHub
</a>
Expand All @@ -62,11 +63,11 @@ <h1>SweetAlert for Bootstrap</h1>

<h1>Try any of those!</h1>
<div class="examples">
<button class="btn btn-lg btn-primary sweet-10">Primary</button>
<button class="btn btn-lg btn-info sweet-11">Info</button>
<button class="btn btn-lg btn-success sweet-12">Success</button>
<button class="btn btn-lg btn-warning sweet-13">Warning</button>
<button class="btn btn-lg btn-danger sweet-14">Danger</button>
<button class="btn btn-lg btn-primary sweet-10" onclick="_gaq.push(['_trackEvent', 'example, 'try', 'Primary']);">Primary</button>
<button class="btn btn-lg btn-info sweet-11" onclick="_gaq.push(['_trackEvent', 'example, 'try', 'Info']);">Info</button>
<button class="btn btn-lg btn-success sweet-12" onclick="_gaq.push(['_trackEvent', 'example, 'try', 'Success']);">Success</button>
<button class="btn btn-lg btn-warning sweet-13" onclick="_gaq.push(['_trackEvent', 'example, 'try', 'Warning']);">Warning</button>
<button class="btn btn-lg btn-danger sweet-14" onclick="_gaq.push(['_trackEvent', 'example, 'try', 'Danger']);">Danger</button>
</div>


Expand All @@ -84,7 +85,7 @@ <h2>Original Examples</h2>
<h4>Basic example</h4>
<div class="row">
<div class="col-sm-2 text-center">
<p><button class="btn btn-primary sweet-1">Try It</button></p>
<p><button class="btn btn-primary sweet-1" onclick="_gaq.push(['_trackEvent', 'example', 'try', 'sweet-1']);">Try It</button></p>
</div>
<div class="col-sm-10">
<pre class="code">swal("Here's a message!")</pre>
Expand All @@ -94,7 +95,7 @@ <h4>Basic example</h4>
<h4>A title with a text under</h4>
<div class="row">
<div class="col-sm-2 text-center">
<p><button class="btn btn-primary sweet-2">Try It</button></p>
<p><button class="btn btn-primary sweet-2" onclick="_gaq.push(['_trackEvent', 'example', 'try', 'sweet-2']);">Try It</button></p>
</div>
<div class="col-sm-10">
<pre>swal("Here's a message!", "It's pretty, isn't it?")</pre>
Expand All @@ -104,7 +105,7 @@ <h4>A title with a text under</h4>
<h4>A success message!</h4>
<div class="row">
<div class="col-sm-2 text-center">
<p><button class="btn btn-primary sweet-3">Try It</button></p>
<p><button class="btn btn-primary sweet-3" onclick="_gaq.push(['_trackEvent', 'example', 'try', 'sweet-3']);">Try It</button></p>
</div>
<div class="col-sm-10">
<pre>swal("Good job!", "You clicked the button!", "success")</pre>
Expand All @@ -114,7 +115,7 @@ <h4>A success message!</h4>
<h4>A warning message, with a function attached to the "Confirm" button...</h4>
<div class="row">
<div class="col-sm-2 text-center">
<p><button class="btn btn-primary sweet-4">Try It</button></p>
<p><button class="btn btn-primary sweet-4" onclick="_gaq.push(['_trackEvent', 'example', 'try', 'sweet-4']);">Try It</button></p>
</div>
<div class="col-sm-10">
<pre>
Expand All @@ -136,7 +137,7 @@ <h4>A warning message, with a function attached to the "Confirm" button...</h4>
<h4>...and by passing a parameter, you can execute something else for "Cancel".</h4>
<div class="row">
<div class="col-sm-2 text-center">
<p><button class="btn btn-primary sweet-5">Try It</button></p>
<p><button class="btn btn-primary sweet-5" onclick="_gaq.push(['_trackEvent', 'example', 'try', 'sweet-5']);">Try It</button></p>
</div>
<div class="col-sm-10">
<pre>
Expand Down Expand Up @@ -164,7 +165,7 @@ <h4>...and by passing a parameter, you can execute something else for "Cancel".<
<h4>A message with a custom icon</h4>
<div class="row">
<div class="col-sm-2 text-center">
<p><button class="btn btn-primary sweet-6">Try It</button></p>
<p><button class="btn btn-primary sweet-6" onclick="_gaq.push(['_trackEvent', 'exit', 'footer', 'Lipis']);">Try It</button></p>
</div>
<div class="col-sm-10">
<pre>
Expand Down

0 comments on commit 61f77bd

Please sign in to comment.