Widget:PillIdentifier: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 65: Line 65:
$('.pillScoreOption').click(updateFormClick);
$('.pillScoreOption').click(updateFormClick);
$('.pillMiscContainer').change(updateFormText);
$('.pillMiscContainer').change(updateFormText);
$('.pillResult').hover(function(){
$(this).children("a:first").children("img:first").css("border-radius","0%");
}, function(){
$(this).children("a:first").children("img:first").css("border-radius","50%");
});
};
};
Line 219: Line 213:
});
});
$('#resultsTable-container').css("visibility", "visible");
$('#resultsTable-container').css("visibility", "visible");
$('.pillResult').hover(function(){
$(this).children("a:first").children("img:first").css("border-radius","0%");
}, function(){
$(this).children("a:first").children("img:first").css("border-radius","50%");
});
};
};
Line 305: Line 305:
var newActiveDiv = positionArr[position][dirIndex];
var newActiveDiv = positionArr[position][dirIndex];
console.log(newActiveDiv);
$(".propertyContainerActive").attr("class", "propertyContainerInactive");
$(".propertyContainerActive").attr("class", "propertyContainerInactive");
$(newActiveDiv).attr("class", "propertyContainerActive");
$(newActiveDiv).attr("class", "propertyContainerActive");
Line 312: Line 310:
var nextPosition = $(newActiveDiv).data()["order"];
var nextPosition = $(newActiveDiv).data()["order"];
console.log(nextPosition);
console.log(positionArr[nextPosition][0]);
console.log(positionArr[nextPosition][1]);
if (positionArr[nextPosition][0] == ""){
if (positionArr[nextPosition][0] == ""){
$("#back").css("visibility","hidden");
$("#back").css("visibility","hidden");
Line 675: Line 669:
</div>
</div>
<div id="resultsTable-container" style="visibility:collapse;">
<div id="resultsTable-container" style="visibility:collapse;">
    <table id="resultsTable" class="resultsTable-class">
        <thead>
            <th>
            Drug Name
            </th>
           
            <th>
            Pill Imprint
            </th>
           
            <th style="width:60px;">
            Dosage
            </th>
           
            <th>
            Ingredients
            </th>
           
            <th style="width:60px;">
            Pill Color
            </th>
           
            <th style="width:60px;">
            Pill Shape
            </th>
           
            <th>
            Pill Size (mm)
            </th>
           
            <th style="width:60px;">
            Score
            </th>
           
            <th>
            NDC
            </th>
           
            <th style="width:360px;">
            Pill Image
            </th>
        </thead>
       
        <tbody id="resultsTable-body">
       
        </tbody>
</table>
</div>
</div>


</includeonly>
</includeonly>

Revision as of 03:56, 2 August 2015