function clickAd(paste, location)
{
$(document).ready(function()
{
$.post(root_url + "api/tinypaste/getpaid_ad.php", { clicked: paste }, function()
{
if(typeof location == 'string')
{
window.location = location;
}
});
});
}
var num = false;
function lineNumbers()
{
var src = $('#pasteFrame').attr('src');
if(num)
{
src = src.replace("linenum=true", "linenum=false");
}
else
{
src = src.replace("linenum=false", "linenum=true");
}
$('#pasteFrame').attr("src", src);
num = !num;
}
$(document).ready(function()
{
$('#historyButton').tinytip("
See how this paste evolved
", "bottomMiddle", "topMiddle");
$('#new_version').tinytip("Create a copy of this paste that you can edit
", "bottomMiddle", "topMiddle");
$('#save_paste').tinytip("Save this paste to your computer
", "bottomMiddle", "topMiddle");
$('#show_full').tinytip("View this paste in full screen mode
", "bottomMiddle", "topMiddle");
$('#view_stats').tinytip("View traffic statistics about this paste
", "bottomMiddle", "topMiddle");
$('#share_paste').tinytip("Share this paste with your friends
", "bottomMiddle", "topMiddle");
$('#lineNumbers').tinytip("Turn Line Numbers Off/On
", "bottomMiddle", "topMiddle");
$('#embed_code').tinytip("Embed this paste on your site
", "bottomMiddle", "topMiddle");
});