HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/slfopp7cb1df/public_html/sitepacket.com/src/client/src/UI/tooltip/tooltipFullscreen.js
import TooltipContent from 'Client/UI/tooltip/content/tooltipContent'
import { hexToRgb } from 'Editor/scripts/utilities'
import * as icons from 'Client/UI/icons'

export default class TooltipFullscreen {
  constructor({ style, content, animation, id }) {
    this.style = style
    this.content = new TooltipContent(content)
    this.animation = animation
    this.id = id
  }
  css() {
    let style = ''
    let color_bg = hexToRgb(this.style.background_color) || { r: 0, b: 0, g: 0 }

    style += `background: rgba(${color_bg.r}, ${color_bg.g}, ${color_bg.b}, ${this.style.background_opacity});`

    return style
  }
  html() {
    let html = ''

    html += ` <div class="imp-fullscreen-tooltip" data-tooltip-id="${this.id}">
                <div class="imp-tooltip-content" style="${this.css()}">${this.closeButtonHtml()}${this.content.html()}</div>
              </div>`

    return html
  }
  closeButtonHtml() {
    return `<div class="imp-tooltip-close-button" data-close-button-tooltip-id="${this.id}">
      ${icons.close}
    </div>`
  }
}