mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-08-31 20:39:24 +00:00
combine docs into zoitechat repo
This commit is contained in:
114
docs/_theme/basicstrap/static/js/basicstrap.js_t
vendored
Normal file
114
docs/_theme/basicstrap/static/js/basicstrap.js_t
vendored
Normal file
@@ -0,0 +1,114 @@
|
||||
$(document).ready(function(){
|
||||
|
||||
// Inline code styles to Bootstrap style.
|
||||
$('tt.docutils.literal').not(".xref").each(function (i, e) {
|
||||
// ignore references
|
||||
if (!$(e).parent().hasClass("reference")) {
|
||||
$(e).replaceWith(function () {
|
||||
return $("<code />").html($(this).html());
|
||||
});
|
||||
}});
|
||||
|
||||
/*
|
||||
* Scroll the window to avoid the topnav bar
|
||||
* https://github.com/twitter/bootstrap/issues/1768
|
||||
*/
|
||||
if ($(".navbar.navbar-fixed-top").length > 0) {
|
||||
// var navHeight = $(".navbar").height(),
|
||||
var navHeight = 40,
|
||||
shiftWindow = function() { scrollBy(0, -navHeight - 10); };
|
||||
if (location.hash) {
|
||||
setTimeout(shiftWindow, 1);
|
||||
}
|
||||
window.addEventListener("hashchange", shiftWindow);
|
||||
}
|
||||
|
||||
{%- if theme_theme_preview|tobool %}
|
||||
|
||||
var makeHtmlOptions = function(){
|
||||
var header_inverse = ($.cookie('header_inverse') == 'inverse') ? "True" : "False";
|
||||
var relbar_inverse = ($.cookie('relbar_inverse') == 'inverse') ? "True" : "False";
|
||||
var inner_theme = ($.cookie('inner_theme') != '') ? "True" : "False";
|
||||
|
||||
var options_text = "html_theme_options = {\n";
|
||||
options_text += " 'header_inverse': " + header_inverse + ",\n";
|
||||
options_text += " 'relbar_inverse': " + relbar_inverse + ",\n";
|
||||
options_text += " 'inner_theme': " + inner_theme + ",\n";
|
||||
if(inner_theme == "True") {
|
||||
options_text += " 'inner_theme_name': '" + $.cookie('inner_theme') + "',\n";
|
||||
}
|
||||
options_text += "}";
|
||||
$("#quick-preview-theme-options div.highlight pre").html(options_text);
|
||||
}
|
||||
|
||||
/*
|
||||
* for QuickPreviewModal
|
||||
*/
|
||||
if($.cookie('inner_theme')) {
|
||||
var bootstrap_version = $("#bootstrap-version").html();
|
||||
$("#current-theme").attr({href: "_static/css/bootstrap" + bootstrap_version + "/" +$.cookie('inner_theme') + ".css"})
|
||||
$("#current-adjust-theme").attr({href: "_static/css/adjust_theme/" + $.cookie('inner_theme') + ".css"})
|
||||
$('#select-theme').val($.cookie('inner_theme'));
|
||||
}
|
||||
if($.cookie('header_inverse')) {
|
||||
$("#navbar-top").removeClass("navbar-default");
|
||||
$("#navbar-top").removeClass("navbar-inverse");
|
||||
$("#navbar-top").addClass("navbar-" + $.cookie('header_inverse'));
|
||||
if ($.cookie('header_inverse') == 'inverse') {
|
||||
$('#select-header-inverse').attr('checked', true);
|
||||
}
|
||||
}
|
||||
if($.cookie('relbar_inverse')) {
|
||||
$("#navbar-related").removeClass("navbar-default");
|
||||
$("#navbar-related").removeClass("navbar-inverse");
|
||||
$("#navbar-related").addClass("navbar-" + $.cookie('relbar_inverse'));
|
||||
if ($.cookie('relbar_inverse') == 'inverse') {
|
||||
$('#select-relbar-inverse').attr('checked', true);
|
||||
}
|
||||
}
|
||||
if($.cookie('inner_theme') || $.cookie('header_inverse') || $.cookie('relbar_inverse')) {
|
||||
makeHtmlOptions();
|
||||
}
|
||||
|
||||
$("#select-theme").change(function(e){
|
||||
e.preventDefault();
|
||||
var bootstrap_version = $("#bootstrap-version").html();
|
||||
var theme;
|
||||
$("#select-theme option:selected").each(function () {
|
||||
theme = $(this).val();
|
||||
});
|
||||
if (theme == '') {
|
||||
$("#current-theme").attr({href: "_static/css/bootstrap" + bootstrap_version + "/bootstrap.min.css"})
|
||||
$("#current-adjust-theme").attr({href: ""})
|
||||
$.cookie('inner_theme', theme, {expires: 1, path: '/'});
|
||||
makeHtmlOptions();
|
||||
return
|
||||
}
|
||||
$("#current-theme").attr({href: "_static/css/bootstrap" + bootstrap_version + "/" + theme + ".css"})
|
||||
$("#current-adjust-theme").attr({href: "_static/css/adjust_theme/" + theme + ".css"})
|
||||
$.cookie('inner_theme', theme, {expires: 1, path: '/'});
|
||||
makeHtmlOptions();
|
||||
});
|
||||
$("#select-header-inverse").change(function(e){
|
||||
var inverse = $('#select-header-inverse').prop("checked");
|
||||
var inverse_type = (inverse) ? 'inverse' : 'default';
|
||||
|
||||
$("#navbar-top").removeClass("navbar-default");
|
||||
$("#navbar-top").removeClass("navbar-inverse");
|
||||
$("#navbar-top").addClass("navbar-" + inverse_type);
|
||||
$.cookie('header_inverse', inverse_type, {expires: 1, path: '/'});
|
||||
makeHtmlOptions();
|
||||
});
|
||||
$("#select-relbar-inverse").change(function(e){
|
||||
var inverse = $('#select-relbar-inverse').prop("checked");
|
||||
var inverse_type = (inverse) ? 'inverse' : 'default';
|
||||
|
||||
$("#navbar-related").removeClass("navbar-default");
|
||||
$("#navbar-related").removeClass("navbar-inverse");
|
||||
$("#navbar-related").addClass("navbar-" + inverse_type);
|
||||
$.cookie('relbar_inverse', inverse_type, {expires: 1, path: '/'});
|
||||
makeHtmlOptions();
|
||||
});
|
||||
{%- endif %}
|
||||
|
||||
});
|
||||
6
docs/_theme/basicstrap/static/js/bootstrap2.min.js
vendored
Normal file
6
docs/_theme/basicstrap/static/js/bootstrap2.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
7
docs/_theme/basicstrap/static/js/bootstrap3.min.js
vendored
Normal file
7
docs/_theme/basicstrap/static/js/bootstrap3.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
docs/_theme/basicstrap/static/js/jquery.cookie-1.4.1.min.js
vendored
Normal file
2
docs/_theme/basicstrap/static/js/jquery.cookie-1.4.1.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/*! jquery.cookie v1.4.1 | MIT */
|
||||
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?a(require("jquery")):a(jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});
|
||||
2
docs/_theme/basicstrap/static/js/jquery.cookie.min.js
vendored
Normal file
2
docs/_theme/basicstrap/static/js/jquery.cookie.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/*! jquery.cookie v1.4.1 | MIT */
|
||||
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?a(require("jquery")):a(jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});
|
||||
4
docs/_theme/basicstrap/static/js/jquery.min.js
vendored
Normal file
4
docs/_theme/basicstrap/static/js/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user