Sintron Smart Device embed to page / website example

<html><body> <h1>Sintron Smart Plug / Outlet Website embeded</h1> <p>Click the button to trigger the light from Sintron Smart Plug.</p> <button onclick="officelighton()">office light on</button> <button onclick="officelightoff()">office light off</button> <p> <p id="statu_text"></p> <p><img id="status" src="" /></p> <script> function officelighton(){ var url = "https://sintron.vip/?host=google&username=sintron&auth=14f26b15210245f5a2cfe2d2cf8ff8a1&led=D13&pin=D14&action=on" var request = new XMLHttpRequest(); request.open("POST", url); request.send("") document.getElementById("statu_text").innerHTML = "you already turned it on."; document.getElementById("status").src = "https://img.auctiva.com/imgdata/1/7/0/0/3/1/7/webimg/1010196435_o.png"; } function officelightoff(){ var url = "https://sintron.vip/?host=google&username=sintron&auth=14f26b15210245f5a2cfe2d2cf8ff8a1&led=D13&pin=D14&action=off" var request = new XMLHttpRequest(); request.open("POST", url); request.send("") document.getElementById("statu_text").innerHTML = "you already turned it off."; document.getElementById("status").src = "https://img.auctiva.com/imgdata/1/7/0/0/3/1/7/webimg/1010196430_o.png"; } </script></p> </body></html>