2015-06-02 17:50:50 -07:00
|
|
|
|
DDH.screen_resolution = DDH.screen_resolution || {};
|
|
|
|
|
|
|
|
|
|
DDH.screen_resolution.build = function(ops){
|
2015-06-24 08:49:05 -07:00
|
|
|
|
var title = window.screen.width + ' × ' + window.screen.height,
|
|
|
|
|
sub = ['Your Screen Resolution'];
|
2015-06-02 19:26:53 -07:00
|
|
|
|
if (window.devicePixelRatio && window.devicePixelRatio > 1){
|
2015-06-24 08:49:05 -07:00
|
|
|
|
sub.push('Pixel Ratio: x' + window.devicePixelRatio);
|
2015-06-02 17:50:50 -07:00
|
|
|
|
}
|
2015-06-02 19:26:53 -07:00
|
|
|
|
|
2015-06-24 08:49:05 -07:00
|
|
|
|
ops.data.title = title;
|
|
|
|
|
ops.data.subtitle = sub;
|
2015-06-02 19:26:53 -07:00
|
|
|
|
return ops;
|
|
|
|
|
}
|