prvi
This commit is contained in:
@@ -0,0 +1 @@
|
||||
.hljs{display:block;overflow-x:auto;padding:.5em;color:#333;background:#f8f8f8}.hljs-comment,.hljs-quote{color:#998;font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-subst{color:#333;font-weight:bold}.hljs-number,.hljs-literal,.hljs-variable,.hljs-template-variable,.hljs-tag .hljs-attr{color:#008080}.hljs-string,.hljs-doctag{color:#d14}.hljs-title,.hljs-section,.hljs-selector-id{color:#900;font-weight:bold}.hljs-subst{font-weight:normal}.hljs-type,.hljs-class .hljs-title{color:#458;font-weight:bold}.hljs-tag,.hljs-name,.hljs-attribute{color:#000080;font-weight:normal}.hljs-regexp,.hljs-link{color:#009926}.hljs-symbol,.hljs-bullet{color:#990073}.hljs-built_in,.hljs-builtin-name{color:#0086b3}.hljs-meta{color:#999;font-weight:bold}.hljs-deletion{background:#fdd}.hljs-addition{background:#dfd}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,100 @@
|
||||
body {
|
||||
padding-top: 56px;
|
||||
}
|
||||
|
||||
h1[id]:before, h2[id]:before, h3[id]:before, h4[id]:before, h5[id]:before, h6[id]:before {
|
||||
content: "";
|
||||
display: block;
|
||||
margin-top: -75px;
|
||||
height: 75px;
|
||||
}
|
||||
|
||||
h2 code, h3 code, h4 code {
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
ul.nav li.main {
|
||||
font-weight: bold;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.container > .row > .col-lg-3 {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.container > .row > .col-lg-9 {
|
||||
padding-bottom: 100px;
|
||||
}
|
||||
|
||||
div.source-links {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/*
|
||||
* Side navigation
|
||||
*
|
||||
* Scrollspy and affixed enhanced navigation to highlight sections and secondary
|
||||
* sections of docs content.
|
||||
*/
|
||||
|
||||
/* By default it's not affixed in mobile views, so undo that */
|
||||
.bs-sidebar {
|
||||
position: static;
|
||||
}
|
||||
|
||||
.bs-sidebar.well {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* First level of nav */
|
||||
.bs-sidenav {
|
||||
margin-top: 30px;
|
||||
margin-bottom: 30px;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
/* All levels of nav */
|
||||
.bs-sidebar .nav > li > a {
|
||||
display: block;
|
||||
padding: 5px 20px;
|
||||
z-index: 1;
|
||||
}
|
||||
.bs-sidebar .nav > li > a:hover,
|
||||
.bs-sidebar .nav > li > a:focus {
|
||||
text-decoration: none;
|
||||
border-right: 1px solid;
|
||||
}
|
||||
.bs-sidebar .nav .nav-link.active,
|
||||
.bs-sidebar .nav .nav-link.active:hover,
|
||||
.bs-sidebar .nav .nav-link.active:focus {
|
||||
font-weight: bold;
|
||||
background-color: transparent;
|
||||
border-right: 1px solid;
|
||||
}
|
||||
|
||||
/* Nav: second level (shown on .active) */
|
||||
.bs-sidebar .nav .nav {
|
||||
display: none; /* Hide by default, but at >768px, show it */
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.bs-sidebar .nav .nav > li > a {
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px;
|
||||
padding-left: 30px;
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
/* Show and affix the side nav when space allows it */
|
||||
@media (min-width: 992px) {
|
||||
.bs-sidebar .nav-link.active + .nav {
|
||||
display: block;
|
||||
}
|
||||
/* Widen the fixed sidebar */
|
||||
.bs-sidebar {
|
||||
position: sticky; /* Undo the static from mobile first approach */
|
||||
top: 80px;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
/* Highlight */
|
||||
$( document ).ready(function() {
|
||||
hljs.initHighlightingOnLoad();
|
||||
$('table').addClass('table table-striped table-hover');
|
||||
$('pre').addClass('highlight');
|
||||
});
|
||||
|
||||
/* Prevent disabled links from causing a page reload */
|
||||
$("li.disabled a").click(function() {
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
var $searchQuery = $('#mkdocs-search-query');
|
||||
|
||||
$searchQuery.parent().on('show.bs.dropdown', function () {
|
||||
if (!$searchQuery[0].value) return false;
|
||||
});
|
||||
|
||||
function formatResults (results) {
|
||||
var sections = {},
|
||||
html = [];
|
||||
|
||||
for (var i = 0; i < results.length; i++) {
|
||||
var result = results[i],
|
||||
path = result.location.split('/'),
|
||||
pathBase = path[0];
|
||||
|
||||
if (pathBase.indexOf('#') !== -1) {
|
||||
pathBase = pathBase.split('#')[0];
|
||||
}
|
||||
|
||||
if (!sections.hasOwnProperty(pathBase)) {
|
||||
sections[pathBase] = [];
|
||||
}
|
||||
|
||||
result.section = pathBase || 'Getting Started';
|
||||
|
||||
result.section = result.section.charAt(0).toUpperCase() + result.section.slice(1);
|
||||
|
||||
sections[pathBase].push(result);
|
||||
}
|
||||
|
||||
var sectionKeys = Object.keys(sections);
|
||||
|
||||
for (var j = 0; j < sectionKeys.length; j++) {
|
||||
var section = sections[sectionKeys[j]];
|
||||
|
||||
if (result)
|
||||
html.push('<a class="h6 dropdown-header text-primary" href="' + joinUrl(base_url, sectionKeys[j]) + '">'+ section[0].section + '</a>');
|
||||
|
||||
for (var k = 0; k < section.length; k++) {
|
||||
var result = section[k];
|
||||
|
||||
if (result.title !== result.section) {
|
||||
html.push('<a class="dropdown-item" href="' + joinUrl(base_url, result.location) + '">' + result.title + '</a>');
|
||||
}
|
||||
}
|
||||
|
||||
if (j !== sectionKeys.length - 1) html.push('<div class="dropdown-divider"></div>');
|
||||
}
|
||||
|
||||
return html.join('');
|
||||
}
|
||||
|
||||
function displayResults (results) {
|
||||
var search_results = document.getElementById("mkdocs-search-results");
|
||||
while (search_results.firstChild) {
|
||||
search_results.removeChild(search_results.firstChild);
|
||||
}
|
||||
if (results.length > 0) {
|
||||
var html = formatResults(results);
|
||||
search_results.insertAdjacentHTML('beforeend', html);
|
||||
} else {
|
||||
search_results.insertAdjacentHTML('beforeend', "<div class='dropdown-item'>No results found</div>");
|
||||
}
|
||||
|
||||
$searchQuery.dropdown('show');
|
||||
}
|
||||
|
||||
// enable fuzzy searching
|
||||
function search (query) {
|
||||
if (!allowSearch) {
|
||||
console.error('Assets for search still loading');
|
||||
return;
|
||||
}
|
||||
|
||||
var resultDocuments = [];
|
||||
var results = index.search(query + '~2'); // fuzzy
|
||||
for (var i=0; i < results.length; i++){
|
||||
var result = results[i];
|
||||
doc = documents[result.ref];
|
||||
doc.summary = doc.text.substring(0, 200);
|
||||
resultDocuments.push(doc);
|
||||
}
|
||||
return resultDocuments;
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
{% if config.site_description %}<meta name="description" content="{{ config.site_description }}">{% endif %}
|
||||
{% if config.site_author %}<meta name="author" content="{{ config.site_author }}">{% endif %}
|
||||
{% if page.canonical_url %}<link rel="canonical" href="{{ page.canonical_url }}">{% endif %}
|
||||
<link rel="icon" type="image/png" href="/android-chrome-192x192.png" sizes="192x192">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
|
||||
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
|
||||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#2d80b5">
|
||||
<meta name="application-name" content="SnapAppointments Scheduling">
|
||||
<meta name="apple-mobile-web-app-title" content="SnapAppointments Scheduling">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="msapplication-TileColor" content="#00a300">
|
||||
<meta name="msapplication-TileImage" content="/mstile-144x144.png">
|
||||
<meta name="theme-color" content="#2d80b5">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
|
||||
<title>{% if page.title %}{{ page.title }} | {% endif %}bootstrap-select · SnapAppointments Developer</title>
|
||||
|
||||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
|
||||
{%- if config.theme.highlightjs %}
|
||||
<link href="{{ base_url }}/ajax/libs/highlight.js/9.15.6/css/{{ config.theme.hljs_style }}.min.css" rel="stylesheet">
|
||||
{%- endif %}
|
||||
<link href="{{ base_url }}/css/base.css" rel="stylesheet">
|
||||
{%- for path in extra_css %}
|
||||
<link href="{{ path }}" rel="stylesheet">
|
||||
{%- endfor %}
|
||||
|
||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body data-spy="scroll" data-target="#sidebar" data-offset="240">
|
||||
|
||||
{% include "nav.html" %}
|
||||
|
||||
{% if page and page.is_homepage %}
|
||||
<div class="jumbotron jumbotron-fluid bs-docs-header text-center">
|
||||
<div class="container">
|
||||
<h1>bootstrap-select</h1>
|
||||
<h2 class="lead">
|
||||
The jQuery plugin that brings select elements into the 21st century with intuitive multiselection, searching, and much more. Now with Bootstrap 4 support.
|
||||
</h2>
|
||||
<a class="btn btn-outline-inverse btn-lg" href="//github.com/snapappointments/bootstrap-select/archive/v{{ config.extra.version }}.zip" role="button">
|
||||
<i class="fa fa-download"></i> Download (v{{ config.extra.version }})
|
||||
</a>
|
||||
</div>
|
||||
<div class="gh-btns">
|
||||
<iframe src="https://ghbtns.com/github-btn.html?user=snapappointments&repo=bootstrap-select&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
|
||||
<iframe src="https://ghbtns.com/github-btn.html?user=snapappointments&repo=bootstrap-select&type=fork&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div class="carbonad">
|
||||
<div class="carbonad-inner">
|
||||
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=silviomoretogithubiobootstrapsel" id="_carbonads_js"></script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container pb-4">
|
||||
{% include "content.html" %}
|
||||
</div>
|
||||
{% else %}
|
||||
<section class="jumbotron jumbotron-fluid bs-docs-header">
|
||||
<div class="container-fluid d-flex flex-column flex-md-row align-items-md-center">
|
||||
<h1>{{ page.title }}</h1>
|
||||
{% if page and page.title == 'Examples' %}
|
||||
<div class="carbonad carbonad-header mr-md-3">
|
||||
<div class="carbonad-inner">
|
||||
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=silviomoretogithubiobootstrapsel" id="_carbonads_js"></script>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</section>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-lg-3">{% include "toc.html" %}</div>
|
||||
<div class="col-lg-9" role="main">{% include "content.html" %}</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="footer">
|
||||
<div class="container text-center">
|
||||
<p class="text-muted">Bootstrap-select is maintained by <a href="https://snapappointments.com">SnapAppointments</a>, <a href="https://github.com/caseyjhol">caseyjhol</a>,
|
||||
and the community.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var base_url = {{ base_url | tojson }};
|
||||
</script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.bundle.min.js"></script>
|
||||
{%- if config.theme.highlightjs %}
|
||||
<script src="{{ base_url }}/ajax/libs/highlight.js/9.15.6/js/highlight.pack.js"></script>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
{%- endif %}
|
||||
{%- for path in extra_javascript %}
|
||||
<script src="{{ path }}"></script>
|
||||
{%- endfor %}
|
||||
<script src="{{ base_url }}/js/base.js"></script>
|
||||
<script>
|
||||
$.fn.selectpicker.Constructor.DEFAULTS.iconBase = 'fa';
|
||||
</script>
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-113793762-1"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'UA-113793762-1');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,60 @@
|
||||
<header class="navbar navbar-expand-md navbar-light fixed-top bg-light" role="navigation">
|
||||
<!-- Main title -->
|
||||
<a class="navbar-brand" href="{{ nav.homepage.url|url }}">{{ config.site_name }}</a>
|
||||
|
||||
<!-- Collapsed navigation -->
|
||||
{% if nav|length>1 or (page.next_page or page.previous_page) or config.repo_url %}
|
||||
<!-- Expander button -->
|
||||
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target=".navbar-collapse" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
<!-- Expanded navigation -->
|
||||
<div class="navbar-collapse collapse">
|
||||
{% if nav|length>1 %}
|
||||
<!-- Main navigation -->
|
||||
<ul class="navbar-nav mr-auto">
|
||||
{% for nav_item in nav %}
|
||||
{% if nav_item.children %}
|
||||
<li class="dropdown{% if nav_item.active %} active{% endif %}">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ nav_item.title }} <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
{% for nav_item in nav_item.children %}
|
||||
{% include "nav-sub.html" %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% else %}
|
||||
<li class="nav-item{% if nav_item.active %} active{% endif %}">
|
||||
<a class="nav-link" href="{{ nav_item.url|url }}">{{ nav_item.title }}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{%- if 'search' in config['plugins'] %}
|
||||
<form class="form-inline nav-item">
|
||||
<div class="dropdown">
|
||||
<input class="form-control mr-sm-2 dropdown-toggle" data-toggle="dropdown" type="search" placeholder="Search..." aria-label="Search" id="mkdocs-search-query" autocomplete="off">
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="mkdocs-search-query" id="mkdocs-search-results">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{%- endif %}
|
||||
<ul class="navbar-nav">
|
||||
{% if config.repo_url %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ config.repo_url|url }}">
|
||||
{% if config.repo_name == 'GitHub' %}
|
||||
<i class="fa fa-github"></i>
|
||||
{% elif config.repo_name == 'Bitbucket' %}
|
||||
<i class="fa fa-bitbucket"></i>
|
||||
{% endif %}
|
||||
{{ config.repo_name }}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
</header>
|
||||
@@ -0,0 +1,16 @@
|
||||
<div class="bs-sidebar hidden-print" role="complementary" id="sidebar">
|
||||
<ul class="nav bs-sidenav">
|
||||
{% if page %}
|
||||
{% for toc_item in page.toc %}
|
||||
<li class="nav-item main">
|
||||
<a class="nav-link {% if toc_item.active %}active{% endif %}" href="{{ toc_item.url }}">{{ toc_item.title }}</a>
|
||||
<ul class="nav">
|
||||
{% for toc_item in toc_item.children %}
|
||||
<li class="nav-item"><a class="nav-link" href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
Reference in New Issue
Block a user