mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
aadaa4c9c1
Former-commit-id: 5c7671cb5004213cdd374eb96d7010d48637df58 [formerly c302bc14cec2a02c7a5b28e9797e12f75afd0cbd] [formerly eafc74063bb35c0b90d6d06880e004a1154c9572 [formerly 6c0a67f63d
]]
Former-commit-id: 488d3c0d43517fb34373be7d8ca4cb8191229b54 [formerly e55849f075fd14441e88700b898a6f256ebb6919]
Former-commit-id: bf66f6882bfa2133dd8db2dd7257aea064e26c9c
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 {
|
|
right: 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}}
|