Úprava souboru index.html
This commit is contained in:
parent
0215057f45
commit
fccb9482c8
1 changed files with 10 additions and 6 deletions
16
index.html
16
index.html
|
@ -20,11 +20,19 @@
|
|||
|
||||
if (isMobile()) {
|
||||
console.log("Detekováno mobilní zařízení");
|
||||
document.write("<style>.sloupce{column-count:1;column-width:100px;column-rule-width:10px;}</style>");
|
||||
document.write("<style>");
|
||||
document.write(".sloupce{column-count:1;column-width:100px;column-rule-width:10px;}");
|
||||
document.write(".menu a span {padding-let: 5px;}");
|
||||
document.write(".menu a:hover span {padding-let: 10px;}");
|
||||
document.write("</style>");
|
||||
document.write("<link href='css/flexslider-mobil.css' rel='stylesheet' type='text/css' />");
|
||||
} else {
|
||||
console.log("Detekován počítač");
|
||||
document.write("<style>.sloupce{column-count:2;column-width:100px;column-rule-width:10px;}</style>");
|
||||
document.write("<style>");
|
||||
document.write(".sloupce{column-count:2;column-width:100px;column-rule-width:10px;}");
|
||||
document.write(".menu a span {display:none;}");
|
||||
document.write(".menu a:hover span {display:block;}");
|
||||
document.write("</style>");
|
||||
document.write("<link href='css/flexslider.css' rel='stylesheet' type='text/css' />");
|
||||
}
|
||||
</script>
|
||||
|
@ -87,10 +95,6 @@
|
|||
});
|
||||
|
||||
</script>
|
||||
<style>
|
||||
.menu a span {display:none;}
|
||||
.menu a:hover span {display:block;}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
|
Loading…
Add table
Reference in a new issue