Detox Weekend: This weekend, all quotes will temporarily have their formatting removed. Why do this? Some Witty members thought it would be fun to have the top quotes be based on the content of the quote, not the formatting. If you submit a quote with formatting during Detox Weekend, the quote will appear without formatting until Monday. Have fun!
'); // clear the search box when someone goes to type in it $("#searchbox").focus(function() { if ($("#searchbox").val() == 'search') { $("#searchbox").val(''); } }); // show the sign in form. $("#sign_in_link").click(function(event) { $("#sign_in_form").show(); $("#add_link").hide(); $("#top_link").hide(); $("#newest_link").hide(); $("#random_link").hide(); $("#sign_in_link").hide(); $("#join_link").hide(); $("#categories_link").hide(); $("#searchform").hide(); event.preventDefault(); }); // cancel showing the sign in form $("#cancel_login").click(function(event) { $("#sign_in_form").hide(); $("#add_link").show(); $("#top_link").show(); $("#newest_link").show(); $("#random_link").show(); $("#sign_in_link").show(); $("#join_link").show(); $("#categories_link").show(); $("#searchform").show(); event.preventDefault(); }); $("#account_settings_link").click(function(event) { $("#categories_links").hide(); offset = $(this).position(); $("#account_settings_links").css("top",(offset.top+45)+"px").css("left",offset.left+"px").toggle(); event.preventDefault(); }); // show the categories $("#categories_link").click( function(event) { $("#account_settings_links").hide(); offset = $(this).position(); $("#categories_links").css("top",(offset.top+45)+"px").css("left",offset.left+"px").toggle(); event.preventDefault(); }); $(".favheart").click(function(){ var quote_id = $(this).attr('id').split("_"); quote_id = quote_id[quote_id.length - 1]; if ($(this).hasClass("favheartOff")) { favs.addToFavs(quote_id); } if ($(this).hasClass("favheartOn")) { favs.removeFromFavs(quote_id); } }); // prevent accidental quote deletions $(".delete-a-quote").live("click", function() { $("#deletequoteform-"+this.id.split("-")[1]).show(); }); $(".delete-a-quote-cancel").live("click", function() { $("#deletequoteform-"+this.id.split("-")[1]).hide(); }); // prevent accidental quote deletions $(".undelete-a-quote").live("click", function() { $("#undeletequoteform-"+this.id.split("-")[1]).show(); }); $(".undelete-a-quote-cancel").live("click", function() { $("#undeletequoteform-"+this.id.split("-")[1]).hide(); }); // report quote $(".report_quote_btn").livequery("click", function() { $("#report_quote_section_" + this.id.split("_")[1]).toggle(); var quote_id = this.id.split("_")[1]; $("#report_quote_section_" + this.id.split("_")[1]).load('/api.php', {a:'get_report_quote_form', quote_id:quote_id}); }); $(".report_quote_confirm_btn").livequery("click", function() { var btn_id = this.id; $(this).attr('disabled', 'disabled') var quote_id = this.id.split("_")[1]; var flag = $("input:radio[name=flagquote_" + quote_id + "]:checked").val(); $.ajax({ type: "POST", url: '/api.php', data: 'a=report_quote"e_id=' + quote_id + '&flag=' + flag, success: function(msg) { if (msg == 'ok') { $('#report_quote_section_' + quote_id).html('Thank you for bringing this quote to our attention. You are helping to make Witty a better place.
'); } else { if (msg == 'noselection') { $('#report_quote_section_' + quote_id).append('please select a reason.
'); $("#"+btn_id).removeAttr('disabled'); } else { alert('Please sign in to report this quote.'); } } }, error: function() { alert('uh oh, something went wrong. Please try reporting that quote again.'); } }); }); // report user $(".report_user_btn").livequery("click", function() { $("#report_user_section_" + this.id.split("_")[1]).toggle(); var user_id = this.id.split("_")[1]; $("#report_user_section_" + this.id.split("_")[1]).load('/api.php', {a:'get_report_user_form', user_id:user_id}); }); $("button.report_user_confirm_btn").livequery("click", function() { var btn_id = this.id; $(this).attr('disabled', 'disabled') var user_id = this.id.split("_")[1]; var flag = $("input:radio[name=flaguser_" + user_id + "]:checked").val(); $.ajax({ type: "POST", url: '/api.php', data: 'a=report_user&user_id=' + user_id + '&flag=' + flag, success: function(msg) { if (msg == 'ok') { $('#report_user_section_' + user_id).html('Thank you for bringing this user to our attention. You are helping to make Witty a better place.
'); } else { if (msg == 'noselection') { $('#report_user_section_' + user_id).append('please select a reason.
'); $("#"+btn_id).removeAttr('disabled'); } else { alert('Please sign in to report this user.'); } } }, error: function() { alert('uh oh, something went wrong. Please try reporting that user again.'); } }); }); // report user comment $(".report_user_comment_btn").livequery("click", function() { $("#report_user_comment_section_" + this.id.split("_")[1]).toggle(); var user_comment_id = this.id.split("_")[1]; $("#report_user_comment_section_" + this.id.split("_")[1]).load('/api.php', {a:'get_report_user_comment_form', user_comment_id:user_comment_id}); }); $("button.report_user_comment_confirm_btn").livequery("click", function() { var btn_id = this.id; $(this).attr('disabled', 'disabled') var user_comment_id = this.id.split("_")[1]; var flag = $("input:radio[name=flagusercomment_" + user_comment_id + "]:checked").val(); $.ajax({ type: "POST", url: '/api.php', data: 'a=report_user_comment&user_comment_id=' + user_comment_id + '&flag=' + flag, success: function(msg) { if (msg == 'ok') { $('#report_user_comment_section_' + user_comment_id).html('Thank you for bringing this comment to our attention. You are helping to make Witty a better place.
'); } else { if (msg == 'noselection') { $('#report_user_comment_section_' + user_comment_id).append('please select a reason.
'); $("#"+btn_id).removeAttr('disabled'); } else { alert('Please sign in to report this comment.'); } } }, error: function() { alert('uh oh, something went wrong. Please try reporting that comment again.'); } }); }); // report quote comment $(".report_quote_comment_btn").livequery("click", function() { $("#report_quote_comment_section_" + this.id.split("_")[1]).toggle(); var quote_comment_id = this.id.split("_")[1]; $("#report_quote_comment_section_" + this.id.split("_")[1]).load('/api.php', {a:'get_report_quote_comment_form', quote_comment_id:quote_comment_id}); }); $("button.report_quote_comment_confirm_btn").livequery("click", function() { var btn_id = this.id; $(this).attr('disabled', 'disabled') var quote_comment_id = this.id.split("_")[1]; var flag = $("input:radio[name=flagquotecomment_" + quote_comment_id + "]:checked").val(); $.ajax({ type: "POST", url: '/api.php', data: 'a=report_quote_comment"e_comment_id=' + quote_comment_id + '&flag=' + flag, success: function(msg) { if (msg == 'ok') { $('#report_quote_comment_section_' + quote_comment_id).html('Thank you for bringing this comment to our attention. You are helping to make Witty a better place.
'); } else { if (msg == 'noselection') { $('#report_quote_comment_section_' + quote_comment_id).append('please select a reason.
'); $("#"+btn_id).removeAttr('disabled'); } else { alert('Please sign in to report this comment.'); } } }, error: function() { alert('uh oh, something went wrong. Please try reporting that comment again.'); } }); }); // toggle quote source $("span.get_quote_code").live("click", function() { $("#code_" + this.id.split("_")[1]).toggle(); var quote_id = this.id.split("_")[1]; $("#code_" + this.id.split("_")[1]).load('/api.php', {a:'get_quote_code', quote_id:quote_id}); }); }); var favs = { addToFavs : function ( quote_id ) { var url = '/api.php'; var action = 'add_quote_to_faves'; var params = 'a=' + action + '"e_id=' + quote_id ; $.ajax({ type: "POST", url: url, data: params, success: function(msg) { if (msg == 'ok') { $('#fav_btn_' + quote_id).addClass('favheartOn'); $('#fav_btn_' + quote_id).removeClass('favheartOff'); $('#fav_btn_' + quote_id).attr({alt:'remove from faves', title:'remove from faves'}); var new_score = parseInt($('#score_' + quote_id).html()) + 1; var new_label = 'Remove from Faves'; $('#score_' + quote_id).text(new_score); $('#scorelabel_' + quote_id).text(new_label); } else { alert('Please sign in to add this quote to your faves'); } }, error: function() { alert('uh oh, something went wrong. Please try adding that quote to your favorites again.'); } }); }, removeFromFavs : function ( quote_id ) { var url = '/api.php'; var action = 'remove_quote_from_faves'; var params = 'a=' + action + '"e_id=' + quote_id ; $.ajax({ type: "POST", url: url, data: params, success: function(msg) { if (msg == 'ok') { $('#fav_btn_' + quote_id).addClass('favheartOff'); $('#fav_btn_' + quote_id).removeClass('favheartOn'); $('#fav_btn_' + quote_id).attr({alt:'add to favs', title:'add to favs'}); var new_score = parseInt($('#score_' + quote_id).html()) - 1; var new_label = 'Add to Faves'; $('#score_' + quote_id).text(new_score); $('#scorelabel_' + quote_id).text(new_label); } else { alert('uh oh'); } }, error: function() { alert('uh oh, something went wrong. Please try removing that quote from your favorites again.'); } }); } } var quote = { reportQuote : function ( quote_id ) { var url = '/ajax/quote.php'; var action = 'report'; var params = 'action=' + action + '"e_id=' + quote_id ; $.ajax({ type: "GET", url: url, data: params, success: function(msg) { if (msg == 'ok') { alert('Thank you for telling us that this quote doesn\'t follow the rules.'); } else { alert('Please sign in to report this quote'); } }, error: function() { alert('uh oh. something went wrong. Please try reporting that quote again.'); } }); } } // prevent accidental deletion var follow = { startfollowing : function ( user_id ) { var url = '/api.php'; var action = 'start_following'; var params = 'a=' + action + '&user_id=' + user_id ; $.ajax({ type: "POST", url: url, data: params, success: function(msg) { if (msg == 'ok') { alert('ok'); } else { alert('Please sign in to follow this person.'); } }, error: function() { alert('uh oh, something went wrong. Please try following that person again.'); } }); }, stopfollowing : function ( user_id ) { var url = '/api.php'; var action = 'stop_following'; var params = 'a=' + action + '&user_id=' + user_id ; $.ajax({ type: "POST", url: url, data: params, success: function(msg) { if (msg == 'ok') { alert('ok'); } else { alert('not ok'); } }, error: function() { alert('uh oh, something went wrong. Please try to stop following that person again.'); } }); } } var block = { startblocking : function ( user_id ) { var url = '/api.php'; var action = 'start_blocking'; var params = 'a=' + action + '&user_id=' + user_id ; $.ajax({ type: "POST", url: url, data: params, success: function(msg) { if (msg == 'ok') { alert('Ok. This person\'s comments will no longer show on your profile and your quotes.'); } else { alert('Please sign in to block this person.'); } }, error: function() { alert('uh oh, something went wrong. Please try blocking that person again.'); } }); }, stopblocking : function ( user_id ) { var url = '/api.php'; var action = 'stop_blocking'; var params = 'a=' + action + '&user_id=' + user_id ; $.ajax({ type: "POST", url: url, data: params, success: function(msg) { if (msg == 'ok') { alert('ok. This person\'s comments will now show on your profile and your quotes.'); } else { alert('not ok'); } }, error: function() { alert('uh oh, something went wrong. Please try to stop blocking that person again.'); } }); } } var votes = { // // vote up a quote // voteUp : function ( quote_id ) { var url = '/ajax/vote.php'; var action = 'voteup'; var params = 'action=' + action + '"e_id=' + quote_id ; var intervalID = setInterval('drawrandomchar('+quote_id+')',100); $.ajax({ type: "GET", url: url, data: params, success: function(msg){ if (msg == 'ok') { $.get("/ajax/vote.php?action=getscore"e_id=" + quote_id, function(data){ clearInterval(intervalID); $("#score_" + quote_id).html(parseInt(data) + 1); }); } else { clearInterval(intervalID); $("#score_" + quote_id).html("signin").animate({opactiy:1},4000).load("/ajax/vote.php?action=getscore"e_id=" + quote_id); } }, error: function() { clearInterval(intervalID); alert('Uh oh, something went wrong. Please try voting up this quote again.'); } }); }, // // vote down a quote // voteDown : function ( quote_id ) { var url = '/ajax/vote.php'; var action = 'votedown'; var params = 'action=' + action + '"e_id=' + quote_id ; var intervalID = setInterval('drawrandomchar('+quote_id+')',100); $.ajax({ type: "GET", url: url, data: params, success: function(msg){ if (msg == 'ok') { $.get("/ajax/vote.php?action=getscore"e_id=" + quote_id, function(data){ clearInterval(intervalID); $("#score_" + quote_id).html(parseInt(data) - 1); }); } else { clearInterval(intervalID); $("#score_" + quote_id).html("signin").animate({opactiy:1},4000).load("/ajax/vote.php?action=getscore"e_id=" + quote_id); } }, error: function() { clearInterval(intervalID); //$("#score_" + quote_id).html("?"); alert('Uh oh, something went wrong. Please try voting down this quote again.'); } }); }, // // vote up a quote RANDOM // voteUpRandom : function ( quote_id ) { var url = '/ajax/vote.php'; var action = 'voteup'; var params = 'action=' + action + '"e_id=' + quote_id ; var intervalID = setInterval('drawrandomchar('+quote_id+')',100); $.ajax({ type: "GET", url: url, data: params, success: function(msg){ if (msg == 'ok') { $.get("/ajax/vote.php?action=getscore"e_id=" + quote_id, function(data){ clearInterval(intervalID); $("#score_" + quote_id).html(data); window.location = '/random-quote'; }); } else { clearInterval(intervalID); $("#score_" + quote_id).html("signin").animate({opactiy:1},4000).load("/ajax/vote.php?action=getscore"e_id=" + quote_id); } }, error: function() { clearInterval(intervalID); alert('Uh oh, something went wrong. Please try voting up this quote again.'); } }); }, // // vote down a quote RANDOM // voteDownRandom : function ( quote_id ) { var url = '/ajax/vote.php'; var action = 'votedown'; var params = 'action=' + action + '"e_id=' + quote_id ; var intervalID = setInterval('drawrandomchar('+quote_id+')',100); $.ajax({ type: "GET", url: url, data: params, success: function(msg){ if (msg == 'ok') { $.get("/ajax/vote.php?action=getscore"e_id=" + quote_id, function(data){ clearInterval(intervalID); $("#score_" + quote_id).html(data); window.location = '/random-quote'; }); } else { clearInterval(intervalID); $("#score_" + quote_id).html("signin").animate({opactiy:1},4000).load("/ajax/vote.php?action=getscore"e_id=" + quote_id); } }, error: function() { clearInterval(intervalID); //$("#score_" + quote_id).html("?"); alert('Uh oh, something went wrong. Please try voting down this quote again.'); } }); } } var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-427894-3']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
dallasrae910
|
Currently in need of a Witty Bestfriend?(:
LovesOneDirection15 wants to make a story DIFFERENT from other One Direction stories.
She will need atleast 10 faves to start her story, even more the better.
PLEASE, PLEASE, PLEASE, go fave LovesOneDirection15 !
I love how barely anyone faved my friend's,
SERIOUS & REAL issue.
Like i thought witty was supposed to help but no it doesn't!
If you see this fave & go back and read the quote about my friend.
It may not see that bad, but it's more worse than you think.
I'm not gonna put the whole story on show for everyone.
I just want a little support for her.
Fave. <3
If you read and fave this I will be so thankful.
My friend gets bullied at school, too much.
I'm afraid she might do things, to hurt herself.
People always call her "down" as in down syndrome.
That is a disease no one can help, why pick on that?!
She doesn't even have it..
They call her fish.
FOR NO REASON.
She is a gorgeous girl.
She does NOT derserve this.
Fave this and show that you care.
I will be glad to show her.
Please.
This is NOT for attention.
I watched The Hunger Games.
I thought Katniss was saying Peter in a british voice.
She was really saying Peeta.
Yes, I do feel stupid. <333
FML.
I may be taken,
on Valentines day.
But really, everyone deserves to be
happy.
I try to tell myself
that you're just a
boy,
but I know you are
more
than that.
© 2003-2012 Witty Profiles is the internet's largest collection of famous quotes, poetry and funny status messages to put in your online profiles.