IV refreshing
This commit is contained in:
parent
0e154e2ae4
commit
d080fed039
@ -215,16 +215,16 @@ function image(input) {
|
|||||||
function search() {
|
function search() {
|
||||||
var input = document.getElementById("urlInput");
|
var input = document.getElementById("urlInput");
|
||||||
var value = input.value;
|
var value = input.value;
|
||||||
if(value === "" || value === website) return;
|
if(value === "" || value === website && type !== "IV") return;
|
||||||
website = value;
|
website = value;
|
||||||
visualCtx.fillStyle = "#1a1a1a";
|
visualCtx.fillStyle = "#1a1a1a";
|
||||||
visualCtx.fillRect(0,0, canvas.width, canvas.height);
|
visualCtx.fillRect(0,0, canvas.width, canvas.height);
|
||||||
|
try {
|
||||||
|
document.getElementById("imagecode").parentNode.removeChild(document.getElementById("imagecode"));
|
||||||
|
} catch(err) {}
|
||||||
switch(type) {
|
switch(type) {
|
||||||
case "LO":
|
case "LO":
|
||||||
var data = convertData(getWebsite(website),2);
|
var data = convertData(getWebsite(website),2);
|
||||||
try {
|
|
||||||
document.getElementById("imagecode").parentNode.removeChild(document.getElementById("imagecode"));
|
|
||||||
} catch(err) {}
|
|
||||||
doSound = false;
|
doSound = false;
|
||||||
doAnimate = false;
|
doAnimate = false;
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
@ -236,9 +236,6 @@ function search() {
|
|||||||
break;
|
break;
|
||||||
case "DA":
|
case "DA":
|
||||||
var data = convertData(getWebsite(website),8);
|
var data = convertData(getWebsite(website),8);
|
||||||
try {
|
|
||||||
document.getElementById("imagecode").parentNode.removeChild(document.getElementById("imagecode"));
|
|
||||||
} catch(err) {}
|
|
||||||
doAnimate = false;
|
doAnimate = false;
|
||||||
doSound = false;
|
doSound = false;
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user