Skip to content
This repository was archived by the owner on Sep 24, 2020. It is now read-only.

Commit f89f638

Browse files
committed
update the sdk to version 1.1.1-beta
1 parent ae5c60e commit f89f638

File tree

4 files changed

+41
-23
lines changed

4 files changed

+41
-23
lines changed

README.md

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,40 @@
1-
# Instabug web SDK
1+
# Instabug web SDK 1.1.1-beta
22

3-
Instabug web sdk is a javascript library to add ability to report bugs from your website and report it to Instabug dashboard.
3+
## Overview
4+
Instabug web sdk is a javascript library provides an easy way to report bugs from your website or webapp.
45

5-
### Install Instabug
6-
to include instabug web sdk to your website just copy the below lines into the end of your page `<body>` tag
6+
To use the sdk you need to have `application_token`, you can get it from your [Instabug Dashboard](https://dashboard.instabug.com)
7+
8+
## Installation
9+
### Requirements
10+
Instabug Web SDK requires no special requirements, and has no dependecies on other liberaries or frameworks, and has been tested in all modern browsers with `LocalStorage` capability
11+
12+
#### Manual Installation
13+
You can include instabug web sdk to your website just copy the below lines into the end of your page `<body>` tag
714
```html
815
<script src='https://s3.amazonaws.com/instabug-pro/sdk_releases/instabugsdk-1.1.1.min.js'></script>
16+
```
17+
#### `bower` installation (recommended)
18+
You can install the SDK using
19+
```shell
20+
bower install instabug-sdk --save
21+
```
22+
### Initialize the SDK
23+
After including the sdk js file, you can start it by invoke the `.init()` method and pass the application token as parameter
24+
```html
925
<script>
1026
ibgSdk.init({
1127
token: <INSTABUG_APP_TOKEN>
1228
});
1329
</script>
1430
```
1531

16-
### API Documentation
32+
### API Refrence
1733

1834
#### `.init(options)`
19-
the init function is used to used to inintialize the sdk for the first time, it accepts the options object as parameter,
20-
the `options` object in now accept only the `token`.
35+
the init function is used to used to initialize the SDK and render the report bug button.
36+
##### Parameters
37+
**options**: `Object` _required_ - pass the application `token`
2138

2239
#### `.disable()`
2340
used to hide the report bug button

css/styles.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
body {
22
min-height: 75rem; /* Can be removed; just added for demo purposes */
3+
font-family: "Helvetica Neue",Arial,sans-serif;
34
}
45

56
.navbar {

index.html

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
1515

1616
<!-- Custom styles for this template -->
1717
<link href="css/styles.css" rel="stylesheet">
18-
<script id='instabugSDK'>
19-
window._instabug = window._instabug || {
20-
token: 'c48e32c9888e063a107eb5d6ad75e70a'
21-
}
22-
</script>
23-
<script src='https://s3.amazonaws.com/instabug-staging/sdk_releases/instabugsdk-custom-1.0.0.min.js?1488297380'></script>
2418
</head>
2519

2620
<body>
@@ -53,7 +47,7 @@ <h4 class="text-white">Reach Us</h4>
5347

5448
<section class="jumbotron text-center">
5549
<div class="container">
56-
<h1 class="jumbotron-heading">Instabug Web SDK version 1.0</h1>
50+
<h1 class="jumbotron-heading">Instabug Web SDK <small><code class="text-danger">1.1.1-beta</code></small></h1>
5751
<p class="lead text-muted">The top apps in the world rely on Instabug for beta testing, user engagement and crash reporting.
5852
Gather feedback from your beta testers and have live conversations with your users.</p>
5953
<p>
@@ -68,14 +62,17 @@ <h1 class="jumbotron-heading">Instabug Web SDK version 1.0</h1>
6862
<div class="row">
6963
<div class="card">
7064
<img data-src="holder.js/100px280?random=yes" alt="Card image cap">
65+
<h3>Sample Header</h3>
7166
<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reiciendis, eum error, sequi non iure asperiores a blanditiis eos aliquid omnis voluptatibus sit illum repellendus provident ad, id impedit. Eos, mollitia!</p>
7267
</div>
7368
<div class="card">
74-
<img data-src="holder.js/100px280?random=yes" alt="Card image cap">
69+
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d361451.7886363564!2d-122.24483737767562!3d37.53470456291936!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x808f778c55555555%3A0xa4f25c571acded3f!2sSan+Francisco+International+Airport+(SFO)!5e0!3m2!1sen!2seg!4v1493565982714" width="355" height="280" frameborder="0" style="border:0" allowfullscreen></iframe>
70+
<h3>Map</h3>
7571
<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reiciendis, eum error, sequi non iure asperiores a blanditiis eos aliquid omnis voluptatibus sit illum repellendus provident ad, id impedit. Eos, mollitia!</p>
7672
</div>
7773
<div class="card">
78-
<img data-src="holder.js/100px280?random=yes" alt="Card image cap">
74+
<iframe width="355" height="280" src="https://www.youtube.com/embed/2MpUj-Aua48" frameborder="0" allowfullscreen></iframe>
75+
<h3>Youtube Video</h3>
7976
<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reiciendis, eum error, sequi non iure asperiores a blanditiis eos aliquid omnis voluptatibus sit illum repellendus provident ad, id impedit. Eos, mollitia!</p>
8077
</div>
8178
<div class="card">
@@ -101,10 +98,6 @@ <h1 class="jumbotron-heading">Instabug Web SDK version 1.0</h1>
10198
</p>
10299
</div>
103100
</footer>
104-
105-
<!-- Bootstrap core JavaScript
106-
================================================== -->
107-
<!-- Placed at the end of the document so the pages load faster -->
108101
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
109102
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
110103
<script src="js/holder.min.js"></script>
@@ -114,5 +107,11 @@ <h1 class="jumbotron-heading">Instabug Web SDK version 1.0</h1>
114107
});
115108
</script>
116109
<script src="js/bootstrap.min.js"></script>
110+
<script src="js/instabug-sdk.min.js"></script>
111+
<script>
112+
ibgSdk.init({
113+
token: 'c48e32c9888e063a107eb5d6ad75e70a'
114+
});
115+
</script>
117116
</body>
118117
</html>

js/instabug-sdk.min.js

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)