8: user data entry

<!-- This example uses a few CameraTag features. First it uses our customizable HTML interface to create a custom start screen that requests an email address from the user. If the user enters a valid email adddress it will attach the email address as metadata on the video and allow the user to record / upload a video. Note- we intentioanlly left any styling out of the xample to keep the code as simple as possible :)--><html><head><script src='//www.cameratag.com/api/v11/js/cameratag.min.js'type='text/javascript'></script><script src='https://code.jquery.com/jquery-2.1.4.min.js'type='text/javascript'></script><linkrel='stylesheet'href='//www.cameratag.com/static/11/cameratag.css'></link><script>$(function(){$("#submit").click(function(){varuser_email=$("#email").val();if(validateEmail(user_email)){CameraTag.cameras["DemoCamera"].setMetadata({email:user_email})$("#step1").hide();$("#step2").show();}else{alert("that is not an email")}})functionvalidateEmail(email){varre=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;returnre.test(email);}})</script></head><body><cameraid='DemoCamera'data-app-id='63f9c870-72c4-0130-04c5-123139045d73'></camera><divid="DemoCamera-start-screen"class="cameratag_screen cameratag_start"style="position: absolute; display: none;"><divid="step1"><aclass="cameratag_select_prompt">Enter your email to submit a video</a><inputid="email"type="email"style="width:50%; padding:10px; border:0px; margin-top:15px; font-size:12px;"><divid="submit"style="font-size:12px; display:inline-block; padding:10px 25px; vertical-align: middle; background:#C5114D; color:#fff; cursor:pointer;">Next</div></div><divid="step2"style="display:none"><aclass="cameratag_select_prompt">Select a method below to submit your video</a><aclass="cameratag_primary_link cameratag_record_link cameratag_record"><spanclass="cameratag_action_icon"><iclass="fa fa-video-camera"aria-hidden="true"></i></span><br><spanclass="cameratag_prompt_label">Webcam</span></a><aid="'+dom_id+'_upload_link"class="cameratag_primary_link cameratag_upload_link cameratag_upload"><spanclass="cameratag_action_icon">&#61678;</span><br><spanclass="cameratag_prompt_label">Upload</span></a><aclass="cameratag_primary_link cameratag_sms_link cameratag_sms"><spanclass="cameratag_action_icon">&#61707;</span><br><spanclass="cameratag_prompt_label">Record by Phone</span></a><iclass="cameratag_settings_btn fa fa-cog"src="//cameratag.com/assets/gear.png"></i></div></div></body></html>