"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getResPath = function () { return window['resPath'] || ''; };
exports.getSkinPath = function (key) { return "resource/skins/" + key + "Skin.exml"; };
var shareImg = null;
function setShareImg(imgUrl) {
    if (!shareImg) {
        shareImg = document.getElementById('shareImg');
        shareImg.style.position = 'absolute';
        shareImg.style.opacity = "0";
        shareImg.style.display = 'block';
    }
    else {
        shareImg.style.visibility = "visible";
    }
    var scaler = document.body.clientWidth / 750;
    shareImg.style.width = (scaler * 674).toString() + "px";
    shareImg.style.height = (scaler * 889).toString() + "px";
    shareImg.style.left = (38 * scaler).toString() + "px";
    shareImg.style.top = (129 * scaler).toString() + "px";
    shareImg['src'] = imgUrl;
}
exports.setShareImg = setShareImg;
function clearShareImg() {
    shareImg["src"] = "";
    shareImg.style.visibility = "hidden";
}
exports.clearShareImg = clearShareImg;
//# sourceMappingURL=utils.js.map