diff --git a/stable/live/Main-a6da0a7d.js b/stable/live/Main-41ce805c.js similarity index 99% rename from stable/live/Main-a6da0a7d.js rename to stable/live/Main-41ce805c.js index 8d19570..4db0986 100644 --- a/stable/live/Main-a6da0a7d.js +++ b/stable/live/Main-41ce805c.js @@ -15201,8 +15201,11 @@ var _Gizra$elm_restful$Restful_Endpoint$urlForKey = F3( var _p28 = _p27._0; return A2( _Gizra$elm_restful$Restful_Endpoint_ops['>'], - A2(_Gizra$elm_restful$Restful_Endpoint_ops['>'], backendUrl, _p28.path), - _p28.keyToUrlPart(key)); + backendUrl, + A2( + _Gizra$elm_restful$Restful_Endpoint_ops['>'], + _p28.path, + _p28.keyToUrlPart(key))); }); var _Gizra$elm_restful$Restful_Endpoint$urlForManyKeys = F3( function (backendUrl, _p29, keys) { @@ -15212,8 +15215,8 @@ var _Gizra$elm_restful$Restful_Endpoint$urlForManyKeys = F3( A2(_elm_lang$core$List$map, _p31.keyToUrlPart, keys)); return A2( _Gizra$elm_restful$Restful_Endpoint_ops['>'], - A2(_Gizra$elm_restful$Restful_Endpoint_ops['>'], backendUrl, _p31.path), - ids); + backendUrl, + A2(_Gizra$elm_restful$Restful_Endpoint_ops['>'], _p31.path, ids)); }); var _Gizra$elm_restful$Restful_Endpoint$encodeEmptyObject = function (a) { return _elm_lang$core$Json_Encode$object( diff --git a/stable/live/app-a6da0a7d.js b/stable/live/app-41ce805c.js similarity index 98% rename from stable/live/app-a6da0a7d.js rename to stable/live/app-41ce805c.js index f7f600e..ff2bdd5 100644 --- a/stable/live/app-a6da0a7d.js +++ b/stable/live/app-41ce805c.js @@ -111,11 +111,16 @@ elmApp.ports.playSoundOnLiveBid.subscribe(function () { }, 1); }); +var cssAdded = false; elmApp.ports.loadBackofficeCSS.subscribe(function(backendOfficeUrl) { + if (cssAdded) { + return; + } const link = document.createElement('link'); link.rel = 'stylesheet'; link.href = backendOfficeUrl + '/css/live.css'; document.head.appendChild(link); + cssAdded = true; }); window.onmessage = function(e) { diff --git a/stable/live/app-loader.js b/stable/live/app-loader.js index 8ebba60..8e40350 100644 --- a/stable/live/app-loader.js +++ b/stable/live/app-loader.js @@ -1,6 +1,6 @@ (function() { - const unifiedHash = 'a6da0a7d'; + const unifiedHash = '41ce805c'; function loadScript(src, callback) { const script = document.createElement('script'); diff --git a/stable/live/index.html b/stable/live/index.html index 70578ba..441a008 100644 --- a/stable/live/index.html +++ b/stable/live/index.html @@ -11,7 +11,15 @@ + +
diff --git a/stable/live/keen-41ce805c.js b/stable/live/keen-41ce805c.js new file mode 100644 index 0000000..df867b7 --- /dev/null +++ b/stable/live/keen-41ce805c.js @@ -0,0 +1,41 @@ +var client = null; + +elmApp.ports.keenConnect.subscribe(function(data) { + var env = data[0]; + var config = data[1]; + client = new Keen({ + projectId: config.projectId, + writeKey: config.writeKey + }); + + + // Sale page. + + // Record an event. + var recordEvent = function(eventName, data) { + // Add the enviorment. + data.env = env; + client.recordEvent(eventName, data); + } + + elmApp.ports.keenPlaceBid.subscribe(function(data) { + recordEvent('keenPlaceBid', data); + }); + + elmApp.ports.keenPlaceBidMouseEnter.subscribe(function(data) { + recordEvent('placeBidMouseEnter', data); + }); + + elmApp.ports.keenPlaceBidMouseLeave.subscribe(function(data) { + recordEvent('placeBidMouseLeave', data); + }); + + elmApp.ports.keenSliderNextItem.subscribe(function(data) { + recordEvent('keenSliderNextItem', data); + }); + + elmApp.ports.keenSliderPreviousItem.subscribe(function(data) { + recordEvent('keenSliderPreviousItem', data); + }); + +}); diff --git a/stable/live/pusher-a6da0a7d.js b/stable/live/pusher-41ce805c.js similarity index 100% rename from stable/live/pusher-a6da0a7d.js rename to stable/live/pusher-41ce805c.js diff --git a/stable/live/style-a6da0a7d.css b/stable/live/style-41ce805c.css similarity index 100% rename from stable/live/style-a6da0a7d.css rename to stable/live/style-41ce805c.css