Skip to content

Instantly share code, notes, and snippets.

View mohhasbias's full-sized avatar

Moh Hasbi Assidiqi mohhasbias

View GitHub Profile
@mohhasbias
mohhasbias / site.js
Created May 1, 2013 17:05
example on using modified orbit foundation and lazyload. notice that each time the slide change, it triggers the lazyload to load the image.
$('.products-slider').orbit({
fluid: "1100x350",
timer: false,
afterSlideChange: function(){
this.$slides
.eq(this.activeSlide)
.find('img.lazyload').trigger('appear');
}
});
@mohhasbias
mohhasbias / jquery.foundation.orbit.modified.js
Last active December 16, 2015 20:59
modified foundation orbit
/*
* jQuery Orbit Plugin 1.4.0
* www.ZURB.com/playground
* Copyright 2010, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function ($) {
require "spec_helper"
describe "user registration" do
it "allows new users to register with an email address and password" do
visit "/users/sign_up"
fill_in "Email", :with => "alindeman@example.com"
fill_in "Password", :with => "ilovegrapes"
fill_in "Password confirmation", :with => "ilovegrapes"