UNPKG
yahoo-swiv
Version:
latest (0.9.42)
0.9.42
0.9.41
0.9.40
0.9.39
A web-based exploratory visualization UI for Druid.io
github.com/yahoo/swiv
yahoo/swiv
yahoo-swiv
/
build
/
common
/
models
/
device
/
device.js
15 lines
(14 loc)
•
323 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"use strict"
;
var
Device
= (
function
(
) {
function
Device
(
) { }
Device
.
getSize
=
function
(
) {
if
(
window
.
innerWidth
<=
1080
)
return
'small'
;
if
(
window
.
innerWidth
<=
1250
)
return
'medium'
;
return
'large'
; };
return
Device
; }());
exports
.
Device
=
Device
;