Skip to content

Commit

Permalink
release fixx live css
Browse files Browse the repository at this point in the history
  • Loading branch information
bricel committed Sep 19, 2024
1 parent 3e83553 commit 3616064
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 5 deletions.
11 changes: 7 additions & 4 deletions stable/live/Main-a6da0a7d.js → stable/live/Main-41ce805c.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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(
Expand Down
5 changes: 5 additions & 0 deletions stable/live/app-a6da0a7d.js → stable/live/app-41ce805c.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion stable/live/app-loader.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

(function() {
const unifiedHash = 'a6da0a7d';
const unifiedHash = '41ce805c';

function loadScript(src, callback) {
const script = document.createElement('script');
Expand Down
8 changes: 8 additions & 0 deletions stable/live/index.html

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions stable/live/keen-41ce805c.js
Original file line number Diff line number Diff line change
@@ -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);
});

});
File renamed without changes.
File renamed without changes.

0 comments on commit 3616064

Please sign in to comment.