37 lines
496 B
JavaScript
Executable File
37 lines
496 B
JavaScript
Executable File
|
|
Vn.Browser =
|
|
{
|
|
getPageYOffset: function ()
|
|
{
|
|
return window.pageYOffset;
|
|
},
|
|
|
|
getPageXOffset: function ()
|
|
{
|
|
return window.pageXOffset;
|
|
},
|
|
|
|
getInnerHeight: function ()
|
|
{
|
|
return window.innerHeight;
|
|
},
|
|
|
|
getInnerWidth: function ()
|
|
{
|
|
return window.innerWidth;
|
|
},
|
|
|
|
createRadio: function (uid)
|
|
{
|
|
var radio = document.createElement ('input');
|
|
radio.type = 'radio';
|
|
radio.name = uid;
|
|
return radio;
|
|
},
|
|
|
|
setInputTypeNumber: function (input)
|
|
{
|
|
input.type = 'number';
|
|
}
|
|
};
|