This file contains hidden or 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 z=1; | |
$('*').each(function(){ | |
$(this).css({ | |
'position' :'relative', | |
'z-index':z, | |
'box-shadow':'-1px -1px 5px #000', | |
'border':'1px solid #666', | |
'left':'1px','top':'1px' | |
}); | |
z++; |
This file contains hidden or 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
/** | |
* a jquery plugin | |
* by jenn schiffer | |
*/ | |
(function($) { | |
var pluginName = 'pluginName'; | |
var defaults = { |
This file contains hidden or 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
#my-carousel-of-dreams { position: relative; width: 100%; max-width: 950px; overflow: hidden; } | |
ul.slidescroller { margin: 0; padding: 0 20px; position: relative; width: 9999px; } | |
ul.slidescroller > li { width: 280px; float: left; padding: 10px; margin: 5px; overflow: hidden; } | |
ul.slidescroller li { list-style: none; } | |
#my-carousel-of-dreams .next, #my-carousel-of-dreams .prev { /* positioning for arrows here */ } |
This file contains hidden or 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
<?php | |
// bnet comments | |
$commentsBNET = get_comments('number=5&status=approve'); | |
// bkids comments | |
switch_to_blog( '3' ); | |
$commentsBKIDS = get_comments('number=5&status=approve'); | |
restore_current_blog(); |
This file contains hidden or 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
$(document).ready(function(){ | |
// create canvas the size of the window | |
var canvasHeight = $(window).height(); | |
var canvasWidth = $(window).width(); | |
$('body').prepend('<canvas id="canvas" width="'+ canvasWidth +'" height="'+ canvasHeight + '" style="cursor:crosshair;">Your browser doesn\'t support canvas. Boo-hiss.</canvas>'); | |
// resize canvas if window size changes - I particularly don't like this, but whatevs floats yo boats... | |
$(window).resize(function() { |
This file contains hidden or 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
function bitOnClick(e) { | |
prettyPicture = document.getElementById("canvas"); | |
leftSide = prettyPicture.offsetLeft + document.getElementById("frame").offsetLeft + document.getElementById("container").offsetLeft; | |
topSide = prettyPicture.offsetTop + document.getElementById("frame").offsetTop + document.getElementById("container").offsetTop; | |
if (e.pageX != undefined && e.pageY != undefined) { | |
xPos = e.pageX - leftSide - 8; | |
yPos = e.pageY - topSide - 20; | |
} | |
else { |
This file contains hidden or 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
.draggy { padding: 10px; position: absolute; top: 20px; left: 20px; } | |
.dragger { margin: 0; position: absolute; top: 5px; right: 5px; cursor: pointer; font-size: 1.5em; } |
This file contains hidden or 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
// 1. create a new bookmark on your browser | |
// 2. paste the following code - starting at "javascript:" into the URL part of the add-bookmark menu. | |
// 3. click the bookmarklet when you're on Baristanet posts to hide cathar's comments for instant zen | |
// xoxo jenn | |
javascript:(function(){$('.comment-author-cathar').hide();}()); |
This file contains hidden or 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
// 1. create a new bookmark on your browser | |
// 2. paste the following code - starting at "javascript:" into the URL part of the add-bookmark menu. | |
// 3. click the bookmarklet when you're on the tumblr dashboard for Tom Hanks | |
// xoxo gossip girl & jennschiffer | |
javascript:(function(){var iconArray=document.getElementById("new_post").getElementsByClassName("new_post_label_icon");for(var i=0;i<iconArray.length;i++){iconArray[i].style.backgroundImage="url('http://i.imgur.com/87acz.png')"; }})(); |
This file contains hidden or 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
// 1. replace EXAMPLE with your Tumblr username. | |
// 2. paste the line of code into your Tumblr template's HTML | |
<a href="http://EXAMPLE.tumblr.com/ask">Ask me anything</a> |