svelte-dnd-action
Advanced tools
Comparing version 0.6.26 to 0.6.27
@@ -43,3 +43,3 @@ { | ||
"description": "*An awesome drag and drop library for Svelte 3 (not using the browser's built-in dnd, thanks god): Rich animations, nested containers, touch support and more *", | ||
"version": "0.6.26", | ||
"version": "0.6.27", | ||
"repository": { | ||
@@ -46,0 +46,0 @@ "type": "git", |
@@ -20,22 +20,23 @@ import {isOnServer} from "../constants"; | ||
if (isOnServer) return null; | ||
window.addEventListener("DOMContentLoaded", () => { | ||
// setting the dynamic alerts | ||
alertsDiv = document.createElement("div"); | ||
(function initAlertsDiv() { | ||
alertsDiv.id = ALERT_DIV_ID; | ||
// tab index -1 makes the alert be read twice on chrome for some reason | ||
//alertsDiv.tabIndex = -1; | ||
alertsDiv.style.position = "fixed"; | ||
alertsDiv.style.bottom = "0"; | ||
alertsDiv.style.left = "0"; | ||
alertsDiv.style.zIndex = "-5"; | ||
alertsDiv.style.opacity = "0"; | ||
alertsDiv.style.height = "0"; | ||
alertsDiv.style.width = "0"; | ||
alertsDiv.setAttribute("role", "alert"); | ||
})(); | ||
document.body.prepend(alertsDiv); | ||
// setting the dynamic alerts | ||
alertsDiv = document.createElement("div"); | ||
(function initAlertsDiv() { | ||
alertsDiv.id = ALERT_DIV_ID; | ||
// tab index -1 makes the alert be read twice on chrome for some reason | ||
//alertsDiv.tabIndex = -1; | ||
alertsDiv.style.position = "fixed"; | ||
alertsDiv.style.bottom = "0"; | ||
alertsDiv.style.left = "0"; | ||
alertsDiv.style.zIndex = "-5"; | ||
alertsDiv.style.opacity = "0"; | ||
alertsDiv.style.height = "0"; | ||
alertsDiv.style.width = "0"; | ||
alertsDiv.setAttribute("role", "alert"); | ||
})(); | ||
document.body.prepend(alertsDiv); | ||
// setting the instructions | ||
Object.entries(ID_TO_INSTRUCTION).forEach(([id, txt]) => document.body.prepend(instructionToHiddenDiv(id, txt))); | ||
// setting the instructions | ||
Object.entries(ID_TO_INSTRUCTION).forEach(([id, txt]) => document.body.prepend(instructionToHiddenDiv(id, txt))); | ||
}); | ||
return {...INSTRUCTION_IDs}; | ||
@@ -42,0 +43,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
242728
5714