// // marketplacesClara.js // // Created by David Rowe on 12 Nov 2016. // Copyright 2016 High Fidelity, Inc. // // Injected into Clara.io marketplace Web page. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // function onLoad() { // Supporting styles from marketplaces.css. $("head").append( '' ); // Supporting styles from edit-style.css. $("head").append( '' ); // Make space for marketplaces footer. $("head").append( '' ); // Marketplaces footer. $("body").append( '
' ); // Marketplace footer action. $("#all-markets").on("click", function () { $("#marketplace-content").attr("src", "marketplacesDirectory.html"); EventBridge.emitWebEvent("RELOAD_DIRECTORY"); }); } window.addEventListener("load", onLoad);