Skip to content

Commit

Permalink
Merge pull request #1 from xsolla/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
katerinapsperm authored Feb 9, 2017
2 parents d6a1b07 + 7dde018 commit 2088511
Show file tree
Hide file tree
Showing 12 changed files with 596 additions and 351 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ crashlytics.properties
crashlytics-build.properties
fabric.properties

public/
public/
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Changelog

## 1.1.0 - 2017-02-09

- [feature] Event handler after widget was loaded
- [feature] Event handler after close button was clicked
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ To use the SDK in the browser, simply add the following script tag to your
HTML pages:

```html
<script src="https://static.xsolla.com/xsolla-login/1.0.1/js-sdk.min.js"></script>
<script src="https://static.xsolla.com/xsolla-login/1.1.0/xl.min.js"></script>
```
### Using Bower

Expand Down Expand Up @@ -97,5 +97,19 @@ login | user's login
pass | user's password
rememberMe | Whether browser should remember this user's auth

### Events

* **load** — Event after widget was loaded
* **close** — Event after close button was clicked (by default widget will be closed, but if you pass your own function you should close it yourself)

You can access list of event using XL.eventTypes object.

#### Example

``` javascript
XL.on(XL.eventTypes.LOAD, function () {
console.log('loaded');
});
```


11 changes: 8 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
"authors": [
"Arseny Korotaev <a.korotaev@xsolla.com>"
],
"description": "",
"main": "",
"description": "The library allows you to quickly integrate Xsolla Login into your project.",
"keywords": [
"xsolla",
"login",
"sdk",
"js"
],
"main": "dist/xl.js",
"moduleType": [],
"license": "MIT",
"homepage": "",
"private": true,
"ignore": [
"**/.*",
"node_modules",
Expand Down
Loading

0 comments on commit 2088511

Please sign in to comment.