|
/**
* @author WingedFox
*/
IFrameVirtualKeyboard=new function(){var i=this;var I=null;var l=null;var o=(function(Q){var _=document.getElementsByTagName('script'),c=new RegExp('^(.*/|)('+Q+')([#?]|$)');for(var C=0,e=_.length;C<e;C++){var v=String(_[C].src).match(c);if(v){if(v[1].match(/^((https?|file)\:\/{2,}|\w:[\\])/))return v[1];if(v[1].indexOf("/")==0)return v[1];b=document.getElementsByTagName('base');if(b[0]&&b[0].href)return b[0].href+v[1];return(document.location.href.match(/(.*[\/\\])/)[0]+v[1]).replace(/^\/+(?=\w:)/,"");}}return null})('vk_iframe.js');i.isOpen=function(){return null!=I&&!I.closed};var O=null;i.attachInput=function(Q){if(I&&I.VirtualKeyboard)return I.VirtualKeyboard.attachInput(Q);return false};i.open=i.show=function(Q,_){var c=false;if('string'==typeof _)_=document.getElementById(_);if(!_)return false;if(!I){I=document.createElement('div');I.innerHTML="<iframe frameborder=\"0\" src=\""+o+"vk_iframe.html\"></iframe>";_.appendChild(I);l=I.firstChild;c=true}if(l&&!i.isOpen()){l.style.display='block';c=true}if(c){if(_!=l.parentNode)_.appendChild(l);O=Q}return false};i.close=i.hide=function(Q){if(i.isOpen())l.style.display='none'};i.isOpen=function(){return l&&'block'==l.style.display};i.toggle=function(Q,_){i.isOpen()?i.close():i.open(Q,_);};i.onload=function(){I=(l.contentWindow||l.contentDocument.window);if('string'==typeof O)O=document.getElementById(O);I.VirtualKeyboard.show(O,I.document.body,I.document.body);I.document.body.className=I.document.body.parentNode.className='VirtualKeyboardPopup';var Q=I.document.body.firstChild;while("virtualKeyboard"!=Q.id){I.document.body.removeChild(Q);Q=I.document.body.firstChild}l.style.height=Q.offsetHeight+'px';l.style.width=Q.offsetWidth+'px'}};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.