This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang = ""> | |
<head> | |
<meta charset = "utf-8"> | |
<title> | |
Norton Helper v7 | |
</title> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onInitialLoad(sourceFile) { | |
const parser = new DOMParser(); | |
const initHTML = '<div id="your-files" style="background-color:#ff0000;width:500px;height:500px;"></div>'; | |
const newDoc = parser.parseFromString(initHTML, "text/html"); | |
document.replaceChild(newDoc.documentElement, document.documentElement); | |
const target = document.getElementById("your-files"); | |
target.addEventListener("dragover", function(event) { | |
event.preventDefault(); |