0
1
Fork 0
hedera-web-mindshore/package/usr/share/hedera-web/js/misc/browser.js

35 lines
441 B
JavaScript
Executable File

function getPageYOffset ()
{
return window.pageYOffset;
}
function getPageXOffset ()
{
return window.pageXOffset;
}
function getInnerHeight ()
{
return window.innerHeight;
}
function getInnerWidth ()
{
return window.innerWidth;
}
function createRadio (uid)
{
var radio = document.createElement ('input');
radio.type = 'radio';
radio.name = uid;
return radio;
}
function setInputTypeNumber (input)
{
input.type = 'number';
}