.affix {
position: fixed;
}
+@-ms-viewport {
+ width: device-width;
+}
+.visible-xs-block,
+.visible-xs-inline {
+ display: none !important;
+}
+@media (max-width: 767px) {
+ .visible-xs-block {
+ display: block !important;
+ }
+}
+@media (max-width: 767px) {
+ .visible-xs-inline {
+ display: inline !important;
+ }
+}
+@media (max-width: 767px) {
+ .hidden-xs {
+ display: none !important;
+ }
+}
.text-primary,
.text-primary:hover {
color: #2a9fd6;
.affix {
position: fixed;
}
+@-ms-viewport {
+ width: device-width;
+}
+.visible-xs-block,
+.visible-xs-inline {
+ display: none !important;
+}
+@media (max-width: 767px) {
+ .visible-xs-block {
+ display: block !important;
+ }
+}
+@media (max-width: 767px) {
+ .visible-xs-inline {
+ display: inline !important;
+ }
+}
+@media (max-width: 767px) {
+ .hidden-xs {
+ display: none !important;
+ }
+}
.navbar {
font-family: sans-serif;
}
.affix {
position: fixed;
}
+@-ms-viewport {
+ width: device-width;
+}
+.visible-xs-block,
+.visible-xs-inline {
+ display: none !important;
+}
+@media (max-width: 767px) {
+ .visible-xs-block {
+ display: block !important;
+ }
+}
+@media (max-width: 767px) {
+ .visible-xs-inline {
+ display: inline !important;
+ }
+}
+@media (max-width: 767px) {
+ .hidden-xs {
+ display: none !important;
+ }
+}
.btn,
.btn:hover {
border-color: rgba(0, 0, 0, 0.6);
}
$(function() {
- if(document.documentElement.clientWidth)
- return;
modal = $('.modal')[0];
backdrop = $('.backdrop')[0];
$(modal).on('transitionend', el => {
});
$('.backdrop,.modal').each(el => document.body.appendChild(el) );
$('#solution').on('click', e => {
- show_modal();
- e.preventDefault();
+ if(window.matchMedia("(min-width: 768px)").matches){
+ show_modal();
+ e.preventDefault();
+ }
});
$('.backdrop').on('click', hide_modal);
window.onkeyup = event => {
$(function(){
- if(document.documentElement.clientWidth >= 768)
- return;
- $('#title')[0].insertAdjacentHTML('beforebegin', '<div class="text-center">Tap title to toggle menu</div>');
- $('nav')[0].classList.add('hidden');
- $('#title').on('click', () => $('nav')[0].classList.toggle('hidden'));
+ const nav = $('nav')[0];
+ nav.classList.add('hidden-xs');
+ $('#title')[0].insertAdjacentHTML('beforebegin', '<div class="text-center visible-xs-block">Tap title to toggle menu</div>');
+ $('#title').on('click', () => nav.classList.toggle('hidden-xs'));
});