<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><title>Send a Support Message to a HipChat Room</title><linkrel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.css"><metaname="viewport"content="width=device-width, initial-scale=1"></head><body><divclass="container"><h1>Send a message</h1>Use the form below to send a message to our HipChat room. Include your
email and someone will contact you as soon as possible.
This form sends directly to the webhook
<formid="hipchat"action="#"><divclass="row"><divclass="twelve columns"><labelfor="name">Name:</label><inputclass="u-full-width"type="text"id="name"placeholder="Your Name"><labelfor="email">Email:</label><inputclass="u-full-width"type="text"id="email"placeholder="you@yoursite.com"><labelfor="message">Message:</label><inputclass="u-full-width"type="text"id="message"placeholder="your message to the chat room"><buttonid="submit-button"type="submit"class="button button-primary">Send</button></div></div></form><divstyle="display: none"id="confirm"><button>Your request was sent to the HipChat room successfully</button></div></div><scriptcharset="utf-8"src="main.js"></script></body></html>
varready=function(fn){if(document.readyState!='loading'){fn();}else{document.addEventListener('DOMContentLoaded',fn);}};varcheckLoad=function(){if(this.status>=200&&this.status<400){document.getElementById('hipchat').style.display='none';document.getElementById('confirm').style.display='block';}else{alert('Error with API Endpoint\n'+this.response);}};varajaxError=function(){alert('Connection Error with API Endpoint');};varprocessFormData=function(){varformData='Name: '+document.getElementById('name').value+' | Email: '+document.getElementById('email').value+' | Message: '+document.getElementById('message').value;returnJSON.stringify({color:'green',message:formData,notify:'true'});};varsubmitter=function(event){varrequest=newXMLHttpRequest();varroom='1753375';request.open('POST','/hipchat/'+room,true);request.setRequestHeader('Content-Type','application/json; charset=UTF-8');request.setRequestHeader('X-Requested-With','XMLHttpRequest');request.onload=checkLoad;request.onerror=ajaxError;request.send(processFormData());event.preventDefault();};ready(function(){document.getElementById('hipchat').addEventListener('submit',submitter);});