Fragments



<script>;if (`variablelist` in window) {

}else{

variablelist = {};
};
variablelist[`itemcount`]= 0
;if (`variablelist` in window) {

}else{

variablelist = {};
};
variablelist[`thermoactive`]= 0
generateditem = document.createElement("div");
;generateditem.id = `bag`;;generateditem.innerHTML = `👜`;;generateditem.style = `width:` + `15vw` + `;height:` + `15vh` + `;position:` + `absolute` + `;left:` + `40vw` + `;top:` + `70vh` + `;color:` + `red` + `;z-index:` + `100` + `;font-size:` + `20vw` + `;`;generateditem.addEventListener('click', function (e) {});try {
document.getElementById().appendChild(generateditem);
} catch (error) {
document.body.appendChild(generateditem); }
;generateditem.style.animation = 'none';
generateditem.offsetHeight; /* trigger reflow */
generateditem.style.animation = null;generateditem.animate([],{duration: 10000,
}
);
;generateditem.contentEditable=`false`;// Make the DIV element draggable:


// find the element that you want to drag.
var box =generateditem

/* listen to the touchMove event,
every time it fires, grab the location
of touch and assign it to box */

box.addEventListener('touchmove', function(e) {
// grab the location of touch
var touchLocation = e.targetTouches[0];

// assign box new coordinates based on the touch.
box.style.left = touchLocation.pageX -box.offsetWidth/2 + 'px';
box.style.top = touchLocation.pageY -box.offsetHeight/2 + 'px';
})

/* record the position of the touch
when released using touchend event.
This will be the drop position. */

box.addEventListener('touchend', function(e) {
// current box position.
var x = parseInt(box.style.left);
var y = parseInt(box.style.top);
})




//begin nonmobile
dragElement(generateditem);

function dragElement(elmnt) {
var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;

// otherwise, move the DIV from anywhere inside the DIV:
elmnt.onmousedown = dragMouseDown;


function dragMouseDown(e) {
e = e || window.event;
e.preventDefault();
// get the mouse cursor position at startup:
pos3 = e.clientX;
pos4 = e.clientY;
document.onmouseup = closeDragElement;
// call a function whenever the cursor moves:
document.onmousemove = elementDrag;
}

function elementDrag(e) {
e = e || window.event;
e.preventDefault();
// calculate the new cursor position:
pos1 = pos3 - e.clientX;
pos2 = pos4 - e.clientY;
pos3 = e.clientX;
pos4 = e.clientY;
// set the element's new position:
elmnt.style.top = (elmnt.offsetTop - pos2) + "px";
elmnt.style.left = (elmnt.offsetLeft - pos1) + "px";
}

function closeDragElement() {
// stop moving when mouse button is released:
document.onmouseup = null;
document.onmousemove = null;
}
}
generateditem = document.createElement("div");
;generateditem.id = `CashDisplay`;;generateditem.innerHTML = [`CASH: $`,variablelist[`itemcount`],].join('');;generateditem.style = `width:` + `100%` + `;height:` + `10vh` + `;position:` + `absolute` + `;left:` + `0` + `;top:` + `90vh` + `;color:` + `red` + `;font-size:` + `5vw` + `;z-index:` + `101` + `;`;generateditem.addEventListener('click', function (e) {});try {
document.getElementById().appendChild(generateditem);
} catch (error) {
document.body.appendChild(generateditem); }
;generateditem.style.animation = 'none';
generateditem.offsetHeight; /* trigger reflow */
generateditem.style.animation = null;generateditem.animate([],{duration: 10000,
}
);
;generateditem.contentEditable=`false`;// Make the DIV element draggable:


// find the element that you want to drag.
var box =generateditem

/* listen to the touchMove event,
every time it fires, grab the location
of touch and assign it to box */

box.addEventListener('touchmove', function(e) {
// grab the location of touch
var touchLocation = e.targetTouches[0];

// assign box new coordinates based on the touch.
box.style.left = touchLocation.pageX -box.offsetWidth/2 + 'px';
box.style.top = touchLocation.pageY -box.offsetHeight/2 + 'px';
})

/* record the position of the touch
when released using touchend event.
This will be the drop position. */

box.addEventListener('touchend', function(e) {
// current box position.
var x = parseInt(box.style.left);
var y = parseInt(box.style.top);
})




//begin nonmobile
dragElement(generateditem);

function dragElement(elmnt) {
var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;

// otherwise, move the DIV from anywhere inside the DIV:
elmnt.onmousedown = dragMouseDown;


function dragMouseDown(e) {
e = e || window.event;
e.preventDefault();
// get the mouse cursor position at startup:
pos3 = e.clientX;
pos4 = e.clientY;
document.onmouseup = closeDragElement;
// call a function whenever the cursor moves:
document.onmousemove = elementDrag;
}

function elementDrag(e) {
e = e || window.event;
e.preventDefault();
// calculate the new cursor position:
pos1 = pos3 - e.clientX;
pos2 = pos4 - e.clientY;
pos3 = e.clientX;
pos4 = e.clientY;
// set the element's new position:
elmnt.style.top = (elmnt.offsetTop - pos2) + "px";
elmnt.style.left = (elmnt.offsetLeft - pos1) + "px";
}

function closeDragElement() {
// stop moving when mouse button is released:
document.onmouseup = null;
document.onmousemove = null;
}
}
;if (`timercounter` in window) {

}else{

timercounter = {};timerexpire = {}
}

;intrafrag_var = `SyringeSpawner`;
if('timerexpire' in window){}else{timerexpire = {} }
if('timercounter' in window){}else{timercounter = {} }
timerexpire[intrafrag_var] = -1;
timercounter[intrafrag_var] = setInterval(function() {timerexpire[`SyringeSpawner`] =timerexpire[`SyringeSpawner`] +1;
generateditem = document.createElement("div");
;generateditem.id = [`Syringe`,timerexpire[`SyringeSpawner`],].join('');;generateditem.innerHTML = `💉`;;generateditem.style = `width:` + `5vw` + `;height:` + `5vh` + `;position:` + `absolute` + `;font-size:` + `10vw` + `;top:` + [Math.floor(Math.random()*(40 + 1 - 0) + 0),`vh`,].join('') + `;left:` + [Math.floor(Math.random()*(95 + 1 - 0) + 0),`vw`,].join('') + `;user-select: none` + `;`;generateditem.addEventListener('click', function (e) {;console.log(`My String`)});try {
document.getElementById().appendChild(generateditem);
} catch (error) {
document.body.appendChild(generateditem); }
;generateditem.style.animation = 'none';
generateditem.offsetHeight; /* trigger reflow */
generateditem.style.animation = null;generateditem.animate([{transform: '' + 'translate3d(' + `0` + ',' + `100vh`+ ',' + `0` + `) `,},],{duration: 10000,
fill: `forwards`}
);
;if (typeof array_counter == 'undefined') {
var array_counter = {} };
array_name_here = `CollisionListA`;;if (array_name_here in variablelist){}else{variablelist[array_name_here] = []};
variablelist[array_name_here].push([`Syringe`,timerexpire[`SyringeSpawner`],].join(''));

;if (typeof array_counter == 'undefined') {
var array_counter = {} };
array_name_here = `CollisionListB`;;if (array_name_here in variablelist){}else{variablelist[array_name_here] = []};
variablelist[array_name_here].push(`bag`);

}
,5000);

;if (`variablelist` in window) {

}else{

variablelist = {};
};
variablelist[`MenuState`]= 0
;if (`variablelist` in window) {

}else{

variablelist = {};
};
variablelist[`MenuHeader`]= `Shop`
generateditem = document.createElement("div");
;generateditem.id = `menubutton`;;generateditem.style = `width:` + `15vw` + `;text-align:` + `center` + `;font-size:` + `5vw` + `;height:` + `6vh` + `;position:` + `absolute` + `;left:` + `0` + `;top:` + `0` + `;background-color:` + `orange` + `;user-select: none` + `;color:` + `black` + `;z-index:` + `10` + `;`;generateditem.addEventListener('click', function (e) {;if (variablelist[`MenuState`]==0){generateditem = document.createElement("div");
;generateditem.id = `Menu`;;generateditem.style = `width:` + `70vw` + `;height:` + `70vh` + `;position:` + `absolute` + `;left:` + `15vw` + `;top:` + `15vh` + `;background-color:` + `orange` + `;user-select: none` + `;opacity:` + `.7` + `;`;generateditem.addEventListener('click', function (e) {});try {
document.getElementById().appendChild(generateditem);
} catch (error) {
document.body.appendChild(generateditem); }
;generateditem.style.animation = 'none';
generateditem.offsetHeight; /* trigger reflow */
generateditem.style.animation = null;generateditem.animate([],{duration: 10000,
}
);
;generateditem.contentEditable=`false`;
generateditem = document.createElement("div");
;generateditem.id = `MenuHeader`;;generateditem.innerHTML = variablelist[`MenuHeader`];;generateditem.style = `height:` + `11vh` + `;position:` + `absolute` + `;top:` + `17vh` + `;color:` + `black` + `;font-size:` + `10vw` + `;width:` + `100vw` + `;left:` + `35%` + `;`;generateditem.addEventListener('click', function (e) {});try {
document.getElementById(`Menu`).appendChild(generateditem);
} catch (error) {
document.body.appendChild(generateditem); }
;generateditem.style.animation = 'none';
generateditem.offsetHeight; /* trigger reflow */
generateditem.style.animation = null;generateditem.animate([],{duration: 10000,
}
);
;generateditem.contentEditable=`false`;
;if (`variablelist` in window) {

}else{

variablelist = {};
};
variablelist[`MenuState`]= 1
;if (variablelist[`thermoactive`]==`0`){generateditem = document.createElement("div");
;generateditem.id = `BuyThermos`;;generateditem.innerHTML = `$10 - 🌡️`;;generateditem.style = `width:` + `100%` + `;height:` + `12vw` + `;left:` + `0` + `;top:` + `0` + `;color:` + `black` + `;font-size:` + `10vw` + `;background-color:` + `yellow` + `;text-align:` + `center` + `;`;generateditem.addEventListener('click', function (e) {;if (variablelist[`itemcount`]>`10`){;if (`timercounter` in window) {

}else{

timercounter = {};timerexpire = {}
}

;intrafrag_var = `ThermoSpawner`;
if('timerexpire' in window){}else{timerexpire = {} }
if('timercounter' in window){}else{timercounter = {} }
timerexpire[intrafrag_var] = -1;
timercounter[intrafrag_var] = setInterval(function() {timerexpire[`ThermoSpawner`] =timerexpire[`ThermoSpawner`] +1;
generateditem = document.createElement("div");
;generateditem.id = [`Thermo`,timerexpire[`ThermoSpawner`],].join('');;generateditem.innerHTML = `🌡️`;;generateditem.style = `width:` + `5vw` + `;height:` + `5vh` + `;position:` + `absolute` + `;font-size:` + `10vw` + `;top:` + [Math.floor(Math.random()*(40 + 1 - 0) + 0),`vh`,].join('') + `;left:` + [Math.floor(Math.random()*(95 + 1 - 0) + 0),`vw`,].join('') + `;user-select: none` + `;`;generateditem.addEventListener('click', function (e) {;console.log(`My String`)});try {
document.getElementById().appendChild(generateditem);
} catch (error) {
document.body.appendChild(generateditem); }
;generateditem.style.animation = 'none';
generateditem.offsetHeight; /* trigger reflow */
generateditem.style.animation = null;generateditem.animate([{transform: '' + 'translate3d(' + `0` + ',' + `100vh`+ ',' + `0` + `) `,},],{duration: 10000,
fill: `forwards`}
);
;if (typeof array_counter == 'undefined') {
var array_counter = {} };
array_name_here = `CollisionListA`;;if (array_name_here in variablelist){}else{variablelist[array_name_here] = []};
variablelist[array_name_here].push([`Thermo`,timerexpire[`ThermoSpawner`],].join(''));

;if (typeof array_counter == 'undefined') {
var array_counter = {} };
array_name_here = `CollisionListB`;;if (array_name_here in variablelist){}else{variablelist[array_name_here] = []};
variablelist[array_name_here].push(`bag`);

}
,5000);

}
else{;console.log(`My false String`)};
});
try {
document.getElementById(`Menu`).appendChild(generateditem);
} catch (error) {
document.body.appendChild(generateditem); }
;generateditem.style.animation = 'none';
generateditem.offsetHeight; /* trigger reflow */
generateditem.style.animation = null;generateditem.animate([{transform: '' + 'scale(' + `1`+ ',' + `1` + `) `,},{transform: '' + 'scale(' + `.95`+ ',' + `.95` + `) `,},{transform: '' + 'scale(' + `1`+ ',' + `1` + `) `,},],{duration: 5000,
iterations:Infinity,}
);
;generateditem.contentEditable=`false`;// Make the DIV element draggable:


// find the element that you want to drag.
var box =generateditem

/* listen to the touchMove event,
every time it fires, grab the location
of touch and assign it to box */

box.addEventListener('touchmove', function(e) {
// grab the location of touch
var touchLocation = e.targetTouches[0];

// assign box new coordinates based on the touch.
box.style.left = touchLocation.pageX -box.offsetWidth/2 + 'px';
box.style.top = touchLocation.pageY -box.offsetHeight/2 + 'px';
})

/* record the position of the touch
when released using touchend event.
This will be the drop position. */

box.addEventListener('touchend', function(e) {
// current box position.
var x = parseInt(box.style.left);
var y = parseInt(box.style.top);
})




//begin nonmobile
dragElement(generateditem);

function dragElement(elmnt) {
var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;

// otherwise, move the DIV from anywhere inside the DIV:
elmnt.onmousedown = dragMouseDown;


function dragMouseDown(e) {
e = e || window.event;
e.preventDefault();
// get the mouse cursor position at startup:
pos3 = e.clientX;
pos4 = e.clientY;
document.onmouseup = closeDragElement;
// call a function whenever the cursor moves:
document.onmousemove = elementDrag;
}

function elementDrag(e) {
e = e || window.event;
e.preventDefault();
// calculate the new cursor position:
pos1 = pos3 - e.clientX;
pos2 = pos4 - e.clientY;
pos3 = e.clientX;
pos4 = e.clientY;
// set the element's new position:
elmnt.style.top = (elmnt.offsetTop - pos2) + "px";
elmnt.style.left = (elmnt.offsetLeft - pos1) + "px";
}

function closeDragElement() {
// stop moving when mouse button is released:
document.onmouseup = null;
document.onmousemove = null;
}
}
}
else{};
}
else{;if (`variablelist` in window) {

}else{

variablelist = {};
};
variablelist[`MenuState`]= 0
try{document.getElementById(`Menu`).remove()}catch(err){}};
});
try {
document.getElementById().appendChild(generateditem);
} catch (error) {
document.body.appendChild(generateditem); }
;generateditem.style.animation = 'none';
generateditem.offsetHeight; /* trigger reflow */
generateditem.style.animation = null;generateditem.animate([],{duration: 10000,
}
);
;generateditem.contentEditable=`false`;;generateditem.innerHTML = `Menu`;
document.documentElement.style.overflow = 'hidden'; // For Firefox and Chrome
document.body.scroll = 'no'; // For IE
generateditem = document.createElement("div");
;generateditem.id = `background`;;generateditem.style = `width:` + `100%` + `;height:` + `100%` + `;position:` + `absolute` + `;left:` + `0` + `;top:` + `0` + `;background-color:` + `black` + `;user-select: none` + `;`;generateditem.addEventListener('click', function (e) {});try {
document.getElementById().appendChild(generateditem);
} catch (error) {
document.body.appendChild(generateditem); }
;generateditem.style.animation = 'none';
generateditem.offsetHeight; /* trigger reflow */
generateditem.style.animation = null;generateditem.animate([],{duration: 10000,
}
);
;generateditem.contentEditable=`false`;
;if (`timercounter` in window) {

}else{

timercounter = {};timerexpire = {}
}

;intrafrag_var = `CollisionTimer`;
if('timerexpire' in window){}else{timerexpire = {} }
if('timercounter' in window){}else{timercounter = {} }
timerexpire[intrafrag_var] = -1;
timercounter[intrafrag_var] = setInterval(function() {timerexpire[`CollisionTimer`] =timerexpire[`CollisionTimer`] +1;
if ("loop_name_here" in window) {
PriorLoopName = loop_name_here
} else {
PriorLoopName = ``
}

loop_name_here = `CollisionLoop`
try{loop_counter[loop_name_here] = 1}catch(err){var loop_counter = {}
loop_counter[loop_name_here] = 1
}
for (loop_counter[loop_name_here] = 0; loop_counter[loop_name_here] < variablelist[`CollisionListA`].length; loop_counter[loop_name_here]++) {;Collision_ID =`Collision1`;;case_A =variablelist[`CollisionListA`][loop_counter[`CollisionLoop`]];;case_B=variablelist[`CollisionListB`][loop_counter[`CollisionLoop`]];aRect = document.getElementById(case_A).getBoundingClientRect();

bRect = document.getElementById(case_B).getBoundingClientRect();

if ( !(
((aRect.top + aRect.height) < (bRect.top)) ||
(aRect.top > (bRect.top + bRect.height)) ||
((aRect.left + aRect.width) < bRect.left) ||
(aRect.left > (bRect.left + bRect.width))
)){
try{collision_counter[Collision_ID] = collision_counter[Collision_ID] + 1} catch(err){ try{collision_counter[Collision_ID] = 0}catch(err) {collision_counter = {};collision_counter[Collision_ID] = 0} collision_counter[Collision_ID] = collision_counter[Collision_ID] + 1 }
;if (`variablelist` in window) {

}else{

variablelist = {};
};
variablelist[`itemcount`]= parseFloat(variablelist[`itemcount`])+1
;generateditem = document.getElementById(`CashDisplay`);generateditem.style.animation = 'none';
generateditem.offsetHeight; /* trigger reflow */
generateditem.style.animation = null;generateditem.animate([{transform: '' + 'scale(' + `1`+ ',' + `1` + `) `,},{transform: '' + 'scale(' + `.9`+ ',' + `.9` + `) `,},{transform: '' + 'scale(' + `1`+ ',' + `1` + `) `,},],{duration: 100,
}
);
;generateditem.innerHTML = [`CASH: $`,variablelist[`itemcount`],].join('');
;generateditem = document.getElementById(variablelist[`CollisionListA`][loop_counter[`CollisionLoop`]]);generateditem.style = `width:` + `5vw` + `;height:` + `5vh` + `;position:` + `absolute` + `;font-size:` + `10vw` + `;top:` + `105vh` + `;left:` + `105vw` + `;user-select: none` + `;`
}
};loop_name_here = PriorLoopName;
}
,500);