├── img ├── 1716922588945.png ├── 1716923218830.png └── 1716923270559.png ├── templates ├── assets │ ├── img │ │ └── gongan_beian.png │ ├── css │ │ ├── MicroExtendFLF.ttf │ │ ├── MicroExtendFLF copy.ttf │ │ ├── font.css │ │ ├── post.css │ │ ├── tag.css │ │ └── style.css │ └── js │ │ ├── sou.js │ │ ├── script.js │ │ └── bootstrap.min.js ├── post.html ├── page.html └── index.html ├── .gitignore ├── theme.yaml ├── README.md ├── assets └── css │ └── post.css ├── settings.yaml └── LICENSE /img/1716922588945.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anyexyz/theme-hellopage/HEAD/img/1716922588945.png -------------------------------------------------------------------------------- /img/1716923218830.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anyexyz/theme-hellopage/HEAD/img/1716923218830.png -------------------------------------------------------------------------------- /img/1716923270559.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anyexyz/theme-hellopage/HEAD/img/1716923270559.png -------------------------------------------------------------------------------- /templates/assets/img/gongan_beian.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anyexyz/theme-hellopage/HEAD/templates/assets/img/gongan_beian.png -------------------------------------------------------------------------------- /templates/assets/css/MicroExtendFLF.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anyexyz/theme-hellopage/HEAD/templates/assets/css/MicroExtendFLF.ttf -------------------------------------------------------------------------------- /templates/assets/css/MicroExtendFLF copy.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anyexyz/theme-hellopage/HEAD/templates/assets/css/MicroExtendFLF copy.ttf -------------------------------------------------------------------------------- /templates/assets/css/font.css: -------------------------------------------------------------------------------- 1 | @font-face{font-family:"Micro";src:url('MicroExtendFLF.ttf')} 2 | #show_time{font-family:"Micro";text-align:center;font-weight:bold;font-size:30px;color:#fff;text-shadow:1px 1px 2px #000} 3 | #show_date{text-align:center;font-size:16px;color:#fff;font-weight:bold;margin:10px} -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | .DS_Store 12 | *.local 13 | 14 | # Editor directories and files 15 | .vscode/* 16 | !.vscode/extensions.json 17 | .idea 18 | *.suo 19 | *.ntvs* 20 | *.njsproj 21 | *.sln 22 | *.sw? 23 | 24 | .gradle 25 | build 26 | 27 | default -------------------------------------------------------------------------------- /theme.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: theme.halo.run/v1alpha1 2 | kind: Theme 3 | metadata: 4 | name: theme-hellopage 5 | annotations: 6 | "store.halo.run/app-id": "app-LyKey" 7 | spec: 8 | displayName: HelloPage 9 | author: 10 | name: Anye 11 | website: https://www.anye.xyz 12 | description: 基于 Halo 的导航主题 13 | logo: https://www.halo.run/logo 14 | homepage: https://github.com/Anyexyz/theme-hellopage#readme 15 | repo: https://github.com/Anyexyz/theme-hellopage 16 | issues: https://github.com/Anyexyz/theme-hellopage/issues 17 | settingName: theme-hellopage-setting 18 | configMapName: theme-hellopage-configMap 19 | version: "1.1.1" 20 | requires: ">=2.20.0" 21 | license: 22 | - name: "GPL-3.0" 23 | url: "https://github.com/Anyexyz/theme-hellopage/blob/main/LICENSE" 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Theme HelloPage 2 | 3 | HelloPage 是一款简洁的导航页主题,适用于 Halo 系统,可用于快捷搭建一个导航站。 4 | 5 | ![效果图](img/1716922588945.png) 6 | 7 |
8 | 9 | 移植于 [5IUX搜索 - 导航版](https://sou.5iux.cn/) 10 | 11 |
12 | 13 | ## 预览 14 | 15 | [预览地址](https://www.anye.xyz/hello) 16 | 17 | ## 特性 18 | 19 | 此主题需要安装 Halo 的官方插件 **[链接管理](https://www.halo.run/store/apps/app-hfbQg)** 然后进行操作。 20 | 21 | > 本主题适合作为副主题使用, 不包含文章相关模板的实现, 安装并填写主题相关配置后,可以在站点地址后加上 `?preview-theme=theme-hellopage` 来访问。 无需启用本主题,因此不会影响到您现在所使用的主题。 22 | 23 | ### 自定义分组图标、控制分组显示、链接关联文章: 24 | 25 | ![](img/1716923218830.png) 26 | 27 | ![](img/1716923270559.png) 28 | 29 | ## 致谢 30 | 31 | - [Halo](https://halo.run/) 32 | - [5IUX搜索 - 导航版](https://sou.5iux.cn/) 33 | - [六零导航页](https://hao.lylme.com/) 34 | - [Ryan Wang](https://ryanc.cc/) 35 | - [张洪Heo](https://github.com/zhheo) 36 | - [困困鱼](https://github.com/chengzhongxue) 37 | 38 | ## 欢迎关注 39 | 40 | - [Anyeの小站](https://www.anye.xyz/) 41 | - [AnyeのSiet](https://www.anye.in/) -------------------------------------------------------------------------------- /templates/assets/js/sou.js: -------------------------------------------------------------------------------- 1 | //关键词sug 2 | $(function() { 3 | //当键盘键被松开时发送Ajax获取数据 4 | $('#search-text').keyup(function() { 5 | var keywords = $(this).val(); 6 | if (keywords == '') { $('#word').hide(); return }; 7 | $.ajax({ 8 | url: 'https://suggestion.baidu.com/su?wd=' + keywords, 9 | dataType: 'jsonp', 10 | jsonp: 'cb', //回调函数的参数名(键值)key 11 | // jsonpCallback: 'fun', //回调函数名(值) value 12 | beforeSend: function() { 13 | // $('#word').append('
  • 正在加载。。。
  • '); 14 | }, 15 | success: function(data) { 16 | $('#word').empty().show(); 17 | if (data.s == '') { 18 | //$('#word').append('
    Not find "' + keywords + '"
    '); 19 | $('#word').empty(); 20 | $('#word').hide(); 21 | } 22 | $.each(data.s, function() { 23 | $('#word').append('
  • ' + this + '
  • '); 24 | }) 25 | }, 26 | error: function() { 27 | $('#word').empty().show(); 28 | //$('#word').append('
    Fail "' + keywords + '"
    '); 29 | $('#word').hide(); 30 | } 31 | }) 32 | }) 33 | //点击搜索数据复制给搜索框 34 | $(document).on('click', '#word li', function() { 35 | var word = $(this).text(); 36 | $('#search-text').val(word); 37 | $('#word').empty(); 38 | $('#word').hide(); 39 | //$("form").submit(); 40 | $('.submit').trigger('click');//触发搜索事件 41 | }) 42 | $(document).on('click', '.container,.banner-video,nav', function() { 43 | $('#word').empty(); 44 | $('#word').hide(); 45 | }) 46 | 47 | }) -------------------------------------------------------------------------------- /templates/assets/css/post.css: -------------------------------------------------------------------------------- 1 | /* 文章容器 */ 2 | .container { 3 | margin: 0 auto; 4 | padding: 20px; 5 | } 6 | 7 | /* 文章标题 */ 8 | .title { 9 | font-size: 2rem; 10 | font-weight: bold; 11 | color: #2c3e50; 12 | margin-bottom: 1.5rem; 13 | text-align: center; 14 | } 15 | 16 | /* 文章内容区域 */ 17 | .article { 18 | padding: 2rem; 19 | position: relative; 20 | z-index: 1000; 21 | margin: 20px auto; 22 | border-radius: 15px; 23 | background: rgba(255, 255, 255, 0.9); 24 | backdrop-filter: blur(10px); 25 | box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1); 26 | transition: all 0.3s ease; 27 | } 28 | 29 | .article:hover { 30 | transform: translateY(-5px); 31 | box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15); 32 | } 33 | 34 | /* Markdown 内容样式 */ 35 | .article h1, 36 | .article h2, 37 | .article h3, 38 | .article h4, 39 | .article h5, 40 | .article h6 { 41 | margin-top: 1.5em; 42 | margin-bottom: 0.8em; 43 | font-weight: 600; 44 | color: #2c3e50; 45 | } 46 | 47 | .article h1 { font-size: 1.8em; } 48 | .article h2 { font-size: 1.6em; } 49 | .article h3 { font-size: 1.4em; } 50 | .article h4 { font-size: 1.2em; } 51 | .article h5 { font-size: 1.1em; } 52 | .article h6 { font-size: 1em; } 53 | 54 | .article p { 55 | margin-bottom: 1.2em; 56 | line-height: 1.8; 57 | color: #34495e; 58 | } 59 | 60 | .article img { 61 | max-width: 100%; 62 | height: auto; 63 | border-radius: 8px; 64 | margin: 1rem 0; 65 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 66 | } 67 | 68 | .article a { 69 | color: #3498db; 70 | text-decoration: none; 71 | border-bottom: 1px solid transparent; 72 | transition: all 0.3s ease; 73 | } 74 | 75 | .article a:hover { 76 | color: #2980b9; 77 | border-bottom-color: #2980b9; 78 | } 79 | 80 | /* 代码块样式 */ 81 | .article pre { 82 | background: #f8f9fa; 83 | padding: 1rem; 84 | border-radius: 8px; 85 | overflow-x: auto; 86 | margin: 1.5rem 0; 87 | border: 1px solid #eee; 88 | } 89 | 90 | .article code { 91 | background: #f8f9fa; 92 | padding: 0.2em 0.4em; 93 | border-radius: 3px; 94 | font-size: 0.9em; 95 | color: #e83e8c; 96 | } 97 | 98 | /* 引用块样式 */ 99 | .article blockquote { 100 | margin: 1.5rem 0; 101 | padding: 1rem 1.5rem; 102 | border-left: 4px solid #3498db; 103 | background: rgba(52, 152, 219, 0.1); 104 | border-radius: 0 8px 8px 0; 105 | } 106 | 107 | .article blockquote p { 108 | margin-bottom: 0; 109 | color: #2c3e50; 110 | } 111 | 112 | /* 列表样式 */ 113 | .article ul, 114 | .article ol { 115 | margin: 1rem 0; 116 | padding-left: 2rem; 117 | } 118 | 119 | .article li { 120 | margin-bottom: 0.5rem; 121 | line-height: 1.6; 122 | } 123 | 124 | /* 表格样式 */ 125 | .article table { 126 | width: 100%; 127 | margin: 1rem 0; 128 | border-collapse: collapse; 129 | border-spacing: 0; 130 | } 131 | 132 | .article th, 133 | .article td { 134 | padding: 0.75rem; 135 | border: 1px solid #dee2e6; 136 | } 137 | 138 | .article th { 139 | background: #f8f9fa; 140 | font-weight: 600; 141 | } 142 | 143 | .article tr:nth-child(even) { 144 | background: #f8f9fa; 145 | } 146 | 147 | /* 分割线样式 */ 148 | .article hr { 149 | margin: 2rem 0; 150 | border: 0; 151 | border-top: 1px solid #eee; 152 | } 153 | 154 | /* 响应式调整 */ 155 | @media (max-width: 768px) { 156 | .container { 157 | padding: 15px; 158 | } 159 | 160 | .article { 161 | padding: 1.5rem; 162 | } 163 | 164 | .title { 165 | font-size: 1.8rem; 166 | } 167 | } -------------------------------------------------------------------------------- /assets/css/post.css: -------------------------------------------------------------------------------- 1 | /* 文章容器 */ 2 | .container { 3 | max-width: 900px; 4 | margin: 0 auto; 5 | padding: 20px; 6 | } 7 | 8 | /* 文章标题 */ 9 | .title { 10 | font-size: 2rem; 11 | font-weight: bold; 12 | color: #2c3e50; 13 | margin-bottom: 1.5rem; 14 | text-align: center; 15 | } 16 | 17 | /* 文章内容区域 */ 18 | .article { 19 | padding: 2rem; 20 | position: relative; 21 | z-index: 1000; 22 | margin: 20px auto; 23 | border-radius: 15px; 24 | background: rgba(255, 255, 255, 0.9); 25 | backdrop-filter: blur(10px); 26 | box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1); 27 | transition: all 0.3s ease; 28 | } 29 | 30 | .article:hover { 31 | transform: translateY(-5px); 32 | box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15); 33 | } 34 | 35 | /* Markdown 内容样式 */ 36 | .article h1, 37 | .article h2, 38 | .article h3, 39 | .article h4, 40 | .article h5, 41 | .article h6 { 42 | margin-top: 1.5em; 43 | margin-bottom: 0.8em; 44 | font-weight: 600; 45 | color: #2c3e50; 46 | } 47 | 48 | .article h1 { font-size: 1.8em; } 49 | .article h2 { font-size: 1.6em; } 50 | .article h3 { font-size: 1.4em; } 51 | .article h4 { font-size: 1.2em; } 52 | .article h5 { font-size: 1.1em; } 53 | .article h6 { font-size: 1em; } 54 | 55 | .article p { 56 | margin-bottom: 1.2em; 57 | line-height: 1.8; 58 | color: #34495e; 59 | } 60 | 61 | .article img { 62 | max-width: 100%; 63 | height: auto; 64 | border-radius: 8px; 65 | margin: 1rem 0; 66 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 67 | } 68 | 69 | .article a { 70 | color: #3498db; 71 | text-decoration: none; 72 | border-bottom: 1px solid transparent; 73 | transition: all 0.3s ease; 74 | } 75 | 76 | .article a:hover { 77 | color: #2980b9; 78 | border-bottom-color: #2980b9; 79 | } 80 | 81 | /* 代码块样式 */ 82 | .article pre { 83 | background: #f8f9fa; 84 | padding: 1rem; 85 | border-radius: 8px; 86 | overflow-x: auto; 87 | margin: 1.5rem 0; 88 | border: 1px solid #eee; 89 | } 90 | 91 | .article code { 92 | background: #f8f9fa; 93 | padding: 0.2em 0.4em; 94 | border-radius: 3px; 95 | font-size: 0.9em; 96 | color: #e83e8c; 97 | } 98 | 99 | /* 引用块样式 */ 100 | .article blockquote { 101 | margin: 1.5rem 0; 102 | padding: 1rem 1.5rem; 103 | border-left: 4px solid #3498db; 104 | background: rgba(52, 152, 219, 0.1); 105 | border-radius: 0 8px 8px 0; 106 | } 107 | 108 | .article blockquote p { 109 | margin-bottom: 0; 110 | color: #2c3e50; 111 | } 112 | 113 | /* 列表样式 */ 114 | .article ul, 115 | .article ol { 116 | margin: 1rem 0; 117 | padding-left: 2rem; 118 | } 119 | 120 | .article li { 121 | margin-bottom: 0.5rem; 122 | line-height: 1.6; 123 | } 124 | 125 | /* 表格样式 */ 126 | .article table { 127 | width: 100%; 128 | margin: 1rem 0; 129 | border-collapse: collapse; 130 | border-spacing: 0; 131 | } 132 | 133 | .article th, 134 | .article td { 135 | padding: 0.75rem; 136 | border: 1px solid #dee2e6; 137 | } 138 | 139 | .article th { 140 | background: #f8f9fa; 141 | font-weight: 600; 142 | } 143 | 144 | .article tr:nth-child(even) { 145 | background: #f8f9fa; 146 | } 147 | 148 | /* 分割线样式 */ 149 | .article hr { 150 | margin: 2rem 0; 151 | border: 0; 152 | border-top: 1px solid #eee; 153 | } 154 | 155 | /* 响应式调整 */ 156 | @media (max-width: 768px) { 157 | .container { 158 | padding: 15px; 159 | } 160 | 161 | .article { 162 | padding: 1.5rem; 163 | } 164 | 165 | .title { 166 | font-size: 1.8rem; 167 | } 168 | } 169 | 170 | /* 返回顶部按钮 */ 171 | .back-to { 172 | position: fixed; 173 | bottom: 40px; 174 | right: 40px; 175 | z-index: 1001; 176 | } 177 | 178 | .back-top { 179 | width: 40px; 180 | height: 40px; 181 | background: rgba(255, 255, 255, 0.9); 182 | border-radius: 50%; 183 | display: flex; 184 | align-items: center; 185 | justify-content: center; 186 | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 187 | transition: all 0.3s ease; 188 | } 189 | 190 | .back-top:hover { 191 | transform: translateY(-3px); 192 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); 193 | } -------------------------------------------------------------------------------- /templates/assets/css/tag.css: -------------------------------------------------------------------------------- 1 | .box{margin:40px 0;position:fixed;z-index:1000} 2 | .change-type{min-width:40px;min-height:160px;position:absolute;z-index:99;left:0;top:0;display:flex} 3 | .change-type .type-left{width:0;background:#fff;height:100%;box-shadow:0 2px 12px 0 rgb(0 0 0 / 50%);border-bottom-right-radius:5px;border-top-right-radius:5px;margin-left:-40px;overflow:hidden;transition:width 0.4s;-moz-transition:width 0.4s;-webkit-transition:width 0.4s;-o-transition:width 0.4s} 4 | .change-type .showListType{width:150px;transition:width 0.4s;-moz-transition:width 0.4s;-webkit-transition:width 0.4s;-o-transition:width 0.4s} 5 | .change-type .type-left ul{margin-bottom:0px} 6 | .change-type .type-left ul li{line-height:40px;height:40px;text-align:left;width:100%;position:relative;cursor:pointer;list-style:none} 7 | .change-type .type-left ul li a{display:block;height:100%;position:absolute;left:0;top:0;z-index:9;padding-left:15px;overflow:hidden;width:calc(100% - 17px);color:#333;font-size:14px;border-left:2px solid #26778d} 8 | .change-type .type-left ul li span{display:block;position:absolute;width:0;height:100%;left:0;top:0;z-index:8;overflow:hidden;transition:width 0.5s;-moz-transition:width 0.5s;-webkit-transition:width 0.5s;-o-transition:width 0.5s} 9 | .change-type .type-left ul li:hover span{transition:width 0.5s;-moz-transition:width 0.5s;-webkit-transition:width 0.5s;-o-transition:width 0.5s} 10 | .type-left ul li:nth-child(1):hover span,.type-left ul li:nth-child(1).active span,.type-left ul li:nth-child(8):hover span,.type-left ul li:nth-child(8).active span{background:#2C73D2;width:100%;box-shadow:0px 2px 5px 0 rgba(0,0,0,0.5)} 11 | .type-left ul li:nth-child(1):hover a,.type-left ul li:nth-child(1).active a,.type-left ul li:nth-child(8):hover a,.type-left ul li:nth-child(8).active a{border-left:2px solid #2C73D2;color:#fff} 12 | .type-left ul li:nth-child(2):hover span,.type-left ul li:nth-child(2).active span,.type-left ul li:nth-child(9):hover span,.type-left ul li:nth-child(9).active span{background:#D65DB1;width:100%;box-shadow:0px 2px 5px 0 rgba(0,0,0,0.5)} 13 | .type-left ul li:nth-child(2):hover a,.type-left ul li:nth-child(2).active a,.type-left ul li:nth-child(9):hover a,.type-left ul li:nth-child(9).active a{border-left:2px solid #D65DB1;color:#fff} 14 | .type-left ul li:nth-child(3):hover span,.type-left ul li:nth-child(3).active span,.type-left ul li:nth-child(10):hover span,.type-left ul li:nth-child(10).active span{background:#00C9A7;width:100%;box-shadow:0px 2px 5px 0 rgba(0,0,0,0.5)} 15 | .type-left ul li:nth-child(3):hover a,.type-left ul li:nth-child(3).active a,.type-left ul li:nth-child(10):hover a,.type-left ul li:nth-child(10).active a{border-left:2px solid #00C9A7;color:#fff} 16 | .type-left ul li:nth-child(4):hover span,.type-left ul li:nth-child(4).active span,.type-left ul li:nth-child(11):hover span,.type-left ul li:nth-child(11).active span{background:#009EFA;width:100%;box-shadow:0px 2px 5px 0 rgba(0,0,0,0.5)} 17 | .type-left ul li:nth-child(4):hover a,.type-left ul li:nth-child(4).active a,.type-left ul li:nth-child(11):hover a,.type-left ul li:nth-child(11).active a{border-left:2px solid #009EFA;color:#fff} 18 | .type-left ul li:nth-child(5):hover span,.type-left ul li:nth-child(5).active span,.type-left ul li:nth-child(12):hover span,.type-left ul li:nth-child(12).active span{background:#FF8066;width:100%;box-shadow:0px 2px 5px 0 rgba(0,0,0,0.5)} 19 | .type-left ul li:nth-child(5):hover a,.type-left ul li:nth-child(5).active a,.type-left ul li:nth-child(12):hover a,.type-left ul li:nth-child(12).active a{border-left:2px solid #FF8066;color:#fff} 20 | .type-left ul li:nth-child(6):hover span,.type-left ul li:nth-child(6).active span,.type-left ul li:nth-child(13):hover span,.type-left ul li:nth-child(13).active span{background:#64b5f6;width:100%;box-shadow:0px 2px 5px 0 rgba(0,0,0,0.5)} 21 | .type-left ul li:nth-child(6):hover a,.type-left ul li:nth-child(6).active a,.type-left ul li:nth-child(13):hover a,.type-left ul li:nth-child(13).active a{border-left:2px solid #64b5f6;color:#fff} 22 | .type-left ul li:nth-child(7):hover span,.type-left ul li:nth-child(7).active span,.type-left ul li:nth-child(14):hover span,.type-left ul li:nth-child(14).active span{background:#388e3c;width:100%;box-shadow:0px 2px 5px 0 rgba(0,0,0,0.5)} 23 | .type-left ul li:nth-child(7):hover a,.type-left ul li:nth-child(7).active a,.type-left ul li:nth-child(14):hover a,.type-left ul li:nth-child(14).active a{border-left:2px solid #388e3c;color:#fff} 24 | ul.navbar-nav.mr-auto{margin-left:60px} 25 | .type-right{position:fixed;top:38px} 26 | .type-right svg{width:28px;height:28px} 27 | @media screen and (max-width:992px){.type-right{position:fixed;top:10px;right:10px}} 28 | -------------------------------------------------------------------------------- /templates/assets/js/script.js: -------------------------------------------------------------------------------- 1 | 2 | //输入框获取焦点 3 | window.onload= function () { 4 | var text=document.getElementById('search-text'); 5 | text.focus(); 6 | 7 | } 8 | 9 | const searchInput = document.getElementById('search-text'); 10 | const wordList = document.getElementById('word').getElementsByTagName('li'); 11 | let selectedWordIndex = -1; 12 | let ignoreKeyEvents = false; // 新增标志用于判断是否忽略键盘事件 13 | 14 | // 监听键盘事件 15 | searchInput.addEventListener('keydown', function(event) { 16 | switch(event.key) { 17 | case 'ArrowUp': 18 | event.preventDefault(); 19 | selectPreviousWord(); 20 | fillInputWithSelectedWord(); 21 | break; 22 | case 'ArrowDown': 23 | event.preventDefault(); 24 | selectNextWord(); 25 | fillInputWithSelectedWord(); 26 | break; 27 | default: 28 | ignoreKeyEvents = false; // 其他键盘事件恢复正常 29 | break; 30 | } 31 | }); 32 | 33 | // 选中上一个选项 34 | function selectPreviousWord() { 35 | if (selectedWordIndex > 0) { 36 | wordList[selectedWordIndex].classList.remove('selected'); 37 | selectedWordIndex--; 38 | wordList[selectedWordIndex].classList.add('selected'); 39 | } 40 | } 41 | 42 | // 选中下一个选项 43 | function selectNextWord() { 44 | if (selectedWordIndex < wordList.length - 1) { 45 | if (selectedWordIndex >= 0) { 46 | wordList[selectedWordIndex].classList.remove('selected'); 47 | } 48 | selectedWordIndex++; 49 | wordList[selectedWordIndex].classList.add('selected'); 50 | } 51 | } 52 | 53 | // 将选中的选项填入输入框 54 | function fillInputWithSelectedWord() { 55 | if (selectedWordIndex !== -1) { 56 | searchInput.value = wordList[selectedWordIndex].innerText; 57 | ignoreKeyEvents = true; // 标记忽略键盘事件 58 | } 59 | } 60 | 61 | //关键词sug 62 | $(function() { 63 | //当键盘键被松开时发送Ajax获取数据 64 | $('#search-text').on('keyup', function() { 65 | if (!ignoreKeyEvents) { // 只有在标志为false时才执行 66 | var keywords = $(this).val(); 67 | if (keywords == '') { $('#word').hide(); return }; 68 | $.ajax({ 69 | url: 'https://suggestion.baidu.com/su?wd=' + keywords, 70 | dataType: 'jsonp', 71 | jsonp: 'cb', 72 | beforeSend: function() { 73 | // $('#word').append('
  • 正在加载。。。
  • '); 74 | }, 75 | success: function(data) { 76 | $('#word').empty().show(); 77 | if (data.s == '') { 78 | $('#word').empty(); 79 | $('#word').hide(); 80 | } 81 | $.each(data.s, function() { 82 | $('#word').append('
  • ' + this + '
  • '); 83 | }) 84 | // 重新设置选中词汇的索引 85 | selectedWordIndex = -1; 86 | }, 87 | error: function() { 88 | $('#word').empty().show(); 89 | $('#word').hide(); 90 | } 91 | }) 92 | } 93 | }); 94 | //点击搜索数据复制给搜索框 95 | $(document).on('click', '#word li', function() { 96 | var word = $(this).text(); 97 | $('#search-text').val(word); 98 | $('#word').empty(); 99 | $('#word').hide(); 100 | $('.submit').trigger('click');//触发搜索事件 101 | }) 102 | $(document).on('click', '.container,.banner-video,nav', function() { 103 | $('#word').empty(); 104 | $('#word').hide(); 105 | }) 106 | }) 107 | 108 | 109 | 110 | $(function(){ 111 | $('.type-right').click(function(e){ 112 | $('#type-left').toggleClass('showListType'); 113 | e.stopPropagation(); //阻止冒泡 114 | }); 115 | 116 | $(document).click(function(e){ 117 | var con = $('.type-left'); 118 | if(!con.is(e.target)){ 119 | con.toggleClass('showListType',false); 120 | } 121 | }); 122 | $(document).click(function(e){ 123 | var con = $('.collapse'); 124 | if(!con.is(e.target)){ 125 | con.toggleClass('show',false); 126 | } 127 | }); 128 | $('.type-left ul li').click(function(){ 129 | $(this).addClass('active').siblings('li').removeClass('active'); 130 | $('.type-left').toggleClass('showListType'); 131 | var lylme_tag = '#'+$(this).attr("data-lylme"); 132 | $('html,body').animate({scrollTop:$(lylme_tag).offset().top},500); 133 | 134 | }) 135 | }) 136 | 137 | !function() { 138 | function g() { 139 | h(), i(), j(), k() 140 | } 141 | function h() { 142 | d.checked = s() 143 | } 144 | function i() { 145 | var a = document.querySelector('input[name="type"][value="' + p() + '"]'); 146 | a && (a.checked = !0, l(a)) 147 | } 148 | function j() { 149 | v(u()) 150 | } 151 | function k() { 152 | w(t()) 153 | } 154 | function l(a) { 155 | for (var b = 0; b < e.length; b++) e[b].classList.remove("s-current"); 156 | a.parentNode.parentNode.parentNode.classList.add("s-current") 157 | } 158 | function m(a, b) { 159 | window.localStorage.setItem("superSearch" + a, b) 160 | } 161 | function n(a) { 162 | return window.localStorage.getItem("superSearch" + a) 163 | } 164 | function o(a) { 165 | f = a.target, v(u()), w(a.target.value), m("type", a.target.value), c.focus(), l(a.target) 166 | } 167 | function p() { 168 | var b = n("type"); 169 | return b || a[0].value 170 | } 171 | function q(a) { 172 | m("newWindow", a.target.checked ? 1 : -1), x(a.target.checked) 173 | } 174 | function r(a) { 175 | return a.preventDefault(), "" == c.value ? (c.focus(), !1) : (w(t() + c.value), x(s()), s() ? window.open(b.action, +new Date) : location.href = b.action, void 0) 176 | } 177 | function s() { 178 | var a = n("newWindow"); 179 | return a ? 1 == a : !0 180 | } 181 | function t() { 182 | return document.querySelector('input[name="type"]:checked').value 183 | } 184 | function u() { 185 | return document.querySelector('input[name="type"]:checked').getAttribute("data-placeholder") 186 | } 187 | function v(a) { 188 | c.setAttribute("placeholder", a); 189 | } 190 | function w(a) { 191 | b.action = a 192 | } 193 | function x(a) { 194 | a ? b.target = "_blank" : b.removeAttribute("target") 195 | } 196 | var y, a = document.querySelectorAll('input[name="type"]'), 197 | b = document.querySelector("#super-search-fm"), 198 | c = document.querySelector("#search-text"), 199 | c = document.querySelector("#search-text"), 200 | d = document.querySelector("#set-search-blank"), 201 | e = document.querySelectorAll(".search-group"), 202 | f = a[0]; 203 | for (g(), y = 0; y < a.length; y++) a[y].addEventListener("change", o); 204 | d.addEventListener("change", q), b.addEventListener("submit", r) 205 | 206 | }(); 207 | 208 | 209 | //返回顶部 210 | (function(a){a.fn.scrollToTop=function(c){var d={speed:800};c&&a.extend(d,{speed:c});return this.each(function(){var b=a(this);a(window).scroll(function(){100';$("body").append(ahtml);$("#toTop").scrollToTop(300);}); -------------------------------------------------------------------------------- /templates/post.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 12 | 14 | 16 | 17 | 18 | 19 | 20 | 42 | 43 | 44 | 54 | 55 | 56 | 57 | 125 | 126 | 127 | 128 |
    129 |

    130 | 131 | 132 |
    133 | 134 | 135 |
    136 | 141 |
    142 | 143 | 145 | 147 | 149 | 150 | 153 | 154 | 176 |
    177 | 178 | 179 | 180 | 181 | 182 | -------------------------------------------------------------------------------- /templates/page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 12 | 14 | 16 | 17 | 18 | 19 | 20 | 42 | 43 | 44 | 54 | 55 | 56 | 57 | 125 | 126 | 127 | 128 |
    129 |

    130 | 131 | 132 |
    133 | 134 | 135 |
    136 | 141 |
    142 | 143 | 145 | 147 | 149 | 150 | 153 | 154 | 176 |
    177 | 178 | 179 | 180 | 181 | 182 | -------------------------------------------------------------------------------- /templates/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 12 | 14 | 15 | 16 | 17 | 18 | 40 | 41 | 42 | 52 | 53 | 54 | 122 | 123 | 124 |
    125 |

    126 |

    127 |

    128 | 129 | 130 | 166 | 167 | 168 | 169 | 170 | 171 | 175 | 176 | 198 | 199 | 200 | 202 | 204 | 206 | 207 | 210 | 211 | 212 | 213 | 214 | 236 |
    237 | 238 | 239 | 240 | -------------------------------------------------------------------------------- /templates/assets/css/style.css: -------------------------------------------------------------------------------- 1 | a:hover { 2 | text-decoration: none; 3 | font-weight: bold 4 | } 5 | 6 | a.icp { 7 | font-size: 12px; 8 | color: #888; 9 | text-align: center; 10 | margin: 0 5px; 11 | } 12 | 13 | .navbar .navbar-expand-lg .navbar-light .fixed-top { 14 | position: absolute; 15 | z-index: 10000 16 | } 17 | 18 | .bottom-cover { 19 | background-image: linear-gradient(rgba(255, 255, 255, 0) 0%, rgb(244 248 251 / 0.6) 50%, rgb(244 248 251) 100%) 20 | } 21 | 22 | .navbar-light .navbar-toggler { 23 | color: #fff 24 | } 25 | 26 | p.content { 27 | text-align: center; 28 | padding: 5px 30px; 29 | border-radius: 10px; 30 | font-size: 12px; 31 | color: #fff; 32 | font-weight: 500 33 | } 34 | 35 | ::-webkit-scrollbar { 36 | display: none 37 | } 38 | 39 | .back-to { 40 | bottom: 55px; 41 | overflow: hidden; 42 | position: fixed; 43 | right: 10px; 44 | width: 110px; 45 | z-index: 999 46 | } 47 | 48 | .back-to .back-top { 49 | background: url("./images/top.png") no-repeat scroll 0 0 transparent; 50 | display: block; 51 | float: right; 52 | height: 50px; 53 | margin-left: 10px; 54 | outline: 0 none; 55 | text-indent: -9999em; 56 | width: 50px 57 | } 58 | 59 | .back-to .back-top:hover { 60 | background-position: -50px 0 61 | } 62 | 63 | .mylist li.col-3 img { 64 | display: block; 65 | width: 45px; 66 | height: 45px; 67 | padding: 8px; 68 | background: #fff; 69 | border: 1px solid #eee; 70 | border-radius: 10px; 71 | margin: 0 auto 72 | } 73 | 74 | h2.title { 75 | text-align: center; 76 | color: #fff; 77 | font-size: 36px; 78 | font-weight: 600; 79 | text-shadow: 1px 1px 8px #504b4b 80 | } 81 | 82 | body { 83 | font-size: 14px; 84 | background: #f4f8fb; 85 | overflow-x: hidden 86 | } 87 | 88 | a { 89 | text-decoration: none 90 | } 91 | 92 | a:hover { 93 | text-decoration: none 94 | } 95 | 96 | svg.icon { 97 | width: 14px; 98 | height: 14px; 99 | margin: 0 5px 0 8px; 100 | vertical-align: -0.15em; 101 | fill: currentColor; 102 | overflow: hidden 103 | } 104 | 105 | .navbar-light .navbar-nav .nav-link { 106 | color: #fff !important; 107 | font-size: 16px; 108 | font-weight: bold; 109 | text-shadow: 0px 1px 0px #000 110 | } 111 | 112 | #search { 113 | width: 100%; 114 | margin: 0; 115 | padding: 0 0 10px; 116 | position: relative; 117 | z-index: 2000; 118 | border-radius: 5px 119 | } 120 | 121 | #search form { 122 | position: relative; 123 | margin-top: 15px 124 | } 125 | 126 | #search-text { 127 | width: 100%; 128 | height: 50px; 129 | line-height: 50px; 130 | text-indent: 10px; 131 | font-size: 16px; 132 | border-radius: 10px; 133 | background-color: #fff; 134 | border: 1px solid #fff; 135 | /*box-shadow:0 0.5rem 0.625rem #d4d4d44d;*/ 136 | transition: 0.3s all linear; 137 | padding-left: 20px 138 | } 139 | 140 | #search-text:focus { 141 | border: 1px solid #4e6ef2 142 | } 143 | 144 | #search-text:hover { 145 | border: 1px solid #a7aab5 146 | } 147 | 148 | #search button { 149 | position: absolute; 150 | top: 0; 151 | right: 0; 152 | background: none; 153 | border: 0; 154 | border-radius: 20px; 155 | width: auto; 156 | height: 50px; 157 | border-radius: 0 10px 10px 0; 158 | outline: none; 159 | background-color: #4e6ef2 160 | } 161 | 162 | #search button:hover { 163 | cursor: pointer; 164 | background-color: #4662d9 165 | } 166 | 167 | #search button i { 168 | color: #ddd; 169 | font-size: 18px 170 | } 171 | 172 | .search-group { 173 | text-align: center; 174 | } 175 | 176 | .s-current .search-type { 177 | padding-left: 0; 178 | display: block 179 | } 180 | 181 | .s-current { 182 | display: block 183 | } 184 | 185 | #search-list { 186 | position: relative; 187 | overflow-x: auto 188 | } 189 | 190 | #search-list::-webkit-scrollbar { 191 | display: none 192 | } 193 | 194 | .s-type { 195 | position: absolute; 196 | top: 0; 197 | left: 0; 198 | z-index: 13; 199 | width: 75px 200 | } 201 | 202 | .s-type:hover { 203 | height: auto 204 | } 205 | 206 | .s-type>span { 207 | display: block; 208 | height: 31px; 209 | width: 75px 210 | } 211 | 212 | .s-type-list { 213 | display: none; 214 | position: absolute; 215 | top: 31px; 216 | padding: 9pt 0; 217 | width: 70px; 218 | background: #fff; 219 | border-radius: 5px; 220 | box-shadow: 0 9px 20px rgba(0, 0, 0, .16) 221 | } 222 | 223 | .s-type-list:before { 224 | position: absolute; 225 | top: -1pc; 226 | left: 20px; 227 | content: ''; 228 | display: block; 229 | width: 0; 230 | height: 0; 231 | border: 10px solid transparent; 232 | border-bottom-color: #fff 233 | } 234 | 235 | .s-type-list label { 236 | display: block; 237 | font-size: 15px; 238 | text-align: center; 239 | font-weight: normal; 240 | margin-bottom: 0; 241 | padding: 2px 0; 242 | cursor: pointer; 243 | transition: .3s 244 | } 245 | 246 | .s-type-list label:hover { 247 | background: rgba(136, 136, 136, .1) 248 | } 249 | 250 | .s-type-list .tile-lg { 251 | color: #fff; 252 | width: 3pc; 253 | height: 3pc; 254 | font-size: 1.25rem; 255 | line-height: 3rem; 256 | border-radius: .3rem; 257 | display: block; 258 | margin: auto 259 | } 260 | 261 | .s-type:hover .s-type-list { 262 | display: block 263 | } 264 | 265 | .type-text { 266 | position: absolute; 267 | left: 0; 268 | width: 75px; 269 | padding-left: 9pt; 270 | font-size: 1pc; 271 | line-height: 31px 272 | } 273 | 274 | .search-type { 275 | white-space: nowrap; 276 | margin: 0 277 | } 278 | 279 | .search-type label { 280 | margin: 0 281 | } 282 | 283 | .search-type img { 284 | width: 14px; 285 | height: 14px; 286 | margin: 0 5px 0 8px; 287 | vertical-align: -0.15em; 288 | fill: currentColor; 289 | overflow: hidden; 290 | } 291 | 292 | .search-type li { 293 | margin-bottom: 10px; 294 | display: inline-block; 295 | background: #ffffffAD; 296 | background: rgba(255, 255, 255, 70%); 297 | border-radius: 10px 298 | } 299 | 300 | .search-type li label { 301 | display: inline-block; 302 | padding: 0 11px; 303 | font-size: 14px; 304 | border-radius: 3px 3px 0 0; 305 | cursor: pointer 306 | } 307 | 308 | .search-type input:checked+label, 309 | .search-type input:hover+label { 310 | background-color: #fff; 311 | height: 50px; 312 | border-radius: 10px 313 | } 314 | 315 | #search-text::-webkit-input-placeholder { 316 | color: #bbb 317 | } 318 | 319 | #word { 320 | position: absolute; 321 | list-style: none; 322 | top: 55px; 323 | left: 0px; 324 | width: 100%; 325 | background: rgba(259, 259, 259, 0.9); 326 | border-radius: 5px; 327 | z-index: 20000; 328 | padding: 15px 10px; 329 | box-shadow: 0 0 10px #aaa 330 | } 331 | 332 | #word li { 333 | height: 35px; 334 | padding: 0 5px; 335 | text-indent: 30px; 336 | background-size: 20px; 337 | line-height: 35px; 338 | cursor: pointer; 339 | font-size: 16px; 340 | border-radius: 5px 341 | } 342 | 343 | #word li:hover { 344 | background-color: #ddd 345 | } 346 | 347 | .set-check { 348 | margin-top: 3px; 349 | font-size: 9pt 350 | } 351 | 352 | .set-check label { 353 | margin-left: 3px 354 | } 355 | 356 | .set-check input, 357 | .set-check label { 358 | opacity: 0; 359 | transition: all .3s ease 360 | } 361 | 362 | .search-type li { 363 | height: 50px; 364 | line-height: 50px; 365 | list-style: none; 366 | display: inline-block; 367 | border-radius: 10px 368 | } 369 | 370 | .mylist { 371 | list-style: none; 372 | padding: 10px 20px; 373 | position: relative; 374 | z-index: 1000; 375 | margin: 20px 0; 376 | border-radius: 15px; 377 | background: #ffffffe6; 378 | /*backdrop-filter: blur(10px);*/ 379 | box-shadow: 0 0.5rem 0.625rem #d4d4d44d 380 | } 381 | 382 | .mylist li.col-3 { 383 | width: 100px; 384 | transition: 0.3s all linear; 385 | font-size: 14px; 386 | overflow: hidden; 387 | padding: 10px 0; 388 | border-radius: 10px 389 | } 390 | 391 | .mylist li.col-3 svg { 392 | display: block; 393 | width: 45px; 394 | height: 45px; 395 | padding: 8px; 396 | background: #fff; 397 | border: 1px solid #eee; 398 | border-radius: 10px; 399 | margin: 0 auto 400 | } 401 | 402 | .mylist li.col-3:hover { 403 | background: #eee 404 | } 405 | 406 | .mylist li.col-3 span { 407 | width: 100%; 408 | height: 26px; 409 | line-height: 26px; 410 | text-align: center; 411 | font-size: 13px; 412 | word-break: break-all; 413 | display: -webkit-box; 414 | -webkit-line-clamp: 1; 415 | -webkit-box-orient: vertical; 416 | overflow: hidden 417 | } 418 | 419 | .mylist li a { 420 | color: #555; 421 | display: block 422 | } 423 | 424 | .mylist li.title { 425 | width: 100%; 426 | min-width: auto; 427 | margin: 0; 428 | height: 35px; 429 | font-size: 16px; 430 | line-height: 33px; 431 | padding: 0 20px 0 10px; 432 | /*border-bottom:1px solid #eee;*/ 433 | margin-bottom: 10px 434 | } 435 | 436 | .banner-video { 437 | position: absolute; 438 | width: 100%; 439 | overflow: hidden; 440 | left: 0; 441 | top: 0; 442 | height: 100vh 443 | } 444 | 445 | .banner-video video { 446 | width: 2048px; 447 | float: left 448 | } 449 | 450 | .banner-video img { 451 | object-fit: cover; 452 | width: 100%; 453 | height: 100vh 454 | } 455 | 456 | .bottom-cover { 457 | width: 100%; 458 | height: 50%; 459 | position: absolute; 460 | bottom: -1px; 461 | z-index: 10 462 | } 463 | 464 | @media screen and (min-width:1200px) { 465 | .mylist li.col-3 { 466 | min-width: 132px 467 | } 468 | } 469 | 470 | @media screen and (min-width:992px) and (max-width:1200px) { 471 | .mylist li.col-3 { 472 | min-width: 110px 473 | } 474 | } 475 | 476 | @media screen and (max-width:992px) { 477 | #he-plugin-simple { 478 | display: none 479 | } 480 | 481 | .banner-video video { 482 | width: 1200px 483 | } 484 | 485 | .banner-video img { 486 | object-fit: cover; 487 | width: 100%; 488 | height: 100vh 489 | } 490 | 491 | .search-group { 492 | padding-left: 0px 493 | } 494 | 495 | div#navbarsExample05 { 496 | background: rgba(0, 0, 0, 0.8); 497 | padding: 10px 30px; 498 | border-radius: 20px 499 | } 500 | } 501 | 502 | @media screen and (max-width:767px) { 503 | .banner-video video { 504 | width: 960px 505 | } 506 | 507 | .banner-video img { 508 | object-fit: cover; 509 | width: 100%; 510 | height: 100vh 511 | } 512 | 513 | .s-type-list label { 514 | padding: 5px 0 515 | } 516 | 517 | .search-list { 518 | height: 30px; 519 | overflow-y: hidden; 520 | white-space: nowrap 521 | } 522 | 523 | .search-group { 524 | padding-left: 0px 525 | } 526 | 527 | .mylist { 528 | border-radius: 8px 529 | } 530 | 531 | .mylist li.col-3 { 532 | margin: 5px 0 5px 533 | } 534 | 535 | .mylist li.col-3 svg { 536 | width: 30px; 537 | height: 30px; 538 | padding: 5px; 539 | border-radius: 5px 540 | } 541 | 542 | .mylist li.col-3 span { 543 | font-size: 12px 544 | } 545 | 546 | .mylist li.col-3 img { 547 | display: block; 548 | width: 30px; 549 | height: 30px; 550 | padding: 5px; 551 | background: #fff; 552 | border: 1px solid #eee; 553 | border-radius: 10px; 554 | margin: 0 auto; 555 | } 556 | } 557 | 558 | .navbar-toggler svg { 559 | width: 24px; 560 | height: 24px 561 | } 562 | 563 | .navbar-toggler .bi-list-nested { 564 | display: none 565 | } 566 | 567 | .navbar-toggler.collapsed .bi-list-nested { 568 | display: block 569 | } 570 | 571 | .navbar-toggler.collapsed .bi-x { 572 | display: none 573 | } 574 | 575 | .navbar-toggler .bi-x { 576 | display: block 577 | } 578 | 579 | #he-plugin-simple { 580 | z-index: 1000 581 | } 582 | 583 | ::-webkit-scrollbar { 584 | width: 8px; 585 | height: 8px; 586 | border-radius: 4px 587 | } 588 | 589 | ::-webkit-scrollbar-track { 590 | background: #eee; 591 | border-radius: 0px 592 | } 593 | 594 | ::-webkit-scrollbar-thumb { 595 | background: #ddd; 596 | border-radius: 0px 597 | } 598 | 599 | ::-webkit-scrollbar-thumb:hover { 600 | background: #ccc 601 | } 602 | 603 | ::-webkit-scrollbar-corner { 604 | background: #ddd 605 | } 606 | 607 | ::-webkit-scrollbar-corner { 608 | background: #ddd 609 | } 610 | 611 | li.selected { 612 | background: #f1f1f1 613 | } 614 | 615 | #word li:hover { 616 | background-color: #f1f1f1; 617 | } 618 | 619 | @font-face { 620 | font-family: "Micro"; 621 | src: url('MicroExtendFLF.ttf') 622 | } 623 | 624 | #show_time { 625 | font-family: "Micro"; 626 | text-align: center; 627 | font-weight: bold; 628 | font-size: 30px; 629 | color: #fff; 630 | text-shadow: 1px 1px 2px #000 631 | } 632 | 633 | #show_date { 634 | text-align: center; 635 | font-size: 16px; 636 | color: #fff; 637 | font-weight: bold; 638 | margin: 10px 639 | } 640 | 641 | .box { 642 | margin: 40px 0; 643 | position: fixed; 644 | z-index: 1000 645 | } 646 | 647 | .change-type { 648 | min-width: 40px; 649 | min-height: 160px; 650 | position: absolute; 651 | z-index: 99; 652 | left: 0; 653 | top: 0; 654 | display: flex 655 | } 656 | 657 | .change-type .type-left { 658 | width: 0; 659 | background: #fff; 660 | height: 100%; 661 | box-shadow: 0 2px 12px 0 rgb(0 0 0 / 50%); 662 | border-bottom-right-radius: 5px; 663 | border-top-right-radius: 5px; 664 | margin-left: -40px; 665 | overflow: hidden; 666 | transition: width 0.4s; 667 | -moz-transition: width 0.4s; 668 | -webkit-transition: width 0.4s; 669 | -o-transition: width 0.4s 670 | } 671 | 672 | .change-type .showListType { 673 | width: 150px; 674 | transition: width 0.4s; 675 | -moz-transition: width 0.4s; 676 | -webkit-transition: width 0.4s; 677 | -o-transition: width 0.4s 678 | } 679 | 680 | .change-type .type-left ul { 681 | margin-bottom: 0px 682 | } 683 | 684 | .change-type .type-left ul li { 685 | line-height: 40px; 686 | height: 40px; 687 | text-align: left; 688 | width: 100%; 689 | position: relative; 690 | cursor: pointer; 691 | list-style: none 692 | } 693 | 694 | .change-type .type-left ul li a { 695 | display: block; 696 | height: 100%; 697 | position: absolute; 698 | left: 0; 699 | top: 0; 700 | z-index: 9; 701 | padding-left: 15px; 702 | overflow: hidden; 703 | width: calc(100% - 17px); 704 | color: #333; 705 | font-size: 14px; 706 | border-left: 2px solid #26778d 707 | } 708 | 709 | .change-type .type-left ul li span { 710 | display: block; 711 | position: absolute; 712 | width: 0; 713 | height: 100%; 714 | left: 0; 715 | top: 0; 716 | z-index: 8; 717 | overflow: hidden; 718 | transition: width 0.5s; 719 | -moz-transition: width 0.5s; 720 | -webkit-transition: width 0.5s; 721 | -o-transition: width 0.5s 722 | } 723 | 724 | .change-type .type-left ul li:hover span { 725 | transition: width 0.5s; 726 | -moz-transition: width 0.5s; 727 | -webkit-transition: width 0.5s; 728 | -o-transition: width 0.5s 729 | } 730 | 731 | .type-left ul li:nth-child(1):hover span, 732 | .type-left ul li:nth-child(1).active span, 733 | .type-left ul li:nth-child(8):hover span, 734 | .type-left ul li:nth-child(8).active span { 735 | background: #2C73D2; 736 | width: 100%; 737 | box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.5) 738 | } 739 | 740 | .type-left ul li:nth-child(1):hover a, 741 | .type-left ul li:nth-child(1).active a, 742 | .type-left ul li:nth-child(8):hover a, 743 | .type-left ul li:nth-child(8).active a { 744 | border-left: 2px solid #2C73D2; 745 | color: #fff 746 | } 747 | 748 | .type-left ul li:nth-child(2):hover span, 749 | .type-left ul li:nth-child(2).active span, 750 | .type-left ul li:nth-child(9):hover span, 751 | .type-left ul li:nth-child(9).active span { 752 | background: #D65DB1; 753 | width: 100%; 754 | box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.5) 755 | } 756 | 757 | .type-left ul li:nth-child(2):hover a, 758 | .type-left ul li:nth-child(2).active a, 759 | .type-left ul li:nth-child(9):hover a, 760 | .type-left ul li:nth-child(9).active a { 761 | border-left: 2px solid #D65DB1; 762 | color: #fff 763 | } 764 | 765 | .type-left ul li:nth-child(3):hover span, 766 | .type-left ul li:nth-child(3).active span, 767 | .type-left ul li:nth-child(10):hover span, 768 | .type-left ul li:nth-child(10).active span { 769 | background: #00C9A7; 770 | width: 100%; 771 | box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.5) 772 | } 773 | 774 | .type-left ul li:nth-child(3):hover a, 775 | .type-left ul li:nth-child(3).active a, 776 | .type-left ul li:nth-child(10):hover a, 777 | .type-left ul li:nth-child(10).active a { 778 | border-left: 2px solid #00C9A7; 779 | color: #fff 780 | } 781 | 782 | .type-left ul li:nth-child(4):hover span, 783 | .type-left ul li:nth-child(4).active span, 784 | .type-left ul li:nth-child(11):hover span, 785 | .type-left ul li:nth-child(11).active span { 786 | background: #009EFA; 787 | width: 100%; 788 | box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.5) 789 | } 790 | 791 | .type-left ul li:nth-child(4):hover a, 792 | .type-left ul li:nth-child(4).active a, 793 | .type-left ul li:nth-child(11):hover a, 794 | .type-left ul li:nth-child(11).active a { 795 | border-left: 2px solid #009EFA; 796 | color: #fff 797 | } 798 | 799 | .type-left ul li:nth-child(5):hover span, 800 | .type-left ul li:nth-child(5).active span, 801 | .type-left ul li:nth-child(12):hover span, 802 | .type-left ul li:nth-child(12).active span { 803 | background: #FF8066; 804 | width: 100%; 805 | box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.5) 806 | } 807 | 808 | .type-left ul li:nth-child(5):hover a, 809 | .type-left ul li:nth-child(5).active a, 810 | .type-left ul li:nth-child(12):hover a, 811 | .type-left ul li:nth-child(12).active a { 812 | border-left: 2px solid #FF8066; 813 | color: #fff 814 | } 815 | 816 | .type-left ul li:nth-child(6):hover span, 817 | .type-left ul li:nth-child(6).active span, 818 | .type-left ul li:nth-child(13):hover span, 819 | .type-left ul li:nth-child(13).active span { 820 | background: #64b5f6; 821 | width: 100%; 822 | box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.5) 823 | } 824 | 825 | .type-left ul li:nth-child(6):hover a, 826 | .type-left ul li:nth-child(6).active a, 827 | .type-left ul li:nth-child(13):hover a, 828 | .type-left ul li:nth-child(13).active a { 829 | border-left: 2px solid #64b5f6; 830 | color: #fff 831 | } 832 | 833 | .type-left ul li:nth-child(7):hover span, 834 | .type-left ul li:nth-child(7).active span, 835 | .type-left ul li:nth-child(14):hover span, 836 | .type-left ul li:nth-child(14).active span { 837 | background: #388e3c; 838 | width: 100%; 839 | box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.5) 840 | } 841 | 842 | .type-left ul li:nth-child(7):hover a, 843 | .type-left ul li:nth-child(7).active a, 844 | .type-left ul li:nth-child(14):hover a, 845 | .type-left ul li:nth-child(14).active a { 846 | border-left: 2px solid #388e3c; 847 | color: #fff 848 | } 849 | 850 | ul.navbar-nav.mr-auto { 851 | margin-left: 60px 852 | } 853 | 854 | .type-right { 855 | position: fixed; 856 | top: 38px 857 | } 858 | 859 | .type-right svg { 860 | width: 28px; 861 | height: 28px 862 | } 863 | 864 | @media screen and (max-width:992px) { 865 | .type-right { 866 | position: fixed; 867 | top: 10px; 868 | right: 10px 869 | } 870 | } -------------------------------------------------------------------------------- /settings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1alpha1 2 | kind: Setting 3 | metadata: 4 | name: theme-hellopage-setting 5 | annotations: 6 | "store.halo.run/app-id": "app-LyKey" 7 | spec: 8 | forms: 9 | - group: style 10 | label: 基本设置 11 | formSchema: 12 | - $formkit: text 13 | name: h2_title 14 | value: 上网,从这里开始! 15 | label: 首页标题 16 | help: 若为空,则显示站点标题 17 | - $formkit: text 18 | name: yiyan 19 | value: 能说不能行,不是真智慧 20 | label: 首页一言 21 | help: 若为空,则显示站点副标题 22 | - $formkit: attachment 23 | name: cover_img 24 | value: https://bing.ee123.net/img/ 25 | label: 首页背景 26 | help: 支持图片和视频(视频只支持mp4格式) 27 | - $formkit: radio 28 | name: cover_type 29 | label: 背景图片位置 30 | value: "false" 31 | options: 32 | - label: 跟随滚动 33 | value: "true" 34 | - label: 固定位置 35 | value: "false" 36 | 37 | - group: html_inject 38 | label: 代码注入 39 | formSchema: 40 | - $formkit: code 41 | name: html_inject_1 42 | label: 搜索框下方 43 | value: "" 44 | height: 100px 45 | language: html 46 | help: 搜索框下方注入html代码 47 | - $formkit: code 48 | name: "html_inject_2" 49 | label: 页面底部 50 | value: '
    ' 51 | height: 100px 52 | language: html 53 | help: 页面底部注入html代码 54 | 55 | - group: search 56 | label: 搜索引擎配置 57 | formSchema: 58 | - $formkit: repeater 59 | name: search_links 60 | label: 搜索引擎链接 61 | value: 62 | - id: "metaso" 63 | name: "秘塔AI搜索" 64 | placeholder: "没有广告,直达结果" 65 | color: "#0084fe" 66 | icon: '' 67 | url: "https://metaso.cn/?q=" 68 | - id: "baidu" 69 | name: "百度一下" 70 | placeholder: "百度一下,你就知道" 71 | color: "#0c498c" 72 | icon: '' 73 | url: "https://www.baidu.com/s?word=" 74 | - id: "bing" 75 | name: "Bing必应" 76 | placeholder: "微软必应搜索" 77 | color: "#696a6d" 78 | icon: '' 79 | url: "https://cn.bing.com/search?q=" 80 | - id: "DuckDuckGo" 81 | name: "DuckDuckGo" 82 | placeholder: "开启不受网络跟踪的搜索之旅" 83 | color: "#DE5833" 84 | icon: '' 85 | url: "https://duckduckgo.com/?q=" 86 | - id: "github" 87 | name: "Github" 88 | placeholder: "请输入搜索的项目" 89 | color: "#000000" 90 | icon: '' 91 | url: "https://github.com/search?q=" 92 | - id: "google" 93 | name: "谷歌搜索" 94 | placeholder: "值得信任的搜索引擎" 95 | color: "#3B83FA" 96 | icon: '' 97 | url: "https://www.google.com/search?hl=zh-CN&q=" 98 | - id: "Linux 命令" 99 | name: "Linux 命令" 100 | placeholder: "Linux 命令搜索" 101 | color: "#696a6d" 102 | icon: '' 103 | url: "https://linux.lylme.com/list.html#!kw=" 104 | - id: "fanyi" 105 | name: "百度翻译" 106 | placeholder: "输入翻译内容(自动检测语言)" 107 | color: "#0084fe" 108 | icon: '' 109 | url: "https://fanyi.baidu.com/#auto/zh/" 110 | - id: "google-translate" 111 | name: "Google翻译" 112 | placeholder: "输入翻译内容 (自动检测语言)" 113 | color: "#696a6d" 114 | icon: '' 115 | url: "https://translate.google.com/?sl=auto&tl=zh-CN&text=" 116 | - id: "iconfont" 117 | name: "iconfont" 118 | placeholder: "搜索图标" 119 | color: "#696a6d" 120 | icon: '' 121 | url: "https://www.iconfont.cn/search/index?searchType=icon&q=" 122 | - id: "Crxsousou" 123 | name: "Crx搜搜" 124 | placeholder: "输入你想搜索的chrome浏览器插件" 125 | color: "#696a6d" 126 | icon: '' 127 | url: "https://www.crxsoso.com/search?store=chrome&keyword=" 128 | children: 129 | - $formkit: text 130 | name: name 131 | label: 名称 132 | - $formkit: color 133 | name: color 134 | label: 颜色 135 | - $formkit: text 136 | name: url 137 | label: 链接 138 | - $formkit: text 139 | name: id 140 | label: ID 141 | - $formkit: code 142 | name: icon 143 | value: "" 144 | height: 100px 145 | language: html 146 | label: 图标 147 | help: 方案1:粘贴图标的SVG代码(推荐);方案2:使用图片地址,需要img标签,如 148 | - $formkit: text 149 | name: placeholder 150 | label: 提示文字 151 | 152 | - group: beian 153 | label: 备案设置 154 | formSchema: 155 | - $formkit: text 156 | name: icp_text 157 | label: ICP备案号 158 | - $formkit: text 159 | name: gongan_text 160 | label: 公安联网备案号 161 | --- 162 | 163 | apiVersion: v1alpha1 164 | kind: AnnotationSetting 165 | metadata: 166 | name: link-group-setting-hellopage 167 | spec: 168 | targetRef: 169 | group: core.halo.run 170 | kind: LinkGroup 171 | formSchema: 172 | - $formkit: code 173 | name: "icon" 174 | label: "图标" 175 | value: "" 176 | height: 100px 177 | language: html 178 | help: 方案1:粘贴图标的SVG代码(推荐);方案2:使用图片地址,需要img标签,如 179 | - $formkit: radio 180 | id: show_on_hellopage 181 | name: show_on_hellopage 182 | label: 显示在HelloPage中 183 | help: 控制此分组是否显示在HelloPage中 184 | value: "true" 185 | options: 186 | - label: 显示 187 | value: "true" 188 | - label: 不显示 189 | value: "false" 190 | - $formkit: radio 191 | name: login_visible_group 192 | if: $get(show_on_hellopage).value == "true" 193 | label: 是否登录可见 194 | help: 控制此分组是否在用户登录后显示 195 | value: "false" 196 | options: 197 | - label: 是 198 | value: "true" 199 | - label: 否 200 | value: "false" 201 | --- 202 | 203 | apiVersion: v1alpha1 204 | kind: AnnotationSetting 205 | metadata: 206 | name: link-item-setting-hellopage 207 | spec: 208 | targetRef: 209 | group: core.halo.run 210 | kind: Link 211 | formSchema: 212 | - $formkit: radio 213 | name: to_post_radio 214 | id: to_post_radio 215 | label: 关联文章 216 | help: 控制此链接是否关联文章 217 | value: "false" 218 | options: 219 | - label: 关联 220 | value: "true" 221 | - label: 不关联 222 | value: "false" 223 | - $formkit: postSelect 224 | name: to_post 225 | if: $get(to_post_radio).value == "true" 226 | label: 关联的文章 227 | help: "当有关联的文章时,则跳转到对应文章,而不是直接访问地址。上方的关联文章选择 关联 后有效" 228 | - $formkit: radio 229 | name: custom_icon 230 | id: custom_icon 231 | label: 是否使用自定义 SVG 图标 232 | help: 若不启用,则使用 Logo 链接图片 233 | value: "false" 234 | options: 235 | - label: 是 236 | value: "true" 237 | - label: 否 238 | value: "false" 239 | - $formkit: code 240 | name: custom_icon_html 241 | if: $get(custom_icon).value == "true" 242 | label: "图标" 243 | value: "" 244 | height: 100px 245 | language: html 246 | help: 粘贴图标的 SVG 代码 247 | - $formkit: radio 248 | name: login_visible_link 249 | label: 是否登录可见 250 | help: 控制此链接是否在用户登录后显示 251 | value: "false" 252 | options: 253 | - label: 是 254 | value: "true" 255 | - label: 否 256 | value: "false" -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . -------------------------------------------------------------------------------- /templates/assets/js/bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v4.5.0 (https://getbootstrap.com/) 3 | * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t=t||self).bootstrap={},t.jQuery,t.Popper)}(this,(function(t,e,n){"use strict";function i(t,e){for(var n=0;n=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};c.jQueryDetection(),e.fn.emulateTransitionEnd=l,e.event.special[c.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var h="alert",u=e.fn[h],d=function(){function t(t){this._element=t}var n=t.prototype;return n.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},n.dispose=function(){e.removeData(this._element,"bs.alert"),this._element=null},n._getRootElement=function(t){var n=c.getSelectorFromElement(t),i=!1;return n&&(i=document.querySelector(n)),i||(i=e(t).closest(".alert")[0]),i},n._triggerCloseEvent=function(t){var n=e.Event("close.bs.alert");return e(t).trigger(n),n},n._removeElement=function(t){var n=this;if(e(t).removeClass("show"),e(t).hasClass("fade")){var i=c.getTransitionDurationFromElement(t);e(t).one(c.TRANSITION_END,(function(e){return n._destroyElement(t,e)})).emulateTransitionEnd(i)}else this._destroyElement(t)},n._destroyElement=function(t){e(t).detach().trigger("closed.bs.alert").remove()},t._jQueryInterface=function(n){return this.each((function(){var i=e(this),o=i.data("bs.alert");o||(o=new t(this),i.data("bs.alert",o)),"close"===n&&o[n](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),t}();e(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',d._handleDismiss(new d)),e.fn[h]=d._jQueryInterface,e.fn[h].Constructor=d,e.fn[h].noConflict=function(){return e.fn[h]=u,d._jQueryInterface};var f=e.fn.button,g=function(){function t(t){this._element=t}var n=t.prototype;return n.toggle=function(){var t=!0,n=!0,i=e(this._element).closest('[data-toggle="buttons"]')[0];if(i){var o=this._element.querySelector('input:not([type="hidden"])');if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains("active"))t=!1;else{var s=i.querySelector(".active");s&&e(s).removeClass("active")}t&&("checkbox"!==o.type&&"radio"!==o.type||(o.checked=!this._element.classList.contains("active")),e(o).trigger("change")),o.focus(),n=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),t&&e(this._element).toggleClass("active"))},n.dispose=function(){e.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.button");i||(i=new t(this),e(this).data("bs.button",i)),"toggle"===n&&i[n]()}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),t}();e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var n=t.target,i=n;if(e(n).hasClass("btn")||(n=e(n).closest(".btn")[0]),!n||n.hasAttribute("disabled")||n.classList.contains("disabled"))t.preventDefault();else{var o=n.querySelector('input:not([type="hidden"])');if(o&&(o.hasAttribute("disabled")||o.classList.contains("disabled")))return void t.preventDefault();"LABEL"===i.tagName&&o&&"checkbox"===o.type&&t.preventDefault(),g._jQueryInterface.call(e(n),"toggle")}})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){var n=e(t.target).closest(".btn")[0];e(n).toggleClass("focus",/^focus(in)?$/.test(t.type))})),e(window).on("load.bs.button.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,n=t.length;e0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=t.prototype;return n.next=function(){this._isSliding||this._slide("next")},n.nextWhenVisible=function(){!document.hidden&&e(this._element).is(":visible")&&"hidden"!==e(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide("prev")},n.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(c.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(t){var n=this;this._activeElement=this._element.querySelector(".active.carousel-item");var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)e(this._element).one("slid.bs.carousel",(function(){return n.to(t)}));else{if(i===t)return this.pause(),void this.cycle();var o=t>i?"next":"prev";this._slide(o,this._items[t])}},n.dispose=function(){e(this._element).off(p),e.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(t){return t=a(a({},v),t),c.typeCheckConfig(m,t,b),t},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},n._addEventListeners=function(){var t=this;this._config.keyboard&&e(this._element).on("keydown.bs.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&e(this._element).on("mouseenter.bs.carousel",(function(e){return t.pause(e)})).on("mouseleave.bs.carousel",(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var n=function(e){t._pointerEvent&&y[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},i=function(e){t._pointerEvent&&y[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};e(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(t){return t.preventDefault()})),this._pointerEvent?(e(this._element).on("pointerdown.bs.carousel",(function(t){return n(t)})),e(this._element).on("pointerup.bs.carousel",(function(t){return i(t)})),this._element.classList.add("pointer-event")):(e(this._element).on("touchstart.bs.carousel",(function(t){return n(t)})),e(this._element).on("touchmove.bs.carousel",(function(e){return function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),e(this._element).on("touchend.bs.carousel",(function(t){return i(t)})))}},n._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},n._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},n._getItemByDirection=function(t,e){var n="next"===t,i="prev"===t,o=this._getItemIndex(e),s=this._items.length-1;if((i&&0===o||n&&o===s)&&!this._config.wrap)return e;var r=(o+("prev"===t?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]},n._triggerSlideEvent=function(t,n){var i=this._getItemIndex(t),o=this._getItemIndex(this._element.querySelector(".active.carousel-item")),s=e.Event("slide.bs.carousel",{relatedTarget:t,direction:n,from:o,to:i});return e(this._element).trigger(s),s},n._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));e(n).removeClass("active");var i=this._indicatorsElement.children[this._getItemIndex(t)];i&&e(i).addClass("active")}},n._slide=function(t,n){var i,o,s,r=this,a=this._element.querySelector(".active.carousel-item"),l=this._getItemIndex(a),h=n||a&&this._getItemByDirection(t,a),u=this._getItemIndex(h),d=Boolean(this._interval);if("next"===t?(i="carousel-item-left",o="carousel-item-next",s="left"):(i="carousel-item-right",o="carousel-item-prev",s="right"),h&&e(h).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(h,s).isDefaultPrevented()&&a&&h){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(h);var f=e.Event("slid.bs.carousel",{relatedTarget:h,direction:s,from:l,to:u});if(e(this._element).hasClass("slide")){e(h).addClass(o),c.reflow(h),e(a).addClass(i),e(h).addClass(i);var g=parseInt(h.getAttribute("data-interval"),10);g?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=g):this._config.interval=this._config.defaultInterval||this._config.interval;var m=c.getTransitionDurationFromElement(a);e(a).one(c.TRANSITION_END,(function(){e(h).removeClass(i+" "+o).addClass("active"),e(a).removeClass("active "+o+" "+i),r._isSliding=!1,setTimeout((function(){return e(r._element).trigger(f)}),0)})).emulateTransitionEnd(m)}else e(a).removeClass("active"),e(h).addClass("active"),this._isSliding=!1,e(this._element).trigger(f);d&&this.cycle()}},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.carousel"),o=a(a({},v),e(this).data());"object"==typeof n&&(o=a(a({},o),n));var s="string"==typeof n?n:o.slide;if(i||(i=new t(this,o),e(this).data("bs.carousel",i)),"number"==typeof n)i.to(n);else if("string"==typeof s){if("undefined"==typeof i[s])throw new TypeError('No method named "'+s+'"');i[s]()}else o.interval&&o.ride&&(i.pause(),i.cycle())}))},t._dataApiClickHandler=function(n){var i=c.getSelectorFromElement(this);if(i){var o=e(i)[0];if(o&&e(o).hasClass("carousel")){var s=a(a({},e(o).data()),e(this).data()),r=this.getAttribute("data-slide-to");r&&(s.interval=!1),t._jQueryInterface.call(e(o),s),r&&e(o).data("bs.carousel").to(r),n.preventDefault()}}},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return v}}]),t}();e(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",E._dataApiClickHandler),e(window).on("load.bs.carousel.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),n=0,i=t.length;n0&&(this._selector=r,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=t.prototype;return n.toggle=function(){e(this._element).hasClass("show")?this.hide():this.show()},n.show=function(){var n,i,o=this;if(!this._isTransitioning&&!e(this._element).hasClass("show")&&(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof o._config.parent?t.getAttribute("data-parent")===o._config.parent:t.classList.contains("collapse")}))).length&&(n=null),!(n&&(i=e(n).not(this._selector).data("bs.collapse"))&&i._isTransitioning))){var s=e.Event("show.bs.collapse");if(e(this._element).trigger(s),!s.isDefaultPrevented()){n&&(t._jQueryInterface.call(e(n).not(this._selector),"hide"),i||e(n).data("bs.collapse",null));var r=this._getDimension();e(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[r]=0,this._triggerArray.length&&e(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var a="scroll"+(r[0].toUpperCase()+r.slice(1)),l=c.getTransitionDurationFromElement(this._element);e(this._element).one(c.TRANSITION_END,(function(){e(o._element).removeClass("collapsing").addClass("collapse show"),o._element.style[r]="",o.setTransitioning(!1),e(o._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(l),this._element.style[r]=this._element[a]+"px"}}},n.hide=function(){var t=this;if(!this._isTransitioning&&e(this._element).hasClass("show")){var n=e.Event("hide.bs.collapse");if(e(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",c.reflow(this._element),e(this._element).addClass("collapsing").removeClass("collapse show");var o=this._triggerArray.length;if(o>0)for(var s=0;s0},i._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=a(a({},e.offsets),t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},i._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),a(a({},t),this._config.popperConfig)},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.dropdown");if(i||(i=new t(this,"object"==typeof n?n:null),e(this).data("bs.dropdown",i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},t._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(var i=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),o=0,s=i.length;o0&&r--,40===n.which&&rdocument.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)
    ',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:F,popperConfig:null},Y={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},$=function(){function t(t,e){if("undefined"==typeof n)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var i=t.prototype;return i.enable=function(){this._isEnabled=!0},i.disable=function(){this._isEnabled=!1},i.toggleEnabled=function(){this._isEnabled=!this._isEnabled},i.toggle=function(t){if(this._isEnabled)if(t){var n=this.constructor.DATA_KEY,i=e(t.currentTarget).data(n);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(e(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},i.dispose=function(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},i.show=function(){var t=this;if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");var i=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(i);var o=c.findShadowRoot(this.element),s=e.contains(null!==o?o:this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!s)return;var r=this.getTipElement(),a=c.getUID(this.constructor.NAME);r.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&e(r).addClass("fade");var l="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,h=this._getAttachment(l);this.addAttachmentClass(h);var u=this._getContainer();e(r).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(r).appendTo(u),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,r,this._getPopperConfig(h)),e(r).addClass("show"),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);var d=function(){t.config.animation&&t._fixTransition();var n=t._hoverState;t._hoverState=null,e(t.element).trigger(t.constructor.Event.SHOWN),"out"===n&&t._leave(null,t)};if(e(this.tip).hasClass("fade")){var f=c.getTransitionDurationFromElement(this.tip);e(this.tip).one(c.TRANSITION_END,d).emulateTransitionEnd(f)}else d()}},i.hide=function(t){var n=this,i=this.getTipElement(),o=e.Event(this.constructor.Event.HIDE),s=function(){"show"!==n._hoverState&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),e(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()};if(e(this.element).trigger(o),!o.isDefaultPrevented()){if(e(i).removeClass("show"),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,e(this.tip).hasClass("fade")){var r=c.getTransitionDurationFromElement(i);e(i).one(c.TRANSITION_END,s).emulateTransitionEnd(r)}else s();this._hoverState=""}},i.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},i.isWithContent=function(){return Boolean(this.getTitle())},i.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-tooltip-"+t)},i.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},i.setContent=function(){var t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(".tooltip-inner")),this.getTitle()),e(t).removeClass("fade show")},i.setElementContent=function(t,n){"object"!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=H(n,this.config.whiteList,this.config.sanitizeFn)),t.html(n)):t.text(n):this.config.html?e(n).parent().is(t)||t.empty().append(n):t.text(e(n).text())},i.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},i._getPopperConfig=function(t){var e=this;return a(a({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),this.config.popperConfig)},i._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=a(a({},e.offsets),t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},i._getContainer=function(){return!1===this.config.container?document.body:c.isElement(this.config.container)?e(this.config.container):e(document).find(this.config.container)},i._getAttachment=function(t){return K[t.toUpperCase()]},i._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(n){if("click"===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==n){var i="hover"===n?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,o="hover"===n?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(i,t.config.selector,(function(e){return t._enter(e)})).on(o,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},e(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=a(a({},this.config),{},{trigger:"manual",selector:""}):this._fixTitle()},i._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},i._enter=function(t,n){var i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),e(n.getTipElement()).hasClass("show")||"show"===n._hoverState?n._hoverState="show":(clearTimeout(n._timeout),n._hoverState="show",n.config.delay&&n.config.delay.show?n._timeout=setTimeout((function(){"show"===n._hoverState&&n.show()}),n.config.delay.show):n.show())},i._leave=function(t,n){var i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState="out",n.config.delay&&n.config.delay.hide?n._timeout=setTimeout((function(){"out"===n._hoverState&&n.hide()}),n.config.delay.hide):n.hide())},i._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},i._getConfig=function(t){var n=e(this.element).data();return Object.keys(n).forEach((function(t){-1!==V.indexOf(t)&&delete n[t]})),"number"==typeof(t=a(a(a({},this.constructor.Default),n),"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),c.typeCheckConfig(U,t,this.constructor.DefaultType),t.sanitize&&(t.template=H(t.template,t.whiteList,t.sanitizeFn)),t},i._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},i._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(W);null!==n&&n.length&&t.removeClass(n.join(""))},i._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},i._fixTransition=function(){var t=this.getTipElement(),n=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.tooltip"),o="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new t(this,o),e(this).data("bs.tooltip",i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return X}},{key:"NAME",get:function(){return U}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return Y}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return z}}]),t}();e.fn[U]=$._jQueryInterface,e.fn[U].Constructor=$,e.fn[U].noConflict=function(){return e.fn[U]=M,$._jQueryInterface};var J="popover",G=e.fn[J],Z=new RegExp("(^|\\s)bs-popover\\S+","g"),tt=a(a({},$.Default),{},{placement:"right",trigger:"click",content:"",template:''}),et=a(a({},$.DefaultType),{},{content:"(string|element|function)"}),nt={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},it=function(t){var n,i;function s(){return t.apply(this,arguments)||this}i=t,(n=s).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var r=s.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-popover-"+t)},r.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},r.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(t.find(".popover-body"),n),t.removeClass("fade show")},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(Z);null!==n&&n.length>0&&t.removeClass(n.join(""))},s._jQueryInterface=function(t){return this.each((function(){var n=e(this).data("bs.popover"),i="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new s(this,i),e(this).data("bs.popover",n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},o(s,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return tt}},{key:"NAME",get:function(){return J}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return nt}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return et}}]),s}($);e.fn[J]=it._jQueryInterface,e.fn[J].Constructor=it,e.fn[J].noConflict=function(){return e.fn[J]=G,it._jQueryInterface};var ot="scrollspy",st=e.fn[ot],rt={offset:10,method:"auto",target:""},at={offset:"number",method:"string",target:"(string|element)"},lt=function(){function t(t,n){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(n),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on("scroll.bs.scrollspy",(function(t){return i._process(t)})),this.refresh(),this._process()}var n=t.prototype;return n.refresh=function(){var t=this,n=this._scrollElement===this._scrollElement.window?"offset":"position",i="auto"===this._config.method?n:this._config.method,o="position"===i?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var n,s=c.getSelectorFromElement(t);if(s&&(n=document.querySelector(s)),n){var r=n.getBoundingClientRect();if(r.width||r.height)return[e(n)[i]().top+o,s]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},n.dispose=function(){e.removeData(this._element,"bs.scrollspy"),e(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(t){if("string"!=typeof(t=a(a({},rt),"object"==typeof t&&t?t:{})).target&&c.isElement(t.target)){var n=e(t.target).attr("id");n||(n=c.getUID(ot),e(t.target).attr("id",n)),t.target="#"+n}return c.typeCheckConfig(ot,t,at),t},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t li > .active":".active";i=(i=e.makeArray(e(o).find(r)))[i.length-1]}var a=e.Event("hide.bs.tab",{relatedTarget:this._element}),l=e.Event("show.bs.tab",{relatedTarget:i});if(i&&e(i).trigger(a),e(this._element).trigger(l),!l.isDefaultPrevented()&&!a.isDefaultPrevented()){s&&(n=document.querySelector(s)),this._activate(this._element,o);var h=function(){var n=e.Event("hidden.bs.tab",{relatedTarget:t._element}),o=e.Event("shown.bs.tab",{relatedTarget:i});e(i).trigger(n),e(t._element).trigger(o)};n?this._activate(n,n.parentNode,h):h()}}},n.dispose=function(){e.removeData(this._element,"bs.tab"),this._element=null},n._activate=function(t,n,i){var o=this,s=(!n||"UL"!==n.nodeName&&"OL"!==n.nodeName?e(n).children(".active"):e(n).find("> li > .active"))[0],r=i&&s&&e(s).hasClass("fade"),a=function(){return o._transitionComplete(t,s,i)};if(s&&r){var l=c.getTransitionDurationFromElement(s);e(s).removeClass("show").one(c.TRANSITION_END,a).emulateTransitionEnd(l)}else a()},n._transitionComplete=function(t,n,i){if(n){e(n).removeClass("active");var o=e(n.parentNode).find("> .dropdown-menu .active")[0];o&&e(o).removeClass("active"),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(e(t).addClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),c.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&e(t.parentNode).hasClass("dropdown-menu")){var s=e(t).closest(".dropdown")[0];if(s){var r=[].slice.call(s.querySelectorAll(".dropdown-toggle"));e(r).addClass("active")}t.setAttribute("aria-expanded",!0)}i&&i()},t._jQueryInterface=function(n){return this.each((function(){var i=e(this),o=i.data("bs.tab");if(o||(o=new t(this),i.data("bs.tab",o)),"string"==typeof n){if("undefined"==typeof o[n])throw new TypeError('No method named "'+n+'"');o[n]()}}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),t}();e(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),ht._jQueryInterface.call(e(this),"show")})),e.fn.tab=ht._jQueryInterface,e.fn.tab.Constructor=ht,e.fn.tab.noConflict=function(){return e.fn.tab=ct,ht._jQueryInterface};var ut=e.fn.toast,dt={animation:"boolean",autohide:"boolean",delay:"number"},ft={animation:!0,autohide:!0,delay:500},gt=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var n=t.prototype;return n.show=function(){var t=this,n=e.Event("show.bs.toast");if(e(this._element).trigger(n),!n.isDefaultPrevented()){this._config.animation&&this._element.classList.add("fade");var i=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),e(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove("hide"),c.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var o=c.getTransitionDurationFromElement(this._element);e(this._element).one(c.TRANSITION_END,i).emulateTransitionEnd(o)}else i()}},n.hide=function(){if(this._element.classList.contains("show")){var t=e.Event("hide.bs.toast");e(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},n.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains("show")&&this._element.classList.remove("show"),e(this._element).off("click.dismiss.bs.toast"),e.removeData(this._element,"bs.toast"),this._element=null,this._config=null},n._getConfig=function(t){return t=a(a(a({},ft),e(this._element).data()),"object"==typeof t&&t?t:{}),c.typeCheckConfig("toast",t,this.constructor.DefaultType),t},n._setListeners=function(){var t=this;e(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return t.hide()}))},n._close=function(){var t=this,n=function(){t._element.classList.add("hide"),e(t._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var i=c.getTransitionDurationFromElement(this._element);e(this._element).one(c.TRANSITION_END,n).emulateTransitionEnd(i)}else n()},t._jQueryInterface=function(n){return this.each((function(){var i=e(this),o=i.data("bs.toast");if(o||(o=new t(this,"object"==typeof n&&n),i.data("bs.toast",o)),"string"==typeof n){if("undefined"==typeof o[n])throw new TypeError('No method named "'+n+'"');o[n](this)}}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"DefaultType",get:function(){return dt}},{key:"Default",get:function(){return ft}}]),t}();e.fn.toast=gt._jQueryInterface,e.fn.toast.Constructor=gt,e.fn.toast.noConflict=function(){return e.fn.toast=ut,gt._jQueryInterface},t.Alert=d,t.Button=g,t.Carousel=E,t.Collapse=D,t.Dropdown=j,t.Modal=R,t.Popover=it,t.Scrollspy=lt,t.Tab=ht,t.Toast=gt,t.Tooltip=$,t.Util=c,Object.defineProperty(t,"__esModule",{value:!0})})); 7 | //# sourceMappingURL=bootstrap.min.js.map --------------------------------------------------------------------------------