Untitled

mail@pastecode.io avatar
unknown
javascript
18 days ago
472 B
4
Indexable
Never
var setDimensionsForDisclaimer = function (dimensionName, dimensionValue) {
        var element = document.styleSheets[0];
        var disclaimerHeight = 50;
        if (element && dimensionName && dimensionName.includes("topHeight")) {
            var styles = "body.pending-push {" + dimensionPrefix + dimensionName + ": " + (dimensionValue + disclaimerHeight) + "px !important }";
            element.insertRule(styles, element.cssRules.length);
        }
    };
Leave a Comment