diff --git a/assets/images/newbody.jpg b/assets/images/newbody.jpg new file mode 100644 index 0000000..53b5afc Binary files /dev/null and b/assets/images/newbody.jpg differ diff --git a/assets/js/unps.core.js b/assets/js/unps.core.js new file mode 100644 index 0000000..90347ef --- /dev/null +++ b/assets/js/unps.core.js @@ -0,0 +1,50 @@ +jQuery(document).ready(function(){ + // When the page loads, we're gonna want to hide the shorten-password and report-details elements + $("#shorten-password").slideUp("fast"); + $("#report-details").slideUp("fast"); + $('#link').focus(); + + $('#error').fadeIn("slow"); + $('textarea').autoResize(); + $('#shortlab').addClass('fbtn'); +}); + +$(function() { // Fairly messy. Changes submit button based on radio button and shows/hides shorten-password and report-details elements + $("input[type=radio]").on('click', function(){ + if($('#shorten').is(':checked')){ + $("#short-button").html('Shorten'); + $("#report").val(''); + $("#pass").val(''); + + $('#shortlab').addClass('fbtn'); + $('#dellab').removeClass('fbtn'); + $('#replab').removeClass('fbtn'); + } + if ($('#dellink').is(':checked')){ + $("#shorten-password").slideDown("slow"); + $("#short-button").html('Delete'); + $("#report").val(''); + + $('#shortlab').removeClass('fbtn'); + $('#dellab').addClass('fbtn'); + $('#replab').removeClass('fbtn'); + }else{ + $("#shorten-password").slideUp("slow"); + } + if($('#replink').is(':checked')){ + $("#report-details").slideDown("slow"); + $("#short-button").html('Report'); + $("#pass").val(''); + + $('#shortlab').removeClass('fbtn'); + $('#dellab').removeClass('fbtn'); + $('#replab').addClass('fbtn'); + }else{ + $("#report-details").slideUp("slow"); + } + }); +}); + +function copyToClipboard(text){ + window.prompt ("Copy to clipboard: Ctrl+C, Enter (when closed I will open your link in a new tab)", text); +} \ No newline at end of file diff --git a/index.php b/index.php index 4fff0c0..3e6f038 100644 --- a/index.php +++ b/index.php @@ -25,6 +25,10 @@ } } + if(isset($_GET['newbg'])){ + echo ""; + } + function userpic($email){ $default = "http://fox.gy/fCDIjceUvkk.png"; $size = 20; @@ -67,22 +71,24 @@
-
- - - -
+ - + + +
+ + + +
-