2015-03-06 23:33:54 +00:00
|
|
|
|
2016-09-26 09:28:47 +00:00
|
|
|
module.exports =
|
2015-03-06 23:33:54 +00:00
|
|
|
{
|
|
|
|
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';
|
|
|
|
}
|
|
|
|
};
|