This commit is contained in:
Daniel Brendel
2023-05-12 14:03:02 +02:00
parent b2f5eecbf1
commit 20d4b03628
11 changed files with 538 additions and 123 deletions

View File

@ -184,7 +184,7 @@
document.addEventListener('DOMContentLoaded', function() {
let widget = new SteamApp('#app-widget', {
appid: '{{ env('APP_EXAMPLE_APP') }}',
//You can specify the same attributes as shown in the table above
//You can specify the same attributes as shown in the table above as well as events (see below)
});
});
</script>
@ -229,6 +229,33 @@ document.addEventListener('DOMContentLoaded', function() {
</table>
</p>
<p>
<br/>The following events are available for a Steam App object:<br/>
<table>
<thead>
<tr></tr>
<tr></tr>
</thead>
<tbody>
<tr>
<td><strong>Event</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr class="tr-colored">
<td>events.onInit(e)</td>
<td>Called when the widget is initialized</td>
</tr>
<tr>
<td>events.onCompleted(e)</td>
<td>Called when the widget has finished loading</td>
</tr>
</tbody>
</table>
</p>
<hr/>
</div>
@ -353,7 +380,7 @@ document.addEventListener('DOMContentLoaded', function() {
document.addEventListener('DOMContentLoaded', function() {
let widget = new SteamServer('#server-widget', {
addr: '{{ env('APP_EXAMPLE_SERVER') }}',
//You can specify the same attributes as shown in the table above
//You can specify the same attributes as shown in the table above as well as events (see below)
});
});
&lt;/script&gt;
@ -398,6 +425,33 @@ document.addEventListener('DOMContentLoaded', function() {
</table>
</p>
<p>
<br/>The following events are available for a Steam Server object:<br/>
<table>
<thead>
<tr></tr>
<tr></tr>
</thead>
<tbody>
<tr>
<td><strong>Event</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr class="tr-colored">
<td>events.onInit(e)</td>
<td>Called when the widget is initialized</td>
</tr>
<tr>
<td>events.onCompleted(e)</td>
<td>Called when the widget has finished loading</td>
</tr>
</tbody>
</table>
</p>
<hr/>
</div>
@ -512,7 +566,7 @@ document.addEventListener('DOMContentLoaded', function() {
document.addEventListener('DOMContentLoaded', function() {
let widget = new SteamUser('#user-widget', {
steamid: '{{ env('APP_EXAMPLE_USER') }}',
//You can specify the same attributes as shown in the table above
//You can specify the same attributes as shown in the table above as well as events (see below)
});
});
&lt;/script&gt;
@ -556,6 +610,33 @@ document.addEventListener('DOMContentLoaded', function() {
</tbody>
</table>
</p>
<p>
<br/>The following events are available for a Steam User object:<br/>
<table>
<thead>
<tr></tr>
<tr></tr>
</thead>
<tbody>
<tr>
<td><strong>Event</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr class="tr-colored">
<td>events.onInit(e)</td>
<td>Called when the widget is initialized</td>
</tr>
<tr>
<td>events.onCompleted(e)</td>
<td>Called when the widget has finished loading</td>
</tr>
</tbody>
</table>
</p>
</div>
<div class="content-section">
@ -674,7 +755,7 @@ document.addEventListener('DOMContentLoaded', function() {
document.addEventListener('DOMContentLoaded', function() {
let widget = new SteamWorkshop('#workshop-widget', {
itemid: '{{ env('APP_EXAMPLE_WORKSHOP') }}',
//You can specify the same attributes as shown in the table above
//You can specify the same attributes as shown in the table above as well as events (see below)
});
});
&lt;/script&gt;
@ -718,6 +799,33 @@ document.addEventListener('DOMContentLoaded', function() {
</tbody>
</table>
</p>
<p>
<br/>The following events are available for a Steam Workshop object:<br/>
<table>
<thead>
<tr></tr>
<tr></tr>
</thead>
<tbody>
<tr>
<td><strong>Event</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr class="tr-colored">
<td>events.onInit(e)</td>
<td>Called when the widget is initialized</td>
</tr>
<tr>
<td>events.onCompleted(e)</td>
<td>Called when the widget has finished loading</td>
</tr>
</tbody>
</table>
</p>
</div>
<div class="content-section">
@ -831,7 +939,7 @@ document.addEventListener('DOMContentLoaded', function() {
document.addEventListener('DOMContentLoaded', function() {
let widget = new SteamGroup('#group-widget', {
group: '{{ env('APP_EXAMPLE_GROUP') }}',
//You can specify the same attributes as shown in the table above
//You can specify the same attributes as shown in the table above as well as events (see below)
});
});
&lt;/script&gt;
@ -875,4 +983,31 @@ document.addEventListener('DOMContentLoaded', function() {
</tbody>
</table>
</p>
<p>
<br/>The following events are available for a Steam Group object:<br/>
<table>
<thead>
<tr></tr>
<tr></tr>
</thead>
<tbody>
<tr>
<td><strong>Event</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr class="tr-colored">
<td>events.onInit(e)</td>
<td>Called when the widget is initialized</td>
</tr>
<tr>
<td>events.onCompleted(e)</td>
<td>Called when the widget has finished loading</td>
</tr>
</tbody>
</table>
</p>
</div>