Skip to content

Commit

Permalink
remove useless info
Browse files Browse the repository at this point in the history
  • Loading branch information
svenpaulsen authored Apr 15, 2018
1 parent 8213af4 commit 5d86bf2
Showing 1 changed file with 34 additions and 36 deletions.
70 changes: 34 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,45 +124,43 @@ To add the TSViewer to your site, simply include jQuery and the plugin on a page
<script src="jquery.ts3viewer.js"></script>

<script>
$("#tsviewer").tsviewer({
// mandatory server address
host: "84.200.62.248",
port: "9987",
// optional tooltip patterns
serverTip: "Clients: $users/$slots",
channelTip: "Codec: $codec",
clientTip: "Version: $version on $platform",
// optional callbacks
onNode: function(elem, node) {
// your code
},
onReady: function(data, count) {
// your code
},
onError: function(error) {
// your code
}
});
$("#refresh").click(function() {
// shortcut to refresh the tree
$("#tsviewer").tsviewerRefresh(true);
});
$("#expand").click(function() {
// shortcut to expand all nodes
$("#tsviewer").tsviewerExpand();
});
$("#collapse").click(function() {
// shortcut to collapse all nodes
$("#tsviewer").tsviewerCollapse();
});
$("#tsviewer").tsviewer({
// mandatory server address
host: "84.200.62.248",
port: "9987",
// optional tooltip patterns
serverTip: "Clients: $users/$slots",
channelTip: "Codec: $codec",
clientTip: "Version: $version on $platform",
// optional callbacks
onNode: function(elem, node) {
// your code
},
onReady: function(data, count) {
// your code
},
onError: function(error) {
// your code
}
});
$("#refresh").click(function() {
// shortcut to refresh the tree
$("#tsviewer").tsviewerRefresh(true);
});
$("#expand").click(function() {
// shortcut to expand all nodes
$("#tsviewer").tsviewerExpand();
});
$("#collapse").click(function() {
// shortcut to collapse all nodes
$("#tsviewer").tsviewerCollapse();
});
</script>
```

A working example can be found here on JSFiddle.

### License
Copyright &copy; Planet TeamSpeak.<br>
Licensed under the MIT license.

0 comments on commit 5d86bf2

Please sign in to comment.