This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spaz.TimelineFilters.defaultEntryFilters = [ | |
{ | |
'label':'nl2br', | |
'func':function(d) { | |
d.text = sch.nl2br(d.text); | |
if (d.SC_is_retweet) { | |
d.retweeted_status.text = sch.nl2br(d.retweeted_status.text); | |
} | |
return d; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add some custom timeline filters | |
* | |
* There are five timeline filter objects: | |
* - Spaz.TimelineFilters.friends | |
* - Spaz.TimelineFilters['public'] | |
* - Spaz.TimelineFilters.lists | |
* - Spaz.TimelineFilters.search | |
* - Spaz.TimelineFilters.other | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spaz.TimelineFilters.friends.addFilter('noAPIRTs', function(d) { | |
if (d.retweeted_status) { // if a 4sq link is present, remove it | |
sch.debug('Removing '+d.id+' from results (noAPIRTs)'); | |
d = null; | |
} | |
return d; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var urls = [ | |
'http://getspaz.com/nosir!', | |
'http://funkatron.com/', | |
'http://getspaz.com/nosir!' | |
]; | |
var index = 0; | |
function tryme() { | |
if (index < urls.length) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* User CSS Overrides */ | |
/* override the status text size */ | |
div.timeline-entry .status-text { | |
font-size:120%; | |
} | |
/* change the font everywhere */ | |
body, div.timeline-entry .status-text { | |
font-family:Palatino, Georgia, Serif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spaz.TimelineFilters.friends.addFilter('rot13', function(d) { | |
function str_rot13 (str) { | |
// http://kevin.vanzonneveld.net | |
// + original by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) | |
// + improved by: Ates Goral (http://magnetiq.com) | |
// + bugfixed by: Onno Marsman | |
// + improved by: Rafał Kukawski (http://blog.kukawski.pl) | |
// * example 1: str_rot13('Kevin van Zonneveld'); | |
// * returns 1: 'Xriva ina Mbaariryq' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This disables collapsing of read statuses in the Leopaz theme as of Monday, December 27, 2010. | |
* Other themes may or may not work with this override. | |
*/ | |
div.timeline-entry.read:not(.ui-selected) { | |
max-height: inherit; | |
padding:5px; | |
} | |
div.timeline-entry.read:not(.ui-selected) div.user { | |
padding:5px 5px 0 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (var prop in obj) { | |
if (obj.hasOwnProperty(prop)) { | |
if (typeof(obj[prop]) != 'function') { | |
sch.error('obj.'+prop+' ('+typeof(obj[prop])+') : '+obj[prop]); | |
} else { | |
sch.error('obj.'+prop+' ('+typeof(obj[prop])+')'); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Page Title</title> | |
<link href='http://fonts.googleapis.com/css?family=Cardo:regular"' rel='stylesheet' type='text/css'> | |
<style type="text/css" media="screen"> | |
BODY { | |
background-color:#999; | |
font-family:Cardo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var resizeHandle = document.getElementById('resize-se'); | |
resizeHandle.addEventListener('mousedown', function (e){ | |
var isDragging = true; | |
var mousePosition = {x:event.clientX, y:event.clientY}; | |
document.addEventListener('mousemove', drag, false); | |
document.addEventListener('mouseup', function (e){ | |
document.removeEventListener('mousemove', drag, false); | |
document.removeEventListener('mouseup', arguments.callee, false); |