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
window._qbetc = [ | |
{ | |
clientId: "lowcostholidays", | |
domain: ".lowcostholidays.com", | |
experiments: [ | |
{ | |
id: "T004-property-results", | |
creatives: { | |
"creative1": { | |
activation: function () {}, |
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
BaseCollection = require("controllers/basecollection") | |
GalleryController = require("controllers/gallery/gallerycontroller") | |
class GalleryCollection extends BaseCollection | |
controller: GalleryController | |
itemTemplate: "abc" | |
constructor: -> | |
super |
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
(function () { | |
var env, test, $; | |
/* | |
* Set up environment | |
*/ | |
(env = { | |
init: function () { | |
$ = env.getJquery(); |
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
(test = { | |
_html: function (arr) { | |
return $(arr.join("")); | |
}, | |
_urlMatch: function (regex, callback) { | |
if (regex.test(window.location.href)) { | |
return callback(); | |
} | |
}, |
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
$(function(){ | |
(function() { | |
var iphone = false; | |
var supportsFixed = function () { | |
var ua = navigator.userAgent; | |
if (/iphone|ipod|ipad/i.test(ua)) { | |
iphone = true; | |
return !(/OS [1-4]/i.test(ua)); |
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
$(function(){ | |
(function() { | |
var isMobile = function() { | |
return navigator.userAgent.search(/iphone|ipod|ipad|android/i) > -1; | |
}; | |
var fixSliderPosition = function() { | |
var slider = $("#qContent"); | |
if (!slider.length) { | |
setTimeout(fixSliderPosition, 200); |
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
$(function(){ | |
(function() { | |
var fixSliderPosition = function() { | |
var slider = $("#qContent"); | |
if (!slider.length) { | |
setTimeout(doStuff, 200); | |
return; | |
} | |
slider.show(); |
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
$ = jQuery | |
pluginName = "propertyBinding" | |
$.propertyBinding = (element, options) -> | |
self = @ | |
defaults = | |
a : 1 | |
b : 2 |
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
$(window).bind('beforeunload', function(){ | |
return Editor.beforeClose(); | |
}); | |
/* | |
var keyHandler = function(){ | |
_.each( arguments, function( | |
} | |
keyHandler('ctrl','leftarrow',function(){ |
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 getOwnProperties = function(model){ | |
var props = {}; | |
for(var prop in model){ | |
if( model.hasOwnProperty(prop) | |
&& prop.indexOf('__ember') < 0 | |
&& prop.indexOf('_super') < 0 | |
&& Ember.typeOf(model.get(prop)) !== 'function' | |
){ | |
props[prop] = model[prop]; | |
} |