diff --git a/.env.example b/.env.example
index f86dd46..3bd69ab 100644
--- a/.env.example
+++ b/.env.example
@@ -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=""
diff --git a/app/views/index.php b/app/views/index.php
index 75226e9..4065b2f 100644
--- a/app/views/index.php
+++ b/app/views/index.php
@@ -65,13 +65,13 @@
When referenced the required Steam App module, the minimum code to render a widget is as follows:
-<steam-app appid="620"></steam-app>
+<steam-app appid="{{ env('APP_EXAMPLE_APP') }}"></steam-app>
@@ -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:
-<steam-server addr="ip:port"></steam-server>
+<steam-server addr="{{ env('APP_EXAMPLE_SERVER') }}"></steam-server>
@@ -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:
-<steam-user steamid="id"></steam-user>
+<steam-user steamid="{{ env('APP_EXAMPLE_USER') }}"></steam-user>
@@ -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:
-<steam-workshop itemid="id"></steam-workshop>
+<steam-workshop itemid="{{ env('APP_EXAMPLE_WORKSHOP') }}"></steam-workshop>
@@ -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 }); });