Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
f00d4tehg0dz committed Jan 30, 2022
1 parent 026821e commit 28e2336
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8"/>
<title>com.f00d4tehg0dz.cookieclicker</title>
<link rel="stylesheet" href="css/sdpi.css">
<script src="js/jquery-3.3.1.js"></script>
<script src="js/common.js"></script>
</head>

<body>
<div class="sdpi-wrapper">
<div class="sdpi-item">
<div class="sdpi-item-label">Instructions</div>
<details class="sdpi-item-value">
<p>Click the cookie to make more cookies<br>
Cookie Title upgrades as you reach cookie clicker milestones <br></p>
<p>You can learn more about this plugin by visiting its Github
page by <a
href="#"
onclick="openGithub()">clicking here.</a>
</details>
</div>
</div>
<script src="js/jquery-3.3.1.js"></script>
<script>
let uuid = "",
actionName = "";

if ($SD) {
$SD.on('connected', function (jsonObj) {
uuid = jsonObj['uuid'];
if (jsonObj.hasOwnProperty('actionInfo')) {
actionName = jsonObj.actionInfo.action;
}
let settings = $SD.actionInfo.payload.settings;
});
}

$(document).ready(function () {

$("#updateButton").click(function () {

if ($SD && $SD.connection) {

$SD.api.sendToPlugin(uuid, actionName, payload);
}
});
function openGithub() {
$SD.api.openUrl($SD.actionInfo.context, "https://github.com/f00d4tehg0dz/elgato-streamdeck-cookie-clicker")
}
});

</script>

</body>

</html>
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# CookieCLicker Unofficial Plugin for Elgato Streamdeck
# CookieClicker Unofficial Plugin for Elgato Streamdeck

Click/Tap the CookieClicker

This an extension for the [ElGato-StreamDeck](https://www.elgato.com/en/gaming/stream-deck).

## Screenshot

![screencap.png](doc/screencap.png)
![screencap.png](doc/screencap.PNG)

Please report any issues you see on the project's Github page. I welcome any feedback.

Expand All @@ -16,6 +16,8 @@ Download from Release folder [Release Folder](Release/com.f00d4tehg0dz.cookiecli

Double click to install to StreamDeck.

## Debugging

You can debug the Javascript plugin using Google Chrome's web developer tools. In order to do so, you first need to enable the HTML remote debugger in Stream Deck:

- on macOS, you will need to run the following command line in the Terminal:
Expand Down
2 changes: 1 addition & 1 deletion com.f00d4tehg0dz.cookieclicker.sdPlugin/cookieclicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}
});
function openGithub() {
$SD.api.openUrl($SD.actionInfo.context, "https://github.com/f00d4tehg0dz/Doge-Coin-Plugin-for-Eglato-Streamdeck")
$SD.api.openUrl($SD.actionInfo.context, "https://github.com/f00d4tehg0dz/elgato-streamdeck-cookie-clicker")
}
});

Expand Down

0 comments on commit 28e2336

Please sign in to comment.