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/fullscreenButton.js
import { htmlToElement } from 'Editor/scripts/utilities'
import * as icons from 'Client/UI/icons'

export default class FullscreenButton {
  constructor({ mapID, isFullscreen }) {
    this.mapID = mapID
    this.isFullscreen = isFullscreen

    // Create the HTML element
    this.element = htmlToElement(this.html())
  }
  icon() {
    if (this.isFullscreen) {
      return icons.closeFullscreen
    } else {
      return icons.goFullscreen
    }
  }
  css() {
    return ''
  }
  html() {
    // HTML
    let html = `<div data-image-map-id="${this.mapID}" data-element-name="fullscreenButton" style="${this.css()}" class="imp-ui-element imp-fullscreen-button">${this.icon()}</div>`

    return html
  }
}