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

30 lines
427 B
JavaScript
Raw Permalink Normal View History

2015-03-06 23:33:54 +00:00
2022-05-30 01:30:33 +00:00
module.exports = {
2022-11-16 01:46:44 +00:00
getPageYOffset() {
2015-03-06 23:33:54 +00:00
return window.pageYOffset;
},
2022-11-16 01:46:44 +00:00
getPageXOffset() {
2015-03-06 23:33:54 +00:00
return window.pageXOffset;
},
2022-11-16 01:46:44 +00:00
getInnerHeight() {
2015-03-06 23:33:54 +00:00
return window.innerHeight;
},
2022-11-16 01:46:44 +00:00
getInnerWidth() {
2015-03-06 23:33:54 +00:00
return window.innerWidth;
},
2022-11-16 01:46:44 +00:00
createRadio(uid, doc) {
2022-05-30 01:30:33 +00:00
var radio = doc.createElement('input');
2015-03-06 23:33:54 +00:00
radio.type = 'radio';
radio.name = uid;
return radio;
},
2022-11-16 01:46:44 +00:00
setInputTypeNumber(input) {
2015-03-06 23:33:54 +00:00
input.type = 'number';
}
};