updateViewport: function () {
if (!this.isMobile()) {
+
$('meta[name="viewport"]').attr('content', 'width=device-width, user-scalable=no, initial-scale=1.0, shrink-to-fit=no, test=yes');
let s = 1;
let qcss = {};
let sh = this.hh / this.desktopHeight;
s = Math.min(sw, sh);
this.scale = s
- qcss.borderRadius = 0;
+ $('html').removeClass('round');
} else {
- qcss.borderRadius = '';
+ $('html').addClass('round');
}
qcss.transform = 'scale(' + s + ')';
qcss.transformOrigin = '0 0 0';
qcss.margin = '';
$("#quiz").css(qcss);
} else {
+ $('html').removeClass('round');
$('meta[name="viewport"]').attr('content', 'width=' + this.mobileWidth + ', user-scalable=no, initial-scale=1.0, shrink-to-fit=no, test=yes');
$("#quiz").css({transform: '', transformOrigin: '', top: '', left: '', margin: '0 auto'});
}
+padding-container()
position: relative
overflow: hidden
- border-radius: 40px
- box-shadow: 0 0 30px rgba(0, 0, 0, 0.2)
.m &
border-radius: 0
min-width: 390px
max-width: 390px
+ .round &
+ border-radius: 40px
+ box-shadow: 0 0 30px rgba(0, 0, 0, 0.2)
+
.btn
padding: 0 12px