From 1ca3b3df3421961caec3b747a364071c80f5c7da Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 17:14:58 +0700 Subject: initial commit --- .../lib/bootstrap-toggle-master/doc/header.png | Bin 0 -> 89486 bytes .../static/lib/bootstrap-toggle-master/doc/nyt.png | Bin 0 -> 5022 bytes .../lib/bootstrap-toggle-master/doc/nytdev.svg | 239 +++++++++++++++++++++ .../lib/bootstrap-toggle-master/doc/script.js | 49 +++++ .../lib/bootstrap-toggle-master/doc/stylesheet.css | 112 ++++++++++ 5 files changed, 400 insertions(+) create mode 100644 base_accounting_kit/static/lib/bootstrap-toggle-master/doc/header.png create mode 100644 base_accounting_kit/static/lib/bootstrap-toggle-master/doc/nyt.png create mode 100644 base_accounting_kit/static/lib/bootstrap-toggle-master/doc/nytdev.svg create mode 100644 base_accounting_kit/static/lib/bootstrap-toggle-master/doc/script.js create mode 100644 base_accounting_kit/static/lib/bootstrap-toggle-master/doc/stylesheet.css (limited to 'base_accounting_kit/static/lib/bootstrap-toggle-master/doc') diff --git a/base_accounting_kit/static/lib/bootstrap-toggle-master/doc/header.png b/base_accounting_kit/static/lib/bootstrap-toggle-master/doc/header.png new file mode 100644 index 0000000..eb8d58b Binary files /dev/null and b/base_accounting_kit/static/lib/bootstrap-toggle-master/doc/header.png differ diff --git a/base_accounting_kit/static/lib/bootstrap-toggle-master/doc/nyt.png b/base_accounting_kit/static/lib/bootstrap-toggle-master/doc/nyt.png new file mode 100644 index 0000000..4025f26 Binary files /dev/null and b/base_accounting_kit/static/lib/bootstrap-toggle-master/doc/nyt.png differ diff --git a/base_accounting_kit/static/lib/bootstrap-toggle-master/doc/nytdev.svg b/base_accounting_kit/static/lib/bootstrap-toggle-master/doc/nytdev.svg new file mode 100644 index 0000000..39669ee --- /dev/null +++ b/base_accounting_kit/static/lib/bootstrap-toggle-master/doc/nytdev.svg @@ -0,0 +1,239 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base_accounting_kit/static/lib/bootstrap-toggle-master/doc/script.js b/base_accounting_kit/static/lib/bootstrap-toggle-master/doc/script.js new file mode 100644 index 0000000..863728a --- /dev/null +++ b/base_accounting_kit/static/lib/bootstrap-toggle-master/doc/script.js @@ -0,0 +1,49 @@ ++function ($) { + 'use strict'; + + $('.example:not(.skip)').each(function() { + // fetch & encode html + var html = $('
').text($(this).html()).html() + // find number of space/tabs on first line (minus line break) + var count = html.match(/^(\s+)/)[0].length - 1 + // replace tabs/spaces on each lines with + var regex = new RegExp('\\n\\s{'+count+'}', 'g') + var code = html.replace(regex, '\n').replace(/\t/g, ' ').trim() + // other cleanup + code = code.replace(/=""/g,'') + // add code block to dom + $(this).after( $('').html(code) ) + }); + + $('code.highlight').each(function() { + hljs.highlightBlock(this) + }); + +}(jQuery); + +var Demo = function () {} + +Demo.prototype.init = function(selector) { + $(selector).bootstrapToggle(selector) +} +Demo.prototype.destroy = function(selector) { + $(selector).bootstrapToggle('destroy') +} +Demo.prototype.on = function(selector) { + $(selector).bootstrapToggle('on') +} +Demo.prototype.off = function(selector) { + $(selector).bootstrapToggle('off') +} +Demo.prototype.toggle = function(selector) { + $(selector).bootstrapToggle('toggle') +} +Demo.prototype.enable = function(selector) { + $(selector).bootstrapToggle('enable') +} +Demo.prototype.disable = function(selector) { + $(selector).bootstrapToggle('disable') +} + + +demo = new Demo() diff --git a/base_accounting_kit/static/lib/bootstrap-toggle-master/doc/stylesheet.css b/base_accounting_kit/static/lib/bootstrap-toggle-master/doc/stylesheet.css new file mode 100644 index 0000000..fe7a444 --- /dev/null +++ b/base_accounting_kit/static/lib/bootstrap-toggle-master/doc/stylesheet.css @@ -0,0 +1,112 @@ +header, footer { + padding: 20px; + background-image: url('header.png'); + background-size: 256px 256px; +} +footer { + color: #fff; + text-align: center; +} +.nyt-logo { + max-height: 40px; + margin-top: 5px; + margin-right: 5px; +} + +nav.navbar { + margin-bottom: 10px; + background-color: #fff; + border: 0px; + border-radius: 2px; +} +#navbar { + margin: 0px; +} +#navbar .navbar-nav li iframe { + margin-top: 15px; +} +#navbar .navbar-nav li:last-child iframe { + margin-right: 15px; +} + +@media screen and (max-width: 767px) { + #navbar .navbar-nav li iframe { + display: none; + } +} + +.mast-head { + margin: 10px 0; +} +.mast-head h1 { + margin-bottom: 15px; + color: #fff; +} +.mast-head p { + color: #fff; +} + +.mast-links { + padding-top: 10px; +} + +.mast-links > * { + vertical-align: middle; + margin-bottom: 10px; +} + +.mast-links > .btn { + margin-right: 30px; +} +main { + margin: 10px 20px; +} +main .container { + margin-bottom: 40px; +} + +code.hljs { + border: 1px solid #ccc; + padding: 1em; + white-space: pre; + margin-bottom: 10px; +} + +.example { + position: relative; + border: 1px solid #ccc; + padding: 1em 1em 0.5em 1em; + border-radius: 4px 4px 0 0; +} + +.example:after { + content: "Example"; + position: absolute; + top: 0px; + right: 0px; + padding: 3px 7px; + font-size: 12px; + font-weight: bold; + background-color: #f5f5f5; + border: 1px solid #ccc; + color: #9da0a4; + border-radius: 0px 4px 0px 4px; + border-width: 0px 0px 1px 1px; +} + +.example + code.hljs { + border-top: 0; + border-radius: 0px 0px 4px 4px; +} + +.example > * { + margin-bottom: 10px; +} + +.example > div.toggle { + margin-right: 10px; +} + +.table-striped code { + background-color: inherit; +} \ No newline at end of file -- cgit v1.2.3