bosun.org@v0.0.0-20210513094433-e25bc3e69a1f/docs/slackInvite.html (about) 1 --- 2 layout: page 3 title: Slack invite 4 --- 5 6 <p>Many bosun devs and users are usually availible on our slack channel. If you have any questions or issues this is the best place to 7 get help. Please fill out this form to automatically receive an invitation to join us:</p> 8 9 <div class="form-group"> 10 <label for="email">Email address</label> 11 <input type="email" class="form-control" id="email" placeholder="Enter email"> 12 </div> 13 <button id="submit" class="btn btn-default">Submit</button> 14 <div class="alert alert-success" role="alert" style="display:none">Success! Check your email!</div> 15 <div class="alert alert-danger" role="alert" style="display:none"></div> 16 17 <script> 18 $(function(){ 19 $("#submit").click(function(){ 20 $(".alert").hide(); 21 $("#submit").prop('disabled', true); 22 var email = $("#email").val(); 23 var url = "https://bosun-invite.glitch.me?email=" + encodeURIComponent(email); 24 $.get(url, function(data){ 25 $(".alert-success").show(); 26 }) .fail(function(jqXHR) { 27 $(".alert-danger").show(); 28 $(".alert-danger").text(jqXHR.responseText); 29 $("#submit").prop('disabled', false); 30 }) 31 }) 32 }) 33 </script>