Skip to content

Instantly share code, notes, and snippets.

@moeproblems
Forked from anonymous/gist:6197847
Last active December 20, 2015 21:29
Show Gist options
  • Save moeproblems/6197852 to your computer and use it in GitHub Desktop.
Save moeproblems/6197852 to your computer and use it in GitHub Desktop.
<form action="http://imageshack.us/rest_api/v2/user" method="POST">
<input value="" type="text" size="26" name="email" placeholder="Enter your email address" style="
border: solid 1px #ccc;
height: 30px;
width: 250px;
border-radius: 4px;
padding: 0 7px;
">
<input type="hidden" name="action" value="register">
<input type="hidden" name="set_cookie" value="1">
<input type="hidden" name="smartphone_contest" value="1">
<script type="text/javascript">
var trackMe;
if (Math.random() < 0.5) {
document.writeln('Something');
trackMe = "SignUp2";
} else {
trackMe = "Signup";
}
</script>
<input type="submit" value="Sign Up" onclick="pageTracker._trackEvent('Contest',trackMe);" style="
background: #333;
color: white;
border: none;
border-radius: 4px;
height: 30px;
padding: 0 10px;
cursor: pointer;
position: relative;
left: 3px;
top: 2px;
font-size: 13px;
">
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment