diff options
Diffstat (limited to 'frontend/static/tumblrplay/input.html')
| -rw-r--r-- | frontend/static/tumblrplay/input.html | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/frontend/static/tumblrplay/input.html b/frontend/static/tumblrplay/input.html new file mode 100644 index 0000000..4bd5802 --- /dev/null +++ b/frontend/static/tumblrplay/input.html @@ -0,0 +1,55 @@ +<html> +<head> + + + +</head> + + + +<body> +<div style='position:fixed; top:30px; right:50%; font-size:40px; text-transform:uppercase;' id='callback'></div> +<input type='text' id='urlinput' style='width:700px; font-size:20px; position:fixed; top:50%; right:50%;'></input> +<button id='inputbutton' style="position:fixed; top:60%; right:50%">CLICK AND CZECH IT OUT</button> +<div><a href="http://www.scannerjammer.com/tumblrplay/play.html" target="_blank">the end result</a></div> +<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script> +<script type='text/javascript'> +function callback() + { + $('#callback').html('DONE') + } +function hitit() + { + value = $('#urlinput').val() + url = {url:value} + if(value == "") + { + $('#callback').html('ENTER A URL') + } + else if(value.indexOf('tumblr.com') == -1) + { + $('#callback').html('TUMBLRS ONLY PLEASE') + } + else + { + $('#callback').html('entered'+value) + $.post('/cgi-bin/tumblrplay/playcgi',url,callback) + } + } +$('#inputbutton').click(function(){hitit()}); +</script> +</body> + + + + + + + + + + + + + +</html> |
