Initial commit

This commit is contained in:
meusinfirmary
2025-04-22 14:33:37 +07:00
commit b9891d2f81
1305 changed files with 452033 additions and 0 deletions

View File

@ -0,0 +1,673 @@
@charset "UTF-8";
.select2-result-repository {
padding-top: 4px;
padding-bottom: 3px; }
.select2-result-repository__avatar {
float: left;
width: 60px;
margin-right: 10px; }
.select2-result-repository__avatar img {
width: 100%;
height: auto;
border-radius: 2px; }
.select2-result-repository__meta {
margin-left: 70px; }
.select2-result-repository__title {
color: black;
font-weight: bold;
word-wrap: break-word;
line-height: 1.1;
margin-bottom: 4px; }
.select2-result-repository__forks, .select2-result-repository__stargazers {
margin-right: 1em; }
.select2-result-repository__forks, .select2-result-repository__stargazers, .select2-result-repository__watchers {
display: inline-block;
color: #aaa;
font-size: 11px; }
.select2-result-repository__description {
font-size: 13px;
color: #777;
margin-top: 4px; }
.select2-results__option--highlighted .select2-result-repository__title {
color: white; }
.select2-results__option--highlighted .select2-result-repository__forks, .select2-results__option--highlighted .select2-result-repository__stargazers, .select2-results__option--highlighted .select2-result-repository__description, .select2-results__option--highlighted .select2-result-repository__watchers {
color: #c6dcef; }
.s2-docs-sidebar.affix {
position: static; }
@media (min-width: 768px) {
.s2-docs-sidebar {
padding-left: 20px; } }
.s2-docs-sidenav {
margin-top: 20px;
margin-bottom: 20px; }
.s2-docs-sidebar .nav > li > a {
margin-left: -1px;
display: block;
padding: 4px 20px;
font-size: 13px;
font-weight: 500;
color: #767676;
border-left: 1px solid transparent;
transition: color .2s, border-color .2s; }
.s2-docs-sidebar .nav > li > a code {
background-color: inherit;
color: inherit; }
.s2-docs-sidebar .nav > li > a:hover,
.s2-docs-sidebar .nav > li > a:focus {
color: #428BCA;
text-decoration: none;
background-color: transparent;
border-left-color: #428BCA; }
.s2-docs-sidebar .nav > .active > a,
.s2-docs-sidebar .nav > .active:hover > a,
.s2-docs-sidebar .nav > .active:focus > a {
padding-left: 19px;
font-weight: bold;
color: #428BCA;
background-color: transparent;
border-left: 2px solid #428BCA; }
.s2-docs-sidebar .nav .nav {
display: none;
padding-bottom: 10px; }
.s2-docs-sidebar .nav .nav > li > a {
padding-top: 1px;
padding-bottom: 1px;
padding-left: 30px;
font-size: 12px;
font-weight: normal; }
.s2-docs-sidebar .nav .nav > li > a:hover,
.s2-docs-sidebar .nav .nav > li > a:focus {
padding-left: 30px; }
.s2-docs-sidebar .nav .nav > .active > a,
.s2-docs-sidebar .nav .nav > .active:hover > a,
.s2-docs-sidebar .nav .nav > .active:focus > a {
padding-left: 29px;
font-weight: 400; }
@media (min-width: 992px) {
.s2-docs-sidebar .s2-docs-sidenav {
padding-top: 40px;
transition: border-color .2s;
border-left: 1px solid transparent; }
.s2-docs-sidebar.affix .s2-docs-sidenav {
border-left-color: #eee; }
.s2-docs-sidebar .nav > .active > ul {
display: block; }
.s2-docs-sidebar.affix,
.s2-docs-sidebar.affix-bottom {
width: 213px; }
.s2-docs-sidebar.affix {
position: fixed;
top: 0px; }
.s2-docs-sidebar.affix-bottom {
position: absolute; }
.s2-docs-sidebar.affix-bottom .s2-docs-sidenav,
.s2-docs-sidebar.affix .s2-docs-sidenav {
margin-top: 0;
margin-bottom: 0; } }
@media (min-width: 1200px) {
.s2-docs-sidebar.affix-bottom,
.s2-docs-sidebar.affix {
width: 263px; } }
/* Back to top (hidden on mobile) */
.back-to-top {
display: none;
padding: 4px 10px;
margin-top: 10px;
margin-left: 10px;
font-size: 12px;
font-weight: 400;
color: #999; }
.back-to-top:hover {
color: #428BCA;
text-decoration: none; }
@media (min-width: 768px) {
.back-to-top {
display: block; } }
.navbar-toggle {
border: none;
background: transparent !important; }
.navbar-toggle:hover {
background: transparent !important; }
.navbar-toggle .icon-bar {
width: 22px;
transition: all 0.2s; }
.navbar-toggle .top-bar {
transform: rotate(45deg);
transform-origin: 10% 10%; }
.navbar-toggle .middle-bar {
opacity: 0; }
.navbar-toggle .bottom-bar {
transform: rotate(-45deg);
transform-origin: 10% 90%; }
.navbar-toggle.collapsed .top-bar {
transform: rotate(0); }
.navbar-toggle.collapsed .middle-bar {
opacity: 1; }
.navbar-toggle.collapsed .bottom-bar {
transform: rotate(0); }
h2 code,
h3 code,
h4 code {
background-color: inherit; }
pre.prettyprint {
padding: 9px 14px;
margin-bottom: 14px;
background-color: #f7f7f9;
border: 1px solid #e1e1e8; }
.s2-docs-featurette {
color: #777;
padding: 15px 0;
text-align: center; }
.s2-docs-featurette h4 {
margin: 30px 0 15px; }
.s2-docs-featurette .fa {
font-size: 28px;
color: #777; }
.s2-docs-container {
line-height: 1.6; }
section {
margin-bottom: 40px; }
.page-header {
padding-bottom: 19px;
margin-bottom: 29px; }
.s2-docs-nav {
margin-bottom: 0;
border-color: #eee;
background-color: #f6f6f6; }
.s2-docs-nav .navbar-brand {
font-weight: 500; }
.s2-docs-nav .navbar-brand > img {
display: inline;
margin-right: 4px; }
.s2-docs-nav .navbar-nav > .active > a,
.s2-docs-nav .navbar-nav > .active > a:hover,
.s2-docs-nav .navbar-nav > .active > a:focus {
background-color: #f0f0f0;
color: #000; }
@media (min-width: 768px) {
.s2-docs-nav .navbar-nav > li > .dropdown-menu:before {
position: absolute;
top: -21px;
left: 24px;
display: block;
width: 0;
height: 0;
border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0.1);
border-style: solid;
border-width: 10px;
content: ""; }
.s2-docs-nav .navbar-nav > li > .dropdown-menu:after {
position: absolute;
top: -20px;
left: 24px;
display: block;
width: 0;
height: 0;
border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #FFF;
border-style: solid;
border-width: 10px;
content: ''; }
.s2-docs-nav .navbar-nav .dropdown-menu {
border-radius: 4px;
border-color: #ddd;
margin-top: -1px; } }
.s2-docs-footer {
border-top: 1px solid #eee;
color: #767676;
padding-top: 40px;
padding-bottom: 40px;
margin-top: 100px;
text-align: center; }
.s2-docs-footer-links {
padding-left: 0;
margin-top: 20px; }
.s2-docs-footer-links li {
display: inline;
padding: 0 2px; }
.s2-docs-footer-links li:after {
content: "·";
padding-left: 8px; }
.s2-docs-footer-links li:first-child {
padding-left: 0; }
.s2-docs-footer-links li:last-child:after {
content: "";
padding-left: 0; }
@media (min-width: 768px) {
.s2-docs-footer p {
margin-bottom: 0; } }
.alert {
background: #fff;
border: 1px solid #eee;
border-left-width: 5px;
border-radius: 3px;
color: #333;
margin: 20px 0;
padding: 20px; }
.alert h4 {
font-size: 18px;
margin-top: 0;
margin-bottom: 5px; }
.alert-danger {
border-left-color: #ce4844; }
.alert-danger h4 {
color: #ce4844; }
.alert-info {
border-left-color: #1b809e; }
.alert-info h4 {
color: #1b809e; }
.alert-warning {
border-left-color: #aa6708; }
.alert-warning h4 {
color: #aa6708; }
.s2-docs-home .jumbotron {
margin-bottom: 0;
color: #000; }
.s2-docs-home .jumbotron h1 {
color: #000;
margin-top: 20px; }
.s2-docs-home .lead {
text-align: center;
max-width: 800px;
margin: 0 auto 40px; }
.s2-docs-home .notice-previous {
background: #f6f6f6;
color: #666;
border-bottom: 1px solid #eee;
padding: 15px 20px; }
.s2-docs-home .half-rule {
width: 100px;
margin: 40px auto; }
.s2-example {
position: relative;
padding: 45px 15px 15px;
margin: 0 -15px 15px;
background-color: #fafafa;
box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.05);
border-color: #e5e5e5 #eee #eee;
border-style: solid;
border-width: 1px 0; }
.s2-example:after {
content: "Example";
position: absolute;
top: 15px;
left: 15px;
font-size: 12px;
font-weight: bold;
color: #bbb;
text-transform: uppercase;
letter-spacing: 1px; }
@media (min-width: 768px) {
.s2-example {
margin-left: 0;
margin-right: 0;
background-color: #fff;
border-width: 1px;
border-color: #eee;
border-radius: 4px 4px 0 0;
box-shadow: none; } }
.s2-event-log {
background: #002451;
color: white;
font-family: Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Consolas, monospace;
margin: 0 -15px 15px;
padding: 45px 15px 15px;
position: relative; }
.s2-event-log:after {
content: "Event Log";
position: absolute;
top: 15px;
left: 15px;
font-size: 12px;
font-weight: bold;
color: #BBB;
text-transform: uppercase;
letter-spacing: 1px; }
@media (min-width: 768px) {
.s2-event-log {
margin-left: 0;
margin-right: 0;
margin-top: -15px;
border-width: 1px;
border-color: #eee;
box-shadow: none; } }
.s2-example + pre,
.s2-example + figure,
.s2-event-log + pre {
margin: -15px -15px 15px;
border-radius: 0;
border-width: 0 0 1px; }
@media (min-width: 768px) {
.s2-example + pre,
.s2-example + figure,
.s2-event-log + pre {
margin-top: -16px;
margin-left: 0;
margin-right: 0;
border-width: 1px;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px; } }
.s2-example + .s2-event-log {
margin-top: -15px; }
.s2-docs-social {
margin-bottom: 20px;
text-align: center; }
.s2-docs-social-buttons {
display: inline-block;
padding-left: 0;
margin-bottom: 0;
list-style: none; }
.s2-docs-social-buttons li {
display: inline-block;
padding: 5px 8px;
line-height: 1; }
.s2-docs-social-buttons .twitter-follow-button {
width: 225px !important; }
.s2-docs-social-buttons .twitter-share-button {
width: 98px !important; }
.github-btn {
overflow: hidden;
border: 0; }
.btn-outline-inverse {
color: #428BCA;
background-color: transparent;
border-color: #428BCA;
padding: 15px 30px;
font-size: 20px;
transition: all .1s ease-in-out; }
.btn-outline-inverse:hover {
color: #fff;
border-color: #428BCA;
background-color: #428BCA; }
.btn-toolbar {
margin-bottom: 20px; }
.jumbotron {
background-color: #F6F6F6;
border-bottom: 1px solid #eee;
color: #777;
padding-left: 0;
padding-right: 0; }
.jumbotron h1 {
color: #777;
font-size: 36px;
margin-top: 10px; }
.jumbotron .version {
color: #999;
font-size: 14px;
font-weight: normal;
margin-bottom: 30px; }
.com {
color: #999; }
.lit {
color: #195f91; }
.pun, .opn, .clo {
color: #93a1a1; }
.fun {
color: #dc322f; }
.str, .atv {
color: #C7254E; }
.kwd, .prettyprint .tag {
color: #2F6F9F; }
.typ, .atn, .dec, .var {
color: #428BCA; }
.pln {
color: #333; }
.prettyprint {
padding: 9px 14px;
margin-bottom: 20px;
margin-top: 20px;
border: 1px solid #eee; }
.prettyprint.linenums {
-webkit-box-shadow: inset 40px 0 0 #fbfbfb, inset 41px 0 0 #f6f6f6;
-moz-box-shadow: inset 40px 0 0 #fbfbfb, inset 41px 0 0 #f6f6f6;
box-shadow: inset 40px 0 0 #fbfbfb, inset 41px 0 0 #f6f6f6; }
ol.linenums {
margin: 0 0 0 -12px; }
ol.linenums li {
padding-left: 12px;
color: #bebebe;
line-height: 18px; }
.highlight {
background: #fff; }
.highlight .nx {
color: #333; }
.highlight .k, .highlight .o {
font-weight: bold; }
.highlight .na {
color: #428BCA; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .se, .highlight .sh, .highlight .si, .highlight .sx {
color: #C7254E; }
.highlight .m, .highlight .mf, .highlight mh, .highlight .mi, .highlight .mo {
color: #195f91; }
.highlight .p {
color: #93a1a1; }
.highlight .nt {
color: #2F6F9F; }
.highlight .c {
color: #999;
font-style: italic; }
.highlight .err {
background-color: #e3d2d2;
color: #a61717; }
.highlight .gr {
color: #a00; }
.highlight pre {
border: none;
margin: 0; }
.highlight > pre {
border: 1px solid #eee;
padding: 0;
margin-bottom: 14px; }
.highlight .lineno {
background-color: #fbfbfb;
color: #bebebe;
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none; }
.highlight .cm {
color: #999988;
font-style: italic; }
/* Comment.Multiline */
.highlight .cp {
color: #999999;
font-weight: bold; }
/* Comment.Preproc */
.highlight .c1 {
color: #999988;
font-style: italic; }
/* Comment.Single */
.highlight .cs {
color: #999999;
font-weight: bold;
font-style: italic; }
/* Comment.Special */
.highlight .gd {
color: #000000;
background-color: #ffdddd; }
/* Generic.Deleted */
.highlight .gd .x {
color: #000000;
background-color: #ffaaaa; }
/* Generic.Deleted.Specific */
.highlight .ge {
font-style: italic; }
/* Generic.Emph */
.highlight .gh {
color: #999999; }
/* Generic.Heading */
.highlight .gi {
color: #000000;
background-color: #ddffdd; }
/* Generic.Inserted */
.highlight .gi .x {
color: #000000;
background-color: #aaffaa; }
/* Generic.Inserted.Specific */
.highlight .go {
color: #888888; }
/* Generic.Output */
.highlight .gp {
color: #555555; }
/* Generic.Prompt */
.highlight .gs {
font-weight: bold; }
/* Generic.Strong */
.highlight .gu {
color: #aaaaaa; }
/* Generic.Subheading */
.highlight .gt {
color: #aa0000; }
/* Generic.Traceback */
.highlight .kc {
font-weight: bold; }
/* Keyword.Constant */
.highlight .kd {
font-weight: bold; }
/* Keyword.Declaration */
.highlight .kp {
font-weight: bold; }
/* Keyword.Pseudo */
.highlight .kr {
font-weight: bold; }
/* Keyword.Reserved */
.highlight .kt {
color: #445588;
font-weight: bold; }
/* Keyword.Type */
.highlight .nb {
color: #0086B3; }
/* Name.Builtin */
.highlight .nc {
color: #445588;
font-weight: bold; }
/* Name.Class */
.highlight .no {
color: #008080; }
/* Name.Constant */
.highlight .ni {
color: #800080; }
/* Name.Entity */
.highlight .ne {
color: #990000;
font-weight: bold; }
/* Name.Exception */
.highlight .nf {
color: #990000;
font-weight: bold; }
/* Name.Function */
.highlight .nn {
color: #555555; }
/* Name.Namespace */
.highlight .nv {
color: #008080; }
/* Name.Variable */
.highlight .ow {
font-weight: bold; }
/* Operator.Word */
.highlight .w {
color: #bbbbbb; }
/* Text.Whitespace */
.highlight .sr {
color: #009926; }
/* Literal.String.Regex */
.highlight .ss {
color: #990073; }
/* Literal.String.Symbol */
.highlight .bp {
color: #999999; }
/* Name.Builtin.Pseudo */
.highlight .vc {
color: #008080; }
/* Name.Variable.Class */
.highlight .vg {
color: #008080; }
/* Name.Variable.Global */
.highlight .vi {
color: #008080; }
/* Name.Variable.Instance */
.highlight .il {
color: #009999; }
/* Literal.Number.Integer.Long */
h1[id] {
padding-top: 20px;
margin-top: 0; }

View File

@ -0,0 +1,47 @@
.logo-title {
color: #fff;
font-size: 30px;
text-transform: uppercase;
padding-top: 10px;
vertical-align: middle;
font-weight: 700;
font-family: "Montserrat", "Helvetica Neue", "Helvetica" , "Arial" ,sans-serif;
border-bottom: 2px solid #000000;
}
.logo-image {
vertical-align:middle;
}
.s2-docs-featurette {
padding-top: 20px;
text-align: center;
}
.s2-docs-featurette [class*='size-'] h4 {
font-size: 1.5rem;
}
/* Padding for paragraphs in featurette grid */
.s2-docs-featurette [class*='size-'] p {
padding: 0 30px;
font-size: 1rem !important;
}
.form-control {
width: 100%;
display: block;
}
img.img-flag {
margin: 0 !important;
display: inherit !important;
height: 15px;
width: 18px;
}
/* Override some styles for Select2 component elements */
input.select2-search__field {
margin-bottom: 0;
line-height: inherit;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 916 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,23 @@
{
"name": "Select2",
"icons": [
{
"src": "\/images\/android-chrome-36x36.png?v=699Nxpjr2A",
"sizes": "36x36",
"type": "image\/png",
"density": 0.75
},
{
"src": "\/images\/android-chrome-48x48.png?v=699Nxpjr2A",
"sizes": "48x48",
"type": "image\/png",
"density": 1
},
{
"src": "\/images\/android-chrome-72x72.png?v=699Nxpjr2A",
"sizes": "72x72",
"type": "image\/png",
"density": 1.5
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,17 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="72.000000pt" height="72.000000pt" viewBox="0 0 72.000000 72.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.11, written by Peter Selinger 2001-2013
</metadata>
<g transform="translate(0.000000,72.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M177 598 l-179 -120 86 -57 c47 -31 86 -59 86 -63 0 -3 -39 -32 -86
-63 l-86 -58 181 -119 181 -119 181 122 180 121 -82 54 c-46 30 -84 56 -86 58
-3 2 21 21 52 42 31 22 70 49 86 61 l30 21 -180 121 c-99 67 -181 121 -183
120 -2 0 -83 -54 -181 -121z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 771 B

View File

@ -0,0 +1,13 @@
$(document).ready(function() {
$("[data-fill-from]").each(function () {
var $this = $(this);
var codeContainer = $this.data("fill-from");
var $container = $(codeContainer);
var code = $.trim($container.html());
$this.text(code);
$this.addClass("prettyprint");
});
});

View File

@ -0,0 +1,13 @@
streams:
schemes:
theme:
type: ReadOnlyStream
prefixes:
'':
- user/themes/site
- user/themes/learn2
google_analytics_code: UA-57144786-2
github:
position: top # top | bottom | off
tree: https://github.com/select2/select2/blob/develop/docs/
commits: https://github.com/select2/select2/commits/develop/docs/

View File

@ -0,0 +1,109 @@
{% set theme_config = attribute(config.themes, config.system.pages.theme) %}
<!DOCTYPE html>
<html lang="{{ grav.language.getLanguage ?: 'en' }}">
<head>
{% block head %}
<meta charset="utf-8" />
<title>{% if header.title %}{{ header.title }} | {% endif %}{{ site.title }}</title>
{% include 'partials/metadata.html.twig' %}
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no" />
<link rel="alternate" type="application/atom+xml" href="{{ base_url_absolute}}/feed:atom" title="Atom Feed" />
<link rel="alternate" type="application/rss+xml" href="{{ base_url_absolute}}/feed:rss" title="RSS Feed" />
<link rel="icon" type="image/png" href="{{ url('theme://images/favicon.png') }}">
{% block stylesheets %}
{% do assets.addCss('theme://css-compiled/nucleus.css',102) %}
{% do assets.addCss('theme://css-compiled/theme.css',101) %}
{% do assets.addCss('theme://css/custom.css',100) %}
{% do assets.addCss('theme://css/font-awesome.min.css',100) %}
{% do assets.addCss('theme://css/featherlight.min.css') %}
{% do assets.addCss('https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css') %}
{% do assets.addCss('theme://css/s2-docs.css', 100) %}
{% do assets.addCss('theme://css/theme.css',100) %}
{% if browser.getBrowser == 'msie' and browser.getVersion >= 8 and browser.getVersion <= 9 %}
{% do assets.addCss('theme://css/nucleus-ie9.css') %}
{% do assets.addCss('theme://css/pure-0.5.0/grids-min.css') %}
{% do assets.addJs('theme://js/html5shiv-printshiv.min.js') %}
{% endif %}
{{ assets.css() }}
{% endblock %}
{% block javascripts %}
{% do assets.addJs('jquery',101) %}
{% do assets.addJs('theme://js/modernizr.custom.71422.js',100) %}
{% do assets.addJs('https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.full.min.js', 100) %}
{% do assets.addJs('https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js', 100) %}
{% do assets.addJs('theme://js/featherlight.min.js') %}
{% do assets.addJs('theme://js/clipboard.min.js') %}
{% do assets.addJs('theme://js/jquery.scrollbar.min.js') %}
{% do assets.addJs('theme://js/learn.js') %}
{% do assets.addJs('theme://js/data-fill-from.js') %}
{{ assets.js() }}
{% include "partials/js/source-states.html.twig" %}
{% endblock %}
{% endblock %}
</head>
<body class="searchbox-hidden {{ page.header.body_classes }}" data-url="{{ page.route }}">
{% block sidebar %}
<nav id="sidebar">
<div id="header-wrapper">
<div id="header">
<a id="logo" href="{{ theme_config.home_url ?: base_url_absolute }}">{% include 'partials/logo.html.twig' %}</a>
<div class="searchbox">
<label for="search-by"><i class="fa fa-search"></i></label>
<input id="search-by" type="text" placeholder="{{ 'THEME_LEARN2_SEARCH_DOCUMENTATION'|t }}"
data-search-input="{{ base_url_relative }}/search.json/query"/>
<span data-search-clear><i class="fa fa-close"></i></span>
</div>
</div>
</div>
{% include 'partials/sidebar.html.twig' %}
</nav>
{% endblock %}
{% block body %}
<section id="body">
<div id="overlay"></div>
<div class="padding highlightable">
<a href="#" id="sidebar-toggle" data-sidebar-toggle><i class="fa fa-2x fa-bars"></i></a>
{% block topbar %}{% if theme_config.github.position == 'top' or config.plugins.breadcrumbs.enabled %}
<div id="top-bar">
{% if theme_config.github.position == 'top' %}
<div id="top-github-link">
{% include 'partials/github_link.html.twig' %}
</div>
{% endif %}
{% if config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %}
{% endif %}
</div>
{% endif %}{% endblock %}
{% block content %}{% endblock %}
{% block footer %}
{% if theme_config.github.position == 'bottom' %}
{% include 'partials/github_note.html.twig' %}
{% endif %}
{% endblock %}
</div>
{% block navigation %}{% endblock %}
</section>
{% endblock %}
{% block analytics %}
{% if theme_config.google_analytics_code %}
{% include 'partials/analytics.html.twig' %}
{% endif %}
{% endblock %}
</body>
</html>

View File

@ -0,0 +1,73 @@
<select class="js-source-states">
<optgroup label="Alaskan/Hawaiian Time Zone">
<option value="AK">Alaska</option>
<option value="HI">Hawaii</option>
</optgroup>
<optgroup label="Pacific Time Zone">
<option value="CA">California</option>
<option value="NV">Nevada</option>
<option value="OR">Oregon</option>
<option value="WA">Washington</option>
</optgroup>
<optgroup label="Mountain Time Zone">
<option value="AZ">Arizona</option>
<option value="CO">Colorado</option>
<option value="ID">Idaho</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NM">New Mexico</option>
<option value="ND">North Dakota</option>
<option value="UT">Utah</option>
<option value="WY">Wyoming</option>
</optgroup>
<optgroup label="Central Time Zone">
<option value="AL">Alabama</option>
<option value="AR">Arkansas</option>
<option value="IL">Illinois</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="OK">Oklahoma</option>
<option value="SD">South Dakota</option>
<option value="TX">Texas</option>
<option value="TN">Tennessee</option>
<option value="WI">Wisconsin</option>
</optgroup>
<optgroup label="Eastern Time Zone">
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="IN">Indiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="OH">Ohio</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WV">West Virginia</option>
</optgroup>
</select>
<script type="text/javascript">
$(document).ready(function() {
// Initialize "states" example
var $states = $(".js-source-states");
var statesOptions = $states.html();
$states.remove();
$(".js-states").append(statesOptions);
});
</script>

View File

@ -0,0 +1,3 @@
<span class="logo-title">
Select2
</span>

View File

@ -0,0 +1,69 @@
{% macro loop(page, parent_loop) %}
{% if parent_loop|length > 0 %}
{% set data_level = parent_loop %}
{% else %}
{% set data_level = 0 %}
{% endif %}
{% for p in page.children.visible %}
{% set parent_page = p.activeChild ? ' parent' : '' %}
{% set current_page = p.active ? ' active' : '' %}
<li class="dd-item{{ parent_page }}{{ current_page }}" data-nav-id="{{ p.route }}">
<a href="{{ p.url }}" {% if p.header.class %}class="{{ p.header.class }}"{% endif %}>
<i class="fa fa-check read-icon"></i>
<span><b>{% if data_level == 0 %}{{ loop.index }}. {% endif %}</b>{{ p.menu }}</span>
</a>
{% if p.children.count > 0 %}
<ul>
{{ _self.loop(p, parent_loop|default(0)+loop.index) }}
</ul>
{% endif %}
</li>
{% endfor %}
{% endmacro %}
{% macro version(p) %}
{% set parent_page = p.activeChild ? ' parent' : '' %}
{% set current_page = p.active ? ' active' : '' %}
<h5 class="{{ parent_page }}{{ current_page }}">
{% if p.activeChild or p.active %}
<i class="fa fa-chevron-down fa-fw"></i>
{% else %}
<i class="fa fa-plus fa-fw"></i>
{% endif %}
<a href="{{ p.url }}">{{ p.menu }}</a>
</h5>
{% endmacro %}
<div class="scrollbar-inner">
<div class="highlightable">
{% if theme_config.top_level_version %}
{% for slug, ver in pages.children %}
{{ _self.version(ver) }}
<ul id="{{ slug }}" class="topics">
{{ _self.loop(ver, '') }}
</ul>
{% endfor %}
{% else %}
<ul class="topics">
{% if theme_config.root_page %}
{{ _self.loop(page.find(theme_config.root_page), '') }}
{% else %}
{{ _self.loop(pages, '') }}
{% endif %}
</ul>
{% endif %}
<hr />
<a class="padding" href="#" data-clear-history-toggle><i
class="fa fa-fw fa-history"></i> {{ 'THEME_LEARN2_CLEAR_HISTORY'|t }}</a><br/>
<section id="footer">
<p>By <a href="https://kevin-brown.com/">Kevin Brown</a>.</p>
<p>Select2 is licensed under <a href="https://github.com/select2/select2/blob/master/LICENSE.md">MIT</a>.</p>
<p>Docs maintained by <a href="https://alexanderweissman.com">Alexander Weissman</a>.</p>
<p>Hosted by <a href="https://nextgi.com" title="Next Generation Internet">NextGI</a>.</p>
<p>Documentation license: <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.</p>
<p>{{ 'THEME_LEARN2_BUILT_WITH_GRAV'|t }}</p>
</section>
</div>
</div>