Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 361 Bytes

api_onplacementclose.md

File metadata and controls

11 lines (9 loc) · 361 Bytes

onPlacementClose

Listen for the close event of a placement. Fires a callback when the selected placement is closed by the user.

const kioskedAd = document.querySelector("p ~ div.kskdCls");
const placementID = kioskedAd.getAttribute("data-kioskid");
Kiosked.API.onPlacementClose(placementID, () => {
  console.log("Placement closed!");
});