-
// Header transitions and controls
$('header h1 a').click(function() {
if (!$(this).hasClass('selected')) {
$('#container').addClass('background-lines');
$('#arrows-what-i-did').css('opacity', '0');
removeSelected();
$('#container').flip({
-
$("#tweets").corner("10px");
$(".ttw-music-player").corner("10px");
$(".rounded").corner("10px");
(function(a, b) {
url = "http://api.twitter.com/1/statuses/user_timeline/" + a + ".json?callback=?";
$.getJSON(url, function(a) {
for (var c = 0; c < b; c++) $("#tweets").append("<p>" + a[c].text + "</p>").linkify()
})
})("rtbz", 5);
-
function renderBackgroundImage() {
// get image container size
var scale = Math.max(windowHeight / bgImgHeight, windowWidth / bgImgWidth);
var width = scale * bgImgWidth,
height = scale * bgImgHeight;
var left = (windowWidth - width) / 2,
top = (windowHeight - height) / 2;
$videoImage.width(width).height(height).css('position', 'fixed')
-
// actually send the request to Twitter
currentXhr = $.ajax({
url: "http://search.twitter.com/search.json",
data: {
rpp: 100,
q: lastSearchTerm,
geocode: geocode.join(",")
},
dataType: "jsonp",
complete: function() {
currentXhr = null;
},
-
shortenLinks: function(arr, selectorForTextArea, selectorForTweetCounter, requireEndingSpace) {
var urls = $.trim(arr.join(" "));
if (urls == "") return;
$.ajax({
url: "/Tweet/ShortenLinksBitLy",
data: {
url: urls
},
dataType: "json",
type: 'POST',
success: function(data) {