Skip to content

Instantly share code, notes, and snippets.

@tiagorangel2011
Created September 3, 2021 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tiagorangel2011/940d543205f252f60a5a5a31edbac60c to your computer and use it in GitHub Desktop.
Save tiagorangel2011/940d543205f252f60a5a5a31edbac60c to your computer and use it in GitHub Desktop.
File for Tryp article
<!DOCTYPE html>
<html>
<head>
<script src="https://trypaddonserver.glitch.me/files/javascript/v1.js"></script>
<script>
function getvalues() {
var values = trypaddons.comments("get");
var commentor = values.comments;
var rat = values.rating;
alert("Comments: " + commentor + "\nRating:" + rat);
}
</script>
</head>
<body>
<button onclick="trypaddons.comments('show');">
SHOW
</button>
<button onclick="trypaddons.comments('hide');">
HIDE
</button>
<button onclick="getvalues();">
RETURN VALUES
</button>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment