Skip to content

Instantly share code, notes, and snippets.

View gugote's full-sized avatar
💭
🚀🦊

Carlos Bruscoli gugote

💭
🚀🦊
View GitHub Profile
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Index page</title>
<meta name="description" content="">
$(document).ready(function() {
// hover text change
$('a.questions').mouseenter(function() {
$(this).html('[email protected]');
});
$('a.questions').mouseleave(function() {
$(this).html('Questions? Drop us a line.');
});
$('a.questionsspanish').mouseenter(function() {
$(this).html('[email protected]');
$(document).ready(function() {
// get basic measures
$wwidth = $(window).width();
$wheight = $(window).height();
// based on scroll, toggle header
$(window).scroll(function() {
var y = $(window).scrollTop();
if (y > $wheight+($wheight/2)) {
$('header').fadeIn('slow');
@gugote
gugote / generatetag.js
Last active December 27, 2015 11:58
Tag Creator - after choosing an option from a select, this script will generate a tag below, with the close button.
// SELECT with TAGS
// create the tags
$('#theform select.tagger').change(function(){
$newtag = ($(this).val());
$('.tagsarea').append('<span class="tag"><span class="deltag">x</span>'+ $newtag + '</span>');
});
// remove generated tags on click
$(document).on('click', '.tagsarea span.deltag', function() {
$(this).parent().remove();
});
$('a.wizardLink').click(function(){
var block = $(this).attr('id');
alert(block+'block');
$(block+'block').show('slow');
});