public/assets/js/live.js   A
last analyzed

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 9
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 9
rs 10
wmc 3
mnd 1
bc 1
fnc 2
bpm 0.5
cpm 1.5
noi 0
1
(function (window, document) {
2
    var loader = function () {
3
        var script = document.createElement("script"), tag = document.getElementsByTagName("script")[0];
4
        script.src = "https://seamless-epay.sslcommerz.com/embed.min.js?" + Math.random().toString(36).substring(7);
5
        tag.parentNode.insertBefore(script, tag);
6
    };
7
8
    window.addEventListener ? window.addEventListener("load", loader, false) : window.attachEvent("onload", loader);
9
})(window, document);
10