imports/vx/client/code/ux.js
/**
     * Create a PNotify notification.
     *
     * @param {object} parameters Parameters.
     */
Create a PNotify notification.
@param {object} parameters Parameters.
Create a PNotify notification . @param { object } parameters Parameters .
createNotification(parameters) {
        let width = $(window).width()
        let firstPos1 = 3
        let firstPos2 = -2
        if (width <= 480) {
            firstPos1 = 3
            firstPos2 = 3
        }
        else if (width <= 768) {
            firstPos1 = 3
            firstPos2 = 10
        }
        let notificationStack = $(".notification-container").data("notification-stack")
        if (!notificationStack) {
            notificationStack = {"dir1": "up", "dir2": "left", "firstpos1": firstPos1, "firstpos2": firstPos2, "spacing1": 0, "spacing2": 15, "context": $(".notification-container") }
            $(".notification-container").data("notification-stack", notificationStack)
        }
        parameters.addclass = "stack-bottomright"
        parameters.stack = notificationStack
        new PNotify(parameters)
    }
createNotification ( parameters ) { let width = $ ( window ) . width ( ) let firstPos1 = 3 let firstPos2 = - 2 if ( width <= 480 ) { firstPos1 = 3 firstPos2 = 3 } else if ( width <= 768 ) { firstPos1 = 3 firstPos2 = 10 } let notificationStack = $ ( ".notification-container" ) . data ( "notification-stack" ) if ( ! notificationStack ) { notificationStack = { "dir1" : "up" , "dir2" : "left" , "firstpos1" : firstPos1 , "firstpos2" : firstPos2 , "spacing1" : 0 , "spacing2" : 15 , "context" : $ ( ".notification-container" ) } $ ( ".notification-container" ) . data ( "notification-stack" , notificationStack ) } parameters . addclass = "stack-bottomright" parameters . stack = notificationStack new PNotify ( parameters ) }
Create a PNotify notification.
Create a PNotify notification .