Initial commit
This commit is contained in:
21
kz_cafe_admin/WebContent/VAADIN/custom.js
Normal file
21
kz_cafe_admin/WebContent/VAADIN/custom.js
Normal file
@@ -0,0 +1,21 @@
|
||||
function __drawImage(img){
|
||||
foto1= new Image();
|
||||
foto1.src=(img);
|
||||
Controlla(img);
|
||||
}
|
||||
function Controlla(img){
|
||||
if((foto1.width!=0)&&(foto1.height!=0)){
|
||||
__viewFoto(img);
|
||||
}
|
||||
else{
|
||||
funzione="Controlla('"+img+"')";
|
||||
intervallo=setTimeout(funzione,20);
|
||||
}
|
||||
}
|
||||
function __viewFoto(img){
|
||||
largh=foto1.width+20;
|
||||
altez=foto1.height+20;
|
||||
stringa="width="+largh+",height="+altez;
|
||||
finestra=window.open(img,"",stringa);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user