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
// @endpoint https://sandbox.senx.io/api/v0/exec | |
// @preview discovery | |
// @theme dark | |
[ 'red' 'yellow' 'green' 'white' ] 'color' STORE | |
1 4 <% | |
'i' STORE | |
NEWGTS | |
1 30 <% |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>File Download Example</title> | |
<script> | |
function downloadJSON(jsonData) { | |
fileName = "data.json"; | |
// Convert JSON object to a string and encode it to make it safe for URI. | |
const jsonString = encodeURIComponent(JSON.stringify(jsonData)); |