SlideShare a Scribd company logo
1 of 105
Download to read offline
All information is copyright ZURB, inc. All rights reserved.
http://bit.ly/jqconpanel
1
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 2
Super
Awesome
jQuery
Interactions
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 3
jQuery is Awesome
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 4
jQuery
http://www.youtube.com/watch?v=8nSyInIKlKE
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 5
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 6
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 7
http://www.youtube.com/watch?v=HPPj6viIBmU
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 8
jQuery
http://www.youtube.com/watch?v=Q5im0Ssyyus
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 9
Four Things
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 10
First Do No Harm
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 11
Understand Response
Times
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 12
Communicate
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 13
Anticipate
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 14
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 15
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 15
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 16
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 16
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 17
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 17
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 18
Speed
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 19
Less than
100 ms
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 20
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 20
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 21
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 21
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 22
<div id="wrapper">
<%= render :partial => 'generic_tests/instructions' %>
<%= render :partial => 'generic_tests/instructions_tab' if show_instructions_tab? %>
<%= render :partial => 'generic_tests/test' %>
<%= render :partial => 'generic_tests/demographics' if show_demographics_modal? %>
<%= render :partial => 'generic_tests/thanks' %>
</div>
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 23
$(document).bind('dismissInstructions', function () {
$('#testContainer').fadeInAndSlide();
var image = screenshotContainer.children('img');
image.centerImage();
});
$('#startTest').click(function (event) {
event.preventDefault();
$('#instructionContainer').fadeOutAndSlide({offset: 500, complete: function () {
$(document).trigger('dismissInstructions');
}});
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 23
$(document).bind('dismissInstructions', function () {
$('#testContainer').fadeInAndSlide();
var image = screenshotContainer.children('img');
image.centerImage();
});
$('#startTest').click(function (event) {
event.preventDefault();
$('#instructionContainer').fadeOutAndSlide({offset: 500, complete: function () {
$(document).trigger('dismissInstructions');
}});
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 23
$(document).bind('dismissInstructions', function () {
$('#testContainer').fadeInAndSlide();
var image = screenshotContainer.children('img');
image.centerImage();
});
$('#startTest').click(function (event) {
event.preventDefault();
$('#instructionContainer').fadeOutAndSlide({offset: 500, complete: function () {
$(document).trigger('dismissInstructions');
}});
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 23
$(document).bind('dismissInstructions', function () {
$('#testContainer').fadeInAndSlide();
var image = screenshotContainer.children('img');
image.centerImage();
});
$('#startTest').click(function (event) {
event.preventDefault();
$('#instructionContainer').fadeOutAndSlide({offset: 500, complete: function () {
$(document).trigger('dismissInstructions');
}});
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 23
$(document).bind('dismissInstructions', function () {
$('#testContainer').fadeInAndSlide();
var image = screenshotContainer.children('img');
image.centerImage();
});
$('#startTest').click(function (event) {
event.preventDefault();
$('#instructionContainer').fadeOutAndSlide({offset: 500, complete: function () {
$(document).trigger('dismissInstructions');
}});
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 23
$(document).bind('dismissInstructions', function () {
$('#testContainer').fadeInAndSlide();
var image = screenshotContainer.children('img');
image.centerImage();
});
$('#startTest').click(function (event) {
event.preventDefault();
$('#instructionContainer').fadeOutAndSlide({offset: 500, complete: function () {
$(document).trigger('dismissInstructions');
}});
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 23
$(document).bind('dismissInstructions', function () {
$('#testContainer').fadeInAndSlide();
var image = screenshotContainer.children('img');
image.centerImage();
});
$('#startTest').click(function (event) {
event.preventDefault();
$('#instructionContainer').fadeOutAndSlide({offset: 500, complete: function () {
$(document).trigger('dismissInstructions');
}});
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 24
100 ms - 1 s
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 25
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 25
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 26
1 s - 10 s
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 27
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 27
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 27
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 27
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 27
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 27
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 28
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 28
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 29
var thumb = $('img#thumb');
new AjaxUpload('imageUpload', {
action: $('form#newHotnessForm').attr('action'),
name: 'image',
onSubmit: function(file, extension) {
$('div.preview').addClass('loading');
},
onComplete: function(file, response) {
thumb.load(function(){
$('div.preview').removeClass('loading');
thumb.unbind();
});
thumb.attr('src', response);
}
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 29
var thumb = $('img#thumb');
new AjaxUpload('imageUpload', {
action: $('form#newHotnessForm').attr('action'),
name: 'image',
onSubmit: function(file, extension) {
$('div.preview').addClass('loading');
},
onComplete: function(file, response) {
thumb.load(function(){
$('div.preview').removeClass('loading');
thumb.unbind();
});
thumb.attr('src', response);
}
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 29
var thumb = $('img#thumb');
new AjaxUpload('imageUpload', {
action: $('form#newHotnessForm').attr('action'),
name: 'image',
onSubmit: function(file, extension) {
$('div.preview').addClass('loading');
},
onComplete: function(file, response) {
thumb.load(function(){
$('div.preview').removeClass('loading');
thumb.unbind();
});
thumb.attr('src', response);
}
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 29
var thumb = $('img#thumb');
new AjaxUpload('imageUpload', {
action: $('form#newHotnessForm').attr('action'),
name: 'image',
onSubmit: function(file, extension) {
$('div.preview').addClass('loading');
},
onComplete: function(file, response) {
thumb.load(function(){
$('div.preview').removeClass('loading');
thumb.unbind();
});
thumb.attr('src', response);
}
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 29
var thumb = $('img#thumb');
new AjaxUpload('imageUpload', {
action: $('form#newHotnessForm').attr('action'),
name: 'image',
onSubmit: function(file, extension) {
$('div.preview').addClass('loading');
},
onComplete: function(file, response) {
thumb.load(function(){
$('div.preview').removeClass('loading');
thumb.unbind();
});
thumb.attr('src', response);
}
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 29
var thumb = $('img#thumb');
new AjaxUpload('imageUpload', {
action: $('form#newHotnessForm').attr('action'),
name: 'image',
onSubmit: function(file, extension) {
$('div.preview').addClass('loading');
},
onComplete: function(file, response) {
thumb.load(function(){
$('div.preview').removeClass('loading');
thumb.unbind();
});
thumb.attr('src', response);
}
});
http://valums.com/ajax-upload/
http://www.zurb.com/playground/ajax_upload
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 30
More than 10 s
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 31
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 31
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 32
function checkStatus() {
$.ajax({
url: $('#postStatus').attr('href'),
success: function(response) {
if (response.complete)
{
window.location = response.location;
} else {
setTimeout(checkStatus, 5000);
}
}
});
}
setTimeout(checkStatus, 3000);
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 32
function checkStatus() {
$.ajax({
url: $('#postStatus').attr('href'),
success: function(response) {
if (response.complete)
{
window.location = response.location;
} else {
setTimeout(checkStatus, 5000);
}
}
});
}
setTimeout(checkStatus, 3000);
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 32
function checkStatus() {
$.ajax({
url: $('#postStatus').attr('href'),
success: function(response) {
if (response.complete)
{
window.location = response.location;
} else {
setTimeout(checkStatus, 5000);
}
}
});
}
setTimeout(checkStatus, 3000);
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 32
function checkStatus() {
$.ajax({
url: $('#postStatus').attr('href'),
success: function(response) {
if (response.complete)
{
window.location = response.location;
} else {
setTimeout(checkStatus, 5000);
}
}
});
}
setTimeout(checkStatus, 3000);
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 32
function checkStatus() {
$.ajax({
url: $('#postStatus').attr('href'),
success: function(response) {
if (response.complete)
{
window.location = response.location;
} else {
setTimeout(checkStatus, 5000);
}
}
});
}
setTimeout(checkStatus, 3000);
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 33
Communication
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 34
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 34
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 35
$('#noteText').bind('hastext', function () {
$('#ok').removeClass('disabled').attr('disabled', false);
});
$('#noteText').bind('notext', function () {
$('#ok').addClass('disabled').attr('disabled', true);
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 35
$('#noteText').bind('hastext', function () {
$('#ok').removeClass('disabled').attr('disabled', false);
});
$('#noteText').bind('notext', function () {
$('#ok').addClass('disabled').attr('disabled', true);
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 35
$('#noteText').bind('hastext', function () {
$('#ok').removeClass('disabled').attr('disabled', false);
});
$('#noteText').bind('notext', function () {
$('#ok').addClass('disabled').attr('disabled', true);
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 35
$('#noteText').bind('hastext', function () {
$('#ok').removeClass('disabled').attr('disabled', false);
});
$('#noteText').bind('notext', function () {
$('#ok').addClass('disabled').attr('disabled', true);
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 35
$('#noteText').bind('hastext', function () {
$('#ok').removeClass('disabled').attr('disabled', false);
});
$('#noteText').bind('notext', function () {
$('#ok').addClass('disabled').attr('disabled', true);
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 35
$('#noteText').bind('hastext', function () {
$('#ok').removeClass('disabled').attr('disabled', false);
});
$('#noteText').bind('notext', function () {
$('#ok').addClass('disabled').attr('disabled', true);
});
http://www.zurb.com/playground/jquery-text-change-custom-event
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 36
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 36
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 37
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 37
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 38
/* The note is currently being created */
div.note.current div.note-body { display: none; }
/* This note is read only */
div.note.read-only a.delete-note { display: none; }
div.note.read-only button.ok { display: none; }
div.note.read-only div.overlay { cursor: default; }
/* The note is editable but not currently being edited */
div.note.editable button.ok { display: none; }
div.note.editable div.overlay { cursor: pointer; }
/* The note is being edited */
div.note.editing { z-index: 80; }
div.note.editing div.overlay { cursor: move; }
div.note.editing div.corner { display: block; z-index: 1000; }
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 38
/* The note is currently being created */
div.note.current div.note-body { display: none; }
/* This note is read only */
div.note.read-only a.delete-note { display: none; }
div.note.read-only button.ok { display: none; }
div.note.read-only div.overlay { cursor: default; }
/* The note is editable but not currently being edited */
div.note.editable button.ok { display: none; }
div.note.editable div.overlay { cursor: pointer; }
/* The note is being edited */
div.note.editing { z-index: 80; }
div.note.editing div.overlay { cursor: move; }
div.note.editing div.corner { display: block; z-index: 1000; }
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 38
/* The note is currently being created */
div.note.current div.note-body { display: none; }
/* This note is read only */
div.note.read-only a.delete-note { display: none; }
div.note.read-only button.ok { display: none; }
div.note.read-only div.overlay { cursor: default; }
/* The note is editable but not currently being edited */
div.note.editable button.ok { display: none; }
div.note.editable div.overlay { cursor: pointer; }
/* The note is being edited */
div.note.editing { z-index: 80; }
div.note.editing div.overlay { cursor: move; }
div.note.editing div.corner { display: block; z-index: 1000; }
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 38
/* The note is currently being created */
div.note.current div.note-body { display: none; }
/* This note is read only */
div.note.read-only a.delete-note { display: none; }
div.note.read-only button.ok { display: none; }
div.note.read-only div.overlay { cursor: default; }
/* The note is editable but not currently being edited */
div.note.editable button.ok { display: none; }
div.note.editable div.overlay { cursor: pointer; }
/* The note is being edited */
div.note.editing { z-index: 80; }
div.note.editing div.overlay { cursor: move; }
div.note.editing div.corner { display: block; z-index: 1000; }
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 38
/* The note is currently being created */
div.note.current div.note-body { display: none; }
/* This note is read only */
div.note.read-only a.delete-note { display: none; }
div.note.read-only button.ok { display: none; }
div.note.read-only div.overlay { cursor: default; }
/* The note is editable but not currently being edited */
div.note.editable button.ok { display: none; }
div.note.editable div.overlay { cursor: pointer; }
/* The note is being edited */
div.note.editing { z-index: 80; }
div.note.editing div.overlay { cursor: move; }
div.note.editing div.corner { display: block; z-index: 1000; }
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 38
/* The note is currently being created */
div.note.current div.note-body { display: none; }
/* This note is read only */
div.note.read-only a.delete-note { display: none; }
div.note.read-only button.ok { display: none; }
div.note.read-only div.overlay { cursor: default; }
/* The note is editable but not currently being edited */
div.note.editable button.ok { display: none; }
div.note.editable div.overlay { cursor: pointer; }
/* The note is being edited */
div.note.editing { z-index: 80; }
div.note.editing div.overlay { cursor: move; }
div.note.editing div.corner { display: block; z-index: 1000; }
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 38
/* The note is currently being created */
div.note.current div.note-body { display: none; }
/* This note is read only */
div.note.read-only a.delete-note { display: none; }
div.note.read-only button.ok { display: none; }
div.note.read-only div.overlay { cursor: default; }
/* The note is editable but not currently being edited */
div.note.editable button.ok { display: none; }
div.note.editable div.overlay { cursor: pointer; }
/* The note is being edited */
div.note.editing { z-index: 80; }
div.note.editing div.overlay { cursor: move; }
div.note.editing div.corner { display: block; z-index: 1000; }
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 38
/* The note is currently being created */
div.note.current div.note-body { display: none; }
/* This note is read only */
div.note.read-only a.delete-note { display: none; }
div.note.read-only button.ok { display: none; }
div.note.read-only div.overlay { cursor: default; }
/* The note is editable but not currently being edited */
div.note.editable button.ok { display: none; }
div.note.editable div.overlay { cursor: pointer; }
/* The note is being edited */
div.note.editing { z-index: 80; }
div.note.editing div.overlay { cursor: move; }
div.note.editing div.corner { display: block; z-index: 1000; }
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 38
/* The note is currently being created */
div.note.current div.note-body { display: none; }
/* This note is read only */
div.note.read-only a.delete-note { display: none; }
div.note.read-only button.ok { display: none; }
div.note.read-only div.overlay { cursor: default; }
/* The note is editable but not currently being edited */
div.note.editable button.ok { display: none; }
div.note.editable div.overlay { cursor: pointer; }
/* The note is being edited */
div.note.editing { z-index: 80; }
div.note.editing div.overlay { cursor: move; }
div.note.editing div.corner { display: block; z-index: 1000; }
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 39
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 39
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 39
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 39
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 39
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 39
http://www.zurb.com/article/379/110-interactions-for-editing-annotations
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 40
Precognition
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 41
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 41
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 42
var deactivateTimeout, activateTimeout;
$('ul.main-nav li').mouseenter(function () {
var li = $(this);
clearTimeout(deactivateTimeout);
clearTimeout(activateTimeout);
activateTimeout = setTimeout( function () {
li.activateTab();
}, 500);
});
$('#navigation').mouseleave(function () {
deactivateTimeout = setTimeout(function () {
$('ul.main-nav li.selected').activateTab();
}, 500);
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 42
var deactivateTimeout, activateTimeout;
$('ul.main-nav li').mouseenter(function () {
var li = $(this);
clearTimeout(deactivateTimeout);
clearTimeout(activateTimeout);
activateTimeout = setTimeout( function () {
li.activateTab();
}, 500);
});
$('#navigation').mouseleave(function () {
deactivateTimeout = setTimeout(function () {
$('ul.main-nav li.selected').activateTab();
}, 500);
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 42
var deactivateTimeout, activateTimeout;
$('ul.main-nav li').mouseenter(function () {
var li = $(this);
clearTimeout(deactivateTimeout);
clearTimeout(activateTimeout);
activateTimeout = setTimeout( function () {
li.activateTab();
}, 500);
});
$('#navigation').mouseleave(function () {
deactivateTimeout = setTimeout(function () {
$('ul.main-nav li.selected').activateTab();
}, 500);
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 42
var deactivateTimeout, activateTimeout;
$('ul.main-nav li').mouseenter(function () {
var li = $(this);
clearTimeout(deactivateTimeout);
clearTimeout(activateTimeout);
activateTimeout = setTimeout( function () {
li.activateTab();
}, 500);
});
$('#navigation').mouseleave(function () {
deactivateTimeout = setTimeout(function () {
$('ul.main-nav li.selected').activateTab();
}, 500);
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 42
var deactivateTimeout, activateTimeout;
$('ul.main-nav li').mouseenter(function () {
var li = $(this);
clearTimeout(deactivateTimeout);
clearTimeout(activateTimeout);
activateTimeout = setTimeout( function () {
li.activateTab();
}, 500);
});
$('#navigation').mouseleave(function () {
deactivateTimeout = setTimeout(function () {
$('ul.main-nav li.selected').activateTab();
}, 500);
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 42
var deactivateTimeout, activateTimeout;
$('ul.main-nav li').mouseenter(function () {
var li = $(this);
clearTimeout(deactivateTimeout);
clearTimeout(activateTimeout);
activateTimeout = setTimeout( function () {
li.activateTab();
}, 500);
});
$('#navigation').mouseleave(function () {
deactivateTimeout = setTimeout(function () {
$('ul.main-nav li.selected').activateTab();
}, 500);
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 42
var deactivateTimeout, activateTimeout;
$('ul.main-nav li').mouseenter(function () {
var li = $(this);
clearTimeout(deactivateTimeout);
clearTimeout(activateTimeout);
activateTimeout = setTimeout( function () {
li.activateTab();
}, 500);
});
$('#navigation').mouseleave(function () {
deactivateTimeout = setTimeout(function () {
$('ul.main-nav li.selected').activateTab();
}, 500);
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 42
var deactivateTimeout, activateTimeout;
$('ul.main-nav li').mouseenter(function () {
var li = $(this);
clearTimeout(deactivateTimeout);
clearTimeout(activateTimeout);
activateTimeout = setTimeout( function () {
li.activateTab();
}, 500);
});
$('#navigation').mouseleave(function () {
deactivateTimeout = setTimeout(function () {
$('ul.main-nav li.selected').activateTab();
}, 500);
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 42
var deactivateTimeout, activateTimeout;
$('ul.main-nav li').mouseenter(function () {
var li = $(this);
clearTimeout(deactivateTimeout);
clearTimeout(activateTimeout);
activateTimeout = setTimeout( function () {
li.activateTab();
}, 500);
});
$('#navigation').mouseleave(function () {
deactivateTimeout = setTimeout(function () {
$('ul.main-nav li.selected').activateTab();
}, 500);
});
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 43
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 43
jQuery
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 44
Design for people
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 45
Want a job, nerd?
ZURB.com/talent
Friday, July 8, 2011
All information is copyright ZURB, inc. All rights reserved. 46
ZURB.com/jqconf
Friday, July 8, 2011

More Related Content

Similar to Super Awesome Interactions with jQuery

jQuery For Developers Stack Overflow Dev Days Toronto
jQuery For Developers Stack Overflow Dev Days TorontojQuery For Developers Stack Overflow Dev Days Toronto
jQuery For Developers Stack Overflow Dev Days TorontoRalph Whitbeck
 
jQuery Internals + Cool Stuff
jQuery Internals + Cool StuffjQuery Internals + Cool Stuff
jQuery Internals + Cool Stuffjeresig
 
Backbone intro
Backbone introBackbone intro
Backbone introIan Yang
 
J Query Presentation
J Query PresentationJ Query Presentation
J Query PresentationVishal Kumar
 
Jquery Best Practices
Jquery Best PracticesJquery Best Practices
Jquery Best Practicesbrinsknaps
 
LT 08 - Guilherme Silveira - Cache hipermidia
LT 08 - Guilherme Silveira - Cache hipermidiaLT 08 - Guilherme Silveira - Cache hipermidia
LT 08 - Guilherme Silveira - Cache hipermidiaDNAD
 
Aula 2,3 e 4 Publicidade Online
Aula 2,3 e 4 Publicidade OnlineAula 2,3 e 4 Publicidade Online
Aula 2,3 e 4 Publicidade OnlineKarina Rocha
 
The Contextual Experience of the Mobile Web
The Contextual Experience of the Mobile WebThe Contextual Experience of the Mobile Web
The Contextual Experience of the Mobile WebJeff Carouth
 
jQuery For Beginners - jQuery Conference 2009
jQuery For Beginners - jQuery Conference 2009jQuery For Beginners - jQuery Conference 2009
jQuery For Beginners - jQuery Conference 2009Ralph Whitbeck
 

Similar to Super Awesome Interactions with jQuery (15)

Intro to jQuery
Intro to jQueryIntro to jQuery
Intro to jQuery
 
jQuery For Developers Stack Overflow Dev Days Toronto
jQuery For Developers Stack Overflow Dev Days TorontojQuery For Developers Stack Overflow Dev Days Toronto
jQuery For Developers Stack Overflow Dev Days Toronto
 
HTML5 - Yeah!
HTML5 - Yeah!HTML5 - Yeah!
HTML5 - Yeah!
 
Javascript in Plone
Javascript in PloneJavascript in Plone
Javascript in Plone
 
jQuery Internals + Cool Stuff
jQuery Internals + Cool StuffjQuery Internals + Cool Stuff
jQuery Internals + Cool Stuff
 
Backbone intro
Backbone introBackbone intro
Backbone intro
 
J Query Presentation
J Query PresentationJ Query Presentation
J Query Presentation
 
Jquery Best Practices
Jquery Best PracticesJquery Best Practices
Jquery Best Practices
 
LT 08 - Guilherme Silveira - Cache hipermidia
LT 08 - Guilherme Silveira - Cache hipermidiaLT 08 - Guilherme Silveira - Cache hipermidia
LT 08 - Guilherme Silveira - Cache hipermidia
 
Aula 2,3 e 4 Publicidade Online
Aula 2,3 e 4 Publicidade OnlineAula 2,3 e 4 Publicidade Online
Aula 2,3 e 4 Publicidade Online
 
Einführung in AngularJS
Einführung in AngularJSEinführung in AngularJS
Einführung in AngularJS
 
jQuery Basic API
jQuery Basic APIjQuery Basic API
jQuery Basic API
 
EUC 2013 - Relx
EUC 2013 - RelxEUC 2013 - Relx
EUC 2013 - Relx
 
The Contextual Experience of the Mobile Web
The Contextual Experience of the Mobile WebThe Contextual Experience of the Mobile Web
The Contextual Experience of the Mobile Web
 
jQuery For Beginners - jQuery Conference 2009
jQuery For Beginners - jQuery Conference 2009jQuery For Beginners - jQuery Conference 2009
jQuery For Beginners - jQuery Conference 2009
 

More from ZURB

Foundation: Prototype to Production
Foundation: Prototype to ProductionFoundation: Prototype to Production
Foundation: Prototype to ProductionZURB
 
The Future is Responsive
The Future is ResponsiveThe Future is Responsive
The Future is ResponsiveZURB
 
Building Awesome Products (BayCHI)
Building Awesome Products (BayCHI)Building Awesome Products (BayCHI)
Building Awesome Products (BayCHI)ZURB
 
Mobile-First Foundation Design Meetup
Mobile-First Foundation Design MeetupMobile-First Foundation Design Meetup
Mobile-First Foundation Design MeetupZURB
 
ZURB Google Talk
ZURB Google TalkZURB Google Talk
ZURB Google TalkZURB
 
Building Awesome Products (iOS Developers Meetup)
Building Awesome Products (iOS Developers Meetup)Building Awesome Products (iOS Developers Meetup)
Building Awesome Products (iOS Developers Meetup)ZURB
 
Plug and Play: A Presentation by Bryan Zmijewski
Plug and Play: A Presentation by Bryan ZmijewskiPlug and Play: A Presentation by Bryan Zmijewski
Plug and Play: A Presentation by Bryan ZmijewskiZURB
 
Unmoderated User Testing
Unmoderated User TestingUnmoderated User Testing
Unmoderated User TestingZURB
 
Add a feature? No! Make a New Product
Add a feature? No! Make a New ProductAdd a feature? No! Make a New Product
Add a feature? No! Make a New ProductZURB
 
Back to an Email (and Responsive) Future
Back to an Email (and Responsive) FutureBack to an Email (and Responsive) Future
Back to an Email (and Responsive) FutureZURB
 
Lessons Learned from Building a Web Framework
Lessons Learned from Building a Web FrameworkLessons Learned from Building a Web Framework
Lessons Learned from Building a Web FrameworkZURB
 
9 Ways to Manipulate People With Design
9 Ways to Manipulate People With Design9 Ways to Manipulate People With Design
9 Ways to Manipulate People With DesignZURB
 
5 Ways Thinking Content-first Will Save Your Butt
5 Ways Thinking Content-first Will Save Your Butt5 Ways Thinking Content-first Will Save Your Butt
5 Ways Thinking Content-first Will Save Your ButtZURB
 
3 Ways You Can Give and Get Good Design Feedback
3 Ways You Can Give and Get Good Design Feedback3 Ways You Can Give and Get Good Design Feedback
3 Ways You Can Give and Get Good Design FeedbackZURB
 
3 Ways to Go Mobile First with Responsive Design
3 Ways to Go Mobile First with Responsive Design3 Ways to Go Mobile First with Responsive Design
3 Ways to Go Mobile First with Responsive DesignZURB
 
Everyone Sucks at Feedback
Everyone Sucks at FeedbackEveryone Sucks at Feedback
Everyone Sucks at FeedbackZURB
 
Design That Drives Action
Design That Drives ActionDesign That Drives Action
Design That Drives ActionZURB
 
Building Pageless Apps with Rails and Backbone.js
Building Pageless Apps with Rails and Backbone.jsBuilding Pageless Apps with Rails and Backbone.js
Building Pageless Apps with Rails and Backbone.jsZURB
 
Bringing Email Development from 1996 to 2016
Bringing Email Development from 1996 to 2016Bringing Email Development from 1996 to 2016
Bringing Email Development from 1996 to 2016ZURB
 
9 Ways to Guide Users With Design
9 Ways to Guide Users With Design9 Ways to Guide Users With Design
9 Ways to Guide Users With DesignZURB
 

More from ZURB (20)

Foundation: Prototype to Production
Foundation: Prototype to ProductionFoundation: Prototype to Production
Foundation: Prototype to Production
 
The Future is Responsive
The Future is ResponsiveThe Future is Responsive
The Future is Responsive
 
Building Awesome Products (BayCHI)
Building Awesome Products (BayCHI)Building Awesome Products (BayCHI)
Building Awesome Products (BayCHI)
 
Mobile-First Foundation Design Meetup
Mobile-First Foundation Design MeetupMobile-First Foundation Design Meetup
Mobile-First Foundation Design Meetup
 
ZURB Google Talk
ZURB Google TalkZURB Google Talk
ZURB Google Talk
 
Building Awesome Products (iOS Developers Meetup)
Building Awesome Products (iOS Developers Meetup)Building Awesome Products (iOS Developers Meetup)
Building Awesome Products (iOS Developers Meetup)
 
Plug and Play: A Presentation by Bryan Zmijewski
Plug and Play: A Presentation by Bryan ZmijewskiPlug and Play: A Presentation by Bryan Zmijewski
Plug and Play: A Presentation by Bryan Zmijewski
 
Unmoderated User Testing
Unmoderated User TestingUnmoderated User Testing
Unmoderated User Testing
 
Add a feature? No! Make a New Product
Add a feature? No! Make a New ProductAdd a feature? No! Make a New Product
Add a feature? No! Make a New Product
 
Back to an Email (and Responsive) Future
Back to an Email (and Responsive) FutureBack to an Email (and Responsive) Future
Back to an Email (and Responsive) Future
 
Lessons Learned from Building a Web Framework
Lessons Learned from Building a Web FrameworkLessons Learned from Building a Web Framework
Lessons Learned from Building a Web Framework
 
9 Ways to Manipulate People With Design
9 Ways to Manipulate People With Design9 Ways to Manipulate People With Design
9 Ways to Manipulate People With Design
 
5 Ways Thinking Content-first Will Save Your Butt
5 Ways Thinking Content-first Will Save Your Butt5 Ways Thinking Content-first Will Save Your Butt
5 Ways Thinking Content-first Will Save Your Butt
 
3 Ways You Can Give and Get Good Design Feedback
3 Ways You Can Give and Get Good Design Feedback3 Ways You Can Give and Get Good Design Feedback
3 Ways You Can Give and Get Good Design Feedback
 
3 Ways to Go Mobile First with Responsive Design
3 Ways to Go Mobile First with Responsive Design3 Ways to Go Mobile First with Responsive Design
3 Ways to Go Mobile First with Responsive Design
 
Everyone Sucks at Feedback
Everyone Sucks at FeedbackEveryone Sucks at Feedback
Everyone Sucks at Feedback
 
Design That Drives Action
Design That Drives ActionDesign That Drives Action
Design That Drives Action
 
Building Pageless Apps with Rails and Backbone.js
Building Pageless Apps with Rails and Backbone.jsBuilding Pageless Apps with Rails and Backbone.js
Building Pageless Apps with Rails and Backbone.js
 
Bringing Email Development from 1996 to 2016
Bringing Email Development from 1996 to 2016Bringing Email Development from 1996 to 2016
Bringing Email Development from 1996 to 2016
 
9 Ways to Guide Users With Design
9 Ways to Guide Users With Design9 Ways to Guide Users With Design
9 Ways to Guide Users With Design
 

Recently uploaded

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 

Recently uploaded (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 

Super Awesome Interactions with jQuery

  • 1. All information is copyright ZURB, inc. All rights reserved. http://bit.ly/jqconpanel 1 Friday, July 8, 2011
  • 2. All information is copyright ZURB, inc. All rights reserved. 2 Super Awesome jQuery Interactions Friday, July 8, 2011
  • 3. All information is copyright ZURB, inc. All rights reserved. 3 jQuery is Awesome Friday, July 8, 2011
  • 4. All information is copyright ZURB, inc. All rights reserved. 4 jQuery http://www.youtube.com/watch?v=8nSyInIKlKE Friday, July 8, 2011
  • 5. All information is copyright ZURB, inc. All rights reserved. 5 Friday, July 8, 2011
  • 6. All information is copyright ZURB, inc. All rights reserved. 6 Friday, July 8, 2011
  • 7. All information is copyright ZURB, inc. All rights reserved. 7 http://www.youtube.com/watch?v=HPPj6viIBmU Friday, July 8, 2011
  • 8. All information is copyright ZURB, inc. All rights reserved. 8 jQuery http://www.youtube.com/watch?v=Q5im0Ssyyus Friday, July 8, 2011
  • 9. All information is copyright ZURB, inc. All rights reserved. 9 Four Things Friday, July 8, 2011
  • 10. All information is copyright ZURB, inc. All rights reserved. 10 First Do No Harm Friday, July 8, 2011
  • 11. All information is copyright ZURB, inc. All rights reserved. 11 Understand Response Times Friday, July 8, 2011
  • 12. All information is copyright ZURB, inc. All rights reserved. 12 Communicate Friday, July 8, 2011
  • 13. All information is copyright ZURB, inc. All rights reserved. 13 Anticipate Friday, July 8, 2011
  • 14. All information is copyright ZURB, inc. All rights reserved. 14 Friday, July 8, 2011
  • 15. All information is copyright ZURB, inc. All rights reserved. 15 jQuery Friday, July 8, 2011
  • 16. All information is copyright ZURB, inc. All rights reserved. 15 jQuery Friday, July 8, 2011
  • 17. All information is copyright ZURB, inc. All rights reserved. 16 jQuery Friday, July 8, 2011
  • 18. All information is copyright ZURB, inc. All rights reserved. 16 jQuery Friday, July 8, 2011
  • 19. All information is copyright ZURB, inc. All rights reserved. 17 jQuery Friday, July 8, 2011
  • 20. All information is copyright ZURB, inc. All rights reserved. 17 jQuery Friday, July 8, 2011
  • 21. All information is copyright ZURB, inc. All rights reserved. 18 Speed Friday, July 8, 2011
  • 22. All information is copyright ZURB, inc. All rights reserved. 19 Less than 100 ms Friday, July 8, 2011
  • 23. All information is copyright ZURB, inc. All rights reserved. 20 jQuery Friday, July 8, 2011
  • 24. All information is copyright ZURB, inc. All rights reserved. 20 jQuery Friday, July 8, 2011
  • 25. All information is copyright ZURB, inc. All rights reserved. 21 jQuery Friday, July 8, 2011
  • 26. All information is copyright ZURB, inc. All rights reserved. 21 jQuery Friday, July 8, 2011
  • 27. All information is copyright ZURB, inc. All rights reserved. 22 <div id="wrapper"> <%= render :partial => 'generic_tests/instructions' %> <%= render :partial => 'generic_tests/instructions_tab' if show_instructions_tab? %> <%= render :partial => 'generic_tests/test' %> <%= render :partial => 'generic_tests/demographics' if show_demographics_modal? %> <%= render :partial => 'generic_tests/thanks' %> </div> Friday, July 8, 2011
  • 28. All information is copyright ZURB, inc. All rights reserved. 23 $(document).bind('dismissInstructions', function () { $('#testContainer').fadeInAndSlide(); var image = screenshotContainer.children('img'); image.centerImage(); }); $('#startTest').click(function (event) { event.preventDefault(); $('#instructionContainer').fadeOutAndSlide({offset: 500, complete: function () { $(document).trigger('dismissInstructions'); }}); }); Friday, July 8, 2011
  • 29. All information is copyright ZURB, inc. All rights reserved. 23 $(document).bind('dismissInstructions', function () { $('#testContainer').fadeInAndSlide(); var image = screenshotContainer.children('img'); image.centerImage(); }); $('#startTest').click(function (event) { event.preventDefault(); $('#instructionContainer').fadeOutAndSlide({offset: 500, complete: function () { $(document).trigger('dismissInstructions'); }}); }); Friday, July 8, 2011
  • 30. All information is copyright ZURB, inc. All rights reserved. 23 $(document).bind('dismissInstructions', function () { $('#testContainer').fadeInAndSlide(); var image = screenshotContainer.children('img'); image.centerImage(); }); $('#startTest').click(function (event) { event.preventDefault(); $('#instructionContainer').fadeOutAndSlide({offset: 500, complete: function () { $(document).trigger('dismissInstructions'); }}); }); Friday, July 8, 2011
  • 31. All information is copyright ZURB, inc. All rights reserved. 23 $(document).bind('dismissInstructions', function () { $('#testContainer').fadeInAndSlide(); var image = screenshotContainer.children('img'); image.centerImage(); }); $('#startTest').click(function (event) { event.preventDefault(); $('#instructionContainer').fadeOutAndSlide({offset: 500, complete: function () { $(document).trigger('dismissInstructions'); }}); }); Friday, July 8, 2011
  • 32. All information is copyright ZURB, inc. All rights reserved. 23 $(document).bind('dismissInstructions', function () { $('#testContainer').fadeInAndSlide(); var image = screenshotContainer.children('img'); image.centerImage(); }); $('#startTest').click(function (event) { event.preventDefault(); $('#instructionContainer').fadeOutAndSlide({offset: 500, complete: function () { $(document).trigger('dismissInstructions'); }}); }); Friday, July 8, 2011
  • 33. All information is copyright ZURB, inc. All rights reserved. 23 $(document).bind('dismissInstructions', function () { $('#testContainer').fadeInAndSlide(); var image = screenshotContainer.children('img'); image.centerImage(); }); $('#startTest').click(function (event) { event.preventDefault(); $('#instructionContainer').fadeOutAndSlide({offset: 500, complete: function () { $(document).trigger('dismissInstructions'); }}); }); Friday, July 8, 2011
  • 34. All information is copyright ZURB, inc. All rights reserved. 23 $(document).bind('dismissInstructions', function () { $('#testContainer').fadeInAndSlide(); var image = screenshotContainer.children('img'); image.centerImage(); }); $('#startTest').click(function (event) { event.preventDefault(); $('#instructionContainer').fadeOutAndSlide({offset: 500, complete: function () { $(document).trigger('dismissInstructions'); }}); }); Friday, July 8, 2011
  • 35. All information is copyright ZURB, inc. All rights reserved. 24 100 ms - 1 s Friday, July 8, 2011
  • 36. All information is copyright ZURB, inc. All rights reserved. 25 jQuery Friday, July 8, 2011
  • 37. All information is copyright ZURB, inc. All rights reserved. 25 jQuery Friday, July 8, 2011
  • 38. All information is copyright ZURB, inc. All rights reserved. 26 1 s - 10 s Friday, July 8, 2011
  • 39. All information is copyright ZURB, inc. All rights reserved. 27 Friday, July 8, 2011
  • 40. All information is copyright ZURB, inc. All rights reserved. 27 Friday, July 8, 2011
  • 41. All information is copyright ZURB, inc. All rights reserved. 27 Friday, July 8, 2011
  • 42. All information is copyright ZURB, inc. All rights reserved. 27 Friday, July 8, 2011
  • 43. All information is copyright ZURB, inc. All rights reserved. 27 Friday, July 8, 2011
  • 44. All information is copyright ZURB, inc. All rights reserved. 27 Friday, July 8, 2011
  • 45. All information is copyright ZURB, inc. All rights reserved. 28 jQuery Friday, July 8, 2011
  • 46. All information is copyright ZURB, inc. All rights reserved. 28 jQuery Friday, July 8, 2011
  • 47. All information is copyright ZURB, inc. All rights reserved. 29 var thumb = $('img#thumb'); new AjaxUpload('imageUpload', { action: $('form#newHotnessForm').attr('action'), name: 'image', onSubmit: function(file, extension) { $('div.preview').addClass('loading'); }, onComplete: function(file, response) { thumb.load(function(){ $('div.preview').removeClass('loading'); thumb.unbind(); }); thumb.attr('src', response); } }); Friday, July 8, 2011
  • 48. All information is copyright ZURB, inc. All rights reserved. 29 var thumb = $('img#thumb'); new AjaxUpload('imageUpload', { action: $('form#newHotnessForm').attr('action'), name: 'image', onSubmit: function(file, extension) { $('div.preview').addClass('loading'); }, onComplete: function(file, response) { thumb.load(function(){ $('div.preview').removeClass('loading'); thumb.unbind(); }); thumb.attr('src', response); } }); Friday, July 8, 2011
  • 49. All information is copyright ZURB, inc. All rights reserved. 29 var thumb = $('img#thumb'); new AjaxUpload('imageUpload', { action: $('form#newHotnessForm').attr('action'), name: 'image', onSubmit: function(file, extension) { $('div.preview').addClass('loading'); }, onComplete: function(file, response) { thumb.load(function(){ $('div.preview').removeClass('loading'); thumb.unbind(); }); thumb.attr('src', response); } }); Friday, July 8, 2011
  • 50. All information is copyright ZURB, inc. All rights reserved. 29 var thumb = $('img#thumb'); new AjaxUpload('imageUpload', { action: $('form#newHotnessForm').attr('action'), name: 'image', onSubmit: function(file, extension) { $('div.preview').addClass('loading'); }, onComplete: function(file, response) { thumb.load(function(){ $('div.preview').removeClass('loading'); thumb.unbind(); }); thumb.attr('src', response); } }); Friday, July 8, 2011
  • 51. All information is copyright ZURB, inc. All rights reserved. 29 var thumb = $('img#thumb'); new AjaxUpload('imageUpload', { action: $('form#newHotnessForm').attr('action'), name: 'image', onSubmit: function(file, extension) { $('div.preview').addClass('loading'); }, onComplete: function(file, response) { thumb.load(function(){ $('div.preview').removeClass('loading'); thumb.unbind(); }); thumb.attr('src', response); } }); Friday, July 8, 2011
  • 52. All information is copyright ZURB, inc. All rights reserved. 29 var thumb = $('img#thumb'); new AjaxUpload('imageUpload', { action: $('form#newHotnessForm').attr('action'), name: 'image', onSubmit: function(file, extension) { $('div.preview').addClass('loading'); }, onComplete: function(file, response) { thumb.load(function(){ $('div.preview').removeClass('loading'); thumb.unbind(); }); thumb.attr('src', response); } }); http://valums.com/ajax-upload/ http://www.zurb.com/playground/ajax_upload Friday, July 8, 2011
  • 53. All information is copyright ZURB, inc. All rights reserved. 30 More than 10 s Friday, July 8, 2011
  • 54. All information is copyright ZURB, inc. All rights reserved. 31 jQuery Friday, July 8, 2011
  • 55. All information is copyright ZURB, inc. All rights reserved. 31 jQuery Friday, July 8, 2011
  • 56. All information is copyright ZURB, inc. All rights reserved. 32 function checkStatus() { $.ajax({ url: $('#postStatus').attr('href'), success: function(response) { if (response.complete) { window.location = response.location; } else { setTimeout(checkStatus, 5000); } } }); } setTimeout(checkStatus, 3000); Friday, July 8, 2011
  • 57. All information is copyright ZURB, inc. All rights reserved. 32 function checkStatus() { $.ajax({ url: $('#postStatus').attr('href'), success: function(response) { if (response.complete) { window.location = response.location; } else { setTimeout(checkStatus, 5000); } } }); } setTimeout(checkStatus, 3000); Friday, July 8, 2011
  • 58. All information is copyright ZURB, inc. All rights reserved. 32 function checkStatus() { $.ajax({ url: $('#postStatus').attr('href'), success: function(response) { if (response.complete) { window.location = response.location; } else { setTimeout(checkStatus, 5000); } } }); } setTimeout(checkStatus, 3000); Friday, July 8, 2011
  • 59. All information is copyright ZURB, inc. All rights reserved. 32 function checkStatus() { $.ajax({ url: $('#postStatus').attr('href'), success: function(response) { if (response.complete) { window.location = response.location; } else { setTimeout(checkStatus, 5000); } } }); } setTimeout(checkStatus, 3000); Friday, July 8, 2011
  • 60. All information is copyright ZURB, inc. All rights reserved. 32 function checkStatus() { $.ajax({ url: $('#postStatus').attr('href'), success: function(response) { if (response.complete) { window.location = response.location; } else { setTimeout(checkStatus, 5000); } } }); } setTimeout(checkStatus, 3000); Friday, July 8, 2011
  • 61. All information is copyright ZURB, inc. All rights reserved. 33 Communication Friday, July 8, 2011
  • 62. All information is copyright ZURB, inc. All rights reserved. 34 jQuery Friday, July 8, 2011
  • 63. All information is copyright ZURB, inc. All rights reserved. 34 jQuery Friday, July 8, 2011
  • 64. All information is copyright ZURB, inc. All rights reserved. 35 $('#noteText').bind('hastext', function () { $('#ok').removeClass('disabled').attr('disabled', false); }); $('#noteText').bind('notext', function () { $('#ok').addClass('disabled').attr('disabled', true); }); Friday, July 8, 2011
  • 65. All information is copyright ZURB, inc. All rights reserved. 35 $('#noteText').bind('hastext', function () { $('#ok').removeClass('disabled').attr('disabled', false); }); $('#noteText').bind('notext', function () { $('#ok').addClass('disabled').attr('disabled', true); }); Friday, July 8, 2011
  • 66. All information is copyright ZURB, inc. All rights reserved. 35 $('#noteText').bind('hastext', function () { $('#ok').removeClass('disabled').attr('disabled', false); }); $('#noteText').bind('notext', function () { $('#ok').addClass('disabled').attr('disabled', true); }); Friday, July 8, 2011
  • 67. All information is copyright ZURB, inc. All rights reserved. 35 $('#noteText').bind('hastext', function () { $('#ok').removeClass('disabled').attr('disabled', false); }); $('#noteText').bind('notext', function () { $('#ok').addClass('disabled').attr('disabled', true); }); Friday, July 8, 2011
  • 68. All information is copyright ZURB, inc. All rights reserved. 35 $('#noteText').bind('hastext', function () { $('#ok').removeClass('disabled').attr('disabled', false); }); $('#noteText').bind('notext', function () { $('#ok').addClass('disabled').attr('disabled', true); }); Friday, July 8, 2011
  • 69. All information is copyright ZURB, inc. All rights reserved. 35 $('#noteText').bind('hastext', function () { $('#ok').removeClass('disabled').attr('disabled', false); }); $('#noteText').bind('notext', function () { $('#ok').addClass('disabled').attr('disabled', true); }); http://www.zurb.com/playground/jquery-text-change-custom-event Friday, July 8, 2011
  • 70. All information is copyright ZURB, inc. All rights reserved. 36 jQuery Friday, July 8, 2011
  • 71. All information is copyright ZURB, inc. All rights reserved. 36 jQuery Friday, July 8, 2011
  • 72. All information is copyright ZURB, inc. All rights reserved. 37 jQuery Friday, July 8, 2011
  • 73. All information is copyright ZURB, inc. All rights reserved. 37 jQuery Friday, July 8, 2011
  • 74. All information is copyright ZURB, inc. All rights reserved. 38 /* The note is currently being created */ div.note.current div.note-body { display: none; } /* This note is read only */ div.note.read-only a.delete-note { display: none; } div.note.read-only button.ok { display: none; } div.note.read-only div.overlay { cursor: default; } /* The note is editable but not currently being edited */ div.note.editable button.ok { display: none; } div.note.editable div.overlay { cursor: pointer; } /* The note is being edited */ div.note.editing { z-index: 80; } div.note.editing div.overlay { cursor: move; } div.note.editing div.corner { display: block; z-index: 1000; } Friday, July 8, 2011
  • 75. All information is copyright ZURB, inc. All rights reserved. 38 /* The note is currently being created */ div.note.current div.note-body { display: none; } /* This note is read only */ div.note.read-only a.delete-note { display: none; } div.note.read-only button.ok { display: none; } div.note.read-only div.overlay { cursor: default; } /* The note is editable but not currently being edited */ div.note.editable button.ok { display: none; } div.note.editable div.overlay { cursor: pointer; } /* The note is being edited */ div.note.editing { z-index: 80; } div.note.editing div.overlay { cursor: move; } div.note.editing div.corner { display: block; z-index: 1000; } Friday, July 8, 2011
  • 76. All information is copyright ZURB, inc. All rights reserved. 38 /* The note is currently being created */ div.note.current div.note-body { display: none; } /* This note is read only */ div.note.read-only a.delete-note { display: none; } div.note.read-only button.ok { display: none; } div.note.read-only div.overlay { cursor: default; } /* The note is editable but not currently being edited */ div.note.editable button.ok { display: none; } div.note.editable div.overlay { cursor: pointer; } /* The note is being edited */ div.note.editing { z-index: 80; } div.note.editing div.overlay { cursor: move; } div.note.editing div.corner { display: block; z-index: 1000; } Friday, July 8, 2011
  • 77. All information is copyright ZURB, inc. All rights reserved. 38 /* The note is currently being created */ div.note.current div.note-body { display: none; } /* This note is read only */ div.note.read-only a.delete-note { display: none; } div.note.read-only button.ok { display: none; } div.note.read-only div.overlay { cursor: default; } /* The note is editable but not currently being edited */ div.note.editable button.ok { display: none; } div.note.editable div.overlay { cursor: pointer; } /* The note is being edited */ div.note.editing { z-index: 80; } div.note.editing div.overlay { cursor: move; } div.note.editing div.corner { display: block; z-index: 1000; } Friday, July 8, 2011
  • 78. All information is copyright ZURB, inc. All rights reserved. 38 /* The note is currently being created */ div.note.current div.note-body { display: none; } /* This note is read only */ div.note.read-only a.delete-note { display: none; } div.note.read-only button.ok { display: none; } div.note.read-only div.overlay { cursor: default; } /* The note is editable but not currently being edited */ div.note.editable button.ok { display: none; } div.note.editable div.overlay { cursor: pointer; } /* The note is being edited */ div.note.editing { z-index: 80; } div.note.editing div.overlay { cursor: move; } div.note.editing div.corner { display: block; z-index: 1000; } Friday, July 8, 2011
  • 79. All information is copyright ZURB, inc. All rights reserved. 38 /* The note is currently being created */ div.note.current div.note-body { display: none; } /* This note is read only */ div.note.read-only a.delete-note { display: none; } div.note.read-only button.ok { display: none; } div.note.read-only div.overlay { cursor: default; } /* The note is editable but not currently being edited */ div.note.editable button.ok { display: none; } div.note.editable div.overlay { cursor: pointer; } /* The note is being edited */ div.note.editing { z-index: 80; } div.note.editing div.overlay { cursor: move; } div.note.editing div.corner { display: block; z-index: 1000; } Friday, July 8, 2011
  • 80. All information is copyright ZURB, inc. All rights reserved. 38 /* The note is currently being created */ div.note.current div.note-body { display: none; } /* This note is read only */ div.note.read-only a.delete-note { display: none; } div.note.read-only button.ok { display: none; } div.note.read-only div.overlay { cursor: default; } /* The note is editable but not currently being edited */ div.note.editable button.ok { display: none; } div.note.editable div.overlay { cursor: pointer; } /* The note is being edited */ div.note.editing { z-index: 80; } div.note.editing div.overlay { cursor: move; } div.note.editing div.corner { display: block; z-index: 1000; } Friday, July 8, 2011
  • 81. All information is copyright ZURB, inc. All rights reserved. 38 /* The note is currently being created */ div.note.current div.note-body { display: none; } /* This note is read only */ div.note.read-only a.delete-note { display: none; } div.note.read-only button.ok { display: none; } div.note.read-only div.overlay { cursor: default; } /* The note is editable but not currently being edited */ div.note.editable button.ok { display: none; } div.note.editable div.overlay { cursor: pointer; } /* The note is being edited */ div.note.editing { z-index: 80; } div.note.editing div.overlay { cursor: move; } div.note.editing div.corner { display: block; z-index: 1000; } Friday, July 8, 2011
  • 82. All information is copyright ZURB, inc. All rights reserved. 38 /* The note is currently being created */ div.note.current div.note-body { display: none; } /* This note is read only */ div.note.read-only a.delete-note { display: none; } div.note.read-only button.ok { display: none; } div.note.read-only div.overlay { cursor: default; } /* The note is editable but not currently being edited */ div.note.editable button.ok { display: none; } div.note.editable div.overlay { cursor: pointer; } /* The note is being edited */ div.note.editing { z-index: 80; } div.note.editing div.overlay { cursor: move; } div.note.editing div.corner { display: block; z-index: 1000; } Friday, July 8, 2011
  • 83. All information is copyright ZURB, inc. All rights reserved. 39 Friday, July 8, 2011
  • 84. All information is copyright ZURB, inc. All rights reserved. 39 Friday, July 8, 2011
  • 85. All information is copyright ZURB, inc. All rights reserved. 39 Friday, July 8, 2011
  • 86. All information is copyright ZURB, inc. All rights reserved. 39 Friday, July 8, 2011
  • 87. All information is copyright ZURB, inc. All rights reserved. 39 Friday, July 8, 2011
  • 88. All information is copyright ZURB, inc. All rights reserved. 39 http://www.zurb.com/article/379/110-interactions-for-editing-annotations Friday, July 8, 2011
  • 89. All information is copyright ZURB, inc. All rights reserved. 40 Precognition Friday, July 8, 2011
  • 90. All information is copyright ZURB, inc. All rights reserved. 41 jQuery Friday, July 8, 2011
  • 91. All information is copyright ZURB, inc. All rights reserved. 41 jQuery Friday, July 8, 2011
  • 92. All information is copyright ZURB, inc. All rights reserved. 42 var deactivateTimeout, activateTimeout; $('ul.main-nav li').mouseenter(function () { var li = $(this); clearTimeout(deactivateTimeout); clearTimeout(activateTimeout); activateTimeout = setTimeout( function () { li.activateTab(); }, 500); }); $('#navigation').mouseleave(function () { deactivateTimeout = setTimeout(function () { $('ul.main-nav li.selected').activateTab(); }, 500); }); Friday, July 8, 2011
  • 93. All information is copyright ZURB, inc. All rights reserved. 42 var deactivateTimeout, activateTimeout; $('ul.main-nav li').mouseenter(function () { var li = $(this); clearTimeout(deactivateTimeout); clearTimeout(activateTimeout); activateTimeout = setTimeout( function () { li.activateTab(); }, 500); }); $('#navigation').mouseleave(function () { deactivateTimeout = setTimeout(function () { $('ul.main-nav li.selected').activateTab(); }, 500); }); Friday, July 8, 2011
  • 94. All information is copyright ZURB, inc. All rights reserved. 42 var deactivateTimeout, activateTimeout; $('ul.main-nav li').mouseenter(function () { var li = $(this); clearTimeout(deactivateTimeout); clearTimeout(activateTimeout); activateTimeout = setTimeout( function () { li.activateTab(); }, 500); }); $('#navigation').mouseleave(function () { deactivateTimeout = setTimeout(function () { $('ul.main-nav li.selected').activateTab(); }, 500); }); Friday, July 8, 2011
  • 95. All information is copyright ZURB, inc. All rights reserved. 42 var deactivateTimeout, activateTimeout; $('ul.main-nav li').mouseenter(function () { var li = $(this); clearTimeout(deactivateTimeout); clearTimeout(activateTimeout); activateTimeout = setTimeout( function () { li.activateTab(); }, 500); }); $('#navigation').mouseleave(function () { deactivateTimeout = setTimeout(function () { $('ul.main-nav li.selected').activateTab(); }, 500); }); Friday, July 8, 2011
  • 96. All information is copyright ZURB, inc. All rights reserved. 42 var deactivateTimeout, activateTimeout; $('ul.main-nav li').mouseenter(function () { var li = $(this); clearTimeout(deactivateTimeout); clearTimeout(activateTimeout); activateTimeout = setTimeout( function () { li.activateTab(); }, 500); }); $('#navigation').mouseleave(function () { deactivateTimeout = setTimeout(function () { $('ul.main-nav li.selected').activateTab(); }, 500); }); Friday, July 8, 2011
  • 97. All information is copyright ZURB, inc. All rights reserved. 42 var deactivateTimeout, activateTimeout; $('ul.main-nav li').mouseenter(function () { var li = $(this); clearTimeout(deactivateTimeout); clearTimeout(activateTimeout); activateTimeout = setTimeout( function () { li.activateTab(); }, 500); }); $('#navigation').mouseleave(function () { deactivateTimeout = setTimeout(function () { $('ul.main-nav li.selected').activateTab(); }, 500); }); Friday, July 8, 2011
  • 98. All information is copyright ZURB, inc. All rights reserved. 42 var deactivateTimeout, activateTimeout; $('ul.main-nav li').mouseenter(function () { var li = $(this); clearTimeout(deactivateTimeout); clearTimeout(activateTimeout); activateTimeout = setTimeout( function () { li.activateTab(); }, 500); }); $('#navigation').mouseleave(function () { deactivateTimeout = setTimeout(function () { $('ul.main-nav li.selected').activateTab(); }, 500); }); Friday, July 8, 2011
  • 99. All information is copyright ZURB, inc. All rights reserved. 42 var deactivateTimeout, activateTimeout; $('ul.main-nav li').mouseenter(function () { var li = $(this); clearTimeout(deactivateTimeout); clearTimeout(activateTimeout); activateTimeout = setTimeout( function () { li.activateTab(); }, 500); }); $('#navigation').mouseleave(function () { deactivateTimeout = setTimeout(function () { $('ul.main-nav li.selected').activateTab(); }, 500); }); Friday, July 8, 2011
  • 100. All information is copyright ZURB, inc. All rights reserved. 42 var deactivateTimeout, activateTimeout; $('ul.main-nav li').mouseenter(function () { var li = $(this); clearTimeout(deactivateTimeout); clearTimeout(activateTimeout); activateTimeout = setTimeout( function () { li.activateTab(); }, 500); }); $('#navigation').mouseleave(function () { deactivateTimeout = setTimeout(function () { $('ul.main-nav li.selected').activateTab(); }, 500); }); Friday, July 8, 2011
  • 101. All information is copyright ZURB, inc. All rights reserved. 43 jQuery Friday, July 8, 2011
  • 102. All information is copyright ZURB, inc. All rights reserved. 43 jQuery Friday, July 8, 2011
  • 103. All information is copyright ZURB, inc. All rights reserved. 44 Design for people Friday, July 8, 2011
  • 104. All information is copyright ZURB, inc. All rights reserved. 45 Want a job, nerd? ZURB.com/talent Friday, July 8, 2011
  • 105. All information is copyright ZURB, inc. All rights reserved. 46 ZURB.com/jqconf Friday, July 8, 2011