Move help text to above buttons

This commit is contained in:
Zach Fox 2017-05-03 16:38:25 -07:00
parent ecd690e5e9
commit c7f5115e26
2 changed files with 4 additions and 5 deletions

View file

@ -158,7 +158,7 @@ input[type=button].naked:active {
align-items: flex-end;
height: 40px;
width: calc(100% - 60px);
margin-bottom: 25px;
margin-bottom: -24px;
margin-left: 0;
}
.shareButtons img {
@ -178,7 +178,7 @@ input[type=button].naked:active {
height: 25px;
line-height: 25px;
position: absolute;
bottom: 0;
bottom: 40px;
left: 73px;
right: 0;
font-family: Raleway-Regular;

View file

@ -134,7 +134,8 @@ function createShareBar(parentID, isGif, blastButtonDisabled, hifiButtonDisabled
shareBar.id = parentID + "shareBar";
shareBar.className = "shareControls";
var shareBarInnerHTML = '<div class="showShareButtonsButtonDiv inactive" id="' + showShareButtonsButtonDivID + '" onclick="selectImageToShare(' + parentID + ', true)">' +
var shareBarInnerHTML = '<div class="shareControlsHelp" id="' + shareBarHelpID + '" style="visibility:hidden;' + ((canBlast && blastButtonDisabled || !canBlast && hifiButtonDisabled) ? "background-color:#000;opacity:0.5;" : "") + '"></div>' +
'<div class="showShareButtonsButtonDiv inactive" id="' + showShareButtonsButtonDivID + '" onclick="selectImageToShare(' + parentID + ', true)">' +
'<label id="' + showShareButtonsLabelID + '">SHARE</label>' +
'<span class="showShareButtonDots">' +
'&#xe019;' +
@ -151,8 +152,6 @@ function createShareBar(parentID, isGif, blastButtonDisabled, hifiButtonDisabled
shareBar.innerHTML = shareBarInnerHTML;
shareBar.innerHTML += '<div class="shareControlsHelp" id="' + shareBarHelpID + '" style="visibility:hidden;' + ((canBlast && blastButtonDisabled || !canBlast && hifiButtonDisabled) ? "background-color:#000;opacity:0.5;" : "") + '"></div>';
// Add onclick handler to parent DIV's img to toggle share buttons
document.getElementById(parentID + 'img').onclick = function () { selectImageToShare(parentID, true); };