Add 'base.js'
This commit is contained in:
parent
a4cbf79f57
commit
8164c6f2ee
22
base.js
Normal file
22
base.js
Normal file
@ -0,0 +1,22 @@
|
||||
window.api_url = ""; // Webfacing URL to imapi.pl
|
||||
|
||||
function getWidget(type) {
|
||||
var path = window.api_url+"?l!j!";
|
||||
if ("thumbnail" == type) {
|
||||
if (typeof getImage !== "function") {getJavascript(path+"getImage");}
|
||||
if (typeof showImage !== "function") {getJavascript(path+"showImage");}
|
||||
if (typeof imageViewElements !== "function") {getJavascript(path+"imageViewElements");}
|
||||
}
|
||||
if ("gallery" == type) {
|
||||
if (typeof getGalleries !== "function") {getJavascript(path+"getGalleries");}
|
||||
if (typeof putGalleries !== "function") {getJavascript(path+"putGalleries");}
|
||||
if (typeof listGalleries !== "function") {getJavascript(path+"listGalleries");}
|
||||
if (typeof initGalery !== "function") {getJavascript(path+"initGalery");}
|
||||
if (typeof getImageList !== "function") {getJavascript(path+"getImageList");}
|
||||
if (typeof putImageList !== "function") {getJavascript(path+"putImageList");}
|
||||
if (typeof ImageListSelection !== "function") {getJavascript(path+"ImageListSelection");}
|
||||
if (typeof initImage !== "function") {getJavascript(path+"initImage");}
|
||||
if (typeof imageViewElements !== "function") {getJavascript(path+"imageViewElements");}
|
||||
if (typeof refreshImage !== "function") {getJavascript(path+"refreshImage");}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user