DIR : /home/kozerus/public_html/go/eidogo/player/js/ko.js
/home/kozerus/public_html/go/eidogo/player/js
// /ko/ko.js 20230308_0200
// $('#msform').fadeOut(50);
// $('#msform').fadeIn(50);
// $(body).html($(body).html().replace('lollypops', 'marshmellows'));
function toggle(divid) {
// alert( "BUGS_37850 BEG divid="+divid );
var imgid=divid.replace("div_","img_" );
if(! document.getElementById(divid)) { return; }
var imgid=divid.replace("div_","img_" );
style_display=document.getElementById(divid).style.display;
// alert( "BUGS_37850 TOGGLE imgid="+imgid+" style_display="+style_display );
if( style_display == "none" ) {
img="<img src=/imgs/btn/koeyew.png id="+imgid+" height=50 onclick=\"toggle('"+divid+"'); return false;\" >";
// alert( "BUGS_37881 NONE img="+img );
document.getElementById(divid).style.display="inline";
document.getElementById(imgid).innerHTML=img;
document.getElementById(imgid).src="/imgs/btn/koeyew.png";
// $("#img_ajax_ko").html(img);
// $("#img_ajax_ko").attr("src","/imgs/btn/koeyew.png");
// htmimg=document.getElementById(imgid).innerHTML;
// alert( "BUGS_37884 NONE htmimg="+htmimg );
}
else {
img="<img src=/imgs/btn/koeyeb.png id="+imgid+" height=50 onclick=\"toggle('"+divid+"'); return false;\" >";
// alert( "BUGS_37891 INLINE img="+img );
document.getElementById(divid).style.display="none";
document.getElementById(imgid).innerHTML=img;
document.getElementById(imgid).src="/imgs/btn/koeyeb.png";
// $("#img_ajax_ko").html(img);
// $("#img_ajax_ko").attr("src","/imgs/btn/koeyeb.png");
// htmimg=document.getElementById(imgid).innerHTML;
// alert( "BUGS_37893 INLINE htmimg="+htmimg );
}
}
function toggles(div_ids,cmd) {
htmout=0; j=0; k=0; divid=""; divids="".split(" ");
alert( "BUGS_200 toggles div_ids="+div_ids+" cmd="+cmd );
var ids = "letter contacts items kojax files parse cfg main help wz konet iperms jtfdcr fb pdf pn tm tl zm file forms lists lists_letters lists_contacts lists_items lists_postturtles lists_monkeytraps lists_floods koslots views fb pdf pn tl zm mp3 mp4";
if( div_ids == "" ) {
for(j=0; j<ids.split(" ").length; j++ ) {
divids[j]="div_"+ids.split(" ")[j];
// alert( "BUGS_210 j="+j+" divid="+divid)
}
// alert( "BUGS_211 j="+j+" div_ids="+div_ids+" divids0="+divids[0] );
}
else {
divids=div_ids.split(" ")
// alert( "BUGS_212 j="+j+" div_ids="+div_ids+" divids0="+divids[0] );
}
// alert( "BUGS_220 toggles divids_length="+divids.length+" cmd="+cmd );
for( j=0; j<divids.length; j++ ) {
divid=divids[j];
imgid=divid.replace("div_","img_");
// alert( "BUGS_221 toggles j="+j+" divid="+divid+" cmd="+cmd+" imgid="+imgid );
if( ! document.getElementById(divid)) { continue; }
// alert( "BUGS_222 toggles j="+j+" FOUND divid="+divid+" cmd="+cmd+" imgid="+imgid );
if( cmd == "allon" ) {
// alert( "BUGS_230 toggles ALLON div_ids="+div_ids+" cmd="+cmd );
document.getElementById(divid).style.display="inline";
if (! document.getElementById(imgid)) { continue; }
document.getElementById(imgid).src="/imgs/btn/koeyew.png";
// if( document.getElementById('img_toggle_allon')) {
// document.getElementById('img_toggle_allon').style.display="inline";
// }
// if( document.getElementById('img_toggle_toggle')) {
// document.getElementById('img_toggle_toggle').style.display="inline";
// }
// if( document.getElementById('img_toggle_alloff')) {
// document.getElementById('img_toggle_alloff').style.display="inline";
// }
}
if(( cmd == "toggle" ) || ( cmd == "" )) {
display=document.getElementById(divid).style.display;
if( display == "none" ) {
document.getElementById(divid).style.display="inline";
if (document.getElementById(imgid)) {
document.getElementById(imgid).src="/imgs/btn/koeyew.png";
}
}
else {
document.getElementById(divid).style.display="none";
if (document.getElementById(imgid)) {
document.getElementById(imgid).src="/imgs/btn/koeyeb.png";
}
}
}
if( cmd == "alloff" ) {
document.getElementById(divid).style.display="none";
if (! document.getElementById(imgid)) { continue; }
document.getElementById(imgid).src="/imgs/btn/koeyeb.png";
// if( document.getElementById('img_toggle_allon')) {
// document.getElementById('img_toggle_allon').style.display="inline";
// }
// if( document.getElementById('img_toggle_toggle')) {
// document.getElementById('img_toggle_toggle').style.display="none";
// }
// if( document.getElementById('img_toggle_alloff')) {
// document.getElementById('img_toggle_alloff').style.display="none";
// }
}
}
return("");
}
function geturlvars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}
function geturlparam(parameter, defaultvalue){
var urlparameter = defaultvalue;
if(window.location.href.indexOf(parameter) > -1) {
urlparameter = getUrlVars()[parameter];
}
// alert( "bugs_300:geturlparam parameter="+parameter+" urlparameter="+urlparameter );
return urlparameter;
}
// var mytext = getUrlParam('text','Empty');
function filecheck(url) {
if(url) {
var req = new XMLHttpRequest();
req.open('GET', url, false);
req.send();
return req.status==200;
}
else {
return false;
}
}
function imgcheck(url) {
var img = new Image();
img.src = url;
return img.height != 0;
}
function linkcheck(url) {
var http = new XMLHttpRequest();
http.open('HEAD', url, false);
http.send();
return http.status!=404;
}
function UrlExists(url) {
var http = new XMLHttpRequest();
http.open('HEAD', url, false);
http.send();
return http.status!=404;
}
// <script id=script_random_int >
function random_int(max,min) {
// alert( "BUGS_123 /ko/ko.js random_int max="+max+" min="+min );
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min +1 )) + min;
}
// </script id=script_random_int_end>
// <script id=script_geturlparameter >
function geturlparameter(name) {
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search) || [null, ''])[1].replace(/\+/g, '%20')) || null;
}
// </script id=script_geturlparameter_end>>
//
koh5_pano
Drag mouse to navigate.
Navigation
- Left/Right Mouse drag: Changes camera heading.
- Up/Sown Mouse drag: Changes camera pitch.
- Scroll wheel: Changes camera field of view.
- I-Key: Displays Info panel with canvas size, image size and FPS.
17.Aug.2010, Martin Wengenmayer