Created
September 3, 2021 07:21
-
-
Save tiagorangel2011/940d543205f252f60a5a5a31edbac60c to your computer and use it in GitHub Desktop.
File for Tryp article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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