Skip to content

Instantly share code, notes, and snippets.

View Xeodee's full-sized avatar

Steve McCard (LegendaryXeo) Xeodee

View GitHub Profile
@Xeodee
Xeodee / slider-2.js
Created September 7, 2011 01:22
Slider
var clicked = false,
i = -1,
y = $(".contentContainer").length,
y2 = y+2,
z = y-1;
$(".sliderHolder").css("width", $(window).width());
$(".contentContainer").css("width", $(window).width());
$(".homeSlider").css("width", $(window).width()*y2);
$('.contentContainer').eq(1).clone().appendTo('.homeSlider');
$('.contentContainer').eq(y-1).clone().prependTo('.homeSlider');
@Xeodee
Xeodee / skills.js
Created August 7, 2011 12:39
Simple browser detection with jQuery
<script type="text/javascript">
// XEO SCRIPT Skills Page
// Steve McCard
// (917) 753 8783
var x = jQuery.browser;
$(document).ready(function(){
if (x.safari){ //Checking for Safari Based
@Xeodee
Xeodee / LookBook JQ Script
Created April 3, 2011 14:30
A very nice script I developed to be easy to update, have a loader AND look nicer then just image swapping.
It can be seen here: http://xeo.tryptamine.tv/lookbook2/
Here is the Code. Enjoy
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
// INITIATE XEO SCRIPT
// RETURN OF THE LOOKBOOK!
// The Main Image Array
@Xeodee
Xeodee / Learning JQ
Created February 28, 2011 22:54
Detecting the values of a CSS property
$(document).ready(function () {
$('#mycarousel-next').click(function () {
if ($('ul.jcarousel-list-horizontal').css("left")) $(this).animate({
"opacity": "0"
});
});
});
This works, it's more or less just a debug to make the arrow disappear after I click the next button.
@Xeodee
Xeodee / jQ value pulling
Created February 28, 2011 22:54
Trying to pull the value of a CSS property..
$(document).ready(function () {
$('#mycarousel-next').click(function () {
if ($('ul.jcarousel-list-horizontal').css("left")) $(this).animate({
"opacity": "0"
});
});
});
This works, it's more or less just a debug to make the arrow disappear after I click the next button.