Skip to content

Instantly share code, notes, and snippets.

View gamanox's full-sized avatar

Will Alvarez gamanox

  • Freelance
  • Monterrey, Nuevo León, México
View GitHub Profile
@gamanox
gamanox / jPreloader.js
Created April 2, 2012 22:16
Batch Img jquery Preloader
/************* PRELOADER ***********/
(function($) {
var imgList = [];
var _seccion='';
$.extend({
preload: function(imgArr, option,seccion) {
var setting = $.extend({
init: function(loaded, total) {},
loaded: function(img, loaded, total) {},
@gamanox
gamanox / font_face.css
Created March 12, 2013 23:04
fontface
@font-face {
font-family: 'FSDillonBold';
src: url('fonts/fs_dillon-bold-webfont.eot');
src: url('fonts/fs_dillon-bold-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/fs_dillon-bold-webfont.woff') format('woff'),
url('fonts/fs_dillon-bold-webfont.ttf') format('truetype'),
url('fonts/fs_dillon-bold-webfont.svg#FSDillonBold') format('svg');
font-weight: normal;
font-style: normal;
@gamanox
gamanox / rotatediv_mousemove.js
Created March 13, 2013 19:03
RotateY div on mousemove jquery
$(".cont_360").mousemove(function(event) {
var msg;
var mX = event.pageX;
msg = event.pageX + ", " + event.pageY;
console.log(msg);
if(mX<fullW/2){
var speed = (mX/(fullW/2))*1000;
setTimeout(function(){
@gamanox
gamanox / database.yml
Created March 15, 2013 01:25
database
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
development:
adapter: postgresql
encoding: unicode
database: jeep_dev
pool: 5
var scrollPage ;
var intro = new TimelineMax();
var loopVapor = new TimelineMax({repeat: -1});
var loopVapor2 = new TimelineMax({repeat: -1});
var ripple = new TimelineMax({repeat: -1});
var loopScroll = new TimelineMax({repeat: -1, delay: 6});
var scrollmolienda = $.superscrollorama();
var fullW = $(window).width();
var fullH = $(window).height();
var marginT = fullH/7;
$(".map_cont").carouFredSel({
auto: true,
items : 1,
direction : "left",
scroll : {
items : 1,
easing : "elastic",
duration : 1000,
pauseOnHover : true,
case '/believes/opencase?id=' + $.address.parameter('id'):
$("#subMenu ul:not(.subMenuBelieve)").fadeOut(function(){
$(".subMenuBelieve").fadeIn(800);
});
$('#mainMenu li:eq(1)').addClass("link_active").siblings().removeClass("link_active");
$('.actived').removeClass('actived');
$('.sm_generalmarket').addClass('actived');
$.ajax({
url: event.path,
data: "id=" + $.address.parameter('id')
@gamanox
gamanox / loopvapor.js
Created May 21, 2013 16:31
animation
loopVapor.fromTo('#section_3 .vapor_2', 4, {autoAlpha: 0}, {autoAlpha: 0.4});
loopVapor.fromTo('#section_3 .vapor_2', 4, {autoAlpha: 0.4}, {autoAlpha: 0});
loopVapor.fromTo('#section_3 .vapor_2', 8, {top: 150, scaleX: 1, scaleY: 1}, {top: -100, scaleX:1.3, scaleY: 1.3}, "-=8");
loopVapor.fromTo('#section_3 .vapor_1', 4, {autoAlpha: 0}, {autoAlpha: 0.2}, "-=2");
loopVapor.fromTo('#section_3 .vapor_1', 4, {autoAlpha: 0.2}, {autoAlpha: 0});
loopVapor.fromTo('#section_3 .vapor_1', 8, {top: 150, scaleX: 1, scaleY: 1}, {top: -100, scaleX:1.3, scaleY: 1.3}, "-=10.2");
var _tag=new WebTrends();
_tag.dcsGetId();
_tag.dcsCustom=function(){
// Add custom parameters here.
//_tag.DCSext.param_name=param_value;
}
$('#LoginButtonLoginButtonControl').live('click', function(e) {
dcsMultiTrack('DCS.dcssip', 'sportscommunity.powerade.com.mx',