1
0
Fork 0

mobile friendly tabs

This commit is contained in:
fabrixxm 2015-11-11 18:39:32 +01:00
commit e5edd7b7db
2 changed files with 29 additions and 1 deletions

View file

@ -33,7 +33,7 @@ function vier_init(&$a) {
$a->page['htmlhead'] .= '<meta name=viewport content="width=device-width, initial-scale=1">'."\n";
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="view/theme/vier/mobile.css" media="screen"/>'."\n";
}
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="view/theme/vier/mobile.css" media="screen and (max-width: 1000px)"/>'."\n";
#$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="view/theme/vier/mobile.css" media="screen and (max-width: 1000px)"/>'."\n";
$a->page['htmlhead'] .= <<< EOT
<link rel='stylesheet' type='text/css' href='view/theme/vier/narrow.css' media='screen and (max-width: 1100px)' />
@ -92,6 +92,9 @@ $(document).ready(function() {
e.preventDefault();
$("aside").toggleClass("show");
});
$(".tabs").click(function(e){
$(this).toggleClass("show");
});
});
</script>