mirror of
https://github.com/SophiaAtkinson/steamwidgets-web.git
synced 2025-06-26 21:37:42 -07:00
Examples
This commit is contained in:
@ -25,6 +25,10 @@ APP_PACKAGE="danielbrendel/steamwidgets-web"
|
||||
APP_SHOWNPMUSAGE=true
|
||||
APP_NPMPACKAGENAME=""
|
||||
APP_NPMPACKAGEURL=""
|
||||
APP_EXAMPLE_APP=""
|
||||
APP_EXAMPLE_SERVER=""
|
||||
APP_EXAMPLE_USER=""
|
||||
APP_EXAMPLE_WIDGET=""
|
||||
|
||||
STEAM_API_KEY=""
|
||||
|
||||
|
@ -65,13 +65,13 @@
|
||||
When referenced the required Steam App module, the minimum code to render a widget is as follows:<br/>
|
||||
<pre>
|
||||
<code class="language-html">
|
||||
<steam-app appid="620"></steam-app>
|
||||
<steam-app appid="{{ env('APP_EXAMPLE_APP') }}"></steam-app>
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<br/><br/>
|
||||
This renders the following widget:<br/>
|
||||
<steam-app appid="620"></steam-app>
|
||||
<steam-app appid="{{ env('APP_EXAMPLE_APP') }}"></steam-app>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -181,7 +181,7 @@
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
let widget = new SteamApp('#app-widget', {
|
||||
appid: '620',
|
||||
appid: '{{ env('APP_EXAMPLE_APP') }}',
|
||||
//You can specify the same attributes as shown in the table above
|
||||
});
|
||||
});
|
||||
@ -239,13 +239,13 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
When referenced the required Steam Server module, the minimum code to render a widget is as follows:<br/>
|
||||
<pre>
|
||||
<code class="language-html">
|
||||
<steam-server addr="ip:port"></steam-server>
|
||||
<steam-server addr="{{ env('APP_EXAMPLE_SERVER') }}"></steam-server>
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<br/><br/>
|
||||
This renders the following widget:<br/>
|
||||
<steam-server addr="ip:port"></steam-server>
|
||||
<steam-server addr="{{ env('APP_EXAMPLE_SERVER') }}"></steam-server>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -350,7 +350,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
let widget = new SteamServer('#server-widget', {
|
||||
addr: 'ip:port',
|
||||
addr: '{{ env('APP_EXAMPLE_SERVER') }}',
|
||||
//You can specify the same attributes as shown in the table above
|
||||
});
|
||||
});
|
||||
@ -408,13 +408,13 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
When referenced the required Steam User module, the minimum code to render a widget is as follows:<br/>
|
||||
<pre>
|
||||
<code class="language-html">
|
||||
<steam-user steamid="id"></steam-user>
|
||||
<steam-user steamid="{{ env('APP_EXAMPLE_USER') }}"></steam-user>
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<br/><br/>
|
||||
This renders the following widget:<br/>
|
||||
<steam-user steamid="steamid"></steam-user>
|
||||
<steam-user steamid="{{ env('APP_EXAMPLE_USER') }}"></steam-user>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -509,7 +509,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
let widget = new SteamUser('#user-widget', {
|
||||
steamid: 'id',
|
||||
steamid: '{{ env('APP_EXAMPLE_USER') }}',
|
||||
//You can specify the same attributes as shown in the table above
|
||||
});
|
||||
});
|
||||
@ -565,13 +565,13 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
When referenced the required Steam Workshop module, the minimum code to render a widget is as follows:<br/>
|
||||
<pre>
|
||||
<code class="language-html">
|
||||
<steam-workshop itemid="id"></steam-workshop>
|
||||
<steam-workshop itemid="{{ env('APP_EXAMPLE_WORKSHOP') }}"></steam-workshop>
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<br/><br/>
|
||||
This renders the following widget:<br/>
|
||||
<steam-workshop itemid="itemid"></steam-workshop>
|
||||
<steam-workshop itemid="{{ env('APP_EXAMPLE_WORKSHOP') }}"></steam-workshop>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -646,7 +646,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
let widget = new SteamWorkshop('#workshop-widget', {
|
||||
itemid: 'id',
|
||||
itemid: '{{ env('APP_EXAMPLE_WORKSHOP') }}',
|
||||
//You can specify the same attributes as shown in the table above
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user