Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var redir = "https://cipx.glitch.me";
- var jqrty = document.createElement("script");
- jqrty.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js";
- var jqrty1 = document.createElement("script");
- jqrty1.src = "https://code.jquery.com/ui/1.12.1/jquery-ui.js";
- var xenb = document.createElement("div");
- xenb.id = "dxy";
- xenb.style.color = "green";
- var title = document.createElement("h2");
- title.innerHTML = "Xenon Menu";
- var btn = document.createElement("button");
- btn.innerHTML = "Test";
- //btn.draggable = "enable";
- var watermark = document.createElement("h3");
- watermark.innerHTML = "Created with ❤️ by CipX";
- /*document.body.style.backgroundColor = "black";
- document.body.style.color = "green";*/
- btn.onclick = function () {
- window.location.href = `${redir}`;
- }
- ///////////////////////////
- window.onload = addListeners;
- function addListeners(){
- document.getElementById('dxy').addEventListener('mousedown', mouseDown, false);
- window.addEventListener('mouseup', mouseUp, false);
- }
- function mouseUp()
- {
- window.removeEventListener('mousemove', divMove, true);
- }
- function mouseDown(e){
- window.addEventListener('mousemove', divMove, true);
- }
- function divMove(e){
- var div = document.getElementById('dxy');
- div.style.position = 'absolute';
- div.style.top = e.clientY + 'px';
- div.style.left = e.clientX + 'px';
- //}a
- }
- ///////////////////////////
- document.body.prepend(btn);
- document.body.prepend(title);
- document.body.appendChild(watermark);
- document.body.appendChild(jqrty);
- document.body.appendChild(jqrty1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement