This file contains hidden or 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
.container { | |
width: 960px; | |
margin: 0 auto; | |
} | |
.col { | |
float: left; | |
padding-left: 20px | |
box-sizing: border-box; | |
} |
This file contains hidden or 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 _options = { | |
fx: 'scrollLeft', | |
next: '.right', | |
prev: '.left', | |
pager: '.rotator-index', | |
activePagerClass: 'active' | |
}; |
This file contains hidden or 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
/*globals jQuery, $, wotif, alert */ | |
// Home search | |
wotif.homeSearch = (function (utils) { | |
var selectors = { | |
searchForm: "#search-form", | |
searchButton: "#search-btn", |
This file contains hidden or 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 dealRowHeight = $('tr.deals').height(), | |
tableWidth = $('.matrix').width(), | |
totalDealRows = $('.deals').length; | |
gridHeaderHeight = $('.grid-header').height(); | |
matrixDividerHeight = $('.matrix-divider').height(); | |
dealsOffset = $('.wothotel').offset(); | |
matrixOffset = $('.matrix').offset(); | |
$('body').on('click', '.toggle-map', function() { |
This file contains hidden or 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
/*! | |
* Wotif MapView | |
* @requires jQuery v1.7.2+ | |
* | |
* Description | |
* | |
* @author ... | |
*/ | |
!(function($) { |
This file contains hidden or 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
/*! | |
* Wotif Sticky | |
* @requires jQuery v1.7.2+ | |
* | |
* Description | |
* | |
* @author ... | |
*/ | |
// $('.results-hd').waypoint(function(e,direction) { |
This file contains hidden or 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
/*! | |
* Wotif MapView | |
* @requires jQuery v1.7.2+ | |
* | |
* Description | |
* | |
* @author ... | |
*/ | |
!(function($) { |
This file contains hidden or 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
// Switch active card on swipe | |
$(".cards").hammer().bind("swipe", function(ev) { | |
if (ev.direction == "left") { | |
if (activeCard.is(':first-child')) { | |
// Do nothing | |
} | |
else { | |
$('.card.active').removeClass('active').next('.card').addClass('active'); | |
} | |
} |
This file contains hidden or 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
$('.datepicker-toggle').datepicker({ | |
numberOfMonths: 6, | |
dateFormat: 'D dd M', | |
minDate: 0, | |
showAnim: '', | |
onSelect: function(dateText, inst) { | |
var selectedDate = this.value; | |
// need to make this detect todays date | |
if (this.value == 'Fri 18 Jan') { | |
this.events.showError(); |
This file contains hidden or 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
showSourceCode: function(e) { | |
var html = $('.source').html(); | |
$("<pre />", { | |
"html": | |
$("html") | |
.html() | |
.replace(/[<>]/g, function(m) { return {'<':'<','>':'>'}[m]}) | |
.replace(/((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi,'<a href="$1">$1</a>') + | |
'\n</html>' | |
}).appendTo("#source-code"); |
OlderNewer