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
| $('.hotel-selector__back').click(function() { | |
| $('.hotel-selector__footer').removeClass('hotel-selector__footer--hidden'); | |
| $('.hotel-selector').removeClass('hotel-selector--selection'); | |
| if ($('.room-type').hasClass('room-type--selected')) { | |
| $('.hotel-selector__footer').addClass('hotel-selector__footer--hidden'); | |
| setTimeout(function() { | |
| $('.hotel-selector__footer').removeClass('hotel-selector__footer--hidden'); | |
| }, 250); | |
| $('.hotel-selector__action').text('Select a room type'); | |
| } |
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 map; | |
| var beaches = [ | |
| ['Chalong Bay', 7.830051,98.349899, 4], | |
| ['Karmala', 7.949757,98.289818, 5], | |
| ['Karon', 7.843486,98.303234, 3], | |
| ['Kata', 7.821527,98.299374, 2] | |
| ]; | |
| function initializeMap() { |
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
| #!/usr/bin/env node | |
| /* | |
| Use the Yahoo Finance CSV API to do some basic market research calculations. | |
| - Background: http://greenido.wordpress.com/2009/12/22/yahoo-finance-hidden-api/ | |
| - Example URL: http://finance.yahoo.com/d/quotes.csv?s=GOOG+FB+AAPL&f=snj1pr | |
| s: Symbol | |
| n: Name | |
| j1: Market Capitalization (in billions) | |
| p: Price-per-share (at previous close) |
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
| $('.pkg-selection').fastClick(function() { | |
| var optionsHeight = $('#options').outerHeight(); | |
| // Load appropriate option list | |
| var content = $(this).attr('id'); | |
| $('#options').load('/components/packagesOptions/' + content + '.html', function(response, status, xhr) { | |
| if (status == "error") { | |
| var msg = "Sorry but there was an error: "; |
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
| $('.pkg-selection').fastClick(function() { | |
| $('body').addClass('inner-page'); | |
| // Load appropriate option list | |
| var content = $(this).attr('id'); | |
| $('#options').load('/components/packagesOptions/' + content + '.html', 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
| // Clicking a selection in the package overview | |
| $('.pkg-selection').fastClick(function() { | |
| $('body').addClass('inner-page'); | |
| // Load appropriate option list | |
| var content = $(this).attr('id'); | |
| $('#options').load('/components/packagesOptions/' + content + '.html', 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
| jQuery(function($) { | |
| var element = document.getElementById('flights-slider'), | |
| defaultOptions = { | |
| transform_always_block: true, | |
| transform_min_scale: 1, | |
| drag_block_horizontal: true, | |
| drag_block_vertical: true, | |
| drag_min_distance: 0 |
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
| window.addEventListener('load', function() { | |
| FastClick.attach(document.body); | |
| }, false); | |
| var $flightWrap, | |
| $flightSlider, | |
| cardWidth, | |
| cardsWidth, | |
| cardsTotal, |
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
| window.addEventListener('load', function() { | |
| FastClick.attach(document.body); | |
| }, false); | |
| var $flightWrap, | |
| $flightSlider, | |
| cardWidth, | |
| cardsWidth, | |
| cardsTotal, |
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
| window.addEventListener('load', function() { | |
| FastClick.attach(document.body); | |
| }, false); | |
| var $flightWrap, | |
| $flightSlider, | |
| cardWidth, | |
| cardsWidth, | |
| cardsTotal, |