mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
ee01e10499
Former-commit-id: f915533dc401cb532111a12ee550438b6265239a [formerly ff18889a0c2dfaca85a44fb0a39c0ab811eb7a2f] [formerly 5063cff7610e06e8e6f9c1dfb333e5d57b2c0cf6 [formerly 6987950b78
]]
Former-commit-id: a6b81d4b3d0027fce4ad88bb084a1edcac8b68a6 [formerly a8e46c713549b3dd79febbd58255b1ce66b6f5fb]
Former-commit-id: 413d956e82465767fb93961fb997efabda41b402
90 lines
4.0 KiB
Cheetah
90 lines
4.0 KiB
Cheetah
|
|
{{define "header"}}
|
|
<meta name="viewport" content="width=device-width, initial-scale=0.85">
|
|
<link rel="apple-touch-icon" sizes="57x57" href=/static/img/cowyo/apple-icon-57x57.png>
|
|
<link rel="apple-touch-icon" sizes="60x60" href=/static/img/cowyo/img/cowyo/apple-icon-60x60.png>
|
|
<link rel="apple-touch-icon" sizes="72x72" href=/static/img/cowyo/apple-icon-72x72.png>
|
|
<link rel="apple-touch-icon" sizes="76x76" href=/static/img/cowyo/apple-icon-76x76.png>
|
|
<link rel="apple-touch-icon" sizes="114x114" href=/static/img/cowyo/apple-icon-114x114.png>
|
|
<link rel="apple-touch-icon" sizes="120x120" href=/static/img/cowyo/apple-icon-120x120.png>
|
|
<link rel="apple-touch-icon" sizes="144x144" href=/static/img/cowyo/apple-icon-144x144.png>
|
|
<link rel="apple-touch-icon" sizes="152x152" href=/static/img/cowyo/apple-icon-152x152.png>
|
|
<link rel="apple-touch-icon" sizes="180x180" href=/static/img/cowyo/apple-icon-180x180.png>
|
|
<link rel="icon" type="image/png" sizes="192x192" href=/static/img/cowyo/android-icon-192x192.png>
|
|
<link rel="icon" type="image/png" sizes="32x32" href=/static/img/cowyo/favicon-32x32.png>
|
|
<link rel="icon" type="image/png" sizes="96x96" href=/static/img/cowyo/favicon-96x96.png>
|
|
<link rel="icon" type="image/png" sizes="16x16" href=/static/img/cowyo/favicon-16x16.png>
|
|
<link rel="manifest" href=/static/img/cowyo/manifest.json>
|
|
<meta name="msapplication-TileColor" content="#ffffff">
|
|
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
|
|
<meta name="theme-color" content="#ffffff">
|
|
<link rel="stylesheet" type="text/css" href="/static/css/bootstrap.min.css">
|
|
<link rel="stylesheet" type="text/css" href="/static/css/bootstrap-theme.min.css">
|
|
<script src="/static/js/jquery.js"></script>
|
|
<script src="/static/js/bootstrap.min.js"></script>
|
|
<!-- <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-7s5uDGW3AHqw6xtJmNNtr+OBRJUlgkNJEo78P4b0yRw= sha512-nNo+yCHEyn0smMxSswnf/OnX6/KwJuZTlNZBjauKhTK0c+zT+q5JOCx0UFhXQ6rJR9jg6Es8gPuD2uZcYDLqSw==" crossorigin="anonymous">
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha256-KXn5puMvxCw+dAYznun+drMdG1IFl3agK0p/pqT9KAo= sha512-2e8qq0ETcfWRI4HJBzQiA3UoyFk6tbNyG+qSaIBZLyW9Xf3sWZHN/lxe9fTh1U45DpPf07yj94KsUHHWe4Yk1A==" crossorigin="anonymous"></script>
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> -->
|
|
<style>
|
|
.dropdown-menu>li
|
|
{ position:relative;
|
|
-webkit-user-select: none; /* Chrome/Safari */
|
|
-moz-user-select: none; /* Firefox */
|
|
-ms-user-select: none; /* IE10+ */
|
|
/* Rules below not implemented in browsers yet */
|
|
-o-user-select: none;
|
|
user-select: none;
|
|
cursor:pointer;
|
|
}
|
|
.dropdown-menu .sub-menu {
|
|
left: 100%;
|
|
position: absolute;
|
|
top: 0;
|
|
display:none;
|
|
margin-top: -1px;
|
|
border-top-left-radius:0;
|
|
border-bottom-left-radius:0;
|
|
border-left-color:#fff;
|
|
box-shadow:none;
|
|
}
|
|
.right-caret:after,.left-caret:after
|
|
{ content:"";
|
|
border-bottom: 5px solid transparent;
|
|
border-top: 5px solid transparent;
|
|
display: inline-block;
|
|
height: 0;
|
|
vertical-align: middle;
|
|
width: 0;
|
|
margin-left:5px;
|
|
}
|
|
.right-caret:after
|
|
{ border-left: 5px solid #000000;
|
|
}
|
|
.left-caret:after
|
|
{ border-right: 5px solid #000000;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
|
|
$(function(){
|
|
$(".dropdown-menu > li > a.trigger").on("click",function(e){
|
|
var current=$(this).next();
|
|
var grandparent=$(this).parent().parent();
|
|
if($(this).hasClass('left-caret')||$(this).hasClass('right-caret'))
|
|
$(this).toggleClass('right-caret left-caret');
|
|
grandparent.find('.left-caret').not(this).toggleClass('right-caret left-caret');
|
|
grandparent.find(".sub-menu:visible").not(current).hide();
|
|
current.toggle();
|
|
e.stopPropagation();
|
|
});
|
|
$(".dropdown-menu > li > a:not(.trigger)").on("click",function(){
|
|
var root=$(this).closest('.dropdown');
|
|
root.find('.left-caret').toggleClass('right-caret left-caret');
|
|
root.find('.sub-menu:visible').hide();
|
|
});
|
|
});
|
|
</script>
|
|
|
|
{{end}}
|