Remove e-mail message hyperlink if displaying on tablet

This commit is contained in:
David Rowe 2016-12-07 12:52:53 +13:00 committed by Seth Alves
parent 78c6441842
commit eef8c70f10
3 changed files with 12 additions and 4 deletions

View file

@ -10,4 +10,12 @@
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
// Nothing to do; just need empty script to replace individual marketplace ones.
// Only used in WebTablet.
$(document).ready(function () {
// Remove e-mail hyperlink.
var letUsKnow = $("#letUsKnow");
letUsKnow.replaceWith(letUsKnow.html());
});

View file

@ -19,7 +19,7 @@
<div class="marketplaces-container">
<h2 class="marketplaces-title">Marketplaces</h2>
<div class="marketplaces-intro-text">
<p>You can bring content into High Fidelity from anywhere you want. Here are a few places that support direct import of content right now. If you'd like to suggest a Market to include here, <a href="mailto:contact@highfidelity.io">let us know.</a></p>
<p>You can bring content into High Fidelity from anywhere you want. Here are a few places that support direct import of content right now. If you'd like to suggest a Market to include here, <a id="letUsKnow" href="mailto:contact@highfidelity.io">let us know.</a></p>
</div>
<div class="marketplace-tile">
<div class="marketplace-tile-first-column">

View file

@ -27,7 +27,7 @@ var marketplaceWindow = new OverlayWebWindow({
height: 700,
visible: false
});
marketplaceWindow.setScriptURL(MARKETPLACES_DIRECTORY_SCRIPT_URL);
marketplaceWindow.setScriptURL("");
marketplaceWindow.webEventReceived.connect(function (data) {
if (data === "INJECT_HIFI") {
marketplaceWindow.setScriptURL(MARKETPLACES_HFIF_SCRIPT_URL);
@ -36,7 +36,7 @@ marketplaceWindow.webEventReceived.connect(function (data) {
marketplaceWindow.setScriptURL(MARKETPLACES_CLARA_SCRIPT_URL);
}
if (data === "RELOAD_DIRECTORY") {
marketplaceWindow.setScriptURL(MARKETPLACES_DIRECTORY_SCRIPT_URL);
marketplaceWindow.setScriptURL("");
marketplaceWindow.setURL(MARKETPLACES_URL);
}
});