0
1
Fork 0
hedera-web-mindshore/js/vn/browser.js

43 lines
571 B
JavaScript
Raw Normal View History

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;
},
2016-10-16 14:16:08 +00:00
createRadio: function (uid, doc)
2015-03-06 23:33:54 +00:00
{
2016-10-16 14:16:08 +00:00
var radio = doc.createElement ('input');
2015-03-06 23:33:54 +00:00
radio.type = 'radio';
radio.name = uid;
return radio;
},
setInputTypeNumber: function (input)
{
input.type = 'number';
}
};
2016-12-23 08:57:49 +00:00
if (!console.warn)
{
console.log (1);
console.warn = console.log;
}