- Precise Selector ( Loose when necessary )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
trip.start(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var trip = new Trip([ | |
{ | |
sel : $('#element1'), | |
content : 'This is element 1' | |
}, | |
{ | |
sel : $('#element2'), | |
content : 'This is element 2' | |
} | |
], options); // details about options are listed below |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="dist/trip.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link type="text/css" rel="stylesheet" href="dist/trip.min.css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
var trip = new Trip([ | |
{ | |
sel : $('.step1'), | |
position : 'n', | |
content : 'Hi, I am Trip.js', | |
delay : 2000, | |
callback : function(i) { | |
console.log("step "+ i +" is finished"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// reset all inline styles | |
$("SEL").each(function() { | |
$(this).get(0).style.cssText = ""; | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// desktop_page.jade | |
extends layout_desktop | |
block content | |
p this is a page for desktop extending layout_desktop |
Bootstrap Stuffs
- Themeforest - http://themeforest.net/
- Bootswatch - http://bootswatch.com/
- Wrapbootstrap - https://wrapbootstrap.com/
Icon fonts
- icomoon - http://icomoon.io/
- Font Awesome - http://fortawesome.github.com/Font-Awesome/