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