username@email.com
2025-04-27 15eb82df2d6ec539e9d4245bfe08d531e8eb6379
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
var app_operate_button = function () {
 
    return {
        init: function () {
            $(".btn-dropdown").parent().attr("style", "position: inherit;");
            $(".btn-dropdown").click(function () {
                var heighty = $(this).position().top + 20;
                var widthx = $(this).position().left;
                var screen = $(window).width();
                var offset = $(this).offset();
                $(this).next('ul').removeAttr("style");
                $(this).next('ul').css("top", heighty);
                if ((offset.left + 180) > screen) {
                    var marginr = screen - offset.left - 53;
                    $(this).next('ul').css("margin-right", marginr);
                    $(this).next('ul').addClass("pull-right")
                }
                else {
                    $(this).next('ul').css("left", widthx);
                    $(this).next('ul').removeClass("pull-right")
                }
            });
        }
    }
}();
 
jQuery(document).ready(function () {
    app_operate_button.init();
});