Remove org-templates
@@ -1,137 +0,0 @@
|
||||
#+SETUPFILE: ~/.emacs.d/org-styles/html/bigblow_inline.theme
|
||||
#+TITLE: BigBlow
|
||||
#+AUTHOR: fniessen
|
||||
#+CREATOR: https://github.com/fniessen/org-html-themes
|
||||
#+EMAIL: nil
|
||||
#+OPTIONS: ^:nil p:t
|
||||
|
||||
|
||||
|
||||
* BigBlow
|
||||
Original: https://github.com/fniessen/org-html-themes
|
||||
|
||||
Includes:
|
||||
- [X] CSS
|
||||
- [X] JAVASCRIPT
|
||||
|
||||
Available as:
|
||||
- [X] CSS FILE
|
||||
- [X] JS FILE
|
||||
- [X] SETUPFILE
|
||||
|
||||
* Lists
|
||||
** Todo List
|
||||
*** TODO First todo
|
||||
*** DONE First Done with Date
|
||||
CLOSED: [2021-02-18 Thu 10:12]
|
||||
*** TODO Scheduled
|
||||
SCHEDULED: <2021-02-18 Thu>
|
||||
*** TODO Deadline
|
||||
DEADLINE: <2021-02-18 Thu>
|
||||
*** TODO Date
|
||||
<2021-02-18 Thu>
|
||||
|
||||
** Simple list
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
|
||||
** Sorted List
|
||||
1. List item
|
||||
2. List item
|
||||
3. List item
|
||||
4. List item
|
||||
|
||||
** Checkbox
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
|
||||
|
||||
* H1
|
||||
H1 Text
|
||||
** H2
|
||||
H2 Text
|
||||
*** H3
|
||||
H3 Text
|
||||
**** H4
|
||||
H4 Text
|
||||
***** H5
|
||||
H5 Text
|
||||
****** H6
|
||||
H6 Text
|
||||
******* H7
|
||||
H7 Text
|
||||
|
||||
|
||||
|
||||
* Table
|
||||
|
||||
| a | b | c | d | e | f |
|
||||
|----+----+----+----+----+----|
|
||||
| 0 | 1 | 2 | 3 | 4 | 5 |
|
||||
| 6 | 7 | 8 | 9 | 10 | 11 |
|
||||
| 12 | 13 | 14 | 15 | 16 | 17 |
|
||||
| 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 |
|
||||
|
||||
|
||||
* Blocks
|
||||
** Center
|
||||
#+begin_center
|
||||
This is a center block
|
||||
#+end_center
|
||||
|
||||
** Comment
|
||||
#+begin_comment
|
||||
This is a comment block
|
||||
#+end_comment
|
||||
|
||||
** Example
|
||||
#+begin_example
|
||||
This is an example block
|
||||
#+end_example
|
||||
|
||||
** Quote
|
||||
#+begin_quote
|
||||
This is a quote block
|
||||
#+end_quote
|
||||
|
||||
** Verse
|
||||
#+begin_verse
|
||||
This is a verse block
|
||||
#+end_verse
|
||||
|
||||
|
||||
** Source Blocks
|
||||
*** Python
|
||||
#+begin_src python :results output :exports both
|
||||
for i in range(10):
|
||||
print(i)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
#+begin_example
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
#+end_example
|
||||
|
||||
*** Elisp
|
||||
#+begin_src emacs-lisp :exports both
|
||||
(car '(a b c d))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: a
|
||||
|
||||
|
||||
@@ -1,756 +0,0 @@
|
||||
/* bigblow.css --- BigBlow CSS file */
|
||||
|
||||
/* Copyright (C) 2011-2014 All Right Reserved, Fabrice Niessen */
|
||||
|
||||
/* This file is free software: you can redistribute it and/or */
|
||||
/* modify it under the terms of the GNU General Public License as */
|
||||
/* published by the Free Software Foundation, either version 3 of */
|
||||
/* the License, or (at your option) any later version. */
|
||||
|
||||
/* This file is distributed in the hope that it will be useful, */
|
||||
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
||||
/* GNU General Public License for more details. */
|
||||
|
||||
/* Author: Fabrice Niessen <(concat "fniessen" at-sign "pirilampo.org")> */
|
||||
/* URL: https://github.com/fniessen/org-html-themes/ */
|
||||
/* Version: 20140605.0925 */
|
||||
|
||||
html, body {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
@media print {
|
||||
.dontprint {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#preamble {
|
||||
background: none repeat scroll 0 0 #46484B;
|
||||
color: #FFFFFF;
|
||||
font-family: Arial,Helvetica,sans-serif;
|
||||
font-size: 70%;
|
||||
font-weight: bold;
|
||||
height: 224px; /* so that content begins after... */
|
||||
padding: 2px 2px 0 6px;
|
||||
}
|
||||
|
||||
#banner {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#tabs {
|
||||
background-color: #2061A2;
|
||||
float: left;
|
||||
margin: 0px 0px 20px 0px;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#tabs ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#tabs li {
|
||||
float: left;
|
||||
list-style-type: none;
|
||||
margin: 0px 2px 0px 0px;
|
||||
padding: 0px 0px 0px 0px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#tabs li a {
|
||||
color: #EEEEEE;
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
margin: 0;
|
||||
padding: 4px 10px 4px 10px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#tabs li a:hover {
|
||||
background: #759FCF;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
#tabs li.ui-tabs-active a {
|
||||
background: #FFFFFF;
|
||||
color: #555555;
|
||||
}
|
||||
|
||||
#content {
|
||||
clear: both;
|
||||
background-color: #FFFFFF;
|
||||
font-size: 100%;
|
||||
margin: 0 auto;
|
||||
max-width: 810px;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
padding: 0px 10px 2px 10px;
|
||||
}
|
||||
|
||||
#postamble {
|
||||
color: #999999;
|
||||
font-family: Arial,Helvetica,sans-serif;
|
||||
font-size: 70%;
|
||||
height: 40px;
|
||||
margin: 0 auto;
|
||||
max-width: 810px;
|
||||
padding-right: 30px;
|
||||
padding-top: 22px;
|
||||
padding: 2px 2px 0 6px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
body {
|
||||
color: #333333;
|
||||
font: 13px/1.385 arial,helvetica,clean,sans-serif;
|
||||
margin: 0 .1em;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
b {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
i {
|
||||
color: #1A1A1A;
|
||||
}
|
||||
|
||||
h1, ul#tabs, h2, h3, h4, h5 {
|
||||
font-family: "Trebuchet MS",Verdana,sans-serif;
|
||||
}
|
||||
|
||||
h1 {
|
||||
background-color: #0A3F69;
|
||||
color: #F8F8F8;
|
||||
font-size: 24px;
|
||||
margin: 0;
|
||||
padding: 9px 0px 0px 10px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
border-bottom: 4px solid #67B3E3;
|
||||
color: #13679D;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
h3, h4, h5, h6 {
|
||||
color: #1572AE;
|
||||
}
|
||||
|
||||
h3 {
|
||||
border-bottom: 1px solid #B5DAF1;
|
||||
font-size: 16px;
|
||||
margin-left: 25px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
border-bottom: 1px dotted #C9E3F5;
|
||||
font-size: 14px;
|
||||
margin-left: 60px;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1em;
|
||||
margin-left: 87px;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 1em;
|
||||
margin-left: 100px;
|
||||
}
|
||||
|
||||
.DONEheader {
|
||||
color: #ADADAD;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
h3.DONEheader {
|
||||
border-bottom: 1px solid #DDDDDD;
|
||||
}
|
||||
|
||||
h4.DONEheader {
|
||||
border-bottom: 1px dotted #DDDDDD;
|
||||
}
|
||||
|
||||
.outline-text-2, .outline-text-3, .outline-text-4, .outline-text-5,
|
||||
.outline-3 > ul, /* for HTML export of Beamer slides */
|
||||
.outline-4 > ol, #text-footnotes {
|
||||
margin-left: 100px;
|
||||
}
|
||||
|
||||
li > .outline-text-5 {
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
|
||||
dt {
|
||||
color: #1572AE;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
pre {
|
||||
/* Use #EAEAEA for background-color of border with src code block's name */
|
||||
background-color: #F8F8FF;
|
||||
border: 1px solid #DEDEDE;
|
||||
color: #444444;
|
||||
font-family: monospace;
|
||||
line-height: 1.14em;
|
||||
overflow: auto;
|
||||
/* overflow-x: auto; */
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
code {
|
||||
background-color: #F8F8FF;
|
||||
border: 1px solid #DEDEDE;
|
||||
color: #444444;
|
||||
font-family: monospace;
|
||||
/* font-size: 0.93em; */
|
||||
margin: 0px 1px;
|
||||
padding: 0px 2px;
|
||||
}
|
||||
|
||||
li > p, li > ul, li > .inlinetask, li > dl {
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
dd > p, dd > ul, dd > .inlinetask, dd > dl {
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
li.checked {
|
||||
list-style-image: url('../images/checked.png');
|
||||
}
|
||||
|
||||
li.halfchecked {
|
||||
list-style-image: url('../images/halfchecked.png');
|
||||
}
|
||||
|
||||
li.unchecked {
|
||||
list-style-image: url('../images/unchecked.png');
|
||||
}
|
||||
|
||||
a, a:link, a:visited {
|
||||
color: #2061A2;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
a:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
#search {
|
||||
border-radius: 3px;
|
||||
background: none repeat scroll 0 0 #FFFFFF;
|
||||
display: block;
|
||||
float: right;
|
||||
height: 18px;
|
||||
margin: 5px 10px 0 0;
|
||||
overflow: hidden;
|
||||
padding: 0 3px;
|
||||
width: 188px;
|
||||
}
|
||||
|
||||
#search input {
|
||||
border: 0 none;
|
||||
color: #666666;
|
||||
float: left;
|
||||
font-family: Arial,Helvetica,sans-serif;
|
||||
font-size: 11px;
|
||||
font-weight: normal;
|
||||
margin: 0;
|
||||
padding: 2px 4px;
|
||||
width: 160px;
|
||||
}
|
||||
|
||||
#search button {
|
||||
background: url("../images/search-glass.png") no-repeat scroll 0 50% transparent;
|
||||
border: 0 none;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
float: right;
|
||||
height: 18px;
|
||||
margin: 0;
|
||||
text-indent: -999em;
|
||||
width: 14px;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
table td {
|
||||
padding: 3px 5px;
|
||||
}
|
||||
|
||||
table, th, td
|
||||
{
|
||||
border: 1px solid #B5DAF1;
|
||||
border-left: 2px solid white;
|
||||
border-right: 2px solid white;
|
||||
}
|
||||
|
||||
th
|
||||
{
|
||||
border-width: 1px 2px;
|
||||
border-color: white;
|
||||
background-color: #2061A2;
|
||||
color: white;
|
||||
}
|
||||
|
||||
caption {
|
||||
color: #8D8D84;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.figure {
|
||||
color: #8D8D84;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.fixme {
|
||||
background: #FFFF88 url('../images/fixme.png') no-repeat top left;
|
||||
color: #CC0000;
|
||||
display: inline-block;
|
||||
height: 16px;
|
||||
text-indent: -9999px;
|
||||
width: 82px;
|
||||
}
|
||||
|
||||
.left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.justify {
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.inlinetask {
|
||||
background-color: #F7F7F7;
|
||||
border-collapse: separate;
|
||||
border-color: #EEEEEE #EEEEEE #EEEEEE #1E90FF;
|
||||
border-style: solid;
|
||||
border-width: 1px 1px 1px 6px;
|
||||
padding: 8px 8px 0px 8px;
|
||||
margin: 10px 0px;
|
||||
}
|
||||
|
||||
.inlinetask td {
|
||||
padding: 2px 5px 0px 2px;
|
||||
border: 0px;
|
||||
}
|
||||
|
||||
.info {
|
||||
border: 1px solid;
|
||||
background: url('../images/info.png') no-repeat 10px 10px #BDE5F8;
|
||||
color: #00529B;
|
||||
padding: 4px 10px 4px 52px;
|
||||
border-top-left-radius: 5px;
|
||||
border-top-right-radius: 5px;
|
||||
border-bottom-right-radius: 5px;
|
||||
border-bottom-left-radius: 5px;
|
||||
margin: 10px 0px;
|
||||
}
|
||||
|
||||
.tip {
|
||||
border: 1px solid;
|
||||
background: url('../images/tip.png') no-repeat 10px 10px #DFF2BF;
|
||||
color: #4F8A10;
|
||||
padding: 4px 10px 4px 52px;
|
||||
border-top-left-radius: 5px;
|
||||
border-top-right-radius: 5px;
|
||||
border-bottom-right-radius: 5px;
|
||||
border-bottom-left-radius: 5px;
|
||||
margin: 10px 0px;
|
||||
}
|
||||
|
||||
.note {
|
||||
border: 1px solid;
|
||||
background: url('../images/note.png') no-repeat 10px 10px #FFFCCB;
|
||||
color: #9F6000;
|
||||
padding: 4px 10px 4px 52px;
|
||||
border-top-left-radius: 5px;
|
||||
border-top-right-radius: 5px;
|
||||
border-bottom-right-radius: 5px;
|
||||
border-bottom-left-radius: 5px;
|
||||
margin: 10px 0px;
|
||||
}
|
||||
|
||||
.warning {
|
||||
border: 1px solid;
|
||||
background: url('../images/warning.png') no-repeat 10px 10px #FFBABA;
|
||||
color: #D8000C;
|
||||
padding: 4px 10px 4px 52px;
|
||||
border-top-left-radius: 5px;
|
||||
border-top-right-radius: 5px;
|
||||
border-bottom-right-radius: 5px;
|
||||
border-bottom-left-radius: 5px;
|
||||
margin: 10px 0px;
|
||||
}
|
||||
|
||||
.todo, .done {
|
||||
margin: 10px 0;
|
||||
padding: 0px 2px;
|
||||
}
|
||||
|
||||
.NEW {
|
||||
background-color: #FDFCD8;
|
||||
border: 1px solid #EEE9C3;
|
||||
color: #302B13;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.TODO {
|
||||
background-color: #FED5D7;
|
||||
border: 1px solid #FC5158;
|
||||
color: #FC5158;
|
||||
}
|
||||
|
||||
.STRT, .STARTED {
|
||||
background-color: #FEF2D4;
|
||||
border: 1px solid #FDBF3D;
|
||||
color: #FDBF3D;
|
||||
}
|
||||
|
||||
.WAIT, .WAITING, .DLGT, .DELEGATED {
|
||||
background-color: #DFFFDF;
|
||||
border: 1px solid #55BA80;
|
||||
color: #55BA80;
|
||||
}
|
||||
|
||||
.SDAY, .SOMEDAY, .DFRD, .DEFERRED {
|
||||
background-color: #D3EEFF;
|
||||
border: 1px solid #42B5FF;
|
||||
color: #42B5FF;
|
||||
}
|
||||
|
||||
.DONE, .CANX, .CANCELED {
|
||||
background-color: #F2F2EE;
|
||||
border: 1px solid #969696;
|
||||
color: #969696;
|
||||
}
|
||||
|
||||
.tag span {
|
||||
background-color: #EDEDED;
|
||||
border: 1px solid #EDEDED;
|
||||
color: #939393;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
float: right;
|
||||
font-size: 80%;
|
||||
font-weight: normal;
|
||||
margin: 0 3px;
|
||||
padding: 1px 2px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#right-panel-contents .tag span {
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
.tag span:hover {
|
||||
background: #BABDB6;
|
||||
}
|
||||
|
||||
.tag .FLAGGED {
|
||||
background-color: #EDC6C8;
|
||||
border: 1px solid #EDC6C8;
|
||||
color: #C15F4E;
|
||||
}
|
||||
|
||||
.tag .selected {
|
||||
background-color: #FFEBC1;
|
||||
border: 1px solid #FDBF3B;
|
||||
color: #A6750C;
|
||||
}
|
||||
|
||||
#listOfTags .tag span {
|
||||
display: inline;
|
||||
float: none;
|
||||
}
|
||||
|
||||
span.todo {
|
||||
cursor: pointer;
|
||||
/* display: block; */
|
||||
/* float: left; */
|
||||
margin: -1px 3px 0px 0px;
|
||||
}
|
||||
|
||||
span.todo:hover {
|
||||
background: #BABDB6;
|
||||
color: #888888;
|
||||
}
|
||||
|
||||
span.todo .selected {
|
||||
background-color: #FFEBC1;
|
||||
border-color: #FDBF3B;
|
||||
color: #A6750C;
|
||||
}
|
||||
|
||||
.matchtag {
|
||||
background-color: #FBFFC0;
|
||||
}
|
||||
|
||||
.matchNEW {
|
||||
background-color: #FDFCD8;
|
||||
}
|
||||
|
||||
.matchTODO {
|
||||
background-color: #FFE6E4;
|
||||
}
|
||||
|
||||
.matchSTRT {
|
||||
background-color: #FEF2D4;
|
||||
}
|
||||
|
||||
.matchWAIT, .matchDLGT {
|
||||
background-color: #DFFFDF;
|
||||
}
|
||||
|
||||
.matchSDAY, .matchDFRD {
|
||||
background-color: #E0EFFF;
|
||||
}
|
||||
|
||||
#listOfTodo, #listOfDone, #listOfTags {
|
||||
/* bottom: 10px; /\* together with this to put the div at the bottom*\/ */
|
||||
/* left: 10px; */
|
||||
/* list-style-type: none; */
|
||||
margin-left: 0px;
|
||||
/* position: fixed; /\* this is the magic *\/ */
|
||||
}
|
||||
|
||||
.timestamp-kwd {
|
||||
background-color: #FFF1F1;
|
||||
color: #880000;
|
||||
margin: 0px 4px 0px 0px;
|
||||
padding: 2px 0px 2px 2px;
|
||||
}
|
||||
|
||||
.timestamp {
|
||||
color: #777777;
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
#table-of-contents {
|
||||
background-color: #FFFFDD;
|
||||
border: 1px solid #E4E4E4;
|
||||
display: table;
|
||||
line-height: 1.2em;
|
||||
padding: 4px;
|
||||
margin: 4px;
|
||||
max-width: 400px;
|
||||
float: right;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
#table-of-contents h2 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#table-of-contents ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#table-of-contents li {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#table-of-contents li li {
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
|
||||
#table-of-contents li li li {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
#table-of-contents a {
|
||||
color: #606060;
|
||||
font-size: 0.9em;
|
||||
font-weight: normal;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#table-of-contents a:hover {
|
||||
color: #C61A1A;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#minitoc {
|
||||
background-color: #FFFFDD;
|
||||
border: 1px solid #E4E4E4;
|
||||
color: #484848;
|
||||
line-height: 1.2em;
|
||||
margin: 12px;
|
||||
padding: 4px;
|
||||
position: fixed;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
#minitoc a {
|
||||
display: block;
|
||||
font-size: 10px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#minitoc a {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#minitoc:hover a {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#minitoc h2 {
|
||||
margin: 3px 0px;
|
||||
border: none;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
p.verse {
|
||||
color: #808080;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.example {
|
||||
background-color: #DDFADE;
|
||||
border: 1px solid #9EC49F;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.alert {
|
||||
font-weight: bold;
|
||||
color: #FF0000;
|
||||
}
|
||||
|
||||
#toTop {
|
||||
background: #F7F7F7;
|
||||
border: 1px solid #CCCCCC;
|
||||
top: 10px; /* together with this to put the div at the top */
|
||||
color: #333333;
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
font-family: verdana;
|
||||
font-size: 11px;
|
||||
padding: 5px;
|
||||
position: fixed; /* this is the magic */
|
||||
right: 10px;
|
||||
text-align: center;
|
||||
width: 100px;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
#toTop:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#left-panel-wrapper {
|
||||
position: fixed;
|
||||
z-index: 200;
|
||||
/* display: none; /\* hide the panel if Javascript is not running *\/ */
|
||||
}
|
||||
|
||||
#left-panel-contents {
|
||||
background-color: #EFEFEF;
|
||||
border-right: 1px dotted #ADADAD;
|
||||
display: none;
|
||||
height: 100%;
|
||||
left: 0px;
|
||||
position: fixed;
|
||||
text-align: left;
|
||||
top: 0;
|
||||
width: 199px;
|
||||
z-index: 200;
|
||||
padding-top: 7px;
|
||||
padding-left: 7px;
|
||||
}
|
||||
|
||||
#left-panel-button {
|
||||
transform: rotate(90deg);
|
||||
background-color: #EFEFEF;
|
||||
border: 1px dotted #ADADAD;
|
||||
border-bottom-width: 0px;
|
||||
left: -23px;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
z-index: 200;
|
||||
padding: 2px 5px 5px 5px;
|
||||
}
|
||||
|
||||
#right-panel-wrapper {
|
||||
position: fixed;
|
||||
z-index: 200;
|
||||
/* display: none; /\* hide the panel if Javascript is not running *\/ */
|
||||
}
|
||||
|
||||
#right-panel-contents {
|
||||
background-color: #EFEFEF;
|
||||
border-left: 1px dotted #ADADAD;
|
||||
display: none;
|
||||
height: 100%;
|
||||
right: 0px;
|
||||
position: fixed;
|
||||
text-align: left;
|
||||
top: 0;
|
||||
width: 199px;
|
||||
z-index: 200;
|
||||
padding-top: 7px;
|
||||
padding-left: 7px;
|
||||
}
|
||||
|
||||
.org-src-container {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.snippet-copy-to-clipboard {
|
||||
display: none;
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 5px;
|
||||
font-size: 0.9em;
|
||||
text-decoration:underline;
|
||||
}
|
||||
|
||||
.copy-to-clipboard-button:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* This is for the sake of Emacs. */
|
||||
/* Local Variables: */
|
||||
/* eval: (when (locate-library "rainbow-mode") (require 'rainbow-mode) (rainbow-mode)) */
|
||||
/* End: */
|
||||
@@ -1,116 +0,0 @@
|
||||
/* hideshow.css --- HideShow CSS file */
|
||||
|
||||
/* Copyright (C) 2014 All Right Reserved, Fabrice Niessen */
|
||||
|
||||
/* This file is free software: you can redistribute it and/or */
|
||||
/* modify it under the terms of the GNU General Public License as */
|
||||
/* published by the Free Software Foundation, either version 3 of */
|
||||
/* the License, or (at your option) any later version. */
|
||||
|
||||
/* This file is distributed in the hope that it will be useful, */
|
||||
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
||||
/* GNU General Public License for more details. */
|
||||
|
||||
/* Author: Fabrice Niessen <(concat "fniessen" at-sign "pirilampo.org")> */
|
||||
/* URL: https://github.com/fniessen/hide-show/ */
|
||||
/* Version: 20140912.1722 */
|
||||
|
||||
.hsExpanded.hsAnchor {background: #EE7700;}
|
||||
|
||||
.buttons {
|
||||
padding: 0px 7px 13px 0px;
|
||||
background: #0A3F69;
|
||||
}
|
||||
|
||||
.hsButton {
|
||||
color: white;
|
||||
float: right;
|
||||
font-size: 70%;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.hsButton:hover {
|
||||
background: #FBE448;
|
||||
color: black;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ellipsis {
|
||||
color: #999999;
|
||||
/* background-color: #FFF8C0; */
|
||||
/* float: right; */
|
||||
margin-left: 0.6em;
|
||||
}
|
||||
|
||||
.hsReview {
|
||||
border: 1px solid #A4A4A4;
|
||||
background-color: white;
|
||||
z-index: 500; /* must be greater then z-index of hsOverlay */
|
||||
position: relative; /* required for z-index to work */
|
||||
}
|
||||
|
||||
#hsOverlay {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
background-color: #000;
|
||||
opacity: .70;
|
||||
z-index: 250; /* must be greater than any other z-index (except the one for .hsReview */
|
||||
}
|
||||
|
||||
.hsReviewPanel {
|
||||
background-color: #757176;
|
||||
color: white;
|
||||
line-height: 1.1em;
|
||||
margin: 10px 0px;
|
||||
padding: 10px;
|
||||
position: fixed;
|
||||
width: auto;
|
||||
bottom: 0px;
|
||||
right: 0px;
|
||||
z-index: 501;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hsReviewPanel.hsReviewing {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hsReviewPanel:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.hsReviewingPanel {
|
||||
background-color: white;
|
||||
color: #757176;
|
||||
line-height: 1.1em;
|
||||
margin: 10px 0px;
|
||||
padding: 10px;
|
||||
position: fixed;
|
||||
width: auto;
|
||||
bottom: 0px;
|
||||
right: 0px;
|
||||
z-index: 501;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hsReviewButton:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.hsUnselectable {
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
/* This is for the sake of Emacs. */
|
||||
/* Local Variables: */
|
||||
/* eval: (when (locate-library "rainbow-mode") (require 'rainbow-mode) (rainbow-mode)) */
|
||||
/* End: */
|
||||
@@ -1,145 +0,0 @@
|
||||
.org-bold { /* bold */ font-weight: bold; }
|
||||
.org-bold-italic { /* bold-italic */ font-weight: bold; font-style: italic; }
|
||||
.org-buffer-menu-buffer { /* buffer-menu-buffer */ font-weight: bold; }
|
||||
.org-builtin { /* font-lock-builtin-face */ color: #7a378b; }
|
||||
.org-button { /* button */ text-decoration: underline; }
|
||||
.org-calendar-today { /* calendar-today */ text-decoration: underline; }
|
||||
.org-change-log-acknowledgement { /* change-log-acknowledgement */ color: #b22222; }
|
||||
.org-change-log-conditionals { /* change-log-conditionals */ color: #a0522d; }
|
||||
.org-change-log-date { /* change-log-date */ color: #8b2252; }
|
||||
.org-change-log-email { /* change-log-email */ color: #a0522d; }
|
||||
.org-change-log-file { /* change-log-file */ color: #0000ff; }
|
||||
.org-change-log-function { /* change-log-function */ color: #a0522d; }
|
||||
.org-change-log-list { /* change-log-list */ color: #a020f0; }
|
||||
.org-change-log-name { /* change-log-name */ color: #008b8b; }
|
||||
.org-comint-highlight-input { /* comint-highlight-input */ font-weight: bold; }
|
||||
.org-comint-highlight-prompt { /* comint-highlight-prompt */ color: #00008b; }
|
||||
.org-comment { /* font-lock-comment-face */ color: #b22222; }
|
||||
.org-comment-delimiter { /* font-lock-comment-delimiter-face */ color: #b22222; }
|
||||
.org-completions-annotations { /* completions-annotations */ font-style: italic; }
|
||||
.org-completions-common-part { /* completions-common-part */ color: #000000; background-color: #ffffff; }
|
||||
.org-completions-first-difference { /* completions-first-difference */ font-weight: bold; }
|
||||
.org-constant { /* font-lock-constant-face */ color: #008b8b; }
|
||||
.org-diary { /* diary */ color: #ff0000; }
|
||||
.org-diff-context { /* diff-context */ color: #7f7f7f; }
|
||||
.org-diff-file-header { /* diff-file-header */ background-color: #b3b3b3; font-weight: bold; }
|
||||
.org-diff-function { /* diff-function */ background-color: #cccccc; }
|
||||
.org-diff-header { /* diff-header */ background-color: #cccccc; }
|
||||
.org-diff-hunk-header { /* diff-hunk-header */ background-color: #cccccc; }
|
||||
.org-diff-index { /* diff-index */ background-color: #b3b3b3; font-weight: bold; }
|
||||
.org-diff-nonexistent { /* diff-nonexistent */ background-color: #b3b3b3; font-weight: bold; }
|
||||
.org-diff-refine-change { /* diff-refine-change */ background-color: #d9d9d9; }
|
||||
.org-dired-directory { /* dired-directory */ color: #0000ff; }
|
||||
.org-dired-flagged { /* dired-flagged */ color: #ff0000; font-weight: bold; }
|
||||
.org-dired-header { /* dired-header */ color: #228b22; }
|
||||
.org-dired-ignored { /* dired-ignored */ color: #7f7f7f; }
|
||||
.org-dired-mark { /* dired-mark */ color: #008b8b; }
|
||||
.org-dired-marked { /* dired-marked */ color: #ff0000; font-weight: bold; }
|
||||
.org-dired-perm-write { /* dired-perm-write */ color: #b22222; }
|
||||
.org-dired-symlink { /* dired-symlink */ color: #a020f0; }
|
||||
.org-dired-warning { /* dired-warning */ color: #ff0000; font-weight: bold; }
|
||||
.org-doc { /* font-lock-doc-face */ color: #8b2252; }
|
||||
.org-escape-glyph { /* escape-glyph */ color: #a52a2a; }
|
||||
.org-file-name-shadow { /* file-name-shadow */ color: #7f7f7f; }
|
||||
.org-flyspell-duplicate { /* flyspell-duplicate */ color: #cdad00; font-weight: bold; text-decoration: underline; }
|
||||
.org-flyspell-incorrect { /* flyspell-incorrect */ color: #ff4500; font-weight: bold; text-decoration: underline; }
|
||||
.org-fringe { /* fringe */ background-color: #f2f2f2; }
|
||||
.org-function-name { /* font-lock-function-name-face */ color: #0000ff; }
|
||||
.org-header-line { /* header-line */ color: #333333; background-color: #e5e5e5; }
|
||||
.org-help-argument-name { /* help-argument-name */ font-style: italic; }
|
||||
.org-highlight { /* highlight */ background-color: #b4eeb4; }
|
||||
.org-holiday { /* holiday */ background-color: #ffc0cb; }
|
||||
.org-isearch { /* isearch */ color: #b0e2ff; background-color: #cd00cd; }
|
||||
.org-isearch-fail { /* isearch-fail */ background-color: #ffc1c1; }
|
||||
.org-italic { /* italic */ font-style: italic; }
|
||||
.org-keyword { /* font-lock-keyword-face */ color: #a020f0; }
|
||||
.org-lazy-highlight { /* lazy-highlight */ background-color: #afeeee; }
|
||||
.org-link { /* link */ color: #0000ff; text-decoration: underline; }
|
||||
.org-link-visited { /* link-visited */ color: #8b008b; text-decoration: underline; }
|
||||
.org-log-edit-header { /* log-edit-header */ color: #a020f0; }
|
||||
.org-log-edit-summary { /* log-edit-summary */ color: #0000ff; }
|
||||
.org-log-edit-unknown-header { /* log-edit-unknown-header */ color: #b22222; }
|
||||
.org-match { /* match */ background-color: #ffff00; }
|
||||
.org-next-error { /* next-error */ background-color: #eedc82; }
|
||||
.org-nobreak-space { /* nobreak-space */ color: #a52a2a; text-decoration: underline; }
|
||||
.org-org-archived { /* org-archived */ color: #7f7f7f; }
|
||||
.org-org-block { /* org-block */ color: #7f7f7f; }
|
||||
.org-org-block-begin-line { /* org-block-begin-line */ color: #b22222; }
|
||||
.org-org-block-end-line { /* org-block-end-line */ color: #b22222; }
|
||||
.org-org-checkbox { /* org-checkbox */ font-weight: bold; }
|
||||
.org-org-checkbox-statistics-done { /* org-checkbox-statistics-done */ color: #228b22; font-weight: bold; }
|
||||
.org-org-checkbox-statistics-todo { /* org-checkbox-statistics-todo */ color: #ff0000; font-weight: bold; }
|
||||
.org-org-clock-overlay { /* org-clock-overlay */ background-color: #ffff00; }
|
||||
.org-org-code { /* org-code */ color: #7f7f7f; }
|
||||
.org-org-column { /* org-column */ background-color: #e5e5e5; }
|
||||
.org-org-column-title { /* org-column-title */ background-color: #e5e5e5; font-weight: bold; text-decoration: underline; }
|
||||
.org-org-date { /* org-date */ color: #a020f0; text-decoration: underline; }
|
||||
.org-org-document-info { /* org-document-info */ color: #191970; }
|
||||
.org-org-document-info-keyword { /* org-document-info-keyword */ color: #7f7f7f; }
|
||||
.org-org-document-title { /* org-document-title */ color: #191970; font-size: 144%; font-weight: bold; }
|
||||
.org-org-done { /* org-done */ color: #228b22; font-weight: bold; }
|
||||
.org-org-drawer { /* org-drawer */ color: #0000ff; }
|
||||
.org-org-ellipsis { /* org-ellipsis */ color: #b8860b; text-decoration: underline; }
|
||||
.org-org-footnote { /* org-footnote */ color: #a020f0; text-decoration: underline; }
|
||||
.org-org-formula { /* org-formula */ color: #b22222; }
|
||||
.org-org-headline-done { /* org-headline-done */ color: #bc8f8f; }
|
||||
.org-org-hide { /* org-hide */ color: #ffffff; }
|
||||
.org-org-latex-and-export-specials { /* org-latex-and-export-specials */ color: #8b4513; }
|
||||
.org-org-level-1 { /* org-level-1 */ color: #0000ff; }
|
||||
.org-org-level-2 { /* org-level-2 */ color: #a0522d; }
|
||||
.org-org-level-3 { /* org-level-3 */ color: #a020f0; }
|
||||
.org-org-level-4 { /* org-level-4 */ color: #b22222; }
|
||||
.org-org-level-5 { /* org-level-5 */ color: #228b22; }
|
||||
.org-org-level-6 { /* org-level-6 */ color: #008b8b; }
|
||||
.org-org-level-7 { /* org-level-7 */ color: #7a378b; }
|
||||
.org-org-level-8 { /* org-level-8 */ color: #8b2252; }
|
||||
.org-org-link { /* org-link */ color: #0000ff; text-decoration: underline; }
|
||||
.org-org-meta-line { /* org-meta-line */ color: #b22222; }
|
||||
.org-org-mode-line-clock { /* org-mode-line-clock */ color: #000000; background-color: #bfbfbf; }
|
||||
.org-org-mode-line-clock-overrun { /* org-mode-line-clock-overrun */ color: #000000; background-color: #ff0000; }
|
||||
.org-org-quote { /* org-quote */ color: #7f7f7f; }
|
||||
.org-org-scheduled { /* org-scheduled */ color: #006400; }
|
||||
.org-org-scheduled-previously { /* org-scheduled-previously */ color: #b22222; }
|
||||
.org-org-scheduled-today { /* org-scheduled-today */ color: #006400; }
|
||||
.org-org-sexp-date { /* org-sexp-date */ color: #a020f0; }
|
||||
.org-org-special-keyword { /* org-special-keyword */ color: #a020f0; }
|
||||
.org-org-table { /* org-table */ color: #0000ff; }
|
||||
.org-org-tag { /* org-tag */ font-weight: bold; }
|
||||
.org-org-target { /* org-target */ text-decoration: underline; }
|
||||
.org-org-time-grid { /* org-time-grid */ color: #b8860b; }
|
||||
.org-org-todo { /* org-todo */ color: #ff0000; font-weight: bold; }
|
||||
.org-org-upcoming-deadline { /* org-upcoming-deadline */ color: #b22222; }
|
||||
.org-org-verbatim { /* org-verbatim */ color: #7f7f7f; }
|
||||
.org-org-verse { /* org-verse */ color: #7f7f7f; }
|
||||
.org-org-warning { /* org-warning */ color: #ff0000; font-weight: bold; }
|
||||
.org-outline-1 { /* outline-1 */ color: #0000ff; }
|
||||
.org-outline-2 { /* outline-2 */ color: #a0522d; }
|
||||
.org-outline-3 { /* outline-3 */ color: #a020f0; }
|
||||
.org-outline-4 { /* outline-4 */ color: #b22222; }
|
||||
.org-outline-5 { /* outline-5 */ color: #228b22; }
|
||||
.org-outline-6 { /* outline-6 */ color: #008b8b; }
|
||||
.org-outline-7 { /* outline-7 */ color: #7a378b; }
|
||||
.org-outline-8 { /* outline-8 */ color: #8b2252; }
|
||||
.org-preprocessor { /* font-lock-preprocessor-face */ color: #7a378b; }
|
||||
.org-query-replace { /* query-replace */ color: #b0e2ff; background-color: #cd00cd; }
|
||||
.org-regexp-grouping-backslash { /* font-lock-regexp-grouping-backslash */ font-weight: bold; }
|
||||
.org-regexp-grouping-construct { /* font-lock-regexp-grouping-construct */ font-weight: bold; }
|
||||
.org-region { /* region */ background-color: #eedc82; }
|
||||
.org-secondary-selection { /* secondary-selection */ background-color: #ffff00; }
|
||||
.org-shadow { /* shadow */ color: #7f7f7f; }
|
||||
.org-show-paren-match { /* show-paren-match */ background-color: #40e0d0; }
|
||||
.org-show-paren-mismatch { /* show-paren-mismatch */ color: #ffffff; background-color: #a020f0; }
|
||||
.org-string { /* font-lock-string-face */ color: #8b2252; }
|
||||
.org-tool-bar { /* tool-bar */ color: #000000; background-color: #bfbfbf; }
|
||||
.org-tooltip { /* tooltip */ color: #000000; background-color: #ffffe0; }
|
||||
.org-trailing-whitespace { /* trailing-whitespace */ background-color: #ff0000; }
|
||||
.org-type { /* font-lock-type-face */ color: #228b22; }
|
||||
.org-underline { /* underline */ text-decoration: underline; }
|
||||
.org-variable-name { /* font-lock-variable-name-face */ color: #a0522d; }
|
||||
.org-warning { /* font-lock-warning-face */ color: #ff0000; font-weight: bold; }
|
||||
.org-widget-button { /* widget-button */ font-weight: bold; }
|
||||
.org-widget-button-pressed { /* widget-button-pressed */ color: #ff0000; }
|
||||
.org-widget-documentation { /* widget-documentation */ color: #006400; }
|
||||
.org-widget-field { /* widget-field */ background-color: #d9d9d9; }
|
||||
.org-widget-inactive { /* widget-inactive */ color: #7f7f7f; }
|
||||
.org-widget-single-line-field { /* widget-single-line-field */ background-color: #d9d9d9; }
|
||||
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 625 B |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
@@ -1,531 +0,0 @@
|
||||
// bigblow.js --- BigBlow JS file
|
||||
//
|
||||
// Copyright (C) 2011-2016 All Right Reserved, Fabrice Niessen
|
||||
//
|
||||
// This file is free software: you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License as
|
||||
// published by the Free Software Foundation, either version 3 of
|
||||
// the License, or (at your option) any later version.
|
||||
//
|
||||
// This file is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// Author: Fabrice Niessen <(concat "fniessen" at-sign "pirilampo.org")>
|
||||
// URL: https://github.com/fniessen/org-html-themes/
|
||||
// Version: 20140515.1841
|
||||
|
||||
$(function() {
|
||||
$('p').
|
||||
html(function(index, old) {
|
||||
return old.replace('FIXME',
|
||||
'<span class="fixme">FIXME</span>');
|
||||
});
|
||||
$('p').
|
||||
html(function(index, old) {
|
||||
return old.replace('XXX',
|
||||
'<span class="fixme">XXX</span>');
|
||||
});
|
||||
});
|
||||
|
||||
// Remove leading section number
|
||||
$(function() {
|
||||
$('.section-number-2').text("");
|
||||
for (var i = 3; i <= 5; i++) {
|
||||
$('.section-number-' + i).each(function() {
|
||||
$(this).text($(this).text().replace(/^[0-9]+\./g, ""));
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('<div id="minitoc" class="dontprint"></div>').prependTo('body');
|
||||
});
|
||||
|
||||
// generate contents of minitoc
|
||||
function generateMiniToc(divId) {
|
||||
$('#minitoc').empty().append('<h2>In this section</h2>');
|
||||
$('#' + divId).find('h3').each(function(i) {
|
||||
let pos = $(this).text().search(" ");
|
||||
let text = $(this).text().substring(0, pos);
|
||||
$("#minitoc").append("<a href='#" + $(this).attr("id") + "'>"
|
||||
+ text + "</a>");
|
||||
});
|
||||
// Ensure that the target is expanded (hideShow)
|
||||
$('#minitoc a[href^="#"]').click(function() {
|
||||
var href = $(this).attr('href');
|
||||
hsExpandAnchor(href);
|
||||
});
|
||||
}
|
||||
|
||||
// display tabs
|
||||
function tabifySections() {
|
||||
|
||||
// hide TOC (if present)
|
||||
$('#table-of-contents').hide();
|
||||
|
||||
// grab the list of `h2' from the page
|
||||
var allSections = [];
|
||||
$('h2')
|
||||
.each(function() {
|
||||
// Remove TODO keywords and tags (contained in spans)
|
||||
var tabText = $(this).clone().find('span').remove().end()
|
||||
.text().trim();
|
||||
var tabId = $(this).parent().attr('id');
|
||||
if (tabText) {
|
||||
// - remove heading number (all leading digits)
|
||||
// - remove progress logging (between square brackets)
|
||||
// - remove leading and trailing spaces
|
||||
tabText = tabText.replace(/^\d+\s+/, '').replace(/\[[\d/%]+\]/, '').trim();
|
||||
|
||||
allSections.push({
|
||||
text: tabText,
|
||||
id: tabId
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// create the tab links
|
||||
var tabs = $('<ul id="tabs"></ul>');
|
||||
for (i = 0; i < allSections.length; i++) {
|
||||
var item = allSections[i];
|
||||
html = $('<li><a href="#' + item.id + '">' + item.text + '</a></li>');
|
||||
tabs.append(html);
|
||||
}
|
||||
|
||||
// insert tabs menu after title (`h1'), or at the beginning of the content
|
||||
if($('.title').length !== 0) {
|
||||
$('.title').after(tabs);
|
||||
}
|
||||
else {
|
||||
$('#content').prepend(tabs);
|
||||
}
|
||||
}
|
||||
|
||||
function selectTabAndScroll(href) {
|
||||
// At this point we assume that href is local (starts with #)
|
||||
// alert(href);
|
||||
|
||||
// Find the tab to activate
|
||||
var targetTab = $(href).closest('.ui-tabs-panel');
|
||||
var targetTabId = targetTab.attr('id');
|
||||
var targetTabAriaLabel = targetTab.attr('aria-labelledby');
|
||||
|
||||
var targetTabIndex = $("#content ul li")
|
||||
.index($('[aria-labelledby="' + targetTabAriaLabel + '"]'));
|
||||
|
||||
// Activate target tab
|
||||
$('#content').tabs('option', 'active', targetTabIndex);
|
||||
|
||||
// Rebuild minitoc
|
||||
generateMiniToc(targetTabId);
|
||||
|
||||
// Set the location hash
|
||||
// document.location.hash = href;
|
||||
|
||||
// Scroll to top if href was a tab
|
||||
if (href == '#' + targetTabId) {
|
||||
// alert(targetTabId);
|
||||
$.scrollTo(0);
|
||||
}
|
||||
// Scroll to href if href was not a tab
|
||||
else {
|
||||
$.scrollTo(href);
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#preamble').remove();
|
||||
$('#table-of-contents').remove();
|
||||
|
||||
// Prepare for tabs
|
||||
tabifySections();
|
||||
|
||||
// Build the tabs from the #content div
|
||||
$('#content').tabs();
|
||||
|
||||
// Set default animation
|
||||
$('#content').tabs('option', 'show', true);
|
||||
|
||||
// Rebuild minitoc when a tab is activated
|
||||
$('#content').tabs({
|
||||
activate: function(event, ui) {
|
||||
var divId = ui.newTab.attr('aria-controls');
|
||||
generateMiniToc(divId);
|
||||
}
|
||||
});
|
||||
|
||||
// Required to get the link of the tab in URL
|
||||
$('#content ul').localScroll({
|
||||
target: '#content',
|
||||
duration: 0,
|
||||
hash: true
|
||||
});
|
||||
|
||||
// Handle hash in URL
|
||||
if ($('#content') && document.location.hash) {
|
||||
hsExpandAnchor(document.location.hash);
|
||||
selectTabAndScroll(document.location.hash);
|
||||
}
|
||||
// If no hash, build the minitoc anyway for selected tab
|
||||
else {
|
||||
var divId = $('#content div[aria-expanded=true]').attr('id');
|
||||
generateMiniToc(divId);
|
||||
}
|
||||
|
||||
// Handle click on internal links
|
||||
$('.ui-tabs-panel a[href^="#"]').click(function(e) {
|
||||
var href = $(this).attr('href');
|
||||
hsExpandAnchor(href);
|
||||
selectTabAndScroll(href);
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
// Initialize hideShow
|
||||
hsInit();
|
||||
|
||||
// add sticky headers to tables
|
||||
$('table').stickyTableHeaders();
|
||||
});
|
||||
|
||||
function copyToClipboard(text)
|
||||
{
|
||||
if (window.clipboardData && window.clipboardData.setData) { // Internet Explorer
|
||||
window.clipboardData.setData("Text", text);
|
||||
}
|
||||
else { // Fallback solution
|
||||
window.prompt("Copy to clipboard: Ctrl+C, Enter", text);
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
// Assuming that the ZeroClipboard swf file is in the same folder than bigblow,
|
||||
// get the path to it (it will be relative to the current page location).
|
||||
var bbScriptPath = $('script[src$="bigblow.js"]').attr('src'); // the js file path
|
||||
var bbPathToZeroClipboardSwf = bbScriptPath.replace('bigblow.js', 'ZeroClipboard.swf');
|
||||
|
||||
// Add copy to clipboard snippets
|
||||
$('.org-src-container').prepend('<div class="snippet-copy-to-clipboard"><span class="copy-to-clipboard-button">[copy]</span></div>');
|
||||
|
||||
// Display/hide snippets on source block mouseenter/mouseleave
|
||||
$(document).on('mouseenter', '.org-src-container', function () {
|
||||
$(this).find('.snippet-copy-to-clipboard').show();
|
||||
|
||||
// Need to call zclip here, once the button is visible.
|
||||
// Beacause when the button is not visible, zclip does nothing.
|
||||
if ((window.location.protocol != 'file:') && ($(this).find('.zclip').length == 0)) {
|
||||
$(this).find('.copy-to-clipboard-button').zclip({
|
||||
//path: 'http://www.steamdev.com/zclip/js/ZeroClipboard.swf',
|
||||
//path: 'src/bigblow_theme/js/ZeroClipboard.swf',
|
||||
path: bbPathToZeroClipboardSwf,
|
||||
copy: function() {
|
||||
return $(this).parent().parent().find('.src').text();
|
||||
}
|
||||
});
|
||||
}
|
||||
}).on('mouseleave', '.org-src-container', function () {
|
||||
$(this).find('.snippet-copy-to-clipboard').hide();
|
||||
});
|
||||
|
||||
// Handle copy to clipboard (here, for a local file only 'file://...'
|
||||
if (window.location.protocol == 'file:') { // if local file use browser-specific code
|
||||
$('.copy-to-clipboard-button').click(function() {
|
||||
// Get the text to be copied
|
||||
var text = $(this).parent().parent().find('.src').text();
|
||||
text = text.replace(/\n/g, "\r\n");
|
||||
// alert(text);
|
||||
copyToClipboard(text);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('li > code :contains("[X]")')
|
||||
.parent()
|
||||
.addClass('checked')
|
||||
.end()
|
||||
.remove();
|
||||
$('li > code :contains("[-]")')
|
||||
.parent()
|
||||
.addClass('halfchecked')
|
||||
.end()
|
||||
.remove();
|
||||
$('li > code :contains("[ ]")')
|
||||
.parent()
|
||||
.addClass('unchecked')
|
||||
.end()
|
||||
.remove();
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('i :contains("[#A]")')
|
||||
.replaceWith('<i><span style="color: #F67777;">[#A]</span></i>');
|
||||
$('i :contains("[#B]")')
|
||||
.replaceWith('<i><span style="color: #B6E864;">[#B]</span></i>');
|
||||
$('i :contains("[#C]")')
|
||||
.replaceWith('<i><span style="color: #C3DCFF;">[#C]</span></i>');
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('<div id="toTop" class="dontprint"><span>^ Back to Top</span></div>').appendTo('body');
|
||||
|
||||
$(window).scroll(function() {
|
||||
if ($(this).scrollTop() != 0) {
|
||||
$('#toTop').fadeIn();
|
||||
} else {
|
||||
$('#toTop').fadeOut();
|
||||
}
|
||||
});
|
||||
|
||||
$('#toTop').click(function(e) {
|
||||
$('html, body').animate({scrollTop: 0}, 800);
|
||||
e.preventDefault(); // Disable default browser behavior
|
||||
});
|
||||
});
|
||||
|
||||
function togglePanel(e) {
|
||||
e.preventDefault();
|
||||
|
||||
$("#left-panel-contents").toggleClass('active').toggle(200);
|
||||
$("#right-panel-contents").toggleClass('active').toggle(200);
|
||||
|
||||
var slidePos =
|
||||
$("#left-panel-button").css("left") == "-23px"? '182px': '-23px';
|
||||
|
||||
$("#left-panel-button").
|
||||
animate({"left": slidePos, "opacity": 0.9}, {duration: "200" });
|
||||
|
||||
// if ($("#left-panel-contents").hasClass('active')) {
|
||||
// hsHideTodoKeyword('done');
|
||||
// } else {
|
||||
// hsShowTodoKeyword('done');
|
||||
// }
|
||||
|
||||
// return false;
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$('<div id="left-panel-wrapper" class="dontprint"><div id="left-panel-contents" style="opacity: 0.9"></div><div id="left-panel-button" class="dontprint"><a href="#">Dashboard</a></div></div>')
|
||||
.appendTo('body');
|
||||
|
||||
$('<div id="right-panel-wrapper" class="dontprint"><div id="right-panel-contents" style="opacity: 0.9"></div></div>')
|
||||
.appendTo('body');
|
||||
|
||||
$('#left-panel-button').click(togglePanel);
|
||||
});
|
||||
|
||||
$(function() {
|
||||
var ul = $('<ul id="listOfTodo"></ul>').appendTo('#left-panel-contents');
|
||||
var countOfTodo = {}, listOfTodo = [], totalOfTodo = 0;
|
||||
|
||||
// assign the counts (avoid double-counting elements from the ToC)
|
||||
$('span.todo').not($('#table-of-contents span.todo')).each(function() {
|
||||
var $thisTodo = $(this).text().trim();
|
||||
|
||||
if ($.inArray($thisTodo, listOfTodo) == -1) {
|
||||
countOfTodo[$thisTodo] = 1;
|
||||
listOfTodo.push($thisTodo);
|
||||
}
|
||||
else
|
||||
countOfTodo[$thisTodo] += 1;
|
||||
totalOfTodo += 1;
|
||||
});
|
||||
|
||||
function scoreTodo(t) {
|
||||
switch (t) {
|
||||
case 'NEW': return 1;
|
||||
case 'TODO': return 2;
|
||||
case 'STRT': return 3;
|
||||
case 'WAIT': return 4;
|
||||
case 'DLGT': return 5;
|
||||
case 'SDAY': return 6;
|
||||
case 'DFRD': return 7;
|
||||
case 'DONE': return 8;
|
||||
case 'CANX': return 9;
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
|
||||
function compareTodo(a, b) {
|
||||
if (scoreTodo(a) < scoreTodo(b)) return -1;
|
||||
if (scoreTodo(a) > scoreTodo(b)) return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
listOfTodo.sort(compareTodo);
|
||||
|
||||
// display
|
||||
for (i = 0; i < listOfTodo.length; i++) {
|
||||
var $thisTodo = listOfTodo[i];
|
||||
$(ul).append('<li><span class="todo ' + $thisTodo + '">'+ $thisTodo + '</span>'
|
||||
+ ' <small>(' + countOfTodo[$thisTodo] + ')</small></li>');
|
||||
}
|
||||
|
||||
$('#listOfTodo')
|
||||
.before('<b>Next Actions</b> <small>(' + totalOfTodo + ')</small>:<br>');
|
||||
});
|
||||
|
||||
$(function() {
|
||||
var ul = $('<ul id="listOfDone"></ul>').appendTo('#left-panel-contents');
|
||||
var countOfDone = {}, listOfDone = [], totalOfDone = 0;
|
||||
|
||||
// assign the counts (avoid double-counting elements from the ToC)
|
||||
$('span.done').not($('#table-of-contents span.done')).each(function() {
|
||||
var $thisDone = $(this).text().trim();
|
||||
|
||||
if ($.inArray($thisDone, listOfDone) == -1) {
|
||||
countOfDone[$thisDone] = 1;
|
||||
listOfDone.push($thisDone);
|
||||
}
|
||||
else
|
||||
countOfDone[$thisDone] += 1;
|
||||
totalOfDone += 1;
|
||||
});
|
||||
|
||||
// display
|
||||
for (i = 0; i < listOfDone.length; i++) {
|
||||
var $thisDone = listOfDone[i];
|
||||
$(ul).append('<li><span class="done ' + $thisDone + '">'+ $thisDone + '</span>'
|
||||
+ ' <small>(' + countOfDone[$thisDone] + ')</small></li>');
|
||||
}
|
||||
|
||||
$('#listOfDone')
|
||||
.before('<b>Done Actions</b> <small>(' + totalOfDone + '):</small><br>');
|
||||
});
|
||||
|
||||
$(function() {
|
||||
var ul = $('<ul id="listOfTags"></ul>').appendTo('#right-panel-contents');
|
||||
var countOfTags = {}, listOfTags = [], totalOfTags = 0;
|
||||
|
||||
// assign the counts (avoid double-counting elements from the ToC)
|
||||
$('span.tag').not($('#table-of-contents span.tag')).each(function() {
|
||||
var $thisTagGroup = $(this).text().trim().split(/\s/);
|
||||
// \s matches spaces, tabs, new lines, etc.
|
||||
|
||||
for (tag in $thisTagGroup) {
|
||||
if ($.inArray($thisTagGroup[tag], listOfTags) == -1) {
|
||||
countOfTags[$thisTagGroup[tag]] = 1;
|
||||
listOfTags.push($thisTagGroup[tag]);
|
||||
}
|
||||
else
|
||||
countOfTags[$thisTagGroup[tag]] += 1;
|
||||
totalOfTags += 1;
|
||||
}
|
||||
});
|
||||
|
||||
listOfTags.sort();
|
||||
|
||||
// display
|
||||
for (i = 0; i < listOfTags.length; i++) {
|
||||
var $thisTag = listOfTags[i];
|
||||
// $(ul).append('<li><span class="tag ' + $thisTag + '">'+
|
||||
// $thisTag + '</span> <small>(' + countOfTags[$thisTag] + ')</small></li>');
|
||||
$(ul).append('<li><span class="tag"><span class="' + $thisTag + '">' + $thisTag
|
||||
+ '</span></span>'
|
||||
+ ' <small>(' + countOfTags[$thisTag] + ')</small></li>');
|
||||
}
|
||||
|
||||
$('#listOfTags')
|
||||
.before('<b>Contexts</b> <small>(' + totalOfTags + '):</small><br>');
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('.done').parent(':header').parent().find(':header').addClass('DONEheader');
|
||||
$('.done').parent(':header').parent().css({color: '#999999'});
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('span.todo').click(function(e) {
|
||||
var orgKeyword = $(this).text().trim();
|
||||
$('.' + orgKeyword).toggleClass('selected');
|
||||
$('#content .' + orgKeyword).parent().parent()
|
||||
.toggleClass('match' + orgKeyword);
|
||||
$('#left-panel-wrapper .' + orgKeyword).parent()
|
||||
.toggleClass('match' + orgKeyword);
|
||||
e.preventDefault();
|
||||
})
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('.tag span').click(function(e) {
|
||||
var orgTag = $(this).text().trim();
|
||||
$('.' + orgTag).toggleClass('selected');
|
||||
$('#content .' + orgTag).parent().parent().parent()
|
||||
.toggleClass('matchtag');
|
||||
$('#right-panel-wrapper .' + orgTag).parent().parent()
|
||||
.toggleClass('matchtag');
|
||||
e.preventDefault();
|
||||
})
|
||||
});
|
||||
|
||||
function clickPreviousTab() {
|
||||
var active = $('#content').tabs('option', 'active');
|
||||
// Avoid going back to last tab
|
||||
if (active == 0) return;
|
||||
|
||||
$('#content').tabs('option', 'active', active - 1);
|
||||
|
||||
// Set the location href
|
||||
var href = $('#content div[aria-expanded=true]').attr('id');
|
||||
document.location.hash = href;
|
||||
$.scrollTo(0);
|
||||
}
|
||||
|
||||
function clickNextTab() {
|
||||
var active = $('#content').tabs('option', 'active');
|
||||
$('#content').tabs('option', 'active', active + 1);
|
||||
|
||||
// Set the location href
|
||||
var href = $('#content div[aria-expanded=true]').attr('id');
|
||||
document.location.hash = href;
|
||||
$.scrollTo(0);
|
||||
}
|
||||
|
||||
function orgDefkey(e) {
|
||||
if (!e)
|
||||
var e = window.event;
|
||||
var keycode = (e.keyCode) ? e.keyCode : e.which;
|
||||
var actualkey = String.fromCharCode(keycode);
|
||||
switch (actualkey) {
|
||||
case "?": // help (dashboard)
|
||||
case "h":
|
||||
togglePanel(e);
|
||||
break;
|
||||
case "n": // next
|
||||
clickNextTab();
|
||||
break;
|
||||
case "p": // previous
|
||||
clickPreviousTab();
|
||||
break;
|
||||
// case "b": // scroll down - should be mapped to Shift-SPC
|
||||
// $(window).scrollTop($(window).scrollTop()-$(window).height());
|
||||
// break;
|
||||
case "<": // scroll to top
|
||||
$(window).scrollTop(0);
|
||||
break;
|
||||
case ">": // scroll to bottom
|
||||
$(window).scrollTop($(document).height());
|
||||
break;
|
||||
case "-": // collapse all
|
||||
hsCollapseAll();
|
||||
break;
|
||||
case "+": // expand all
|
||||
hsExpandAll();
|
||||
break;
|
||||
case "r": // go to next task
|
||||
hsReviewTaskNext();
|
||||
break;
|
||||
case "R": // go to previous task
|
||||
hsReviewTaskPrev();
|
||||
break;
|
||||
case "q": // quit reviewing
|
||||
hsReviewTaskQuit();
|
||||
break;
|
||||
case "g": // refresh the page (from the server, rather than the cache)
|
||||
location.reload(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
document.onkeypress = orgDefkey;
|
||||
@@ -1,334 +0,0 @@
|
||||
// hideshow.js --- HideShow JS file
|
||||
//
|
||||
// Copyright (C) 2014-2020 All Right Reserved, Fabrice Niessen
|
||||
//
|
||||
// This file is free software: you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License as
|
||||
// published by the Free Software Foundation, either version 3 of
|
||||
// the License, or (at your option) any later version.
|
||||
//
|
||||
// This file is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// Author: Fabrice Niessen <(concat "fniessen" at-sign "pirilampo.org")>
|
||||
// URL: https://github.com/fniessen/hide-show/
|
||||
// Version: 20140912.1722
|
||||
|
||||
// var HS_COLLAPSIBLE_HEADERS = $('h3, h4, h5'); // collapsible headers
|
||||
|
||||
if (typeof HS_STARTUP_FOLDED === 'undefined') {
|
||||
var HS_STARTUP_FOLDED = false; // Show just the overview, or show all.
|
||||
}
|
||||
|
||||
if (typeof HS_SHOW_ALL_TEXT === 'undefined') {
|
||||
var HS_SHOW_ALL_TEXT = '[Expand all]';
|
||||
}
|
||||
if (typeof HS_HIDE_ALL_TEXT === 'undefined') {
|
||||
var HS_HIDE_ALL_TEXT = '[Collapse all]';
|
||||
}
|
||||
|
||||
if (typeof HS_ALWAYS_DISPLAY_ICON === 'undefined') {
|
||||
var HS_ALWAYS_DISPLAY_ICON = false; // Display an icon for all states, or
|
||||
// just when closed.
|
||||
}
|
||||
|
||||
if (typeof HS_ICON_CLOSED === 'undefined') {
|
||||
var HS_ICON_CLOSED = '►'; // black right-pointing pointer
|
||||
}
|
||||
if (typeof HS_ICON_OPEN === 'undefined') {
|
||||
var HS_ICON_OPEN = '▼'; // black down-pointing triangle
|
||||
}
|
||||
if (typeof HS_ICON_EMPTY === 'undefined') {
|
||||
var HS_ICON_EMPTY = '■'; // black square
|
||||
}
|
||||
|
||||
if (typeof HS_SHOW_ALL_OPEN_DONE_TREES === 'undefined') {
|
||||
var HS_SHOW_ALL_OPEN_DONE_TREES = false; // Expand all will open DONE trees.
|
||||
}
|
||||
|
||||
if (typeof HS_CLASS === 'undefined') {
|
||||
var HS_CLASS = 'hsCollapsible';
|
||||
}
|
||||
|
||||
// Expand a header
|
||||
function hsExpand(header) {
|
||||
hsExpand2(header, true);
|
||||
}
|
||||
|
||||
// Expand a header
|
||||
function hsExpand2(header, expandDoneHeader) {
|
||||
// Ignore non collapsible entries
|
||||
if (!header.parent().hasClass(HS_CLASS)) return;
|
||||
|
||||
// Do not expand DONE node if not required
|
||||
if (hsIsDoneHeader(header) && !expandDoneHeader) return;
|
||||
|
||||
header.children('span[class="ellipsis"]').remove();
|
||||
if (HS_ALWAYS_DISPLAY_ICON == true) {
|
||||
header.append('<span class="ellipsis"> ' + HS_ICON_OPEN + '</span>');
|
||||
}
|
||||
header.parent().removeClass('hsCollapsed').addClass('hsExpanded');
|
||||
header.nextAll().show();
|
||||
}
|
||||
|
||||
// Expand a header and all its parents
|
||||
function hsExpandParents(header) {
|
||||
hsExpand(header);
|
||||
header.parents('.hsCollapsed').each(function() {
|
||||
hsExpand($(this).children(':header'));
|
||||
});
|
||||
}
|
||||
|
||||
// Collapse a header and all its parents
|
||||
function hsCollapseParents(header) {
|
||||
hsCollapse(header);
|
||||
header.parents('.hsExpanded').each(function() {
|
||||
hsCollapse($(this).children(':header'));
|
||||
});
|
||||
}
|
||||
|
||||
// Collapse a header
|
||||
function hsCollapse(header) {
|
||||
// Ignore non collapsible entries
|
||||
if (!header.parent().hasClass(HS_CLASS)) return;
|
||||
|
||||
header.children('span[class="ellipsis"]').remove();
|
||||
header.append('<span class="ellipsis"> ' + HS_ICON_CLOSED + '</span>');
|
||||
header.parent().removeClass('hsExpanded').addClass('hsCollapsed');
|
||||
// header.nextAll().hide('fast');
|
||||
header.nextAll().hide();
|
||||
}
|
||||
|
||||
// Toggle a header
|
||||
function hsToggleCollapsing(header) {
|
||||
if (header.parent().hasClass('hsCollapsed'))
|
||||
hsExpand(header);
|
||||
else if (header.parent().hasClass('hsExpanded'))
|
||||
hsCollapse(header);
|
||||
}
|
||||
|
||||
// Expand all headers
|
||||
function hsExpandAll() {
|
||||
$('#content .hsCollapsed').each(function() {
|
||||
hsExpand2($(this).children(':header'), HS_SHOW_ALL_OPEN_DONE_TREES);
|
||||
});
|
||||
}
|
||||
|
||||
// Collapse all headers
|
||||
function hsCollapseAll() {
|
||||
$('#content .hsExpanded').each(function() {
|
||||
hsCollapse($(this).children(':header'));
|
||||
});
|
||||
}
|
||||
|
||||
// Collapse all visible headers
|
||||
function hsCollapseAllVisible() {
|
||||
$('#content .hsExpanded:visible').each(function() {
|
||||
hsCollapse($(this).children(':header'));
|
||||
});
|
||||
}
|
||||
|
||||
// Add click events to H3/H4/H5 headers which have contents.
|
||||
function hsInit() {
|
||||
for (var i = 3; i <= 5; i++) {
|
||||
$('#content .outline-' + i).each(function() {
|
||||
var header = $(this).children(':header');
|
||||
if (header.siblings().length > 0) {
|
||||
$(this).addClass(HS_CLASS);
|
||||
header.css({cursor: 'pointer'});
|
||||
header.click(function() {
|
||||
hsToggleCollapsing($(this)); });
|
||||
|
||||
// Allow to override global Collapse/Expand default on an entry
|
||||
// basis (see property `:HTML_CONTAINER_CLASS:')
|
||||
if (header.parent().hasClass('hsCollapsed')) {
|
||||
hsCollapse(header);
|
||||
} else if (header.parent().hasClass('hsExpanded')) {
|
||||
hsExpand(header);
|
||||
} else {
|
||||
hsSetDefaultVisibility(header);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (HS_ALWAYS_DISPLAY_ICON == true) {
|
||||
header.append('<span class="ellipsis"> ' + HS_ICON_EMPTY
|
||||
+ '</span>');
|
||||
}
|
||||
$(this).addClass('hsEmpty');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Add buttons
|
||||
$('.title').after($('<div class="buttons dontprint"></div>'));
|
||||
$('.buttons').append($('<span>' + HS_SHOW_ALL_TEXT + '</span>')
|
||||
.addClass('hsButton')
|
||||
.click(hsExpandAll));
|
||||
$('.buttons').append($('<span>' + HS_HIDE_ALL_TEXT + '</span>')
|
||||
.addClass('hsButton')
|
||||
.click(hsCollapseAll));
|
||||
}
|
||||
|
||||
// Returns true if a header is a DONE header
|
||||
function hsIsDoneHeader(header) {
|
||||
return $('span.done', header).length;
|
||||
}
|
||||
|
||||
// Sets the default visibility state to a header
|
||||
function hsSetDefaultVisibility(header) {
|
||||
if (HS_STARTUP_FOLDED) {
|
||||
hsCollapse(header);
|
||||
}
|
||||
else {
|
||||
if (!hsIsDoneHeader(header) | HS_SHOW_ALL_OPEN_DONE_TREES) {
|
||||
hsExpand(header);
|
||||
}
|
||||
else {
|
||||
hsCollapse(header);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Expands an anchor, i.e. expand all parent headers
|
||||
function hsExpandAnchor(id) {
|
||||
// alert(id);
|
||||
if (id) {
|
||||
// alert($(id + '.hsNode').length);
|
||||
$(id).parents('.hsCollapsed').each(function() {
|
||||
hsExpand2($(this).children(':header'), true);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Search for next task to review, starting from beginning of current tab.
|
||||
// If BACKWARD is true, search in the reverse direction.
|
||||
function hsReviewTaskNext(backward) {
|
||||
// If no tasks to review at all, do nothing.
|
||||
if ($('.outline-2 span.todo').length == 0) return;
|
||||
|
||||
if ($('.hsReviewing').length == 0) { // reviewing is starting
|
||||
$('body').addClass('hsReviewing');
|
||||
$('.hsReviewPanel').addClass('hsReviewing');
|
||||
$('body').prepend('<div id="hsOverlay"></div>');
|
||||
hsAddReviewingPanels();
|
||||
|
||||
hsCollapseAll();
|
||||
// Get first task to review on each tab and expand it
|
||||
$('.outline-2').each(function(){
|
||||
var firstTodo = $(this).find('span.todo:first').parent().parent();
|
||||
firstTodo.addClass('hsReview');
|
||||
hsExpandParents($(firstTodo).children(':header'));
|
||||
});
|
||||
}
|
||||
else {
|
||||
// Get all todos
|
||||
var todosElements = $('.outline-2:visible span.todo').parent().parent();
|
||||
// alert(todosElements.length);
|
||||
var todos = jQuery.makeArray(todosElements);
|
||||
if (backward) {
|
||||
todos = todos.reverse();
|
||||
}
|
||||
|
||||
// Find current review item and review the next one
|
||||
var foundReview = false;
|
||||
var index;
|
||||
for (index = 0; index < todos.length; ++index) {
|
||||
var todo = todos[index];
|
||||
if (foundReview) {
|
||||
$(todo).addClass('hsReview');
|
||||
hsExpandParents($(todo).children(':header'));
|
||||
break;
|
||||
}
|
||||
if ($(todo).hasClass('hsReview')) {
|
||||
foundReview = true;
|
||||
if (index < todos.length - 1) {
|
||||
$(todo).removeClass('hsReview');
|
||||
hsCollapseParents($(todo).children(':header'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Update reviewing panel
|
||||
if (index < todos.length) {
|
||||
var reviewItem = index + 1;
|
||||
if (backward) {
|
||||
reviewItem = todos.length - index;
|
||||
}
|
||||
|
||||
$('.outline-2:visible .hsReviewingPanel .hsReviewItem').text(reviewItem);
|
||||
}
|
||||
}
|
||||
|
||||
// Scroll to the current review item
|
||||
$('html, body').animate({
|
||||
scrollTop: $(".hsReview:visible").offset().top
|
||||
}, 200);
|
||||
}
|
||||
|
||||
// go to previous task to review
|
||||
function hsReviewTaskPrev() {
|
||||
hsReviewTaskNext(true);
|
||||
}
|
||||
|
||||
// stop reviewing tasks
|
||||
function hsReviewTaskQuit() {
|
||||
$('body').removeClass('hsReviewing');
|
||||
$('.hsReviewPanel').removeClass('hsReviewing');
|
||||
$('.hsReview').removeClass('hsReview');
|
||||
$('#hsOverlay').remove();
|
||||
$('.hsReviewingPanel').remove();
|
||||
}
|
||||
|
||||
function hsHideTodoKeyword(kw) {
|
||||
$('span.' + kw).addClass('hsHidden').parent().parent().hide();
|
||||
}
|
||||
|
||||
function hsShowTodoKeyword(kw) {
|
||||
$('span.' + kw).removeClass('hsHidden').parent().parent().show();
|
||||
// XXX Show if parent is not collapsed!
|
||||
}
|
||||
|
||||
function hsAddReviewPanels() {
|
||||
$('.outline-2').each(function(e) {
|
||||
var nbItems = $(this).find('span.todo').length;
|
||||
if (nbItems > 0) {
|
||||
$(this).prepend('<div class="hsReviewPanel hsUnselectable" onclick="hsReviewTaskNext()">'
|
||||
+ 'Press r or click here<br>'
|
||||
+ 'to review ' + nbItems + ' tasks<br>'
|
||||
+ '(out of ' + nbReviewTotalTasks + ' tasks)</div>');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function hsAddReviewingPanels() {
|
||||
$('.outline-2').each(function(e) {
|
||||
var nbItems = $(this).find('span.todo').length;
|
||||
if (nbItems > 0) {
|
||||
$(this).prepend('<div class="hsReviewingPanel hsUnselectable">Reviewing task <span class="hsReviewItem">1</span> / ' + nbItems + '<br>'
|
||||
+ '(out of ' + nbReviewTotalTasks + ' tasks)<br>'
|
||||
+ 'Shortcuts: '
|
||||
+ '<span class="hsReviewButton" onclick="hsReviewTaskNext()">r (next)</span> - '
|
||||
+ '<span class="hsReviewButton" onclick="hsReviewTaskPrev()">R (previous)</span><br>'
|
||||
+ '<span class="hsReviewButton" onclick="hsReviewTaskPrev()">q (quit)</span>'
|
||||
+ '</div>');
|
||||
}
|
||||
else {
|
||||
$(this).prepend('<div class="hsReviewingPanel hsUnselectable">No task to review<br>'
|
||||
+ '(out of ' + nbReviewTotalTasks + ' tasks)<br>'
|
||||
+ 'Shortcuts: '
|
||||
+ '<span class="hsReviewButton" onclick="hsReviewTaskNext()">r (next)</span> - '
|
||||
+ '<span class="hsReviewButton" onclick="hsReviewTaskPrev()">R (previous)</span><br>'
|
||||
+ '<span class="hsReviewButton" onclick="hsReviewTaskPrev()">q (quit)</span>'
|
||||
+ '</div>');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
var nbReviewTotalTasks;
|
||||
|
||||
$(document).ready(function() {
|
||||
nbReviewTotalTasks = $('.outline-2 span.todo').length;
|
||||
hsAddReviewPanels();
|
||||
});
|
||||
@@ -1,9 +0,0 @@
|
||||
/**
|
||||
* jQuery.LocalScroll - Animated scrolling navigation, using anchors.
|
||||
* Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
|
||||
* Dual licensed under MIT and GPL.
|
||||
* Date: 3/11/2009
|
||||
* @author Ariel Flesler
|
||||
* @version 1.2.7
|
||||
**/
|
||||
;(function($){var l=location.href.replace(/#.*/,'');var g=$.localScroll=function(a){$('body').localScroll(a)};g.defaults={duration:1e3,axis:'y',event:'click',stop:true,target:window,reset:true};g.hash=function(a){if(location.hash){a=$.extend({},g.defaults,a);a.hash=false;if(a.reset){var e=a.duration;delete a.duration;$(a.target).scrollTo(0,a);a.duration=e}i(0,location,a)}};$.fn.localScroll=function(b){b=$.extend({},g.defaults,b);return b.lazy?this.bind(b.event,function(a){var e=$([a.target,a.target.parentNode]).filter(d)[0];if(e)i(a,e,b)}):this.find('a,area').filter(d).bind(b.event,function(a){i(a,this,b)}).end().end();function d(){return!!this.href&&!!this.hash&&this.href.replace(this.hash,'')==l&&(!b.filter||$(this).is(b.filter))}};function i(a,e,b){var d=e.hash.slice(1),f=document.getElementById(d)||document.getElementsByName(d)[0];if(!f)return;if(a)a.preventDefault();var h=$(b.target);if(b.lock&&h.is(':animated')||b.onBefore&&b.onBefore.call(b,a,f,h)===false)return;if(b.stop)h.stop(true);if(b.hash){var j=f.id==d?'id':'name',k=$('<a> </a>').attr(j,d).css({position:'absolute',top:$(window).scrollTop(),left:$(window).scrollLeft()});f[j]='';$('body').prepend(k);location=e.hash;k.remove();f[j]=d}h.scrollTo(f,b).trigger('notify.serialScroll',[f])}})(jQuery);
|
||||
@@ -1,7 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2007-2012 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
|
||||
* Dual licensed under MIT and GPL.
|
||||
* @author Ariel Flesler
|
||||
* @version 1.4.3.1
|
||||
*/
|
||||
;(function($){var h=$.scrollTo=function(a,b,c){$(window).scrollTo(a,b,c)};h.defaults={axis:'xy',duration:parseFloat($.fn.jquery)>=1.3?0:1,limit:true};h.window=function(a){return $(window)._scrollable()};$.fn._scrollable=function(){return this.map(function(){var a=this,isWin=!a.nodeName||$.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!isWin)return a;var b=(a.contentWindow||a).document||a.ownerDocument||a;return/webkit/i.test(navigator.userAgent)||b.compatMode=='BackCompat'?b.body:b.documentElement})};$.fn.scrollTo=function(e,f,g){if(typeof f=='object'){g=f;f=0}if(typeof g=='function')g={onAfter:g};if(e=='max')e=9e9;g=$.extend({},h.defaults,g);f=f||g.duration;g.queue=g.queue&&g.axis.length>1;if(g.queue)f/=2;g.offset=both(g.offset);g.over=both(g.over);return this._scrollable().each(function(){if(e==null)return;var d=this,$elem=$(d),targ=e,toff,attr={},win=$elem.is('html,body');switch(typeof targ){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(targ)){targ=both(targ);break}targ=$(targ,this);if(!targ.length)return;case'object':if(targ.is||targ.style)toff=(targ=$(targ)).offset()}$.each(g.axis.split(''),function(i,a){var b=a=='x'?'Left':'Top',pos=b.toLowerCase(),key='scroll'+b,old=d[key],max=h.max(d,a);if(toff){attr[key]=toff[pos]+(win?0:old-$elem.offset()[pos]);if(g.margin){attr[key]-=parseInt(targ.css('margin'+b))||0;attr[key]-=parseInt(targ.css('border'+b+'Width'))||0}attr[key]+=g.offset[pos]||0;if(g.over[pos])attr[key]+=targ[a=='x'?'width':'height']()*g.over[pos]}else{var c=targ[pos];attr[key]=c.slice&&c.slice(-1)=='%'?parseFloat(c)/100*max:c}if(g.limit&&/^\d+$/.test(attr[key]))attr[key]=attr[key]<=0?0:Math.min(attr[key],max);if(!i&&g.queue){if(old!=attr[key])animate(g.onAfterFirst);delete attr[key]}});animate(g.onAfter);function animate(a){$elem.animate(attr,f,g.easing,a&&function(){a.call(this,e,g)})}}).end()};h.max=function(a,b){var c=b=='x'?'Width':'Height',scroll='scroll'+c;if(!$(a).is('html,body'))return a[scroll]-$(a)[c.toLowerCase()]();var d='client'+c,html=a.ownerDocument.documentElement,body=a.ownerDocument.body;return Math.max(html[scroll],body[scroll])-Math.min(html[d],body[d])};function both(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);
|
||||
@@ -1,134 +0,0 @@
|
||||
#+SETUPFILE: ~/.emacs.d/org-styles/html/comfy_inline.theme
|
||||
#+TITLE: comfy_inline
|
||||
#+AUTHOR: Unknown
|
||||
#+EMAIL: mail@blablub.nil
|
||||
#+OPTIONS: ^:nil p:t
|
||||
|
||||
* comfy_inline
|
||||
|
||||
Includes:
|
||||
- [X] CSS
|
||||
- [ ] JAVASCRIPT
|
||||
|
||||
Available as:
|
||||
- [X] CSS FILE
|
||||
- [ ] JS FILE
|
||||
- [X] SETUPFILE
|
||||
|
||||
* Lists
|
||||
** Todo List
|
||||
*** TODO First todo
|
||||
*** DONE First Done with Date
|
||||
CLOSED: [2021-02-18 Thu 10:12]
|
||||
*** TODO Scheduled
|
||||
SCHEDULED: <2021-02-18 Thu>
|
||||
*** TODO Deadline
|
||||
DEADLINE: <2021-02-18 Thu>
|
||||
*** TODO Date
|
||||
<2021-02-18 Thu>
|
||||
|
||||
** Simple list
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
|
||||
** Sorted List
|
||||
1. List item
|
||||
2. List item
|
||||
3. List item
|
||||
4. List item
|
||||
|
||||
** Checkbox
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
|
||||
* Heading
|
||||
|
||||
* H1
|
||||
H1 Text
|
||||
** H2
|
||||
H2 Text
|
||||
*** H3
|
||||
H3 Text
|
||||
**** H4
|
||||
H4 Text
|
||||
***** H5
|
||||
H5 Text
|
||||
****** H6
|
||||
H6 Text
|
||||
******* H7
|
||||
H7 Text
|
||||
|
||||
|
||||
|
||||
* Table
|
||||
|
||||
| a | b | c | d | e | f |
|
||||
|----+----+----+----+----+----|
|
||||
| 0 | 1 | 2 | 3 | 4 | 5 |
|
||||
| 6 | 7 | 8 | 9 | 10 | 11 |
|
||||
| 12 | 13 | 14 | 15 | 16 | 17 |
|
||||
| 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 |
|
||||
|
||||
|
||||
* Blocks
|
||||
** Center
|
||||
#+begin_center
|
||||
This is a center block
|
||||
#+end_center
|
||||
|
||||
** Comment
|
||||
#+begin_comment
|
||||
This is a comment block
|
||||
#+end_comment
|
||||
|
||||
** Example
|
||||
#+begin_example
|
||||
This is an example block
|
||||
#+end_example
|
||||
|
||||
** Quote
|
||||
#+begin_quote
|
||||
This is a quote block
|
||||
#+end_quote
|
||||
|
||||
** Verse
|
||||
#+begin_verse
|
||||
This is a verse block
|
||||
#+end_verse
|
||||
|
||||
|
||||
** Source Blocks
|
||||
*** Python
|
||||
#+begin_src python :results output :exports both
|
||||
for i in range(10):
|
||||
print(i)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
#+begin_example
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
#+end_example
|
||||
|
||||
*** Elisp
|
||||
#+begin_src emacs-lisp :exports both
|
||||
(car '(a b c d))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: a
|
||||
|
||||
|
||||
@@ -1,134 +0,0 @@
|
||||
#+SETUPFILE: ~/.emacs.d/org-styles/html/darksun.theme
|
||||
#+TITLE: Darksun
|
||||
#+AUTHOR: alphapapa
|
||||
#+EMAIL: mail@blablub.nil
|
||||
#+OPTIONS: ^:nil p:t
|
||||
|
||||
* Darksun
|
||||
Origin: https://github.com/alphapapa/org-html-theme-darksun
|
||||
|
||||
Includes:
|
||||
- [X] CSS
|
||||
- [X] JAVASCRIPT
|
||||
|
||||
Available as:
|
||||
- [X] CSS FILE
|
||||
- [X] JS FILE
|
||||
- [X] SETUPFILE
|
||||
|
||||
* Lists
|
||||
** Todo List
|
||||
*** TODO First todo
|
||||
*** DONE First Done with Date
|
||||
CLOSED: [2021-02-18 Thu 10:12]
|
||||
*** TODO Scheduled
|
||||
SCHEDULED: <2021-02-18 Thu>
|
||||
*** TODO Deadline
|
||||
DEADLINE: <2021-02-18 Thu>
|
||||
*** TODO Date
|
||||
<2021-02-18 Thu>
|
||||
|
||||
** Simple list
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
|
||||
** Sorted List
|
||||
1. List item
|
||||
2. List item
|
||||
3. List item
|
||||
4. List item
|
||||
|
||||
** Checkbox
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
|
||||
|
||||
* H1
|
||||
H1 Text
|
||||
** H2
|
||||
H2 Text
|
||||
*** H3
|
||||
H3 Text
|
||||
**** H4
|
||||
H4 Text
|
||||
***** H5
|
||||
H5 Text
|
||||
****** H6
|
||||
H6 Text
|
||||
******* H7
|
||||
H7 Text
|
||||
|
||||
|
||||
|
||||
* Table
|
||||
|
||||
| a | b | c | d | e | f |
|
||||
|----+----+----+----+----+----|
|
||||
| 0 | 1 | 2 | 3 | 4 | 5 |
|
||||
| 6 | 7 | 8 | 9 | 10 | 11 |
|
||||
| 12 | 13 | 14 | 15 | 16 | 17 |
|
||||
| 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 |
|
||||
|
||||
|
||||
* Blocks
|
||||
** Center
|
||||
#+begin_center
|
||||
This is a center block
|
||||
#+end_center
|
||||
|
||||
** Comment
|
||||
#+begin_comment
|
||||
This is a comment block
|
||||
#+end_comment
|
||||
|
||||
** Example
|
||||
#+begin_example
|
||||
This is an example block
|
||||
#+end_example
|
||||
|
||||
** Quote
|
||||
#+begin_quote
|
||||
This is a quote block
|
||||
#+end_quote
|
||||
|
||||
** Verse
|
||||
#+begin_verse
|
||||
This is a verse block
|
||||
#+end_verse
|
||||
|
||||
|
||||
** Source Blocks
|
||||
*** Python
|
||||
#+begin_src python :results output :exports both
|
||||
for i in range(10):
|
||||
print(i)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
#+begin_example
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
#+end_example
|
||||
|
||||
*** Elisp
|
||||
#+begin_src emacs-lisp :exports both
|
||||
(car '(a b c d))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: a
|
||||
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
6bd28f7522714ce6583002783ba3b5e7 theme-bigblow-local.setup 1442808908
|
||||
04f1afc7218741e70b914845bee934ec theme-bigblow.setup 1442808908
|
||||
0380c34688050e612e70e43f41977782 theme-readtheorg.setup 1442808908
|
||||
1bf08512a20fd839901915603925a30f theme-readtheorg-local.setup 1442808908
|
||||
@@ -1,15 +0,0 @@
|
||||
# -*- mode: org; -*-
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="export/styles/darksun/css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="export/styles/darksun/css/darksun.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="export/styles/darksun/css/hideshow.css"/>
|
||||
|
||||
#+HTML_HEAD: <script type="text/javascript" src="export/styles/darksun/js/jquery-1.11.0.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="export/styles/darksun/js/jquery-ui-1.10.2.min.js"></script>
|
||||
|
||||
#+HTML_HEAD: <script type="text/javascript" src="export/styles/darksun/js/jquery.localscroll-min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="export/styles/darksun/js/jquery.scrollTo-1.4.3.1-min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="export/styles/darksun/js/jquery.zclip.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="export/styles/darksun/js/darksun.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="export/styles/darksun/js/hideshow.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="export/styles/lib/js/jquery.stickytableheaders.min.js"></script>
|
||||
@@ -1,15 +0,0 @@
|
||||
# -*- mode: org; -*-
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="http://www.pirilampo.org/styles/darksun/css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="http://www.pirilampo.org/styles/darksun/css/darksun.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="http://www.pirilampo.org/styles/darksun/css/hideshow.css"/>
|
||||
|
||||
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/darksun/js/jquery-1.11.0.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/darksun/js/jquery-ui-1.10.2.min.js"></script>
|
||||
|
||||
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/darksun/js/jquery.localscroll-min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/darksun/js/jquery.scrollTo-1.4.3.1-min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/darksun/js/jquery.zclip.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/darksun/js/darksun.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/darksun/js/hideshow.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/lib/js/jquery.stickytableheaders.min.js"></script>
|
||||
@@ -1,3 +0,0 @@
|
||||
ce85988c67d66468eaab106cd6fa6d03 hideshow.css 1442808908
|
||||
986e4af6c72a7d99e145447f5fd755f1 bigblow.css 1442808908
|
||||
d10bfb0001b6db895bcf5b78567022fb htmlize.css 1442808908
|
||||
@@ -1,264 +0,0 @@
|
||||
* {
|
||||
border-color: #657b83;
|
||||
}
|
||||
a {
|
||||
color: #268bd2 !important;
|
||||
}
|
||||
a:visited {
|
||||
color: #6c71c4 !important;
|
||||
}
|
||||
body {
|
||||
background-color: #002b36 !important;
|
||||
color: #839496 !important;
|
||||
font-family: Libre Baskerville, serif;
|
||||
}
|
||||
html {
|
||||
background-color: #002b36 !important;
|
||||
}
|
||||
input,
|
||||
textarea {
|
||||
background-color: #073642 !important;
|
||||
color: #839496 !important;
|
||||
}
|
||||
blockquote,
|
||||
code,
|
||||
pre {
|
||||
background-color: #073642 !important;
|
||||
border: 1px solid #094352 !important;
|
||||
border-radius: 2px;
|
||||
box-shadow: none;
|
||||
color: #839496 !important;
|
||||
}
|
||||
code {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
img {
|
||||
margin: 0.5em;
|
||||
}
|
||||
.buttons {
|
||||
background-color: #073642 !important;
|
||||
color: #93a1a1 !important;
|
||||
font-family: sans-serif;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
.hsReviewPanel {
|
||||
display: none;
|
||||
}
|
||||
.title {
|
||||
border: 0;
|
||||
}
|
||||
#postamble {
|
||||
display: none;
|
||||
}
|
||||
#banner {
|
||||
text-align: center;
|
||||
}
|
||||
#tabs {
|
||||
background-color: #073642 !important;
|
||||
float: left;
|
||||
margin: 0px 0px 20px 0px;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
#tabs ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#tabs li {
|
||||
float: left;
|
||||
list-style-type: none;
|
||||
margin: 0px 2px 0px 0px;
|
||||
padding: 0px 0px 0px 0px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
#tabs li a {
|
||||
display: block;
|
||||
font-size: 120%;
|
||||
font-weight: bold;
|
||||
margin: 0;
|
||||
padding: 4px 10px 4px 10px;
|
||||
text-decoration: none;
|
||||
}
|
||||
#tabs li a:hover {
|
||||
color: #90c5eb !important;
|
||||
}
|
||||
#tabs li.ui-tabs-active a {
|
||||
background-color: #094352 !important;
|
||||
color: #59a9e1 !important;
|
||||
}
|
||||
#content {
|
||||
clear: both;
|
||||
width: 80%;
|
||||
}
|
||||
#content > p {
|
||||
margin: 1em;
|
||||
}
|
||||
#content > div > h2 {
|
||||
margin: 0.25rem;
|
||||
}
|
||||
#postamble {
|
||||
text-align: right;
|
||||
}
|
||||
blockquote {
|
||||
background-color: #073642 !important;
|
||||
padding-left: 0.75em;
|
||||
padding-right: 0.75em;
|
||||
padding-top: 0.01em;
|
||||
padding-bottom: 0.01em;
|
||||
overflow: hidden;
|
||||
margin-left: 0;
|
||||
}
|
||||
.outline-text-2,
|
||||
.outline-text-3,
|
||||
.outline-text-4,
|
||||
.outline-text-5,
|
||||
.outline-text-6 {
|
||||
padding-left: 4%;
|
||||
}
|
||||
.outline-3 {
|
||||
padding-left: 4%;
|
||||
}
|
||||
.outline-4 {
|
||||
padding-left: 4%;
|
||||
}
|
||||
.outline-5 {
|
||||
padding-left: 4%;
|
||||
}
|
||||
.outline-6 {
|
||||
padding-left: 4%;
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: sans-serif;
|
||||
border-bottom: 2px solid;
|
||||
border-color: #094352 !important;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
#search {
|
||||
display: block;
|
||||
float: right;
|
||||
}
|
||||
.tag {
|
||||
background-color: #002b36 !important;
|
||||
color: #93a1a1 !important;
|
||||
border: 0px;
|
||||
}
|
||||
.tag span {
|
||||
background-color: #094352 !important;
|
||||
margin: 0.25em;
|
||||
padding: 0.25em;
|
||||
}
|
||||
#table-of-contents {
|
||||
display: table;
|
||||
float: right;
|
||||
}
|
||||
#table-of-contents h2 {
|
||||
display: none;
|
||||
}
|
||||
#table-of-contents li {
|
||||
list-style-type: none;
|
||||
}
|
||||
#table-of-contents a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
#minitoc {
|
||||
background-color: #073642 !important;
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
right: -5px;
|
||||
padding: 0.5em;
|
||||
z-index: 200;
|
||||
width: 18%;
|
||||
word-wrap: normal;
|
||||
overflow: hidden;
|
||||
}
|
||||
#minitoc ul {
|
||||
margin: 0.5em;
|
||||
padding-left: 1em;
|
||||
}
|
||||
#minitoc h2 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
font-size: 110%;
|
||||
}
|
||||
#minitoc a {
|
||||
display: block;
|
||||
font-family: sans-serif;
|
||||
text-decoration: none;
|
||||
}
|
||||
#minitoc a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
/* #minitoc a { */
|
||||
/* display: none; */
|
||||
/* } */
|
||||
#minitoc:hover a {
|
||||
display: block;
|
||||
}
|
||||
#toTop {
|
||||
top: -100px;
|
||||
position: fixed;
|
||||
text-align: center;
|
||||
z-index: 999;
|
||||
display: none;
|
||||
}
|
||||
#toTop:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
#left-panel-wrapper {
|
||||
display: none;
|
||||
position: fixed;
|
||||
z-index: 200;
|
||||
}
|
||||
#left-panel-contents {
|
||||
display: none;
|
||||
position: fixed;
|
||||
text-align: left;
|
||||
top: 0;
|
||||
z-index: 200;
|
||||
}
|
||||
#left-panel-button {
|
||||
transform: rotate(90deg);
|
||||
left: -23px;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
z-index: 200;
|
||||
}
|
||||
#right-panel-wrapper {
|
||||
position: fixed;
|
||||
z-index: 200;
|
||||
}
|
||||
#right-panel-contents {
|
||||
display: none;
|
||||
z-index: 200;
|
||||
position: fixed;
|
||||
text-align: left;
|
||||
top: 0;
|
||||
}
|
||||
.snippet-copy-to-clipboard {
|
||||
display: none;
|
||||
position: absolute;
|
||||
left: 50px;
|
||||
top: 50px;
|
||||
}
|
||||
.org-ol > li,
|
||||
.org-dl > dt {
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
.org-ul {
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
.org-ul li {
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
.org-ul > li > a {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
@@ -1,110 +0,0 @@
|
||||
/* hideshow.css --- HideShow CSS file */
|
||||
|
||||
/* Copyright (C) 2014 All Right Reserved, Fabrice Niessen */
|
||||
|
||||
/* This file is free software: you can redistribute it and/or */
|
||||
/* modify it under the terms of the GNU General Public License as */
|
||||
/* published by the Free Software Foundation, either version 3 of */
|
||||
/* the License, or (at your option) any later version. */
|
||||
|
||||
/* This file is distributed in the hope that it will be useful, */
|
||||
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
||||
/* GNU General Public License for more details. */
|
||||
|
||||
/* Author: Fabrice Niessen <(concat "fniessen" at-sign "pirilampo.org")> */
|
||||
/* URL: https://github.com/fniessen/hide-show/ */
|
||||
/* Version: 20140912.1722 */
|
||||
|
||||
.hsExpanded.hsAnchor {background: #EE7700;}
|
||||
|
||||
.buttons {
|
||||
padding: 0px 7px 13px 0px;
|
||||
background: #0A3F69;
|
||||
}
|
||||
|
||||
.hsButton {
|
||||
color: white;
|
||||
float: right;
|
||||
font-size: 70%;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.hsButton:hover {
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ellipsis {
|
||||
color: #999999;
|
||||
/* background-color: #FFF8C0; */
|
||||
/* float: right; */
|
||||
margin-left: 0.6em;
|
||||
}
|
||||
|
||||
.hsReview {
|
||||
border: 1px solid #A4A4A4;
|
||||
background-color: white;
|
||||
z-index: 500; /* must be greater then z-index of hsOverlay */
|
||||
position: relative; /* required for z-index to work */
|
||||
}
|
||||
|
||||
#hsOverlay {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
background-color: #000;
|
||||
opacity: .70;
|
||||
z-index: 250; /* must be greater than any other z-index (except the one for .hsReview */
|
||||
}
|
||||
|
||||
.hsReviewPanel {
|
||||
background-color: #757176;
|
||||
color: white;
|
||||
line-height: 1.1em;
|
||||
margin: 10px 0px;
|
||||
padding: 10px;
|
||||
position: fixed;
|
||||
width: auto;
|
||||
bottom: 0px;
|
||||
right: 0px;
|
||||
z-index: 501;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hsReviewPanel.hsReviewing {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hsReviewPanel:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.hsReviewingPanel {
|
||||
background-color: white;
|
||||
color: #757176;
|
||||
line-height: 1.1em;
|
||||
margin: 10px 0px;
|
||||
padding: 10px;
|
||||
position: fixed;
|
||||
width: auto;
|
||||
bottom: 0px;
|
||||
right: 0px;
|
||||
z-index: 501;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hsReviewButton:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.hsUnselectable {
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
@@ -1,145 +0,0 @@
|
||||
.org-bold { /* bold */ font-weight: bold; }
|
||||
.org-bold-italic { /* bold-italic */ font-weight: bold; font-style: italic; }
|
||||
.org-buffer-menu-buffer { /* buffer-menu-buffer */ font-weight: bold; }
|
||||
.org-builtin { /* font-lock-builtin-face */ color: #7a378b; }
|
||||
.org-button { /* button */ text-decoration: underline; }
|
||||
.org-calendar-today { /* calendar-today */ text-decoration: underline; }
|
||||
.org-change-log-acknowledgement { /* change-log-acknowledgement */ color: #b22222; }
|
||||
.org-change-log-conditionals { /* change-log-conditionals */ color: #a0522d; }
|
||||
.org-change-log-date { /* change-log-date */ color: #8b2252; }
|
||||
.org-change-log-email { /* change-log-email */ color: #a0522d; }
|
||||
.org-change-log-file { /* change-log-file */ color: #0000ff; }
|
||||
.org-change-log-function { /* change-log-function */ color: #a0522d; }
|
||||
.org-change-log-list { /* change-log-list */ color: #a020f0; }
|
||||
.org-change-log-name { /* change-log-name */ color: #008b8b; }
|
||||
.org-comint-highlight-input { /* comint-highlight-input */ font-weight: bold; }
|
||||
.org-comint-highlight-prompt { /* comint-highlight-prompt */ color: #00008b; }
|
||||
.org-comment { /* font-lock-comment-face */ color: #b22222; }
|
||||
.org-comment-delimiter { /* font-lock-comment-delimiter-face */ color: #b22222; }
|
||||
.org-completions-annotations { /* completions-annotations */ font-style: italic; }
|
||||
.org-completions-common-part { /* completions-common-part */ color: #000000; background-color: #ffffff; }
|
||||
.org-completions-first-difference { /* completions-first-difference */ font-weight: bold; }
|
||||
.org-constant { /* font-lock-constant-face */ color: #008b8b; }
|
||||
.org-diary { /* diary */ color: #ff0000; }
|
||||
.org-diff-context { /* diff-context */ color: #7f7f7f; }
|
||||
.org-diff-file-header { /* diff-file-header */ background-color: #b3b3b3; font-weight: bold; }
|
||||
.org-diff-function { /* diff-function */ background-color: #cccccc; }
|
||||
.org-diff-header { /* diff-header */ background-color: #cccccc; }
|
||||
.org-diff-hunk-header { /* diff-hunk-header */ background-color: #cccccc; }
|
||||
.org-diff-index { /* diff-index */ background-color: #b3b3b3; font-weight: bold; }
|
||||
.org-diff-nonexistent { /* diff-nonexistent */ background-color: #b3b3b3; font-weight: bold; }
|
||||
.org-diff-refine-change { /* diff-refine-change */ background-color: #d9d9d9; }
|
||||
.org-dired-directory { /* dired-directory */ color: #0000ff; }
|
||||
.org-dired-flagged { /* dired-flagged */ color: #ff0000; font-weight: bold; }
|
||||
.org-dired-header { /* dired-header */ color: #228b22; }
|
||||
.org-dired-ignored { /* dired-ignored */ color: #7f7f7f; }
|
||||
.org-dired-mark { /* dired-mark */ color: #008b8b; }
|
||||
.org-dired-marked { /* dired-marked */ color: #ff0000; font-weight: bold; }
|
||||
.org-dired-perm-write { /* dired-perm-write */ color: #b22222; }
|
||||
.org-dired-symlink { /* dired-symlink */ color: #a020f0; }
|
||||
.org-dired-warning { /* dired-warning */ color: #ff0000; font-weight: bold; }
|
||||
.org-doc { /* font-lock-doc-face */ color: #8b2252; }
|
||||
.org-escape-glyph { /* escape-glyph */ color: #a52a2a; }
|
||||
.org-file-name-shadow { /* file-name-shadow */ color: #7f7f7f; }
|
||||
.org-flyspell-duplicate { /* flyspell-duplicate */ color: #cdad00; font-weight: bold; text-decoration: underline; }
|
||||
.org-flyspell-incorrect { /* flyspell-incorrect */ color: #ff4500; font-weight: bold; text-decoration: underline; }
|
||||
.org-fringe { /* fringe */ background-color: #f2f2f2; }
|
||||
.org-function-name { /* font-lock-function-name-face */ color: #0000ff; }
|
||||
.org-header-line { /* header-line */ color: #333333; background-color: #e5e5e5; }
|
||||
.org-help-argument-name { /* help-argument-name */ font-style: italic; }
|
||||
.org-highlight { /* highlight */ background-color: #b4eeb4; }
|
||||
.org-holiday { /* holiday */ background-color: #ffc0cb; }
|
||||
.org-isearch { /* isearch */ color: #b0e2ff; background-color: #cd00cd; }
|
||||
.org-isearch-fail { /* isearch-fail */ background-color: #ffc1c1; }
|
||||
.org-italic { /* italic */ font-style: italic; }
|
||||
.org-keyword { /* font-lock-keyword-face */ color: #a020f0; }
|
||||
.org-lazy-highlight { /* lazy-highlight */ background-color: #afeeee; }
|
||||
.org-link { /* link */ color: #0000ff; text-decoration: underline; }
|
||||
.org-link-visited { /* link-visited */ color: #8b008b; text-decoration: underline; }
|
||||
.org-log-edit-header { /* log-edit-header */ color: #a020f0; }
|
||||
.org-log-edit-summary { /* log-edit-summary */ color: #0000ff; }
|
||||
.org-log-edit-unknown-header { /* log-edit-unknown-header */ color: #b22222; }
|
||||
.org-match { /* match */ background-color: #ffff00; }
|
||||
.org-next-error { /* next-error */ background-color: #eedc82; }
|
||||
.org-nobreak-space { /* nobreak-space */ color: #a52a2a; text-decoration: underline; }
|
||||
.org-org-archived { /* org-archived */ color: #7f7f7f; }
|
||||
.org-org-block { /* org-block */ color: #7f7f7f; }
|
||||
.org-org-block-begin-line { /* org-block-begin-line */ color: #b22222; }
|
||||
.org-org-block-end-line { /* org-block-end-line */ color: #b22222; }
|
||||
.org-org-checkbox { /* org-checkbox */ font-weight: bold; }
|
||||
.org-org-checkbox-statistics-done { /* org-checkbox-statistics-done */ color: #228b22; font-weight: bold; }
|
||||
.org-org-checkbox-statistics-todo { /* org-checkbox-statistics-todo */ color: #ff0000; font-weight: bold; }
|
||||
.org-org-clock-overlay { /* org-clock-overlay */ background-color: #ffff00; }
|
||||
.org-org-code { /* org-code */ color: #7f7f7f; }
|
||||
.org-org-column { /* org-column */ background-color: #e5e5e5; }
|
||||
.org-org-column-title { /* org-column-title */ background-color: #e5e5e5; font-weight: bold; text-decoration: underline; }
|
||||
.org-org-date { /* org-date */ color: #a020f0; text-decoration: underline; }
|
||||
.org-org-document-info { /* org-document-info */ color: #191970; }
|
||||
.org-org-document-info-keyword { /* org-document-info-keyword */ color: #7f7f7f; }
|
||||
.org-org-document-title { /* org-document-title */ color: #191970; font-size: 144%; font-weight: bold; }
|
||||
.org-org-done { /* org-done */ color: #228b22; font-weight: bold; }
|
||||
.org-org-drawer { /* org-drawer */ color: #0000ff; }
|
||||
.org-org-ellipsis { /* org-ellipsis */ color: #b8860b; text-decoration: underline; }
|
||||
.org-org-footnote { /* org-footnote */ color: #a020f0; text-decoration: underline; }
|
||||
.org-org-formula { /* org-formula */ color: #b22222; }
|
||||
.org-org-headline-done { /* org-headline-done */ color: #bc8f8f; }
|
||||
.org-org-hide { /* org-hide */ color: #ffffff; }
|
||||
.org-org-latex-and-export-specials { /* org-latex-and-export-specials */ color: #8b4513; }
|
||||
.org-org-level-1 { /* org-level-1 */ color: #0000ff; }
|
||||
.org-org-level-2 { /* org-level-2 */ color: #a0522d; }
|
||||
.org-org-level-3 { /* org-level-3 */ color: #a020f0; }
|
||||
.org-org-level-4 { /* org-level-4 */ color: #b22222; }
|
||||
.org-org-level-5 { /* org-level-5 */ color: #228b22; }
|
||||
.org-org-level-6 { /* org-level-6 */ color: #008b8b; }
|
||||
.org-org-level-7 { /* org-level-7 */ color: #7a378b; }
|
||||
.org-org-level-8 { /* org-level-8 */ color: #8b2252; }
|
||||
.org-org-link { /* org-link */ color: #0000ff; text-decoration: underline; }
|
||||
.org-org-meta-line { /* org-meta-line */ color: #b22222; }
|
||||
.org-org-mode-line-clock { /* org-mode-line-clock */ color: #000000; background-color: #bfbfbf; }
|
||||
.org-org-mode-line-clock-overrun { /* org-mode-line-clock-overrun */ color: #000000; background-color: #ff0000; }
|
||||
.org-org-quote { /* org-quote */ color: #7f7f7f; }
|
||||
.org-org-scheduled { /* org-scheduled */ color: #006400; }
|
||||
.org-org-scheduled-previously { /* org-scheduled-previously */ color: #b22222; }
|
||||
.org-org-scheduled-today { /* org-scheduled-today */ color: #006400; }
|
||||
.org-org-sexp-date { /* org-sexp-date */ color: #a020f0; }
|
||||
.org-org-special-keyword { /* org-special-keyword */ color: #a020f0; }
|
||||
.org-org-table { /* org-table */ color: #0000ff; }
|
||||
.org-org-tag { /* org-tag */ font-weight: bold; }
|
||||
.org-org-target { /* org-target */ text-decoration: underline; }
|
||||
.org-org-time-grid { /* org-time-grid */ color: #b8860b; }
|
||||
.org-org-todo { /* org-todo */ color: #ff0000; font-weight: bold; }
|
||||
.org-org-upcoming-deadline { /* org-upcoming-deadline */ color: #b22222; }
|
||||
.org-org-verbatim { /* org-verbatim */ color: #7f7f7f; }
|
||||
.org-org-verse { /* org-verse */ color: #7f7f7f; }
|
||||
.org-org-warning { /* org-warning */ color: #ff0000; font-weight: bold; }
|
||||
.org-outline-1 { /* outline-1 */ color: #0000ff; }
|
||||
.org-outline-2 { /* outline-2 */ color: #a0522d; }
|
||||
.org-outline-3 { /* outline-3 */ color: #a020f0; }
|
||||
.org-outline-4 { /* outline-4 */ color: #b22222; }
|
||||
.org-outline-5 { /* outline-5 */ color: #228b22; }
|
||||
.org-outline-6 { /* outline-6 */ color: #008b8b; }
|
||||
.org-outline-7 { /* outline-7 */ color: #7a378b; }
|
||||
.org-outline-8 { /* outline-8 */ color: #8b2252; }
|
||||
.org-preprocessor { /* font-lock-preprocessor-face */ color: #7a378b; }
|
||||
.org-query-replace { /* query-replace */ color: #b0e2ff; background-color: #cd00cd; }
|
||||
.org-regexp-grouping-backslash { /* font-lock-regexp-grouping-backslash */ font-weight: bold; }
|
||||
.org-regexp-grouping-construct { /* font-lock-regexp-grouping-construct */ font-weight: bold; }
|
||||
.org-region { /* region */ background-color: #eedc82; }
|
||||
.org-secondary-selection { /* secondary-selection */ background-color: #ffff00; }
|
||||
.org-shadow { /* shadow */ color: #7f7f7f; }
|
||||
.org-show-paren-match { /* show-paren-match */ background-color: #40e0d0; }
|
||||
.org-show-paren-mismatch { /* show-paren-mismatch */ color: #ffffff; background-color: #a020f0; }
|
||||
.org-string { /* font-lock-string-face */ color: #8b2252; }
|
||||
.org-tool-bar { /* tool-bar */ color: #000000; background-color: #bfbfbf; }
|
||||
.org-tooltip { /* tooltip */ color: #000000; background-color: #ffffe0; }
|
||||
.org-trailing-whitespace { /* trailing-whitespace */ background-color: #ff0000; }
|
||||
.org-type { /* font-lock-type-face */ color: #228b22; }
|
||||
.org-underline { /* underline */ text-decoration: underline; }
|
||||
.org-variable-name { /* font-lock-variable-name-face */ color: #a0522d; }
|
||||
.org-warning { /* font-lock-warning-face */ color: #ff0000; font-weight: bold; }
|
||||
.org-widget-button { /* widget-button */ font-weight: bold; }
|
||||
.org-widget-button-pressed { /* widget-button-pressed */ color: #ff0000; }
|
||||
.org-widget-documentation { /* widget-documentation */ color: #006400; }
|
||||
.org-widget-field { /* widget-field */ background-color: #d9d9d9; }
|
||||
.org-widget-inactive { /* widget-inactive */ color: #7f7f7f; }
|
||||
.org-widget-single-line-field { /* widget-single-line-field */ background-color: #d9d9d9; }
|
||||
@@ -1,8 +0,0 @@
|
||||
c23d1d84ab3652a556232238c3a7afea halfchecked.png 1442808908
|
||||
5bf62f79a50eb3846886a6413ac64f5a fixme.png 1442808908
|
||||
fca117ca745155f9cfa9bd954f79790a info.png 1442808908
|
||||
4569dd0a6f7e7bac6b127abc68131efc tip.png 1442808908
|
||||
1c9b7a569fbfa1043e8dd0122bf60ff9 checked.png 1442808908
|
||||
870e29d877c38d93ad9200b710060684 warning.png 1442808908
|
||||
56304e9a6724caacab8b7b7a9cda094f note.png 1442808908
|
||||
969b724fabdb36e0855a15c5b694c58f unchecked.png 1442808908
|
||||
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 625 B |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
@@ -1,9 +0,0 @@
|
||||
2c51cff6d460b829993d6d0c61c12828 hideshow.js 1442808908
|
||||
8fc25e27d42774aeae6edbc0a18b72aa jquery-1.11.0.min.js 1442808908
|
||||
7c87f5b9f7e504e3c12f460967436550 jquery.localscroll-min.js 1442808908
|
||||
9ef39fa9511ae4fd1d34ed9252ceaadc bigblow.js 1442808908
|
||||
397754ba49e9e0cf4e7c190da78dda05 jquery-1.9.1.min.js 1442808908
|
||||
c4dff68594e0fdb05b48aac9a90c0a19 jquery.scrollTo-1.4.3.1-min.js 1442808908
|
||||
9f4401cdc4405d0730362256b4c04cc0 ZeroClipboard.swf 1442808908
|
||||
9e85741bf31afd921a7289b6cccdfdbd jquery.zclip.min.js 1442808908
|
||||
3e6acb1e6426ef90d2e786a006a4ea28 jquery-ui-1.10.2.min.js 1442808908
|
||||
@@ -1,524 +0,0 @@
|
||||
// darksun.js --- darksun JS file
|
||||
//
|
||||
// Copyright (C) 2011-2016 All Right Reserved, Fabrice Niessen
|
||||
//
|
||||
// This file is free software: you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License as
|
||||
// published by the Free Software Foundation, either version 3 of
|
||||
// the License, or (at your option) any later version.
|
||||
//
|
||||
// This file is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// Author: Fabrice Niessen <(concat "fniessen" at-sign "pirilampo.org")>
|
||||
// URL: https://github.com/fniessen/org-html-themes/
|
||||
// Version: 20140515.1841
|
||||
|
||||
$(function() {
|
||||
$('p').
|
||||
html(function(index, old) {
|
||||
return old.replace('FIXME',
|
||||
'<span class="fixme">FIXME</span>');
|
||||
});
|
||||
$('p').
|
||||
html(function(index, old) {
|
||||
return old.replace('XXX',
|
||||
'<span class="fixme">XXX</span>');
|
||||
});
|
||||
});
|
||||
|
||||
// Remove leading section number
|
||||
$(function() {
|
||||
$('.section-number-2').text("");
|
||||
for (var i = 3; i <= 5; i++) {
|
||||
$('.section-number-' + i).each(function() {
|
||||
$(this).text($(this).text().replace(/^[0-9]+\./g, ""));
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('<div id="minitoc" class="dontprint"></div>').prependTo('body');
|
||||
});
|
||||
|
||||
// generate contents of minitoc
|
||||
function generateMiniToc(divId) {
|
||||
$('#minitoc-content').empty().append('<h2>In this section</h2><ul></ul>');
|
||||
$('#' + divId).find('h3').each(function(i) {
|
||||
// [2018-09-03 Mon 03:48] Get text up to non-breaking space,
|
||||
// to omit the tags. If there are no tags, there will be no
|
||||
// , so get all the text. (This fixes a bug in the
|
||||
// original code.)
|
||||
let text = null;
|
||||
let pos = $(this).text().search(/ | ►/);
|
||||
if (pos > 0) {
|
||||
text = $(this).text().substring(0, pos);
|
||||
}
|
||||
else {
|
||||
text = $(this).text();
|
||||
}
|
||||
$("#minitoc-content>ul").append("<li><a href='#" + $(this).attr("id") + "'>"
|
||||
+ text + "</a></li>");
|
||||
});
|
||||
// Ensure that the target is expanded (hideShow)
|
||||
$('#minitoc-content a[href^="#"]').click(function() {
|
||||
var href = $(this).attr('href');
|
||||
hsExpandAnchor(href);
|
||||
});
|
||||
}
|
||||
|
||||
// display tabs
|
||||
function tabifySections() {
|
||||
|
||||
// hide TOC (if present)
|
||||
$('#table-of-contents').hide();
|
||||
|
||||
// grab the list of `h2' from the page
|
||||
var allSections = [];
|
||||
$('h2')
|
||||
.each(function() {
|
||||
// Remove TODO keywords and tags (contained in spans)
|
||||
var tabText = $(this).clone().find('span').remove().end()
|
||||
.text().trim();
|
||||
var tabId = $(this).parent().attr('id');
|
||||
if (tabText) {
|
||||
// - remove heading number (all leading digits)
|
||||
// - remove progress logging (between square brackets)
|
||||
// - remove leading and trailing spaces
|
||||
tabText = tabText.replace(/^\d+\s+/, '').replace(/\[[\d/%]+\]/, '').trim();
|
||||
|
||||
allSections.push({
|
||||
text: tabText,
|
||||
id: tabId
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// create the tab links
|
||||
var tabs = $('<ul id="tabs"></ul>');
|
||||
for (i = 0; i < allSections.length; i++) {
|
||||
var item = allSections[i];
|
||||
html = $('<li><a href="#' + item.id + '">' + item.text + '</a></li>');
|
||||
tabs.append(html);
|
||||
}
|
||||
|
||||
// insert tabs menu after title (`h1'), or at the beginning of the content
|
||||
if($('.title').length !== 0) {
|
||||
$('.title').after(tabs);
|
||||
}
|
||||
else {
|
||||
$('#content').prepend(tabs);
|
||||
}
|
||||
}
|
||||
|
||||
function selectTabAndScroll(href) {
|
||||
// At this point we assume that href is local (starts with #)
|
||||
// alert(href);
|
||||
|
||||
// Find the tab to activate
|
||||
var targetTab = $(href).closest('.ui-tabs-panel');
|
||||
var targetTabId = targetTab.attr('id');
|
||||
var targetTabAriaLabel = targetTab.attr('aria-labelledby');
|
||||
|
||||
var targetTabIndex = $("#content ul li")
|
||||
.index($('[aria-labelledby="' + targetTabAriaLabel + '"]'));
|
||||
|
||||
// Activate target tab
|
||||
$('#content').tabs('option', 'active', targetTabIndex);
|
||||
|
||||
// Rebuild minitoc
|
||||
generateMiniToc(targetTabId);
|
||||
|
||||
// Set the location hash
|
||||
// document.location.hash = href;
|
||||
|
||||
// Scroll to top if href was a tab
|
||||
if (href == '#' + targetTabId) {
|
||||
// alert(targetTabId);
|
||||
$.scrollTo(0);
|
||||
}
|
||||
// Scroll to href if href was not a tab
|
||||
else {
|
||||
$.scrollTo(href);
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#preamble').remove();
|
||||
$('#table-of-contents').remove();
|
||||
|
||||
// Initialize hideShow
|
||||
hsInit();
|
||||
|
||||
// Prepare for tabs
|
||||
tabifySections();
|
||||
|
||||
// Build the tabs from the #content div
|
||||
$('#content').tabs();
|
||||
|
||||
// Set default animation
|
||||
$('#content').tabs('option', 'show', true);
|
||||
|
||||
// Rebuild minitoc when a tab is activated
|
||||
$('#content').tabs({
|
||||
activate: function(event, ui) {
|
||||
var divId = ui.newTab.attr('aria-controls');
|
||||
generateMiniToc(divId);
|
||||
}
|
||||
});
|
||||
|
||||
// Required to get the link of the tab in URL
|
||||
$('#content ul').localScroll({
|
||||
target: '#content',
|
||||
duration: 0,
|
||||
hash: true
|
||||
});
|
||||
|
||||
// Handle hash in URL
|
||||
if ($('#content') && document.location.hash) {
|
||||
hsExpandAnchor(document.location.hash);
|
||||
selectTabAndScroll(document.location.hash);
|
||||
}
|
||||
// If no hash, build the minitoc anyway for selected tab
|
||||
else {
|
||||
var divId = $('#content div[aria-expanded=true]').attr('id');
|
||||
generateMiniToc(divId);
|
||||
}
|
||||
|
||||
// Handle click on internal links
|
||||
$('.ui-tabs-panel a[href^="#"]').click(function(e) {
|
||||
var href = $(this).attr('href');
|
||||
hsExpandAnchor(href);
|
||||
selectTabAndScroll(href);
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
// add sticky headers to tables
|
||||
$('table').stickyTableHeaders();
|
||||
});
|
||||
|
||||
function copyToClipboard(text)
|
||||
{
|
||||
if (window.clipboardData && window.clipboardData.setData) { // Internet Explorer
|
||||
window.clipboardData.setData("Text", text);
|
||||
}
|
||||
else { // Fallback solution
|
||||
window.prompt("Copy to clipboard: Ctrl+C, Enter", text);
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
// Assuming that the ZeroClipboard swf file is in the same folder than darksun,
|
||||
// get the path to it (it will be relative to the current page location).
|
||||
var bbScriptPath = $('script[src$="darksun.js"]').attr('src'); // the js file path
|
||||
var bbPathToZeroClipboardSwf = bbScriptPath.replace('darksun.js', 'ZeroClipboard.swf');
|
||||
|
||||
// Add copy to clipboard snippets
|
||||
$('.org-src-container').prepend('<div class="snippet-copy-to-clipboard"><span class="copy-to-clipboard-button">[copy]</span></div>');
|
||||
|
||||
// Display/hide snippets on source block mouseenter/mouseleave
|
||||
$(document).on('mouseenter', '.org-src-container', function () {
|
||||
$(this).find('.snippet-copy-to-clipboard').show();
|
||||
|
||||
// Need to call zclip here, once the button is visible.
|
||||
// Beacause when the button is not visible, zclip does nothing.
|
||||
if ((window.location.protocol != 'file:') && ($(this).find('.zclip').length == 0)) {
|
||||
$(this).find('.copy-to-clipboard-button').zclip({
|
||||
//path: 'http://www.steamdev.com/zclip/js/ZeroClipboard.swf',
|
||||
//path: 'styles/darksun/js/ZeroClipboard.swf',
|
||||
path: bbPathToZeroClipboardSwf,
|
||||
copy: function() {
|
||||
return $(this).parent().parent().find('.src').text();
|
||||
}
|
||||
});
|
||||
}
|
||||
}).on('mouseleave', '.org-src-container', function () {
|
||||
$(this).find('.snippet-copy-to-clipboard').hide();
|
||||
});
|
||||
|
||||
// Handle copy to clipboard (here, for a local file only 'file://...'
|
||||
if (window.location.protocol == 'file:') { // if local file use browser-specific code
|
||||
$('.copy-to-clipboard-button').click(function() {
|
||||
// Get the text to be copied
|
||||
var text = $(this).parent().parent().find('.src').text();
|
||||
text = text.replace(/\n/g, "\r\n");
|
||||
// alert(text);
|
||||
copyToClipboard(text);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('li > code :contains("[X]")')
|
||||
.parent()
|
||||
.addClass('checked')
|
||||
.end()
|
||||
.remove();
|
||||
$('li > code :contains("[-]")')
|
||||
.parent()
|
||||
.addClass('halfchecked')
|
||||
.end()
|
||||
.remove();
|
||||
$('li > code :contains("[ ]")')
|
||||
.parent()
|
||||
.addClass('unchecked')
|
||||
.end()
|
||||
.remove();
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('i :contains("[#A]")')
|
||||
.replaceWith('<i><span style="color: #F67777;">[#A]</span></i>');
|
||||
$('i :contains("[#B]")')
|
||||
.replaceWith('<i><span style="color: #B6E864;">[#B]</span></i>');
|
||||
$('i :contains("[#C]")')
|
||||
.replaceWith('<i><span style="color: #C3DCFF;">[#C]</span></i>');
|
||||
});
|
||||
|
||||
function togglePanel(e) {
|
||||
e.preventDefault();
|
||||
|
||||
$("#left-panel-contents").toggleClass('active').toggle(200);
|
||||
$("#right-panel-contents").toggleClass('active').toggle(200);
|
||||
|
||||
var slidePos =
|
||||
$("#left-panel-button").css("left") == "-23px"? '182px': '-23px';
|
||||
|
||||
$("#left-panel-button").
|
||||
animate({"left": slidePos, "opacity": 0.9}, {duration: "200" });
|
||||
|
||||
// if ($("#left-panel-contents").hasClass('active')) {
|
||||
// hsHideTodoKeyword('done');
|
||||
// } else {
|
||||
// hsShowTodoKeyword('done');
|
||||
// }
|
||||
|
||||
// return false;
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$('<div id="left-panel-wrapper" class="dontprint"><div id="left-panel-contents" style="opacity: 0.9"></div><div id="left-panel-button" class="dontprint"><a href="#">Dashboard</a></div></div>')
|
||||
.appendTo('body');
|
||||
|
||||
$('<div id="right-panel-wrapper" class="dontprint"><div id="right-panel-contents" style="opacity: 0.9"></div></div>')
|
||||
.appendTo('body');
|
||||
|
||||
$('#left-panel-button').click(togglePanel);
|
||||
});
|
||||
|
||||
$(function() {
|
||||
var ul = $('<ul id="listOfTodo"></ul>').appendTo('#left-panel-contents');
|
||||
var countOfTodo = {}, listOfTodo = [], totalOfTodo = 0;
|
||||
|
||||
// assign the counts (avoid double-counting elements from the ToC)
|
||||
$('span.todo').not($('#table-of-contents span.todo')).each(function() {
|
||||
var $thisTodo = $(this).text().trim();
|
||||
|
||||
if ($.inArray($thisTodo, listOfTodo) == -1) {
|
||||
countOfTodo[$thisTodo] = 1;
|
||||
listOfTodo.push($thisTodo);
|
||||
}
|
||||
else
|
||||
countOfTodo[$thisTodo] += 1;
|
||||
totalOfTodo += 1;
|
||||
});
|
||||
|
||||
function scoreTodo(t) {
|
||||
switch (t) {
|
||||
case 'NEW': return 1;
|
||||
case 'TODO': return 2;
|
||||
case 'STRT': return 3;
|
||||
case 'WAIT': return 4;
|
||||
case 'DLGT': return 5;
|
||||
case 'SDAY': return 6;
|
||||
case 'DFRD': return 7;
|
||||
case 'DONE': return 8;
|
||||
case 'CANX': return 9;
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
|
||||
function compareTodo(a, b) {
|
||||
if (scoreTodo(a) < scoreTodo(b)) return -1;
|
||||
if (scoreTodo(a) > scoreTodo(b)) return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
listOfTodo.sort(compareTodo);
|
||||
|
||||
// display
|
||||
for (i = 0; i < listOfTodo.length; i++) {
|
||||
var $thisTodo = listOfTodo[i];
|
||||
$(ul).append('<li><span class="todo ' + $thisTodo + '">'+ $thisTodo + '</span>'
|
||||
+ ' <small>(' + countOfTodo[$thisTodo] + ')</small></li>');
|
||||
}
|
||||
|
||||
$('#listOfTodo')
|
||||
.before('<b>Next Actions</b> <small>(' + totalOfTodo + ')</small>:<br>');
|
||||
});
|
||||
|
||||
$(function() {
|
||||
var ul = $('<ul id="listOfDone"></ul>').appendTo('#left-panel-contents');
|
||||
var countOfDone = {}, listOfDone = [], totalOfDone = 0;
|
||||
|
||||
// assign the counts (avoid double-counting elements from the ToC)
|
||||
$('span.done').not($('#table-of-contents span.done')).each(function() {
|
||||
var $thisDone = $(this).text().trim();
|
||||
|
||||
if ($.inArray($thisDone, listOfDone) == -1) {
|
||||
countOfDone[$thisDone] = 1;
|
||||
listOfDone.push($thisDone);
|
||||
}
|
||||
else
|
||||
countOfDone[$thisDone] += 1;
|
||||
totalOfDone += 1;
|
||||
});
|
||||
|
||||
// display
|
||||
for (i = 0; i < listOfDone.length; i++) {
|
||||
var $thisDone = listOfDone[i];
|
||||
$(ul).append('<li><span class="done ' + $thisDone + '">'+ $thisDone + '</span>'
|
||||
+ ' <small>(' + countOfDone[$thisDone] + ')</small></li>');
|
||||
}
|
||||
|
||||
$('#listOfDone')
|
||||
.before('<b>Done Actions</b> <small>(' + totalOfDone + '):</small><br>');
|
||||
});
|
||||
|
||||
$(function() {
|
||||
var ul = $('<ul id="listOfTags"></ul>').appendTo('#right-panel-contents');
|
||||
var countOfTags = {}, listOfTags = [], totalOfTags = 0;
|
||||
|
||||
// assign the counts (avoid double-counting elements from the ToC)
|
||||
$('span.tag').not($('#table-of-contents span.tag')).each(function() {
|
||||
var $thisTagGroup = $(this).text().trim().split(/\s/);
|
||||
// \s matches spaces, tabs, new lines, etc.
|
||||
|
||||
for (tag in $thisTagGroup) {
|
||||
if ($.inArray($thisTagGroup[tag], listOfTags) == -1) {
|
||||
countOfTags[$thisTagGroup[tag]] = 1;
|
||||
listOfTags.push($thisTagGroup[tag]);
|
||||
}
|
||||
else
|
||||
countOfTags[$thisTagGroup[tag]] += 1;
|
||||
totalOfTags += 1;
|
||||
}
|
||||
});
|
||||
|
||||
listOfTags.sort();
|
||||
|
||||
// display
|
||||
for (i = 0; i < listOfTags.length; i++) {
|
||||
var $thisTag = listOfTags[i];
|
||||
// $(ul).append('<li><span class="tag ' + $thisTag + '">'+
|
||||
// $thisTag + '</span> <small>(' + countOfTags[$thisTag] + ')</small></li>');
|
||||
$(ul).append('<li><span class="tag"><span class="' + $thisTag + '">' + $thisTag
|
||||
+ '</span></span>'
|
||||
+ ' <small>(' + countOfTags[$thisTag] + ')</small></li>');
|
||||
}
|
||||
|
||||
$('#listOfTags')
|
||||
.before('<b>Contexts</b> <small>(' + totalOfTags + '):</small><br>');
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('.done').parent(':header').parent().find(':header').addClass('DONEheader');
|
||||
$('.done').parent(':header').parent().css({color: '#999999'});
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('span.todo').click(function(e) {
|
||||
var orgKeyword = $(this).text().trim();
|
||||
$('.' + orgKeyword).toggleClass('selected');
|
||||
$('#content .' + orgKeyword).parent().parent()
|
||||
.toggleClass('match' + orgKeyword);
|
||||
$('#left-panel-wrapper .' + orgKeyword).parent()
|
||||
.toggleClass('match' + orgKeyword);
|
||||
e.preventDefault();
|
||||
})
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('.tag span').click(function(e) {
|
||||
var orgTag = $(this).text().trim();
|
||||
$('.' + orgTag).toggleClass('selected');
|
||||
$('#content .' + orgTag).parent().parent().parent()
|
||||
.toggleClass('matchtag');
|
||||
$('#right-panel-wrapper .' + orgTag).parent().parent()
|
||||
.toggleClass('matchtag');
|
||||
e.preventDefault();
|
||||
})
|
||||
});
|
||||
|
||||
function clickPreviousTab() {
|
||||
var active = $('#content').tabs('option', 'active');
|
||||
// Avoid going back to last tab
|
||||
if (active == 0) return;
|
||||
|
||||
$('#content').tabs('option', 'active', active - 1);
|
||||
|
||||
// Set the location href
|
||||
var href = $('#content div[aria-expanded=true]').attr('id');
|
||||
document.location.hash = href;
|
||||
$.scrollTo(0);
|
||||
}
|
||||
|
||||
function clickNextTab() {
|
||||
var active = $('#content').tabs('option', 'active');
|
||||
$('#content').tabs('option', 'active', active + 1);
|
||||
|
||||
// Set the location href
|
||||
var href = $('#content div[aria-expanded=true]').attr('id');
|
||||
document.location.hash = href;
|
||||
$.scrollTo(0);
|
||||
}
|
||||
|
||||
function orgDefkey(e) {
|
||||
if (!e)
|
||||
var e = window.event;
|
||||
var keycode = (e.keyCode) ? e.keyCode : e.which;
|
||||
var actualkey = String.fromCharCode(keycode);
|
||||
switch (actualkey) {
|
||||
case "?": // help (dashboard)
|
||||
case "h":
|
||||
togglePanel(e);
|
||||
break;
|
||||
case "n": // next
|
||||
clickNextTab();
|
||||
break;
|
||||
case "p": // previous
|
||||
clickPreviousTab();
|
||||
break;
|
||||
// case "b": // scroll down - should be mapped to Shift-SPC
|
||||
// $(window).scrollTop($(window).scrollTop()-$(window).height());
|
||||
// break;
|
||||
case "<": // scroll to top
|
||||
$(window).scrollTop(0);
|
||||
break;
|
||||
case ">": // scroll to bottom
|
||||
$(window).scrollTop($(document).height());
|
||||
break;
|
||||
case "-": // collapse all
|
||||
hsCollapseAll();
|
||||
break;
|
||||
case "+": // expand all
|
||||
hsExpandAll();
|
||||
break;
|
||||
case "r": // go to next task
|
||||
hsReviewTaskNext();
|
||||
break;
|
||||
case "R": // go to previous task
|
||||
hsReviewTaskPrev();
|
||||
break;
|
||||
case "q": // quit reviewing
|
||||
hsReviewTaskQuit();
|
||||
break;
|
||||
case "g": // refresh the page (from the server, rather than the cache)
|
||||
location.reload(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
document.onkeypress = orgDefkey;
|
||||
@@ -1,335 +0,0 @@
|
||||
// hideshow.js --- HideShow JS file
|
||||
//
|
||||
// Copyright (C) 2014 All Right Reserved, Fabrice Niessen
|
||||
//
|
||||
// This file is free software: you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License as
|
||||
// published by the Free Software Foundation, either version 3 of
|
||||
// the License, or (at your option) any later version.
|
||||
//
|
||||
// This file is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// Author: Fabrice Niessen <(concat "fniessen" at-sign "pirilampo.org")>
|
||||
// URL: https://github.com/fniessen/hide-show/
|
||||
// Version: 20140912.1722
|
||||
|
||||
// var HS_COLLAPSIBLE_HEADERS = $('h3, h4, h5'); // collapsible headers
|
||||
|
||||
if (typeof HS_STARTUP_FOLDED === 'undefined') {
|
||||
var HS_STARTUP_FOLDED = false; // Show just the overview, or show all.
|
||||
}
|
||||
|
||||
if (typeof HS_SHOW_ALL_TEXT === 'undefined') {
|
||||
var HS_SHOW_ALL_TEXT = 'Expand';
|
||||
}
|
||||
if (typeof HS_HIDE_ALL_TEXT === 'undefined') {
|
||||
var HS_HIDE_ALL_TEXT = 'Collapse';
|
||||
}
|
||||
|
||||
if (typeof HS_ALWAYS_DISPLAY_ICON === 'undefined') {
|
||||
var HS_ALWAYS_DISPLAY_ICON = false; // Display an icon for all states, or
|
||||
// just when closed.
|
||||
}
|
||||
|
||||
if (typeof HS_ICON_CLOSED === 'undefined') {
|
||||
var HS_ICON_CLOSED = '►'; // black right-pointing pointer
|
||||
}
|
||||
if (typeof HS_ICON_OPEN === 'undefined') {
|
||||
var HS_ICON_OPEN = '▼'; // black down-pointing triangle
|
||||
}
|
||||
if (typeof HS_ICON_EMPTY === 'undefined') {
|
||||
var HS_ICON_EMPTY = '■'; // black square
|
||||
}
|
||||
|
||||
if (typeof HS_SHOW_ALL_OPEN_DONE_TREES === 'undefined') {
|
||||
var HS_SHOW_ALL_OPEN_DONE_TREES = false; // Expand all will open DONE trees.
|
||||
}
|
||||
|
||||
if (typeof HS_CLASS === 'undefined') {
|
||||
var HS_CLASS = 'hsCollapsible';
|
||||
}
|
||||
|
||||
// Expand a header
|
||||
function hsExpand(header) {
|
||||
hsExpand2(header, true);
|
||||
}
|
||||
|
||||
// Expand a header
|
||||
function hsExpand2(header, expandDoneHeader) {
|
||||
// Ignore non collapsible entries
|
||||
if (!header.parent().hasClass(HS_CLASS)) return;
|
||||
|
||||
// Do not expand DONE node if not required
|
||||
if (hsIsDoneHeader(header) && !expandDoneHeader) return;
|
||||
|
||||
header.children('span[class="ellipsis"]').remove();
|
||||
if (HS_ALWAYS_DISPLAY_ICON == true) {
|
||||
header.append('<span class="ellipsis"> ' + HS_ICON_OPEN + '</span>');
|
||||
}
|
||||
header.parent().removeClass('hsCollapsed').addClass('hsExpanded');
|
||||
header.nextAll().show();
|
||||
}
|
||||
|
||||
// Expand a header and all its parents
|
||||
function hsExpandParents(header) {
|
||||
hsExpand(header);
|
||||
header.parents('.hsCollapsed').each(function() {
|
||||
hsExpand($(this).children(':header'));
|
||||
});
|
||||
}
|
||||
|
||||
// Collapse a header and all its parents
|
||||
function hsCollapseParents(header) {
|
||||
hsCollapse(header);
|
||||
header.parents('.hsExpanded').each(function() {
|
||||
hsCollapse($(this).children(':header'));
|
||||
});
|
||||
}
|
||||
|
||||
// Collapse a header
|
||||
function hsCollapse(header) {
|
||||
// Ignore non collapsible entries
|
||||
if (!header.parent().hasClass(HS_CLASS)) return;
|
||||
|
||||
header.children('span[class="ellipsis"]').remove();
|
||||
header.append('<span class="ellipsis"> ' + HS_ICON_CLOSED + '</span>');
|
||||
header.parent().removeClass('hsExpanded').addClass('hsCollapsed');
|
||||
// header.nextAll().hide('fast');
|
||||
header.nextAll().hide();
|
||||
}
|
||||
|
||||
// Toggle a header
|
||||
function hsToggleCollapsing(header) {
|
||||
if (header.parent().hasClass('hsCollapsed'))
|
||||
hsExpand(header);
|
||||
else if (header.parent().hasClass('hsExpanded'))
|
||||
hsCollapse(header);
|
||||
}
|
||||
|
||||
// Expand all headers
|
||||
function hsExpandAll() {
|
||||
$('#content .hsCollapsed').each(function() {
|
||||
hsExpand2($(this).children(':header'), HS_SHOW_ALL_OPEN_DONE_TREES);
|
||||
});
|
||||
}
|
||||
|
||||
// Collapse all headers
|
||||
function hsCollapseAll() {
|
||||
$('#content .hsExpanded').each(function() {
|
||||
hsCollapse($(this).children(':header'));
|
||||
});
|
||||
}
|
||||
|
||||
// Collapse all visible headers
|
||||
function hsCollapseAllVisible() {
|
||||
$('#content .hsExpanded:visible').each(function() {
|
||||
hsCollapse($(this).children(':header'));
|
||||
});
|
||||
}
|
||||
|
||||
// Add click events to H3/H4/H5 headers which have contents.
|
||||
function hsInit() {
|
||||
for (var i = 3; i <= 5; i++) {
|
||||
$('#content .outline-' + i).each(function() {
|
||||
var header = $(this).children(':header');
|
||||
if (header.siblings().length > 0) {
|
||||
$(this).addClass(HS_CLASS);
|
||||
header.css({cursor: 'pointer'});
|
||||
header.click(function() {
|
||||
hsToggleCollapsing($(this)); });
|
||||
|
||||
// Allow to override global Collapse/Expand default on an entry
|
||||
// basis (see property `:HTML_CONTAINER_CLASS:')
|
||||
if (header.parent().hasClass('hsCollapsed')) {
|
||||
hsCollapse(header);
|
||||
} else if (header.parent().hasClass('hsExpanded')) {
|
||||
hsExpand(header);
|
||||
} else {
|
||||
hsSetDefaultVisibility(header);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (HS_ALWAYS_DISPLAY_ICON == true) {
|
||||
header.append('<span class="ellipsis"> ' + HS_ICON_EMPTY
|
||||
+ '</span>');
|
||||
}
|
||||
$(this).addClass('hsEmpty');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Add div to hold minitoc content (so it can be cleared without deleting the buttons)
|
||||
$('#minitoc').append($('<div id="minitoc-content"></div>'));
|
||||
|
||||
// Add buttons
|
||||
$('#minitoc').append($('<div class="buttons dontprint"></div>'));
|
||||
$('.buttons').append($('<span>' + HS_SHOW_ALL_TEXT + '</span>')
|
||||
.addClass('hsButton')
|
||||
.click(hsExpandAll));
|
||||
$('.buttons').append($('<span>' + HS_HIDE_ALL_TEXT + '</span>')
|
||||
.addClass('hsButton')
|
||||
.click(hsCollapseAll));
|
||||
}
|
||||
|
||||
// Returns true if a header is a DONE header
|
||||
function hsIsDoneHeader(header) {
|
||||
return $('span.done', header).length;
|
||||
}
|
||||
|
||||
// Sets the default visibility state to a header
|
||||
function hsSetDefaultVisibility(header) {
|
||||
if (HS_STARTUP_FOLDED) {
|
||||
hsCollapse(header);
|
||||
}
|
||||
else {
|
||||
if (!hsIsDoneHeader(header) | HS_SHOW_ALL_OPEN_DONE_TREES) {
|
||||
hsExpand(header);
|
||||
}
|
||||
else {
|
||||
hsCollapse(header);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Expands an anchor, i.e. expand all parent headers
|
||||
function hsExpandAnchor(id) {
|
||||
// alert(id);
|
||||
if (id) {
|
||||
// alert($(id + '.hsNode').length);
|
||||
$(id).parents('.hsCollapsed').each(function() {
|
||||
hsExpand2($(this).children(':header'), true);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Search for next task to review, starting from beginning of current tab.
|
||||
// If BACKWARD is true, search in the reverse direction.
|
||||
function hsReviewTaskNext(backward) {
|
||||
// If no tasks to review at all, do nothing.
|
||||
if ($('.outline-2 span.todo').length == 0) return;
|
||||
|
||||
if ($('.hsReviewing').length == 0) { // reviewing is starting
|
||||
$('body').addClass('hsReviewing');
|
||||
$('.hsReviewPanel').addClass('hsReviewing');
|
||||
$('body').prepend('<div id="hsOverlay"></div>');
|
||||
hsAddReviewingPanels();
|
||||
|
||||
hsCollapseAll();
|
||||
// Get first task to review on each tab and expand it
|
||||
$('.outline-2').each(function(){
|
||||
var firstTodo = $(this).find('span.todo:first').parent().parent();
|
||||
firstTodo.addClass('hsReview');
|
||||
hsExpandParents($(firstTodo).children(':header'));
|
||||
});
|
||||
}
|
||||
else {
|
||||
// Get all todos
|
||||
var todosElements = $('.outline-2:visible span.todo').parent().parent();
|
||||
// alert(todosElements.length);
|
||||
var todos = jQuery.makeArray(todosElements);
|
||||
if (backward) {
|
||||
todos = todos.reverse();
|
||||
}
|
||||
|
||||
// Find current review item and review the next one
|
||||
var foundReview = false;
|
||||
var index;
|
||||
for (index = 0; index < todos.length; ++index) {
|
||||
var todo = todos[index];
|
||||
if (foundReview) {
|
||||
$(todo).addClass('hsReview');
|
||||
hsExpandParents($(todo).children(':header'));
|
||||
break;
|
||||
}
|
||||
if ($(todo).hasClass('hsReview')) {
|
||||
foundReview = true;
|
||||
if (index < todos.length - 1) {
|
||||
$(todo).removeClass('hsReview');
|
||||
hsCollapseParents($(todo).children(':header'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Update reviewing panel
|
||||
if (index < todos.length) {
|
||||
var reviewItem = index + 1;
|
||||
if (backward) {
|
||||
reviewItem = todos.length - index;
|
||||
}
|
||||
|
||||
$('.outline-2:visible .hsReviewingPanel .hsReviewItem').text(reviewItem);
|
||||
}
|
||||
}
|
||||
|
||||
// Scroll to the current review item
|
||||
$('html, body').animate({
|
||||
scrollTop: $(".hsReview:visible").offset().top
|
||||
}, 200);
|
||||
}
|
||||
|
||||
// go to previous task to review
|
||||
function hsReviewTaskPrev() {
|
||||
hsReviewTaskNext(true);
|
||||
}
|
||||
|
||||
// stop reviewing tasks
|
||||
function hsReviewTaskQuit() {
|
||||
$('body').removeClass('hsReviewing');
|
||||
$('.hsReviewPanel').removeClass('hsReviewing');
|
||||
$('.hsReview').removeClass('hsReview');
|
||||
$('#hsOverlay').remove();
|
||||
$('.hsReviewingPanel').remove();
|
||||
}
|
||||
|
||||
function hsHideTodoKeyword(kw) {
|
||||
$('span.' + kw).addClass('hsHidden').parent().parent().hide();
|
||||
}
|
||||
|
||||
function hsShowTodoKeyword(kw) {
|
||||
$('span.' + kw).removeClass('hsHidden').parent().parent().show();
|
||||
// XXX Show if parent is not collapsed!
|
||||
}
|
||||
|
||||
function hsAddReviewPanels() {
|
||||
$('.outline-2').each(function(e) {
|
||||
var nbItems = $(this).find('span.todo').length;
|
||||
if (nbItems > 0) {
|
||||
$(this).prepend('<div class="hsReviewPanel hsUnselectable" onclick="hsReviewTaskNext()">'
|
||||
+ 'Press r or click here<br>'
|
||||
+ 'to review ' + nbItems + ' tasks<br>'
|
||||
+ '(out of ' + nbReviewTotalTasks + ' tasks)</div>');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function hsAddReviewingPanels() {
|
||||
$('.outline-2').each(function(e) {
|
||||
var nbItems = $(this).find('span.todo').length;
|
||||
if (nbItems > 0) {
|
||||
$(this).prepend('<div class="hsReviewingPanel hsUnselectable">Reviewing task <span class="hsReviewItem">1</span> / ' + nbItems + '<br>'
|
||||
+ '(out of ' + nbReviewTotalTasks + ' tasks)<br>'
|
||||
+ 'Shortcuts: '
|
||||
+ '<span class="hsReviewButton" onclick="hsReviewTaskNext()">r (next)</span> - '
|
||||
+ '<span class="hsReviewButton" onclick="hsReviewTaskPrev()">R (previous)</span>'
|
||||
+ '</div>');
|
||||
}
|
||||
else {
|
||||
$(this).prepend('<div class="hsReviewingPanel hsUnselectable">No task to review<br>'
|
||||
+ '(out of ' + nbReviewTotalTasks + ' tasks)<br>'
|
||||
+ 'Shortcuts: '
|
||||
+ '<span class="hsReviewButton" onclick="hsReviewTaskNext()">r (next)</span> - '
|
||||
+ '<span class="hsReviewButton" onclick="hsReviewTaskPrev()">R (previous)</span>'
|
||||
+ '</div>');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
var nbReviewTotalTasks;
|
||||
|
||||
$(document).ready(function() {
|
||||
nbReviewTotalTasks = $('.outline-2 span.todo').length;
|
||||
hsAddReviewPanels();
|
||||
});
|
||||
@@ -1,9 +0,0 @@
|
||||
/**
|
||||
* jQuery.LocalScroll - Animated scrolling navigation, using anchors.
|
||||
* Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
|
||||
* Dual licensed under MIT and GPL.
|
||||
* Date: 3/11/2009
|
||||
* @author Ariel Flesler
|
||||
* @version 1.2.7
|
||||
**/
|
||||
;(function($){var l=location.href.replace(/#.*/,'');var g=$.localScroll=function(a){$('body').localScroll(a)};g.defaults={duration:1e3,axis:'y',event:'click',stop:true,target:window,reset:true};g.hash=function(a){if(location.hash){a=$.extend({},g.defaults,a);a.hash=false;if(a.reset){var e=a.duration;delete a.duration;$(a.target).scrollTo(0,a);a.duration=e}i(0,location,a)}};$.fn.localScroll=function(b){b=$.extend({},g.defaults,b);return b.lazy?this.bind(b.event,function(a){var e=$([a.target,a.target.parentNode]).filter(d)[0];if(e)i(a,e,b)}):this.find('a,area').filter(d).bind(b.event,function(a){i(a,this,b)}).end().end();function d(){return!!this.href&&!!this.hash&&this.href.replace(this.hash,'')==l&&(!b.filter||$(this).is(b.filter))}};function i(a,e,b){var d=e.hash.slice(1),f=document.getElementById(d)||document.getElementsByName(d)[0];if(!f)return;if(a)a.preventDefault();var h=$(b.target);if(b.lock&&h.is(':animated')||b.onBefore&&b.onBefore.call(b,a,f,h)===false)return;if(b.stop)h.stop(true);if(b.hash){var j=f.id==d?'id':'name',k=$('<a> </a>').attr(j,d).css({position:'absolute',top:$(window).scrollTop(),left:$(window).scrollLeft()});f[j]='';$('body').prepend(k);location=e.hash;k.remove();f[j]=d}h.scrollTo(f,b).trigger('notify.serialScroll',[f])}})(jQuery);
|
||||
@@ -1,7 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2007-2012 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
|
||||
* Dual licensed under MIT and GPL.
|
||||
* @author Ariel Flesler
|
||||
* @version 1.4.3.1
|
||||
*/
|
||||
;(function($){var h=$.scrollTo=function(a,b,c){$(window).scrollTo(a,b,c)};h.defaults={axis:'xy',duration:parseFloat($.fn.jquery)>=1.3?0:1,limit:true};h.window=function(a){return $(window)._scrollable()};$.fn._scrollable=function(){return this.map(function(){var a=this,isWin=!a.nodeName||$.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!isWin)return a;var b=(a.contentWindow||a).document||a.ownerDocument||a;return/webkit/i.test(navigator.userAgent)||b.compatMode=='BackCompat'?b.body:b.documentElement})};$.fn.scrollTo=function(e,f,g){if(typeof f=='object'){g=f;f=0}if(typeof g=='function')g={onAfter:g};if(e=='max')e=9e9;g=$.extend({},h.defaults,g);f=f||g.duration;g.queue=g.queue&&g.axis.length>1;if(g.queue)f/=2;g.offset=both(g.offset);g.over=both(g.over);return this._scrollable().each(function(){if(e==null)return;var d=this,$elem=$(d),targ=e,toff,attr={},win=$elem.is('html,body');switch(typeof targ){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(targ)){targ=both(targ);break}targ=$(targ,this);if(!targ.length)return;case'object':if(targ.is||targ.style)toff=(targ=$(targ)).offset()}$.each(g.axis.split(''),function(i,a){var b=a=='x'?'Left':'Top',pos=b.toLowerCase(),key='scroll'+b,old=d[key],max=h.max(d,a);if(toff){attr[key]=toff[pos]+(win?0:old-$elem.offset()[pos]);if(g.margin){attr[key]-=parseInt(targ.css('margin'+b))||0;attr[key]-=parseInt(targ.css('border'+b+'Width'))||0}attr[key]+=g.offset[pos]||0;if(g.over[pos])attr[key]+=targ[a=='x'?'width':'height']()*g.over[pos]}else{var c=targ[pos];attr[key]=c.slice&&c.slice(-1)=='%'?parseFloat(c)/100*max:c}if(g.limit&&/^\d+$/.test(attr[key]))attr[key]=attr[key]<=0?0:Math.min(attr[key],max);if(!i&&g.queue){if(old!=attr[key])animate(g.onAfterFirst);delete attr[key]}});animate(g.onAfter);function animate(a){$elem.animate(attr,f,g.easing,a&&function(){a.call(this,e,g)})}}).end()};h.max=function(a,b){var c=b=='x'?'Width':'Height',scroll='scroll'+c;if(!$(a).is('html,body'))return a[scroll]-$(a)[c.toLowerCase()]();var d='client'+c,html=a.ownerDocument.documentElement,body=a.ownerDocument.body;return Math.max(html[scroll],body[scroll])-Math.min(html[d],body[d])};function both(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);
|
||||
@@ -1,2 +0,0 @@
|
||||
e068393cead7419aa9bee846e3a7923c jquery.stickytableheaders.min.js 1442808908
|
||||
c7f142ff5177bd6c359f85a0e19a19b1 stickytableheaders-license.txt 1442808908
|
||||
@@ -1 +0,0 @@
|
||||
!function(a,b){"use strict";function c(c,g){var h=this;h.$el=a(c),h.el=c,h.id=e++,h.$window=a(b),h.$document=a(document),h.$el.bind("destroyed",a.proxy(h.teardown,h)),h.$clonedHeader=null,h.$originalHeader=null,h.isSticky=!1,h.hasBeenSticky=!1,h.leftOffset=null,h.topOffset=null,h.init=function(){h.$el.each(function(){var b=a(this);b.css("padding",0),h.$originalHeader=a("thead:first",this),h.$clonedHeader=h.$originalHeader.clone(),b.trigger("clonedHeader."+d,[h.$clonedHeader]),h.$clonedHeader.addClass("tableFloatingHeader"),h.$clonedHeader.css("display","none"),h.$originalHeader.addClass("tableFloatingHeaderOriginal"),h.$originalHeader.after(h.$clonedHeader),h.$printStyle=a('<style type="text/css" media="print">.tableFloatingHeader{display:none !important;}.tableFloatingHeaderOriginal{position:static !important;}</style>'),a("head").append(h.$printStyle)}),h.setOptions(g),h.updateWidth(),h.toggleHeaders(),h.bind()},h.destroy=function(){h.$el.unbind("destroyed",h.teardown),h.teardown()},h.teardown=function(){h.isSticky&&h.$originalHeader.css("position","static"),a.removeData(h.el,"plugin_"+d),h.unbind(),h.$clonedHeader.remove(),h.$originalHeader.removeClass("tableFloatingHeaderOriginal"),h.$originalHeader.css("visibility","visible"),h.$printStyle.remove(),h.el=null,h.$el=null},h.bind=function(){h.$scrollableArea.on("scroll."+d,h.toggleHeaders),h.isWindowScrolling||(h.$window.on("scroll."+d+h.id,h.setPositionValues),h.$window.on("resize."+d+h.id,h.toggleHeaders)),h.$scrollableArea.on("resize."+d,h.toggleHeaders),h.$scrollableArea.on("resize."+d,h.updateWidth)},h.unbind=function(){h.$scrollableArea.off("."+d,h.toggleHeaders),h.isWindowScrolling||(h.$window.off("."+d+h.id,h.setPositionValues),h.$window.off("."+d+h.id,h.toggleHeaders)),h.$scrollableArea.off("."+d,h.updateWidth)},h.toggleHeaders=function(){h.$el&&h.$el.each(function(){var b,c=a(this),d=h.isWindowScrolling?isNaN(h.options.fixedOffset)?h.options.fixedOffset.outerHeight():h.options.fixedOffset:h.$scrollableArea.offset().top+(isNaN(h.options.fixedOffset)?0:h.options.fixedOffset),e=c.offset(),f=h.$scrollableArea.scrollTop()+d,g=h.$scrollableArea.scrollLeft(),i=h.isWindowScrolling?f>e.top:d>e.top,j=(h.isWindowScrolling?f:0)<e.top+c.height()-h.$clonedHeader.height()-(h.isWindowScrolling?0:d);i&&j?(b=e.left-g+h.options.leftOffset,h.$originalHeader.css({position:"fixed","margin-top":h.options.marginTop,left:b,"z-index":3}),h.leftOffset=b,h.topOffset=d,h.$clonedHeader.css("display",""),h.isSticky||(h.isSticky=!0,h.updateWidth()),h.setPositionValues()):h.isSticky&&(h.$originalHeader.css("position","static"),h.$clonedHeader.css("display","none"),h.isSticky=!1,h.resetWidth(a("td,th",h.$clonedHeader),a("td,th",h.$originalHeader)))})},h.setPositionValues=function(){var a=h.$window.scrollTop(),b=h.$window.scrollLeft();!h.isSticky||0>a||a+h.$window.height()>h.$document.height()||0>b||b+h.$window.width()>h.$document.width()||h.$originalHeader.css({top:h.topOffset-(h.isWindowScrolling?0:a),left:h.leftOffset-(h.isWindowScrolling?0:b)})},h.updateWidth=function(){if(h.isSticky){h.$originalHeaderCells||(h.$originalHeaderCells=a("th,td",h.$originalHeader)),h.$clonedHeaderCells||(h.$clonedHeaderCells=a("th,td",h.$clonedHeader));var b=h.getWidth(h.$clonedHeaderCells);h.setWidth(b,h.$clonedHeaderCells,h.$originalHeaderCells),h.$originalHeader.css("width",h.$clonedHeader.width())}},h.getWidth=function(c){var d=[];return c.each(function(c){var e,f=a(this);if("border-box"===f.css("box-sizing"))e=f[0].getBoundingClientRect().width;else{var g=a("th",h.$originalHeader);if("collapse"===g.css("border-collapse"))if(b.getComputedStyle)e=parseFloat(b.getComputedStyle(this,null).width);else{var i=parseFloat(f.css("padding-left")),j=parseFloat(f.css("padding-right")),k=parseFloat(f.css("border-width"));e=f.outerWidth()-i-j-k}else e=f.width()}d[c]=e}),d},h.setWidth=function(a,b,c){b.each(function(b){var d=a[b];c.eq(b).css({"min-width":d,"max-width":d})})},h.resetWidth=function(b,c){b.each(function(b){var d=a(this);c.eq(b).css({"min-width":d.css("min-width"),"max-width":d.css("max-width")})})},h.setOptions=function(c){h.options=a.extend({},f,c),h.$scrollableArea=a(h.options.scrollableArea),h.isWindowScrolling=h.$scrollableArea[0]===b},h.updateOptions=function(a){h.setOptions(a),h.unbind(),h.bind(),h.updateWidth(),h.toggleHeaders()},h.init()}var d="stickyTableHeaders",e=0,f={fixedOffset:0,leftOffset:0,marginTop:0,scrollableArea:b};a.fn[d]=function(b){return this.each(function(){var e=a.data(this,"plugin_"+d);e?"string"==typeof b?e[b].apply(e):e.updateOptions(b):"destroy"!==b&&a.data(this,"plugin_"+d,new c(this,b))})}}(jQuery,window);
|
||||
@@ -1,20 +0,0 @@
|
||||
Copyright (c) 2011 Jonas Mosbech
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
Before Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 138 KiB |
@@ -1,132 +0,0 @@
|
||||
#+SETUPFILE: ~/.emacs.d/org-styles/html
|
||||
#+TITLE: <name of style>
|
||||
#+AUTHOR: Unknown
|
||||
#+EMAIL: mail@blablub.nil
|
||||
#+OPTIONS: ^:nil p:t
|
||||
|
||||
* <name of style>
|
||||
Includes:
|
||||
- [ ] CSS
|
||||
- [ ] JAVASCRIPT
|
||||
|
||||
Available as:
|
||||
- [ ] CSS FILE
|
||||
- [ ] JS FILE
|
||||
- [ ] SETUPFILE
|
||||
|
||||
* Lists
|
||||
** Todo List
|
||||
*** TODO First todo
|
||||
*** DONE First Done with Date
|
||||
CLOSED: [2021-02-18 Thu 10:12]
|
||||
*** TODO Scheduled
|
||||
SCHEDULED: <2021-02-18 Thu>
|
||||
*** TODO Deadline
|
||||
DEADLINE: <2021-02-18 Thu>
|
||||
*** TODO Date
|
||||
<2021-02-18 Thu>
|
||||
|
||||
** Simple list
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
|
||||
** Sorted List
|
||||
1. List item
|
||||
2. List item
|
||||
3. List item
|
||||
4. List item
|
||||
|
||||
** Checkbox
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
|
||||
* Headings
|
||||
* H1
|
||||
H1 Text
|
||||
** H2
|
||||
H2 Text
|
||||
*** H3
|
||||
H3 Text
|
||||
**** H4
|
||||
H4 Text
|
||||
***** H5
|
||||
H5 Text
|
||||
****** H6
|
||||
H6 Text
|
||||
******* H7
|
||||
H7 Text
|
||||
|
||||
|
||||
|
||||
* Table
|
||||
|
||||
| a | b | c | d | e | f |
|
||||
|----+----+----+----+----+----|
|
||||
| 0 | 1 | 2 | 3 | 4 | 5 |
|
||||
| 6 | 7 | 8 | 9 | 10 | 11 |
|
||||
| 12 | 13 | 14 | 15 | 16 | 17 |
|
||||
| 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 |
|
||||
|
||||
|
||||
* Blocks
|
||||
** Center
|
||||
#+begin_center
|
||||
This is a center block
|
||||
#+end_center
|
||||
|
||||
** Comment
|
||||
#+begin_comment
|
||||
This is a comment block
|
||||
#+end_comment
|
||||
|
||||
** Example
|
||||
#+begin_example
|
||||
This is an example block
|
||||
#+end_example
|
||||
|
||||
** Quote
|
||||
#+begin_quote
|
||||
This is a quote block
|
||||
#+end_quote
|
||||
|
||||
** Verse
|
||||
#+begin_verse
|
||||
This is a verse block
|
||||
#+end_verse
|
||||
|
||||
|
||||
** Source Blocks
|
||||
*** Python
|
||||
#+begin_src python :results output :exports both
|
||||
for i in range(10):
|
||||
print(i)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
#+begin_example
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
#+end_example
|
||||
|
||||
*** Elisp
|
||||
#+begin_src emacs-lisp :exports both
|
||||
(car '(a b c d))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: a
|
||||
|
||||
|
||||
@@ -1,168 +0,0 @@
|
||||
@import url('https://fonts.googleapis.com/css?family=Elsie&display=swap');
|
||||
|
||||
/* Variables. Feel free to edit these! */
|
||||
:root {
|
||||
--color-primary: #028090;
|
||||
--color-secondary: #00A896;
|
||||
|
||||
--color-soft-white: #FFFFF0;
|
||||
|
||||
--color-soft-black: #444;
|
||||
--color-hard-black: #222;
|
||||
|
||||
--color-special-todo: #790604;
|
||||
|
||||
--font-normal: Baskerville, "Baskerville Old Face", "Hoefler Text", Garamond, "Times New Roman";
|
||||
--font-headings: 'Elsie', cursive;
|
||||
|
||||
--font-size-1: 33.57px;
|
||||
--font-size-2: 26.86px;
|
||||
--font-size-3: 21.48px;
|
||||
--font-size-4: 17.19px;
|
||||
|
||||
--font-size-small: 11px;
|
||||
}
|
||||
|
||||
/* Selection color */
|
||||
::selection {
|
||||
background-color: var(--color-primary);
|
||||
color: var(--color-soft-white);
|
||||
}
|
||||
|
||||
/* Remove outer padding */
|
||||
html, body{
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Heading styles */
|
||||
h1, h2, h3, h4, h5, h6{
|
||||
color: var(--color-hard-black);
|
||||
font-family: var(--font-headings)
|
||||
}
|
||||
|
||||
/* Scaled font sizes */
|
||||
h1{font-size: var(--font-size-1);}
|
||||
h2{font-size: var(--font-size-2);}
|
||||
h3{font-size: var(--font-size-3);}
|
||||
h3{font-size: var(--font-size-4);}
|
||||
h4{font-size: var(--font-size-4);}
|
||||
h5{font-size: var(--font-size-4);}
|
||||
|
||||
h1 > .subtitle{
|
||||
font-size: 21.48px;
|
||||
}
|
||||
|
||||
/* Normal text style(including code) */
|
||||
p, pre, ol, ul, table, code{
|
||||
color: #444;
|
||||
font-size: var(--font-size-4);
|
||||
font-family: var(--font-normal)
|
||||
}
|
||||
|
||||
/* Better anchor tags */
|
||||
a{
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
a:hover{
|
||||
color: var(--color-secondary);
|
||||
}
|
||||
|
||||
/* Force footer to bottom and center */
|
||||
#postamble{
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#postamble > p{
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.title{
|
||||
padding: 2vh 5vw;
|
||||
}
|
||||
|
||||
|
||||
/* Responsive images */
|
||||
img{
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/* Responsive code blocks and tables */
|
||||
pre, .outline-text-2, .outline-text-3, outline-text-4{
|
||||
max-width: 100%;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
/* Responsive content positioning */
|
||||
@media only screen and (min-width: 750px) /* Large screens */
|
||||
{
|
||||
.outline-2{
|
||||
padding: 2vh 20vw;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 750px) /* Small screens */
|
||||
{
|
||||
.outline-2{
|
||||
padding: 2vh 5vw;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Code blocks */
|
||||
.org-keyword{
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.org-rainbow-delimiters-depth-1{
|
||||
color: var(--color-secondary);
|
||||
}
|
||||
|
||||
.org-org-meta-line{
|
||||
color: var(--color-primary);
|
||||
}
|
||||
blockquote{
|
||||
border-left:5px solid var(--color-primary);
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.todo{
|
||||
color: var(--color-special-todo);
|
||||
}
|
||||
|
||||
.done{
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
/* Tags.
|
||||
The way org exports tags is a little strange.
|
||||
They are exported as a span with class "tag" containing each
|
||||
of the tags in its own span with class and contents equal to
|
||||
the tags name. This is actually really useful as it allows
|
||||
for targeting both the "tag group" and each tag individually */
|
||||
|
||||
.tag{
|
||||
margin-top: 5px;
|
||||
display: block;
|
||||
color: var(--color-soft-white);
|
||||
font-size: var(--font-size-small);
|
||||
font-family: var(--font-normal)
|
||||
|
||||
}
|
||||
|
||||
.tag > span{
|
||||
background-color: var(--color-secondary);
|
||||
text-transform: uppercase;
|
||||
border-radius: 2px;
|
||||
width: fit-content;
|
||||
height: auto;
|
||||
padding: 1px 5px;
|
||||
margin: 1px;
|
||||
}
|
||||
|
||||
.underline{
|
||||
text-decoration: underline;
|
||||
}
|
||||
@@ -1,134 +0,0 @@
|
||||
#+SETUPFILE: ~/.emacs.d/org-styles/html/imagine_light.theme
|
||||
#+TITLE: Imagine Light
|
||||
#+AUTHOR: Jesse Kelly (jessekelly881)
|
||||
#+EMAIL: mail@blablub.nil
|
||||
#+OPTIONS: ^:nil p:t
|
||||
|
||||
* Imagine Light
|
||||
Original: https://github.com/jessekelly881/Imagine
|
||||
|
||||
Includes:
|
||||
- [X] CSS
|
||||
- [ ] JAVASCRIPT
|
||||
|
||||
Available as:
|
||||
- [X] CSS FILE
|
||||
- [ ] JS FILE
|
||||
- [X] SETUPFILE
|
||||
|
||||
* Lists
|
||||
** Todo List
|
||||
*** TODO First todo
|
||||
*** DONE First Done with Date
|
||||
CLOSED: [2021-02-18 Thu 10:12]
|
||||
*** TODO Scheduled
|
||||
SCHEDULED: <2021-02-18 Thu>
|
||||
*** TODO Deadline
|
||||
DEADLINE: <2021-02-18 Thu>
|
||||
*** TODO Date
|
||||
<2021-02-18 Thu>
|
||||
|
||||
** Simple list
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
|
||||
** Sorted List
|
||||
1. List item
|
||||
2. List item
|
||||
3. List item
|
||||
4. List item
|
||||
|
||||
** Checkbox
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
|
||||
|
||||
* H1
|
||||
H1 Text
|
||||
** H2
|
||||
H2 Text
|
||||
*** H3
|
||||
H3 Text
|
||||
**** H4
|
||||
H4 Text
|
||||
***** H5
|
||||
H5 Text
|
||||
****** H6
|
||||
H6 Text
|
||||
******* H7
|
||||
H7 Text
|
||||
|
||||
|
||||
|
||||
* Table
|
||||
|
||||
| a | b | c | d | e | f |
|
||||
|----+----+----+----+----+----|
|
||||
| 0 | 1 | 2 | 3 | 4 | 5 |
|
||||
| 6 | 7 | 8 | 9 | 10 | 11 |
|
||||
| 12 | 13 | 14 | 15 | 16 | 17 |
|
||||
| 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 |
|
||||
|
||||
|
||||
* Blocks
|
||||
** Center
|
||||
#+begin_center
|
||||
This is a center block
|
||||
#+end_center
|
||||
|
||||
** Comment
|
||||
#+begin_comment
|
||||
This is a comment block
|
||||
#+end_comment
|
||||
|
||||
** Example
|
||||
#+begin_example
|
||||
This is an example block
|
||||
#+end_example
|
||||
|
||||
** Quote
|
||||
#+begin_quote
|
||||
This is a quote block
|
||||
#+end_quote
|
||||
|
||||
** Verse
|
||||
#+begin_verse
|
||||
This is a verse block
|
||||
#+end_verse
|
||||
|
||||
|
||||
** Source Blocks
|
||||
*** Python
|
||||
#+begin_src python :results output :exports both
|
||||
for i in range(10):
|
||||
print(i)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
#+begin_example
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
#+end_example
|
||||
|
||||
*** Elisp
|
||||
#+begin_src emacs-lisp :exports both
|
||||
(car '(a b c d))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: a
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#+HTML_HEAD: <style type="text/css">
|
||||
#+HTML_HEAD: /* Variables. Feel free to edit these! */:root { --color-primary: #028090; --color-secondary: #00A896; --color-soft-white: #FFFFF0; --color-soft-black: #444; --color-hard-black: #222; --color-special-todo: #790604; --font-normal: Baskerville, "Baskerville Old Face", "Hoefler Text", Garamond, "Times New Roman"; --font-headings: 'Elsie', cursive; --font-size-1: 33.57px; --font-size-2: 26.86px; --font-size-3: 21.48px; --font-size-4: 17.19px; --font-size-small: 11px;}/* Selection color */::selection { background-color: var(--color-primary); color: var(--color-soft-white);}/* Remove outer padding */html, body{ margin: 0;}/* Heading styles */h1, h2, h3, h4, h5, h6{ color: var(--color-hard-black); font-family: var(--font-headings)}/* Scaled font sizes */h1{font-size: var(--font-size-1);}h2{font-size: var(--font-size-2);}h3{font-size: var(--font-size-3);}h3{font-size: var(--font-size-4);}h4{font-size: var(--font-size-4);}h5{font-size: var(--font-size-4);}h1 > .subtitle{ font-size: 21.48px;}/* Normal text style(including code) */p, pre, ol, ul, table, code{ color: #444; font-size: var(--font-size-4); font-family: var(--font-normal)}/* Better anchor tags */a{ color: inherit;}a:hover{ color: var(--color-secondary);}/* Force footer to bottom and center */#postamble{ text-align: center; width: 100%;}#postamble > p{ display: inline;}.title{ padding: 2vh 5vw;}/* Responsive images */img{ max-width: 100%; height: auto;}/* Responsive code blocks and tables */pre, .outline-text-2, .outline-text-3, outline-text-4{ max-width: 100%; overflow-x: auto;}/* Responsive content positioning */@media only screen and (min-width: 750px) /* Large screens */{ .outline-2{ padding: 2vh 20vw; }}@media only screen and (max-width: 750px) /* Small screens */{ .outline-2{ padding: 2vh 5vw; }}/* Code blocks */.org-keyword{ color: var(--color-primary);}.org-rainbow-delimiters-depth-1{ color: var(--color-secondary);}.org-org-meta-line{ color: var(--color-primary);}blockquote{ border-left:5px solid var(--color-primary); padding-left: 10px;}.todo{ color: var(--color-special-todo);}.done{ color: var(--color-primary);}/* Tags. The way org exports tags is a little strange. They are exported as a span with class "tag" containing each of the tags in its own span with class and contents equal to the tags name. This is actually really useful as it allows for targeting both the "tag group" and each tag individually */.tag{ margin-top: 5px; display: block; color: var(--color-soft-white); font-size: var(--font-size-small); font-family: var(--font-normal)}.tag > span{ background-color: var(--color-secondary); text-transform: uppercase; border-radius: 2px; width: fit-content; height: auto; padding: 1px 5px; margin: 1px;}.underline{ text-decoration: underline;}
|
||||
#+HTML_HEAD: </style>
|
||||
@@ -1,109 +0,0 @@
|
||||
#+TITLE: Org Themes collection
|
||||
#+AUTHOR: Marco Pawłowski
|
||||
#+EMAIL: pawlowski.marco@gmail.com
|
||||
#+OPTIONS: ^:nil toc:nil \n:t
|
||||
|
||||
|
||||
* Introduction
|
||||
This is a collection of org html themes.
|
||||
I collected them in the past years and used them personally. So they should work.
|
||||
There are two ways to use them [not all themes include both solutions]:
|
||||
- as extern css/js files
|
||||
- embedded inside an html file
|
||||
|
||||
For the embedded version there is a SETUPFILE with the extension ".theme". This file has all needed css and js
|
||||
inside =style= and =script= tags.
|
||||
|
||||
Include it by using:
|
||||
#+begin_src emacs-lisp
|
||||
#+SETUPFILE: <path to .theme file>
|
||||
#+end_src
|
||||
|
||||
Every theme is rendered with the same org file. A plane version is also included.
|
||||
The git repository with all files is here: [[https://gitlab.com/OlMon/org-themes/][Gitlab Repo]]
|
||||
|
||||
** Credits and apology
|
||||
I used them mainly embedded, with custom created SETUPFILES.
|
||||
This means I not always have the source files.
|
||||
This also means I probably don't know from where I got the themes. So I apologize when your work is listed here
|
||||
without your name. Please contact me, so I can credit you.
|
||||
|
||||
** Contributions
|
||||
I am happy to include any theme.
|
||||
|
||||
** The list of Themes:
|
||||
#+NAME: Themes list
|
||||
#+begin_src emacs-lisp :exports results
|
||||
;; https://kitchingroup.cheme.cmu.edu/blog/2014/03/23/Make-a-list-of-org-files-in-all-the-subdirectories-of-the-current-working-directory/
|
||||
(defun os-walk (root)
|
||||
(let ((files '()) ;empty list to store results
|
||||
(current-list (directory-files root t)))
|
||||
;;process current-list
|
||||
(while current-list
|
||||
(let ((fn (car current-list))) ; get next entry
|
||||
(cond
|
||||
;; regular files
|
||||
((file-regular-p fn)
|
||||
(add-to-list 'files fn))
|
||||
;; directories
|
||||
((and
|
||||
(file-directory-p fn)
|
||||
;; ignore . and ..
|
||||
(not (string-equal ".." (substring fn -2)))
|
||||
(not (string-equal "." (substring fn -1))))
|
||||
;; we have to recurse into this directory
|
||||
(setq files (append files (os-walk fn))))
|
||||
)
|
||||
;; cut list down by an element
|
||||
(setq current-list (cdr current-list)))
|
||||
)
|
||||
files))
|
||||
|
||||
(mapcar
|
||||
(lambda (x) (princ (format "[[%s][%s]]\n" x (replace-regexp-in-string "\.org$" "" (replace-regexp-in-string "_" " " (replace-regexp-in-string ".*/" "" (file-relative-name x ".")))))))
|
||||
(remove-if-not
|
||||
(lambda (x) (and (string= (file-name-extension x) "org") (not (string-match "example" x)) (not (string-match "index" x))))
|
||||
(os-walk "")))
|
||||
#+end_src
|
||||
|
||||
|
||||
|
||||
#+RESULTS: Themes list
|
||||
| [[file:/home/olmon/Workplace/Org/Themes/src/bigblow_inline/bigblow.org][bigblow]] |
|
||||
| [[file:/home/olmon/Workplace/Org/Themes/src/comfy_inline/comfy_inline.org][comfy inline]] |
|
||||
| [[file:/home/olmon/Workplace/Org/Themes/src/darksun/darksun.org][darksun]] |
|
||||
| [[file:/home/olmon/Workplace/Org/Themes/src/imagine_light/imagine_light.org][imagine light]] |
|
||||
| [[file:/home/olmon/Workplace/Org/Themes/src/plain/plain.org][plain]] |
|
||||
| [[file:/home/olmon/Workplace/Org/Themes/src/readtheorg_inline/readtheorg_inline.org][readtheorg inline]] |
|
||||
| [[file:/home/olmon/Workplace/Org/Themes/src/rethink_inline/rethink_inline.org][rethink inline]] |
|
||||
| [[file:/home/olmon/Workplace/Org/Themes/src/retro_dark/retro_dark.org][retro dark]] |
|
||||
| [[file:/home/olmon/Workplace/Org/Themes/src/simple_gray/simple_gray.org][simple gray]] |
|
||||
| [[file:/home/olmon/Workplace/Org/Themes/src/simple_inline/simple_inline.org][simple inline]] |
|
||||
| [[file:/home/olmon/Workplace/Org/Themes/src/simple_white/simple_white.org][simple white]] |
|
||||
| [[file:/home/olmon/Workplace/Org/Themes/src/simple_whiteblue/simple_whiteblue.org][simple whiteblue]] |
|
||||
| [[file:/home/olmon/Workplace/Org/Themes/src/solarized_dark/solarized_dark.org][solarized dark]] |
|
||||
| [[file:/home/olmon/Workplace/Org/Themes/src/solarized_light/solarized_light.org][solarized light]] |
|
||||
| [[file:/home/olmon/Workplace/Org/Themes/src/stylish_white/stylish_white.org][stylish white]] |
|
||||
|
||||
|
||||
#+begin_src emacs-lisp :exports none
|
||||
(setq org-publish-project-alist
|
||||
'(("orgfiles"
|
||||
:base-directory "~/Workplace/Org/Themes/src/"
|
||||
:base-extension "org" ;; get all files
|
||||
:exclude "example"
|
||||
:publishing-directory "~/Workplace/Org/Themes/public/"
|
||||
:publishing-function org-html-publish-to-html
|
||||
:html-preamble t
|
||||
:recursive t)
|
||||
|
||||
("website" :components ("orgfiles"))))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
| orgfiles | :base-directory | ~/Workplace/Org/Themes/src/ | :base-extension | org | :exclude | example | :publishing-directory | ~/Workplace/Org/Themes/public/ | :publishing-function | org-html-publish-to-html | :html-preamble | t | :recursive | t |
|
||||
| website | :components | (orgfiles) | | | | | | | | | | | | |
|
||||
|
||||
|
||||
** Irony
|
||||
There is a reason that this page has no custom css.
|
||||
@@ -1,11 +0,0 @@
|
||||
#+AUTHOR: Marcel Fries
|
||||
#+EMAIL: mfries@luxick.de
|
||||
#+LANGUAGE: en
|
||||
#+SELECT_TAGS: export
|
||||
#+EXCLUDE_TAGS: noexport
|
||||
#+CREATOR: Emacs 26.1 (Org mode 9.1.9)
|
||||
#+OPTIONS: ':nil *:t -:t ::t <:t H:3 \n:nil ^:t arch:headline
|
||||
#+OPTIONS: author:t broken-links:nil c:nil creator:nil
|
||||
#+OPTIONS: d:(not "LOGBOOK") date:t e:t email:nil f:t inline:t
|
||||
#+OPTIONS: p:nil pri:nil prop:nil stat:t tags:t tasks:t tex:t
|
||||
#+OPTIONS: timestamp:t title:t toc:nil todo:t |:t
|
||||
@@ -1,131 +0,0 @@
|
||||
#+TITLE: Plain Org
|
||||
#+AUTHOR: Marco Pawłowski
|
||||
#+EMAIL: pawlowski.marco@gmail.com
|
||||
#+OPTIONS: ^:nil <:t
|
||||
|
||||
* Plain Org
|
||||
Includes:
|
||||
- [ ] CSS
|
||||
- [ ] JAVASCRIPT
|
||||
|
||||
Available as:
|
||||
- [ ] CSS FILE
|
||||
- [ ] JS FILE
|
||||
- [ ] SETUPFILE
|
||||
|
||||
* Lists
|
||||
** Todo List
|
||||
*** TODO First todo
|
||||
*** DONE First Done with Date
|
||||
CLOSED: [2021-02-18 Thu 10:12]
|
||||
*** TODO Scheduled
|
||||
SCHEDULED: <2021-02-18 Thu>
|
||||
*** TODO Deadline
|
||||
DEADLINE: <2021-02-18 Thu>
|
||||
*** TODO Date
|
||||
<2021-02-18 Thu>
|
||||
|
||||
** Simple list
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
|
||||
** Sorted List
|
||||
1. List item
|
||||
2. List item
|
||||
3. List item
|
||||
4. List item
|
||||
|
||||
** Checkbox
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
|
||||
|
||||
* H1
|
||||
H1 Text
|
||||
** H2
|
||||
H2 Text
|
||||
*** H3
|
||||
H3 Text
|
||||
**** H4
|
||||
H4 Text
|
||||
***** H5
|
||||
H5 Text
|
||||
****** H6
|
||||
H6 Text
|
||||
******* H7
|
||||
H7 Text
|
||||
|
||||
|
||||
|
||||
* Table
|
||||
|
||||
| a | b | c | d | e | f |
|
||||
|----+----+----+----+----+----|
|
||||
| 0 | 1 | 2 | 3 | 4 | 5 |
|
||||
| 6 | 7 | 8 | 9 | 10 | 11 |
|
||||
| 12 | 13 | 14 | 15 | 16 | 17 |
|
||||
| 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 |
|
||||
|
||||
|
||||
* Blocks
|
||||
** Center
|
||||
#+begin_center
|
||||
This is a center block
|
||||
#+end_center
|
||||
|
||||
** Comment
|
||||
#+begin_comment
|
||||
This is a comment block
|
||||
#+end_comment
|
||||
|
||||
** Example
|
||||
#+begin_example
|
||||
This is an example block
|
||||
#+end_example
|
||||
|
||||
** Quote
|
||||
#+begin_quote
|
||||
This is a quote block
|
||||
#+end_quote
|
||||
|
||||
** Verse
|
||||
#+begin_verse
|
||||
This is a verse block
|
||||
#+end_verse
|
||||
|
||||
|
||||
** Source Blocks
|
||||
*** Python
|
||||
#+begin_src python :results output :exports both
|
||||
for i in range(10):
|
||||
print(i)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
#+begin_example
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
#+end_example
|
||||
|
||||
*** Elisp
|
||||
#+begin_src emacs-lisp :exports both
|
||||
(car '(a b c d))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: a
|
||||
|
||||
|
||||
@@ -1,145 +0,0 @@
|
||||
.org-bold { /* bold */ font-weight: bold; }
|
||||
.org-bold-italic { /* bold-italic */ font-weight: bold; font-style: italic; }
|
||||
.org-buffer-menu-buffer { /* buffer-menu-buffer */ font-weight: bold; }
|
||||
.org-builtin { /* font-lock-builtin-face */ color: #7a378b; }
|
||||
.org-button { /* button */ text-decoration: underline; }
|
||||
.org-calendar-today { /* calendar-today */ text-decoration: underline; }
|
||||
.org-change-log-acknowledgement { /* change-log-acknowledgement */ color: #b22222; }
|
||||
.org-change-log-conditionals { /* change-log-conditionals */ color: #a0522d; }
|
||||
.org-change-log-date { /* change-log-date */ color: #8b2252; }
|
||||
.org-change-log-email { /* change-log-email */ color: #a0522d; }
|
||||
.org-change-log-file { /* change-log-file */ color: #0000ff; }
|
||||
.org-change-log-function { /* change-log-function */ color: #a0522d; }
|
||||
.org-change-log-list { /* change-log-list */ color: #a020f0; }
|
||||
.org-change-log-name { /* change-log-name */ color: #008b8b; }
|
||||
.org-comint-highlight-input { /* comint-highlight-input */ font-weight: bold; }
|
||||
.org-comint-highlight-prompt { /* comint-highlight-prompt */ color: #00008b; }
|
||||
.org-comment { /* font-lock-comment-face */ color: #999988; font-style: italic; }
|
||||
.org-comment-delimiter { /* font-lock-comment-delimiter-face */ color: #999988; font-style: italic; }
|
||||
.org-completions-annotations { /* completions-annotations */ font-style: italic; }
|
||||
.org-completions-common-part { /* completions-common-part */ color: #000000; background-color: #ffffff; }
|
||||
.org-completions-first-difference { /* completions-first-difference */ font-weight: bold; }
|
||||
.org-constant { /* font-lock-constant-face */ color: #008b8b; }
|
||||
.org-diary { /* diary */ color: #ff0000; }
|
||||
.org-diff-context { /* diff-context */ color: #7f7f7f; }
|
||||
.org-diff-file-header { /* diff-file-header */ background-color: #b3b3b3; font-weight: bold; }
|
||||
.org-diff-function { /* diff-function */ background-color: #cccccc; }
|
||||
.org-diff-header { /* diff-header */ background-color: #cccccc; }
|
||||
.org-diff-hunk-header { /* diff-hunk-header */ background-color: #cccccc; }
|
||||
.org-diff-index { /* diff-index */ background-color: #b3b3b3; font-weight: bold; }
|
||||
.org-diff-nonexistent { /* diff-nonexistent */ background-color: #b3b3b3; font-weight: bold; }
|
||||
.org-diff-refine-change { /* diff-refine-change */ background-color: #d9d9d9; }
|
||||
.org-dired-directory { /* dired-directory */ color: #0000ff; }
|
||||
.org-dired-flagged { /* dired-flagged */ color: #ff0000; font-weight: bold; }
|
||||
.org-dired-header { /* dired-header */ color: #228b22; }
|
||||
.org-dired-ignored { /* dired-ignored */ color: #7f7f7f; }
|
||||
.org-dired-mark { /* dired-mark */ color: #008b8b; }
|
||||
.org-dired-marked { /* dired-marked */ color: #ff0000; font-weight: bold; }
|
||||
.org-dired-perm-write { /* dired-perm-write */ color: #b22222; }
|
||||
.org-dired-symlink { /* dired-symlink */ color: #a020f0; }
|
||||
.org-dired-warning { /* dired-warning */ color: #ff0000; font-weight: bold; }
|
||||
.org-doc { /* font-lock-doc-face */ color: #8b2252; }
|
||||
.org-escape-glyph { /* escape-glyph */ color: #a52a2a; }
|
||||
.org-file-name-shadow { /* file-name-shadow */ color: #7f7f7f; }
|
||||
.org-flyspell-duplicate { /* flyspell-duplicate */ color: #cdad00; font-weight: bold; text-decoration: underline; }
|
||||
.org-flyspell-incorrect { /* flyspell-incorrect */ color: #ff4500; font-weight: bold; text-decoration: underline; }
|
||||
.org-fringe { /* fringe */ background-color: #f2f2f2; }
|
||||
.org-function-name { /* font-lock-function-name-face */ color: teal; }
|
||||
.org-header-line { /* header-line */ color: #333333; background-color: #e5e5e5; }
|
||||
.org-help-argument-name { /* help-argument-name */ font-style: italic; }
|
||||
.org-highlight { /* highlight */ background-color: #b4eeb4; }
|
||||
.org-holiday { /* holiday */ background-color: #ffc0cb; }
|
||||
.org-isearch { /* isearch */ color: #b0e2ff; background-color: #cd00cd; }
|
||||
.org-isearch-fail { /* isearch-fail */ background-color: #ffc1c1; }
|
||||
.org-italic { /* italic */ font-style: italic; }
|
||||
.org-keyword { /* font-lock-keyword-face */ color: #0086b3; }
|
||||
.org-lazy-highlight { /* lazy-highlight */ background-color: #afeeee; }
|
||||
.org-link { /* link */ color: #0000ff; text-decoration: underline; }
|
||||
.org-link-visited { /* link-visited */ color: #8b008b; text-decoration: underline; }
|
||||
.org-log-edit-header { /* log-edit-header */ color: #a020f0; }
|
||||
.org-log-edit-summary { /* log-edit-summary */ color: #0000ff; }
|
||||
.org-log-edit-unknown-header { /* log-edit-unknown-header */ color: #b22222; }
|
||||
.org-match { /* match */ background-color: #ffff00; }
|
||||
.org-next-error { /* next-error */ background-color: #eedc82; }
|
||||
.org-nobreak-space { /* nobreak-space */ color: #a52a2a; text-decoration: underline; }
|
||||
.org-org-archived { /* org-archived */ color: #7f7f7f; }
|
||||
.org-org-block { /* org-block */ color: #7f7f7f; }
|
||||
.org-org-block-begin-line { /* org-block-begin-line */ color: #b22222; }
|
||||
.org-org-block-end-line { /* org-block-end-line */ color: #b22222; }
|
||||
.org-org-checkbox { /* org-checkbox */ font-weight: bold; }
|
||||
.org-org-checkbox-statistics-done { /* org-checkbox-statistics-done */ color: #228b22; font-weight: bold; }
|
||||
.org-org-checkbox-statistics-todo { /* org-checkbox-statistics-todo */ color: #ff0000; font-weight: bold; }
|
||||
.org-org-clock-overlay { /* org-clock-overlay */ background-color: #ffff00; }
|
||||
.org-org-code { /* org-code */ color: #7f7f7f; }
|
||||
.org-org-column { /* org-column */ background-color: #e5e5e5; }
|
||||
.org-org-column-title { /* org-column-title */ background-color: #e5e5e5; font-weight: bold; text-decoration: underline; }
|
||||
.org-org-date { /* org-date */ color: #a020f0; text-decoration: underline; }
|
||||
.org-org-document-info { /* org-document-info */ color: #191970; }
|
||||
.org-org-document-info-keyword { /* org-document-info-keyword */ color: #7f7f7f; }
|
||||
.org-org-document-title { /* org-document-title */ color: #191970; font-size: 144%; font-weight: bold; }
|
||||
.org-org-done { /* org-done */ color: #228b22; font-weight: bold; }
|
||||
.org-org-drawer { /* org-drawer */ color: #0000ff; }
|
||||
.org-org-ellipsis { /* org-ellipsis */ color: #b8860b; text-decoration: underline; }
|
||||
.org-org-footnote { /* org-footnote */ color: #a020f0; text-decoration: underline; }
|
||||
.org-org-formula { /* org-formula */ color: #b22222; }
|
||||
.org-org-headline-done { /* org-headline-done */ color: #bc8f8f; }
|
||||
.org-org-hide { /* org-hide */ color: #ffffff; }
|
||||
.org-org-latex-and-export-specials { /* org-latex-and-export-specials */ color: #8b4513; }
|
||||
.org-org-level-1 { /* org-level-1 */ color: #0000ff; }
|
||||
.org-org-level-2 { /* org-level-2 */ color: #a0522d; }
|
||||
.org-org-level-3 { /* org-level-3 */ color: #a020f0; }
|
||||
.org-org-level-4 { /* org-level-4 */ color: #b22222; }
|
||||
.org-org-level-5 { /* org-level-5 */ color: #228b22; }
|
||||
.org-org-level-6 { /* org-level-6 */ color: #008b8b; }
|
||||
.org-org-level-7 { /* org-level-7 */ color: #7a378b; }
|
||||
.org-org-level-8 { /* org-level-8 */ color: #8b2252; }
|
||||
.org-org-link { /* org-link */ color: #0000ff; text-decoration: underline; }
|
||||
.org-org-meta-line { /* org-meta-line */ color: #b22222; }
|
||||
.org-org-mode-line-clock { /* org-mode-line-clock */ color: #000000; background-color: #bfbfbf; }
|
||||
.org-org-mode-line-clock-overrun { /* org-mode-line-clock-overrun */ color: #000000; background-color: #ff0000; }
|
||||
.org-org-quote { /* org-quote */ color: #7f7f7f; }
|
||||
.org-org-scheduled { /* org-scheduled */ color: #006400; }
|
||||
.org-org-scheduled-previously { /* org-scheduled-previously */ color: #b22222; }
|
||||
.org-org-scheduled-today { /* org-scheduled-today */ color: #006400; }
|
||||
.org-org-sexp-date { /* org-sexp-date */ color: #a020f0; }
|
||||
.org-org-special-keyword { /* org-special-keyword */ color: #a020f0; }
|
||||
.org-org-table { /* org-table */ color: #0000ff; }
|
||||
.org-org-tag { /* org-tag */ font-weight: bold; }
|
||||
.org-org-target { /* org-target */ text-decoration: underline; }
|
||||
.org-org-time-grid { /* org-time-grid */ color: #b8860b; }
|
||||
.org-org-todo { /* org-todo */ color: #ff0000; font-weight: bold; }
|
||||
.org-org-upcoming-deadline { /* org-upcoming-deadline */ color: #b22222; }
|
||||
.org-org-verbatim { /* org-verbatim */ color: #7f7f7f; }
|
||||
.org-org-verse { /* org-verse */ color: #7f7f7f; }
|
||||
.org-org-warning { /* org-warning */ color: #ff0000; font-weight: bold; }
|
||||
.org-outline-1 { /* outline-1 */ color: #0000ff; }
|
||||
.org-outline-2 { /* outline-2 */ color: #a0522d; }
|
||||
.org-outline-3 { /* outline-3 */ color: #a020f0; }
|
||||
.org-outline-4 { /* outline-4 */ color: #b22222; }
|
||||
.org-outline-5 { /* outline-5 */ color: #228b22; }
|
||||
.org-outline-6 { /* outline-6 */ color: #008b8b; }
|
||||
.org-outline-7 { /* outline-7 */ color: #7a378b; }
|
||||
.org-outline-8 { /* outline-8 */ color: #8b2252; }
|
||||
.org-preprocessor { /* font-lock-preprocessor-face */ color: #7a378b; }
|
||||
.org-query-replace { /* query-replace */ color: #b0e2ff; background-color: #cd00cd; }
|
||||
.org-regexp-grouping-backslash { /* font-lock-regexp-grouping-backslash */ font-weight: bold; }
|
||||
.org-regexp-grouping-construct { /* font-lock-regexp-grouping-construct */ font-weight: bold; }
|
||||
.org-region { /* region */ background-color: #eedc82; }
|
||||
.org-secondary-selection { /* secondary-selection */ background-color: #ffff00; }
|
||||
.org-shadow { /* shadow */ color: #7f7f7f; }
|
||||
.org-show-paren-match { /* show-paren-match */ background-color: #40e0d0; }
|
||||
.org-show-paren-mismatch { /* show-paren-mismatch */ color: #ffffff; background-color: #a020f0; }
|
||||
.org-string { /* font-lock-string-face */ color: #dd1144; }
|
||||
.org-tool-bar { /* tool-bar */ color: #000000; background-color: #bfbfbf; }
|
||||
.org-tooltip { /* tooltip */ color: #000000; background-color: #ffffe0; }
|
||||
.org-trailing-whitespace { /* trailing-whitespace */ background-color: #ff0000; }
|
||||
.org-type { /* font-lock-type-face */ color: #228b22; }
|
||||
.org-underline { /* underline */ text-decoration: underline; }
|
||||
.org-variable-name { /* font-lock-variable-name-face */ color: teal; }
|
||||
.org-warning { /* font-lock-warning-face */ color: #ff0000; font-weight: bold; }
|
||||
.org-widget-button { /* widget-button */ font-weight: bold; }
|
||||
.org-widget-button-pressed { /* widget-button-pressed */ color: #ff0000; }
|
||||
.org-widget-documentation { /* widget-documentation */ color: #006400; }
|
||||
.org-widget-field { /* widget-field */ background-color: #d9d9d9; }
|
||||
.org-widget-inactive { /* widget-inactive */ color: #7f7f7f; }
|
||||
.org-widget-single-line-field { /* widget-single-line-field */ background-color: #d9d9d9; }
|
||||
@@ -1,105 +0,0 @@
|
||||
function collapse_toc_elements_on_click (nav_li_a){
|
||||
/*
|
||||
When an `a' element in the TOC is clicked, its parent
|
||||
`li' element's active attribute is toggled. This causes
|
||||
the element to toggle between minimized and maximized
|
||||
states. The active attribute is documented in bootstrap.
|
||||
https://getbootstrap.com/docs/4.0/components/navbar/#nav
|
||||
*/
|
||||
$(nav_li_el).parent().toggleClass("active");
|
||||
}
|
||||
|
||||
$( document ).ready(function() {
|
||||
// When the document is loaded and ready, bind the
|
||||
// function `collapse_toc_elements_on_click' to the
|
||||
// `a' elements in the table of contents.
|
||||
$("#text-table-of-contents a").click(function() {
|
||||
collapse_toc_elements_on_click(this);
|
||||
});
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('.note').before("<p class='admonition-title note'>Note</p>");
|
||||
$('.seealso').before("<p class='admonition-title seealso'>See also</p>");
|
||||
$('.warning').before("<p class='admonition-title warning'>Warning</p>");
|
||||
$('.caution').before("<p class='admonition-title caution'>Caution</p>");
|
||||
$('.attention').before("<p class='admonition-title attention'>Attention</p>");
|
||||
$('.tip').before("<p class='admonition-title tip'>Tip</p>");
|
||||
$('.important').before("<p class='admonition-title important'>Important</p>");
|
||||
$('.hint').before("<p class='admonition-title hint'>Hint</p>");
|
||||
$('.error').before("<p class='admonition-title error'>Error</p>");
|
||||
$('.danger').before("<p class='admonition-title danger'>Danger</p>");
|
||||
});
|
||||
|
||||
$( document ).ready(function() {
|
||||
|
||||
// Shift nav in mobile when clicking the menu.
|
||||
$(document).on('click', "[data-toggle='wy-nav-top']", function() {
|
||||
$("[data-toggle='wy-nav-shift']").toggleClass("shift");
|
||||
$("[data-toggle='rst-versions']").toggleClass("shift");
|
||||
});
|
||||
// Close menu when you click a link.
|
||||
$(document).on('click', ".wy-menu-vertical .current ul li a", function() {
|
||||
$("[data-toggle='wy-nav-shift']").removeClass("shift");
|
||||
$("[data-toggle='rst-versions']").toggleClass("shift");
|
||||
});
|
||||
$(document).on('click', "[data-toggle='rst-current-version']", function() {
|
||||
$("[data-toggle='rst-versions']").toggleClass("shift-up");
|
||||
});
|
||||
// Make tables responsive
|
||||
$("table.docutils:not(.field-list)").wrap("<div class='wy-table-responsive'></div>");
|
||||
});
|
||||
|
||||
$( document ).ready(function() {
|
||||
$('#text-table-of-contents ul').first().addClass('nav');
|
||||
// ScrollSpy also requires that we use
|
||||
// a Bootstrap nav component.
|
||||
$('body').scrollspy({target: '#text-table-of-contents'});
|
||||
|
||||
// DON'T add sticky table headers (Fix issue #69?)
|
||||
// $('table').stickyTableHeaders();
|
||||
|
||||
// set the height of tableOfContents
|
||||
var $postamble = $('#postamble');
|
||||
var $tableOfContents = $('#table-of-contents');
|
||||
$tableOfContents.css({paddingBottom: $postamble.outerHeight()});
|
||||
|
||||
// add TOC button
|
||||
var toggleSidebar = $('<div id="toggle-sidebar"><a href="#table-of-contents"><h2>Table of Contents</h2></a></div>');
|
||||
$('#content').prepend(toggleSidebar);
|
||||
|
||||
// add close button when sidebar showed in mobile screen
|
||||
var closeBtn = $('<a class="close-sidebar" href="#">Close</a>');
|
||||
var tocTitle = $('#table-of-contents').find('h2');
|
||||
tocTitle.append(closeBtn);
|
||||
});
|
||||
|
||||
window.SphinxRtdTheme = (function (jquery) {
|
||||
var stickyNav = (function () {
|
||||
var navBar,
|
||||
win,
|
||||
stickyNavCssClass = 'stickynav',
|
||||
applyStickNav = function () {
|
||||
if (navBar.height() <= win.height()) {
|
||||
navBar.addClass(stickyNavCssClass);
|
||||
} else {
|
||||
navBar.removeClass(stickyNavCssClass);
|
||||
}
|
||||
},
|
||||
enable = function () {
|
||||
applyStickNav();
|
||||
win.on('resize', applyStickNav);
|
||||
},
|
||||
init = function () {
|
||||
navBar = jquery('nav.wy-nav-side:first');
|
||||
win = jquery(window);
|
||||
};
|
||||
jquery(init);
|
||||
return {
|
||||
enable : enable
|
||||
};
|
||||
}());
|
||||
return {
|
||||
StickyNav : stickyNav
|
||||
};
|
||||
}($));
|
||||
@@ -1,135 +0,0 @@
|
||||
#+SETUPFILE: ~/Workplace/Org/Themes/src/readtheorg_inline/readtheorg_inline.theme
|
||||
#+TITLE: Read the org
|
||||
#+AUTHOR: fniessen
|
||||
#+CREATOR: https://github.com/fniessen/org-html-themes
|
||||
#+EMAIL: mail@blablub.nil
|
||||
#+OPTIONS: ^:nil p:t
|
||||
|
||||
* Read the org
|
||||
Original: https://github.com/fniessen/org-html-themes
|
||||
|
||||
Includes:
|
||||
- [X] CSS
|
||||
- [X] JAVASCRIPT
|
||||
|
||||
Available as:
|
||||
- [X] CSS FILE
|
||||
- [X] JS FILE
|
||||
- [X] SETUPFILE
|
||||
|
||||
* Lists
|
||||
** Todo List
|
||||
*** TODO First todo
|
||||
*** DONE First Done with Date
|
||||
CLOSED: [2021-02-18 Thu 10:12]
|
||||
*** TODO Scheduled
|
||||
SCHEDULED: <2021-02-18 Thu>
|
||||
*** TODO Deadline
|
||||
DEADLINE: <2021-02-18 Thu>
|
||||
*** TODO Date
|
||||
<2021-02-18 Thu>
|
||||
|
||||
** Simple list
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
|
||||
** Sorted List
|
||||
1. List item
|
||||
2. List item
|
||||
3. List item
|
||||
4. List item
|
||||
|
||||
** Checkbox
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
|
||||
|
||||
* H1
|
||||
H1 Text
|
||||
** H2
|
||||
H2 Text
|
||||
*** H3
|
||||
H3 Text
|
||||
**** H4
|
||||
H4 Text
|
||||
***** H5
|
||||
H5 Text
|
||||
****** H6
|
||||
H6 Text
|
||||
******* H7
|
||||
H7 Text
|
||||
|
||||
|
||||
|
||||
* Table
|
||||
|
||||
| a | b | c | d | e | f |
|
||||
|----+----+----+----+----+----|
|
||||
| 0 | 1 | 2 | 3 | 4 | 5 |
|
||||
| 6 | 7 | 8 | 9 | 10 | 11 |
|
||||
| 12 | 13 | 14 | 15 | 16 | 17 |
|
||||
| 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 |
|
||||
|
||||
|
||||
* Blocks
|
||||
** Center
|
||||
#+begin_center
|
||||
This is a center block
|
||||
#+end_center
|
||||
|
||||
** Comment
|
||||
#+begin_comment
|
||||
This is a comment block
|
||||
#+end_comment
|
||||
|
||||
** Example
|
||||
#+begin_example
|
||||
This is an example block
|
||||
#+end_example
|
||||
|
||||
** Quote
|
||||
#+begin_quote
|
||||
This is a quote block
|
||||
#+end_quote
|
||||
|
||||
** Verse
|
||||
#+begin_verse
|
||||
This is a verse block
|
||||
#+end_verse
|
||||
|
||||
|
||||
** Source Blocks
|
||||
*** Python
|
||||
#+begin_src python :results output :exports both
|
||||
for i in range(10):
|
||||
print(i)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
#+begin_example
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
#+end_example
|
||||
|
||||
*** Elisp
|
||||
#+begin_src emacs-lisp :exports both
|
||||
(car '(a b c d))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: a
|
||||
|
||||
|
||||
@@ -1,193 +0,0 @@
|
||||
/* Set variables */:root {
|
||||
--font-size-1: 2rem;
|
||||
--font-size-2: 1.5rem;
|
||||
--font-size-3: 1.15rem;
|
||||
--font-size-4: 1rem;
|
||||
--font-size-small: 0.8rem;
|
||||
--font-size-xsmall: 0.6rem;
|
||||
}
|
||||
|
||||
/* Set padding and margin */html, body{
|
||||
padding: 0; margin: 0; background-color: #fdfdfd;
|
||||
}
|
||||
|
||||
/* Header margin */h2{
|
||||
margin-top: 2rem; margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
h3{
|
||||
margin-top: 1rem; margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
h4{
|
||||
margin-top: 1rem; margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* ------------------------- */::selection {
|
||||
background-color: purple; color: white;
|
||||
}
|
||||
|
||||
html, body{
|
||||
font-family: "Source Sans Pro", Helvetica, sans-serif; font-weight: 300;
|
||||
}
|
||||
|
||||
h1{
|
||||
font-size: var(--font-size-1);
|
||||
}
|
||||
|
||||
h2{
|
||||
font-size: var(--font-size-2);
|
||||
}
|
||||
|
||||
h3{
|
||||
font-size: var(--font-size-3);
|
||||
}
|
||||
|
||||
h4{
|
||||
font-size: var(--font-size-3);
|
||||
}
|
||||
|
||||
h5{
|
||||
font-size: var(--font-size-3);
|
||||
}
|
||||
|
||||
h1 > .subtitle{
|
||||
font-size: var(--font-size-3);
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 300; letter-spacing: -0.03em;
|
||||
}
|
||||
|
||||
.outline-2 > h2, #table-of-contents > h2{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Table of contents */#table-of-contents ul{
|
||||
list-style-type:none; margin: 0;
|
||||
}
|
||||
|
||||
#table-of-contents .tag{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.outline-3{
|
||||
border-bottom: 1px solid #CCC;
|
||||
}
|
||||
|
||||
.outline-2 > h2{
|
||||
grid-row-start: 1; grid-row-end: 2;
|
||||
}
|
||||
|
||||
.outline-2{
|
||||
grid-row-start: 2; grid-row-end: 3;
|
||||
}
|
||||
|
||||
img{
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Code */pre{
|
||||
margin: 1rem; background-color: #EEE; padding: 0.5rem; border-radius: 0.2rem; font-size: var(--font-size-small) !important;
|
||||
}
|
||||
|
||||
.outline-3{
|
||||
display: grid; grid-template-columns: 40fr 60fr;
|
||||
}
|
||||
|
||||
/* Responsive content positioning */@media only screen and (min-width: 750px) /* Large screens */{
|
||||
.outline-3{
|
||||
margin: 0vh 10vw;
|
||||
}
|
||||
|
||||
.outline-text-2, #table-of-contents{
|
||||
padding: 0vh 10vw;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 750px) /* Small screens */{
|
||||
.outline-3{
|
||||
margin: 0vh 5vw; display: block;
|
||||
}
|
||||
|
||||
.outline-text-2, #table-of-contents{
|
||||
padding: 0vh 5vw;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
blockquote{
|
||||
border-left: 0.2rem solid purple; padding-left: 1rem; font-style: italic;
|
||||
}
|
||||
|
||||
p, pre, ol, ul, table, code{
|
||||
color: #1A1A1A;
|
||||
}
|
||||
|
||||
table, blockquote, pre, ol, ul, p, #postamble{
|
||||
margin-top: 1rem; margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6{
|
||||
color: #0A0A0A;
|
||||
}
|
||||
|
||||
.tag{
|
||||
margin-top: 0.5rem; display: block; color: white; font-size: var(--font-size-xsmall);
|
||||
}
|
||||
|
||||
.tag > span{
|
||||
font-weight: 400; font-size: 0.6rem; background-color: purple; text-transform: uppercase; border-radius: 2px; width: fit-content; height: auto; padding: 1px 5px; margin: 1px;
|
||||
}
|
||||
|
||||
/* Stripe table */tr:nth-child(even) {
|
||||
background-color: #EEE;
|
||||
}
|
||||
|
||||
.title{
|
||||
padding: 2vh 5vw;
|
||||
}
|
||||
|
||||
pre{
|
||||
font-family: "Courier New", monospace; font-size: var(--font-size-4)
|
||||
}
|
||||
|
||||
.org-org-meta-line{
|
||||
color: purple;
|
||||
}
|
||||
|
||||
.org-keyword{
|
||||
color: purple;
|
||||
}
|
||||
|
||||
a{
|
||||
color: purple;
|
||||
}
|
||||
|
||||
.underline{
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.todo{
|
||||
color: #7D161A; font-weight: 400;
|
||||
}
|
||||
|
||||
.done{
|
||||
color: purple; font-weight: 400;
|
||||
}
|
||||
|
||||
/* Postamble */#postamble{
|
||||
text-align: center; width: 100%;
|
||||
}
|
||||
|
||||
#postamble > p{
|
||||
display: inline; font-size: var(--font-size-4)
|
||||
}
|
||||
|
||||
.outline-text-2, .outline-text-3, .outline-text-4{
|
||||
max-width: 100%;
|
||||
overflow-x: auto;
|
||||
}
|
||||
@@ -1,134 +0,0 @@
|
||||
#+SETUPFILE: ~/.emacs.d/org-styles/html/rethink_inline.theme
|
||||
#+TITLE: Rethink
|
||||
#+AUTHOR: Jesse Kelly (jessekelly881)
|
||||
#+EMAIL: mail@blablub.nil
|
||||
#+OPTIONS: ^:nil p:t
|
||||
|
||||
* Rethink
|
||||
Original: https://github.com/jessekelly881/Rethink
|
||||
|
||||
Includes:
|
||||
- [X] CSS
|
||||
- [ ] JAVASCRIPT
|
||||
|
||||
Available as:
|
||||
- [X] CSS FILE
|
||||
- [ ] JS FILE
|
||||
- [X] SETUPFILE
|
||||
|
||||
* Lists
|
||||
** Todo List
|
||||
*** TODO First todo
|
||||
*** DONE First Done with Date
|
||||
CLOSED: [2021-02-18 Thu 10:12]
|
||||
*** TODO Scheduled
|
||||
SCHEDULED: <2021-02-18 Thu>
|
||||
*** TODO Deadline
|
||||
DEADLINE: <2021-02-18 Thu>
|
||||
*** TODO Date
|
||||
<2021-02-18 Thu>
|
||||
|
||||
** Simple list
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
|
||||
** Sorted List
|
||||
1. List item
|
||||
2. List item
|
||||
3. List item
|
||||
4. List item
|
||||
|
||||
** Checkbox
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
|
||||
|
||||
* H1
|
||||
H1 Text
|
||||
** H2
|
||||
H2 Text
|
||||
*** H3
|
||||
H3 Text
|
||||
**** H4
|
||||
H4 Text
|
||||
***** H5
|
||||
H5 Text
|
||||
****** H6
|
||||
H6 Text
|
||||
******* H7
|
||||
H7 Text
|
||||
|
||||
|
||||
|
||||
* Table
|
||||
|
||||
| a | b | c | d | e | f |
|
||||
|----+----+----+----+----+----|
|
||||
| 0 | 1 | 2 | 3 | 4 | 5 |
|
||||
| 6 | 7 | 8 | 9 | 10 | 11 |
|
||||
| 12 | 13 | 14 | 15 | 16 | 17 |
|
||||
| 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 |
|
||||
|
||||
|
||||
* Blocks
|
||||
** Center
|
||||
#+begin_center
|
||||
This is a center block
|
||||
#+end_center
|
||||
|
||||
** Comment
|
||||
#+begin_comment
|
||||
This is a comment block
|
||||
#+end_comment
|
||||
|
||||
** Example
|
||||
#+begin_example
|
||||
This is an example block
|
||||
#+end_example
|
||||
|
||||
** Quote
|
||||
#+begin_quote
|
||||
This is a quote block
|
||||
#+end_quote
|
||||
|
||||
** Verse
|
||||
#+begin_verse
|
||||
This is a verse block
|
||||
#+end_verse
|
||||
|
||||
|
||||
** Source Blocks
|
||||
*** Python
|
||||
#+begin_src python :results output :exports both
|
||||
for i in range(10):
|
||||
print(i)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
#+begin_example
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
#+end_example
|
||||
|
||||
*** Elisp
|
||||
#+begin_src emacs-lisp :exports both
|
||||
(car '(a b c d))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: a
|
||||
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
# Turn off default internal styles
|
||||
#+OPTIONS: html-style:nil html5-fancy:t
|
||||
|
||||
#+HTML_HEAD: <style type="text/css">
|
||||
#+HTML_HEAD: @import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,400i");
|
||||
#+HTML_HEAD: /* Set variables */:root { --font-size-1: 2rem; --font-size-2: 1.5rem; --font-size-3: 1.15rem; --font-size-4: 1rem; --font-size-small: 0.8rem; --font-size-xsmall: 0.6rem;}/* Set padding and margin */html, body{ padding: 0; margin: 0; background-color: #fdfdfd;}/* Header margin */h2{margin-top: 2rem; margin-bottom: 1.5rem;}h3{margin-top: 1rem; margin-bottom: 1rem;}h4{margin-top: 1rem; margin-bottom: 1rem;}/* ------------------------- */::selection { background-color: purple; color: white;}html, body{ font-family: "Source Sans Pro", Helvetica, sans-serif; font-weight: 300;}h1{font-size: var(--font-size-1);}h2{font-size: var(--font-size-2);}h3{font-size: var(--font-size-3);}h4{font-size: var(--font-size-3);}h5{font-size: var(--font-size-3);}h1 > .subtitle{ font-size: var(--font-size-3);}h1, h2, h3, h4, h5, h6 { font-weight: 300; letter-spacing: -0.03em;}.outline-2 > h2, #table-of-contents > h2{ text-align: center;}/* Table of contents */#table-of-contents ul{ list-style-type:none; margin: 0;}#table-of-contents .tag{ display: none;}.outline-3{ border-bottom: 1px solid #CCC;}.outline-2 > h2{ grid-row-start: 1; grid-row-end: 2;}.outline-2{ grid-row-start: 2; grid-row-end: 3;}img{ max-width: 100%;}/* Code */pre{ margin: 1rem; background-color: #EEE; padding: 0.5rem; border-radius: 0.2rem; font-size: var(--font-size-small) !important;}.outline-3{ display: grid; grid-template-columns: 40fr 60fr;} /* Responsive content positioning */@media only screen and (min-width: 750px) /* Large screens */{ .outline-3{ margin: 0vh 10vw; } .outline-text-2, #table-of-contents{ padding: 0vh 10vw; }}@media only screen and (max-width: 750px) /* Small screens */{ .outline-3{ margin: 0vh 5vw; display: block; } .outline-text-2, #table-of-contents{ padding: 0vh 5vw; }}blockquote{ border-left: 0.2rem solid purple; padding-left: 1rem; font-style: italic;}p, pre, ol, ul, table, code{ color: #1A1A1A;}table, blockquote, pre, ol, ul, p, #postamble{ margin-top: 1rem; margin-bottom: 1rem;}h1, h2, h3, h4, h5, h6{ color: #0A0A0A;}.tag{ margin-top: 0.5rem; display: block; color: white; font-size: var(--font-size-xsmall);}.tag > span{ font-weight: 400; font-size: 0.6rem; background-color: purple; text-transform: uppercase; border-radius: 2px; width: fit-content; height: auto; padding: 1px 5px; margin: 1px;}/* Stripe table */tr:nth-child(even) { background-color: #EEE;}.title{ padding: 2vh 5vw;}pre{ font-family: "Courier New", monospace; font-size: var(--font-size-4)}.org-org-meta-line{ color: purple;}.org-keyword{ color: purple;}a{ color: purple;}.underline{ text-decoration: underline;}.todo{ color: #7D161A; font-weight: 400;}.done{ color: purple; font-weight: 400;}/* Postamble */#postamble{ text-align: center; width: 100%;}#postamble > p{ display: inline; font-size: var(--font-size-4)} .outline-text-2, .outline-text-3, .outline-text-4{ max-width: 100%; overflow-x: auto;}
|
||||
#+HTML_HEAD: </style>
|
||||
@@ -1,155 +0,0 @@
|
||||
/* Base */
|
||||
html,
|
||||
body {
|
||||
background-color: #222;
|
||||
min-height: 100%;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
body {
|
||||
color: #fafafa;
|
||||
font-family: "Courier New";
|
||||
}
|
||||
|
||||
::selection {
|
||||
background-color: #2ecc40;
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Responsive content positioning */
|
||||
@media only screen and (min-width: 1020px) /* Large screens */
|
||||
{
|
||||
body{
|
||||
padding: 10vh 25vw;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 1020px) and (min-width: 750px) /* Small screens */
|
||||
{
|
||||
body{
|
||||
padding: 5vh 10vw;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 750px) /* Small screens */
|
||||
{
|
||||
body{
|
||||
padding: 2vh 5vw;
|
||||
}
|
||||
}
|
||||
|
||||
/* Headers */
|
||||
h1{font-size: 2.5rem;}
|
||||
h2{font-size: 1.7rem;}
|
||||
h1 > .subtitle, h3, h4, h5, h6{font-size: 1.3rem;}
|
||||
|
||||
.title{
|
||||
margin-bottom: 2.5rem;
|
||||
}
|
||||
|
||||
/* Padding & Margin */
|
||||
* {margin: 0; padding: 0;}
|
||||
pre, blockquote, ul, ol, p, table{
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
h1, h2{margin-top: 2rem; line-height: 2rem;}
|
||||
h3, h4, h5, h6{margin-top: 1rem;}
|
||||
|
||||
|
||||
/* Links */
|
||||
a, a:visited {
|
||||
color: #01ff70;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
a:hover, a:focus, a:active {
|
||||
color: #2ecc40;
|
||||
}
|
||||
|
||||
/* Code */
|
||||
pre {
|
||||
font-family: "Courier New";
|
||||
padding: .5rem;
|
||||
background-color: #333;
|
||||
padding: 0.5rem;
|
||||
border-radius: 0.2rem;
|
||||
font-size: 0.9rem;
|
||||
color: #EEE;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.org-keyword{
|
||||
color: #01ff70;
|
||||
}
|
||||
|
||||
.org-rainbow-delimiters-depth-1{
|
||||
color: #2ecc40;
|
||||
}
|
||||
|
||||
.org-rainbow-delimiters-depth-2{
|
||||
color: #01ff70;
|
||||
}
|
||||
|
||||
/* Blockquotes */
|
||||
blockquote {
|
||||
border-left: 3px solid #01ff70;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
li{
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
/* Tags */
|
||||
.tag{
|
||||
margin-top: 0.5rem;
|
||||
display: block;
|
||||
color: white;
|
||||
font-size: var(--font-size-xsmall);
|
||||
}
|
||||
|
||||
.tag > span{
|
||||
font-weight: 400;
|
||||
font-size: 0.8rem;
|
||||
background-color: #444;
|
||||
text-transform: uppercase;
|
||||
border-radius: 2px;
|
||||
width: fit-content;
|
||||
height: auto;
|
||||
padding: 1px 5px;
|
||||
}
|
||||
|
||||
/* Keywords */
|
||||
.todo{
|
||||
color: #2ecc40;
|
||||
}
|
||||
|
||||
.done{
|
||||
color: #444;
|
||||
}
|
||||
|
||||
/* Overflows */
|
||||
.outline-text-2, .outline-text-3, .outline-text-4{
|
||||
max-width: 100%;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
/* Table */
|
||||
tr:nth-child(even) {
|
||||
background-color: #333;
|
||||
}
|
||||
|
||||
th, td{
|
||||
padding: 0.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.underline{
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
img{
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
@@ -1,134 +0,0 @@
|
||||
#+SETUPFILE: ~/.emacs.d/org-styles/html/retro_dark.theme
|
||||
#+TITLE: Retro Dark
|
||||
#+AUTHOR: Jesse Kelly (jessekelly881)
|
||||
#+EMAIL: mail@blablub.nil
|
||||
#+OPTIONS: ^:nil p:t
|
||||
|
||||
* Retro Dark
|
||||
Original: https://github.com/jessekelly881/Theme-Retro
|
||||
|
||||
Includes:
|
||||
- [X] CSS
|
||||
- [ ] JAVASCRIPT
|
||||
|
||||
Available as:
|
||||
- [X] CSS FILE
|
||||
- [ ] JS FILE
|
||||
- [X] SETUPFILE
|
||||
|
||||
* Lists
|
||||
** Todo List
|
||||
*** TODO First todo
|
||||
*** DONE First Done with Date
|
||||
CLOSED: [2021-02-18 Thu 10:12]
|
||||
*** TODO Scheduled
|
||||
SCHEDULED: <2021-02-18 Thu>
|
||||
*** TODO Deadline
|
||||
DEADLINE: <2021-02-18 Thu>
|
||||
*** TODO Date
|
||||
<2021-02-18 Thu>
|
||||
|
||||
** Simple list
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
|
||||
** Sorted List
|
||||
1. List item
|
||||
2. List item
|
||||
3. List item
|
||||
4. List item
|
||||
|
||||
** Checkbox
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
|
||||
|
||||
* H1
|
||||
H1 Text
|
||||
** H2
|
||||
H2 Text
|
||||
*** H3
|
||||
H3 Text
|
||||
**** H4
|
||||
H4 Text
|
||||
***** H5
|
||||
H5 Text
|
||||
****** H6
|
||||
H6 Text
|
||||
******* H7
|
||||
H7 Text
|
||||
|
||||
|
||||
|
||||
* Table
|
||||
|
||||
| a | b | c | d | e | f |
|
||||
|----+----+----+----+----+----|
|
||||
| 0 | 1 | 2 | 3 | 4 | 5 |
|
||||
| 6 | 7 | 8 | 9 | 10 | 11 |
|
||||
| 12 | 13 | 14 | 15 | 16 | 17 |
|
||||
| 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 |
|
||||
|
||||
|
||||
* Blocks
|
||||
** Center
|
||||
#+begin_center
|
||||
This is a center block
|
||||
#+end_center
|
||||
|
||||
** Comment
|
||||
#+begin_comment
|
||||
This is a comment block
|
||||
#+end_comment
|
||||
|
||||
** Example
|
||||
#+begin_example
|
||||
This is an example block
|
||||
#+end_example
|
||||
|
||||
** Quote
|
||||
#+begin_quote
|
||||
This is a quote block
|
||||
#+end_quote
|
||||
|
||||
** Verse
|
||||
#+begin_verse
|
||||
This is a verse block
|
||||
#+end_verse
|
||||
|
||||
|
||||
** Source Blocks
|
||||
*** Python
|
||||
#+begin_src python :results output :exports both
|
||||
for i in range(10):
|
||||
print(i)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
#+begin_example
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
#+end_example
|
||||
|
||||
*** Elisp
|
||||
#+begin_src emacs-lisp :exports both
|
||||
(car '(a b c d))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: a
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#+HTML_HEAD: <style type="text/css">
|
||||
#+HTML_HEAD: /* Base */html,body { background-color: #222; min-height: 100%; line-height: 1.5;}body { color: #fafafa; font-family: "Courier New";}::selection { background-color: #2ecc40; color: white;}/* Responsive content positioning */@media only screen and (min-width: 1020px) /* Large screens */{ body{ padding: 10vh 25vw; }}@media only screen and (max-width: 1020px) and (min-width: 750px) /* Small screens */{ body{ padding: 5vh 10vw; }}@media only screen and (max-width: 750px) /* Small screens */{ body{ padding: 2vh 5vw; }}/* Headers */h1{font-size: 2.5rem;}h2{font-size: 1.7rem;}h1 > .subtitle, h3, h4, h5, h6{font-size: 1.3rem;}.title{ margin-bottom: 2.5rem;}/* Padding & Margin */* {margin: 0; padding: 0;}pre, blockquote, ul, ol, p, table{ margin: 1rem 0;}h1, h2{margin-top: 2rem; line-height: 2rem;}h3, h4, h5, h6{margin-top: 1rem;}/* Links */a, a:visited { color: #01ff70; text-decoration: underline;}a:hover, a:focus, a:active { color: #2ecc40;}/* Code */pre { font-family: "Courier New"; padding: .5rem; background-color: #333; padding: 0.5rem; border-radius: 0.2rem; font-size: 0.9rem; color: #EEE; overflow-x: auto;}.org-keyword{ color: #01ff70;}.org-rainbow-delimiters-depth-1{ color: #2ecc40;}.org-rainbow-delimiters-depth-2{ color: #01ff70;}/* Blockquotes */blockquote { border-left: 3px solid #01ff70; padding-left: 1rem;}li{ list-style-position: inside;}/* Tags */.tag{ margin-top: 0.5rem; display: block; color: white; font-size: var(--font-size-xsmall);}.tag > span{ font-weight: 400; font-size: 0.8rem; background-color: #444; text-transform: uppercase; border-radius: 2px; width: fit-content; height: auto; padding: 1px 5px;}/* Keywords */.todo{ color: #2ecc40;}.done{ color: #444;}/* Overflows */.outline-text-2, .outline-text-3, .outline-text-4{ max-width: 100%; overflow-x: auto;}/* Table */tr:nth-child(even) { background-color: #333;}th, td{ padding: 0.5rem; text-align: center;}.underline{ text-decoration: underline;}img{ max-width: 100%; height: auto;}
|
||||
#+HTML_HEAD: </style>
|
||||
@@ -1,62 +0,0 @@
|
||||
html,body,div,span,dl,dt,dd,ul,ol,li,a,table,h1,h2,h3,h4,h5,h6,p,pre,form,fieldset,blockquote,.src,.example{margin:0px;padding:0px;font-weight:normal;text-decoration:none;font-size:inherit;color:inherit;}
|
||||
.section-number-1,.section-number-2,.section-number-3,.section-number-4,.section-number-5,.section-number-6{font-weight:inherit;}
|
||||
.float-right{float:right;}
|
||||
.author{color:#666;line-height:3em;}
|
||||
body{ font:87.5% "Georgia Serif", Times, Palatino, "Times New Roman", serif; background: #DCDCDC;}
|
||||
a{color:blue;}
|
||||
html>body{font-size:14px;}
|
||||
body{ width:54em; padding:1.5em; padding-top:6em; margin: auto;}
|
||||
p{ line-height:1.5em; font-size:1em; margin-top:1.5em; margin-bottom:1.5em;}
|
||||
.post_list{ margin-top:1.5em;}
|
||||
.title{text-align:left;}
|
||||
h1{font-size:2.5em;line-height:1.2em;}
|
||||
h2{font-size:1.5em;line-height:1em;margin-top:2em;margin-bottom:1em;}
|
||||
h3{ font-size:1.1667em; line-height: 1.286em; margin-top:1.929em; margin-bottom:0.643em; font-weight:bolder;}
|
||||
h4{ font-weight:bold; line-height:3em;}
|
||||
/*p + dl{ margin-top:-1.5em; border:1px solid red;}
|
||||
*/dt{font-weight:bold;}
|
||||
dd{padding-left:1.5em;}
|
||||
li{ font-size:100%; line-height:1.5em;}
|
||||
div{margin:0!important;padding:0!important;}
|
||||
/*table{display:none;}
|
||||
*/.src,.example{margin:0;padding:1em;font-size:1em;line-height:1.5em;}
|
||||
.src{background:#444;color:#fff;}
|
||||
.example{background:#242834;color:#fff;padding:.75em}
|
||||
.header{ font-family:Arial,Helvetica,Verdana,sans-serif; vertical-align:text-top; position:absolute; top:0px;left:0px; right:0px; background:#345; padding:.75em 1.5em!important; border-bottom:1.5em solid #EBD6D6; border-bottom-color:#9FB8D3; background:#0F4D92; border-bottom:1em solid #cdf; background:#444; background:#49A; background:transparent; background:#eef0ff; background:#933; background:#A55; border-color:#EDD; /*background: #939; border-color:#EDE;*/ /* background:#359; */ /* border-color:#9AC; */}
|
||||
.header h1{font:1.75em Arial,Helvetica,Verdana,sans-serif;line-height:1.166em;font-weight:bold;color:#b90;color:#06a;color:#fff;text-shadow: #822 0px 0px 2px;font-weight:normal;display:inline;}
|
||||
.header h1 em{ color:#b90; color:#fc2; color:#b90; color:#db2; color:#fd4; font-weight:bold; font-style:normal;}
|
||||
.header * {vertical-align:middle;}
|
||||
.header ul { display:inline; padding-left:1.5em; margin-left:0!important;}
|
||||
.header li { display:inline; padding:0 .75em;}
|
||||
.header li a{ text-decoration:none; color:#ffd;}
|
||||
/*dl{display:none;}
|
||||
*/ol{margin-left:1.5em;}
|
||||
ul{ list-style-type: disc; margin-left:1.5em;}
|
||||
ul ul{ list-style-type:circle;}
|
||||
#table-of-contents ul{list-style-type:none;}
|
||||
#text-table-of-contents > ul:first-child > li > a{ font-weight:bold;}
|
||||
#postamble p,#postamble a{ font-size:.857em; line-height:1.75em; padding:0; margin:0;}
|
||||
#postamble{ margin:1.75em 0!important; border-top:1px solid #888;}
|
||||
blockquote{ margin-left:1em;}
|
||||
/*** blue **/a{}
|
||||
.header a{background:inherit;}
|
||||
h1,h2,h3,h4,h5,h6, #text-table-of-contents li{ color:#026; color:#0A3361; font-weight:normal;}
|
||||
.header{background:#0F4D92;border-bottom-color:#AFC4DB}
|
||||
/*.header h1{text-shadow: #228 0px 0px 2px;}
|
||||
*/h1,h2,h3,h4,h5,h6{ color:#373737; font-weight:bolder;}
|
||||
h1.title{font-weight:normal;font-size:3em;line-height:1em;}
|
||||
body{width:48em;}
|
||||
img{max-width:48em;}
|
||||
body{text-align:justify; font:12px "Lucida Grande","Trebuchet MS","Bitstream Vera Sans",Verdana,Helvetica,sans-serif !important; color:#272727;}
|
||||
code{ font-weight:inherit; color:#048; color:black;}
|
||||
a{color:#00e}
|
||||
a:visited{color:#551A8B}
|
||||
.figure { background:#ddd; border:1px solid #ccc; font-size:.90em; line-height:1.666em; padding:1.5em!important; text-align:left!important; margin-bottom:1.666em;}
|
||||
.outline-2{ margin:3em 0!important;}
|
||||
body{padding-top:9em;padding-left:3em;}
|
||||
.header{ padding-left:3!important;}
|
||||
.header h1, .header h1 em { text-shadow:none; font-size:1.5em!important;}
|
||||
.header { background:transparent; padding-left:3em!important; border-bottom:none; color:inherit!important; background:#dde8ff; border-bottom:1px solid #c3d9ff;}
|
||||
.header h1, .header h1 em { text-shadow:none; color:#06c; font-family:"Georgia Serif", Times, Palatino, "Times New Roman", serif;}
|
||||
.header li a { color:inherit!important; text-decoration:underline;}
|
||||
#text-table-of-contents a {}
|
||||
@@ -1,132 +0,0 @@
|
||||
#+SETUPFILE: ~/.emacs.d/org-styles/html/simple_gray.theme
|
||||
#+TITLE: Simple Gray
|
||||
#+AUTHOR: Unknown
|
||||
#+EMAIL: mail@blablub.nil
|
||||
#+OPTIONS: ^:nil p:t
|
||||
|
||||
* Simple Gray
|
||||
Includes:
|
||||
- [X] CSS
|
||||
- [ ] JAVASCRIPT
|
||||
|
||||
Available as:
|
||||
- [X] CSS FILE
|
||||
- [ ] JS FILE
|
||||
- [X] SETUPFILE
|
||||
|
||||
* Lists
|
||||
** Todo List
|
||||
*** TODO First todo
|
||||
*** DONE First Done with Date
|
||||
CLOSED: [2021-02-18 Thu 10:12]
|
||||
*** TODO Scheduled
|
||||
SCHEDULED: <2021-02-18 Thu>
|
||||
*** TODO Deadline
|
||||
DEADLINE: <2021-02-18 Thu>
|
||||
*** TODO Date
|
||||
<2021-02-18 Thu>
|
||||
|
||||
** Simple list
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
|
||||
** Sorted List
|
||||
1. List item
|
||||
2. List item
|
||||
3. List item
|
||||
4. List item
|
||||
|
||||
** Checkbox
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
|
||||
|
||||
* H1
|
||||
H1 Text
|
||||
** H2
|
||||
H2 Text
|
||||
*** H3
|
||||
H3 Text
|
||||
**** H4
|
||||
H4 Text
|
||||
***** H5
|
||||
H5 Text
|
||||
****** H6
|
||||
H6 Text
|
||||
******* H7
|
||||
H7 Text
|
||||
|
||||
|
||||
|
||||
* Table
|
||||
|
||||
| a | b | c | d | e | f |
|
||||
|----+----+----+----+----+----|
|
||||
| 0 | 1 | 2 | 3 | 4 | 5 |
|
||||
| 6 | 7 | 8 | 9 | 10 | 11 |
|
||||
| 12 | 13 | 14 | 15 | 16 | 17 |
|
||||
| 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 |
|
||||
|
||||
|
||||
* Blocks
|
||||
** Center
|
||||
#+begin_center
|
||||
This is a center block
|
||||
#+end_center
|
||||
|
||||
** Comment
|
||||
#+begin_comment
|
||||
This is a comment block
|
||||
#+end_comment
|
||||
|
||||
** Example
|
||||
#+begin_example
|
||||
This is an example block
|
||||
#+end_example
|
||||
|
||||
** Quote
|
||||
#+begin_quote
|
||||
This is a quote block
|
||||
#+end_quote
|
||||
|
||||
** Verse
|
||||
#+begin_verse
|
||||
This is a verse block
|
||||
#+end_verse
|
||||
|
||||
|
||||
** Source Blocks
|
||||
*** Python
|
||||
#+begin_src python :results output :exports both
|
||||
for i in range(10):
|
||||
print(i)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
#+begin_example
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
#+end_example
|
||||
|
||||
*** Elisp
|
||||
#+begin_src emacs-lisp :exports both
|
||||
(car '(a b c d))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: a
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#+HTML_HEAD: <style type="text/css">
|
||||
#+HTML_HEAD: html,body,div,span,dl,dt,dd,ul,ol,li,a,table,h1,h2,h3,h4,h5,h6,p,pre,form,fieldset,blockquote,.src,.example{margin:0px;padding:0px;font-weight:normal;text-decoration:none;font-size:inherit;color:inherit;}.section-number-1,.section-number-2,.section-number-3,.section-number-4,.section-number-5,.section-number-6{font-weight:inherit;}.float-right{float:right;}.author{color:#666;line-height:3em;}body{ font:87.5% "Georgia Serif", Times, Palatino, "Times New Roman", serif; background: #DCDCDC;}a{color:blue;}html>body{font-size:14px;}body{ width:54em; padding:1.5em; padding-top:6em; margin: auto;}p{ line-height:1.5em; font-size:1em; margin-top:1.5em; margin-bottom:1.5em;}.post_list{ margin-top:1.5em;}.title{text-align:left;}h1{font-size:2.5em;line-height:1.2em;}h2{font-size:1.5em;line-height:1em;margin-top:2em;margin-bottom:1em;}h3{ font-size:1.1667em; line-height: 1.286em; margin-top:1.929em; margin-bottom:0.643em; font-weight:bolder;}h4{ font-weight:bold; line-height:3em;}/*p + dl{ margin-top:-1.5em; border:1px solid red;}*/dt{font-weight:bold;}dd{padding-left:1.5em;}li{ font-size:100%; line-height:1.5em;}div{margin:0!important;padding:0!important;}/*table{display:none;}*/.src,.example{margin:0;padding:1em;font-size:1em;line-height:1.5em;}.src{background:#444;color:#fff;}.example{background:#242834;color:#fff;padding:.75em}.header{ font-family:Arial,Helvetica,Verdana,sans-serif; vertical-align:text-top; position:absolute; top:0px;left:0px; right:0px; background:#345; padding:.75em 1.5em!important; border-bottom:1.5em solid #EBD6D6; border-bottom-color:#9FB8D3; background:#0F4D92; border-bottom:1em solid #cdf; background:#444; background:#49A; background:transparent; background:#eef0ff; background:#933; background:#A55; border-color:#EDD; /*background: #939; border-color:#EDE;*/ /* background:#359; */ /* border-color:#9AC; */}.header h1{font:1.75em Arial,Helvetica,Verdana,sans-serif;line-height:1.166em;font-weight:bold;color:#b90;color:#06a;color:#fff;text-shadow: #822 0px 0px 2px;font-weight:normal;display:inline;}.header h1 em{ color:#b90; color:#fc2; color:#b90; color:#db2; color:#fd4; font-weight:bold; font-style:normal;}.header * {vertical-align:middle;}.header ul { display:inline; padding-left:1.5em; margin-left:0!important;}.header li { display:inline; padding:0 .75em;}.header li a{ text-decoration:none; color:#ffd;}/*dl{display:none;}*/ol{margin-left:1.5em;}ul{ list-style-type: disc; margin-left:1.5em;}ul ul{ list-style-type:circle;}#table-of-contents ul{list-style-type:none;}#text-table-of-contents > ul:first-child > li > a{ font-weight:bold;}#postamble p,#postamble a{ font-size:.857em; line-height:1.75em; padding:0; margin:0;}#postamble{ margin:1.75em 0!important; border-top:1px solid #888;}blockquote{ margin-left:1em;}/*** blue **/a{}.header a{background:inherit;}h1,h2,h3,h4,h5,h6, #text-table-of-contents li{ color:#026; color:#0A3361; font-weight:normal;}.header{background:#0F4D92;border-bottom-color:#AFC4DB}/*.header h1{text-shadow: #228 0px 0px 2px;}*/h1,h2,h3,h4,h5,h6{ color:#373737; font-weight:bolder;}h1.title{font-weight:normal;font-size:3em;line-height:1em;}body{width:48em;}img{max-width:48em;}body{text-align:justify; font:12px "Lucida Grande","Trebuchet MS","Bitstream Vera Sans",Verdana,Helvetica,sans-serif !important; color:#272727;}code{ font-weight:inherit; color:#048; color:black;}a{color:#00e}a:visited{color:#551A8B}.figure { background:#ddd; border:1px solid #ccc; font-size:.90em; line-height:1.666em; padding:1.5em!important; text-align:left!important; margin-bottom:1.666em;}.outline-2{ margin:3em 0!important;}body{padding-top:9em;padding-left:3em;}.header{ padding-left:3!important;}.header h1, .header h1 em { text-shadow:none; font-size:1.5em!important;}.header { background:transparent; padding-left:3em!important; border-bottom:none; color:inherit!important; background:#dde8ff; border-bottom:1px solid #c3d9ff;}.header h1, .header h1 em { text-shadow:none; color:#06c; font-family:"Georgia Serif", Times, Palatino, "Times New Roman", serif;}.header li a { color:inherit!important; text-decoration:underline;}#text-table-of-contents a {}
|
||||
#+HTML_HEAD: </style>
|
||||
@@ -1,132 +0,0 @@
|
||||
#+SETUPFILE: ~/.emacs.d/org-styles/html/simple_inline.theme
|
||||
#+TITLE: Simple Inline
|
||||
#+AUTHOR: Unknown
|
||||
#+EMAIL: mail@blablub.nil
|
||||
#+OPTIONS: ^:nil p:t
|
||||
|
||||
* Simple Inline
|
||||
Includes:
|
||||
- [X] CSS
|
||||
- [ ] JAVASCRIPT
|
||||
|
||||
Available as:
|
||||
- [ ] CSS FILE
|
||||
- [ ] JS FILE
|
||||
- [X] SETUPFILE
|
||||
|
||||
* Lists
|
||||
** Todo List
|
||||
*** TODO First todo
|
||||
*** DONE First Done with Date
|
||||
CLOSED: [2021-02-18 Thu 10:12]
|
||||
*** TODO Scheduled
|
||||
SCHEDULED: <2021-02-18 Thu>
|
||||
*** TODO Deadline
|
||||
DEADLINE: <2021-02-18 Thu>
|
||||
*** TODO Date
|
||||
<2021-02-18 Thu>
|
||||
|
||||
** Simple list
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
|
||||
** Sorted List
|
||||
1. List item
|
||||
2. List item
|
||||
3. List item
|
||||
4. List item
|
||||
|
||||
** Checkbox
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
|
||||
|
||||
* H1
|
||||
H1 Text
|
||||
** H2
|
||||
H2 Text
|
||||
*** H3
|
||||
H3 Text
|
||||
**** H4
|
||||
H4 Text
|
||||
***** H5
|
||||
H5 Text
|
||||
****** H6
|
||||
H6 Text
|
||||
******* H7
|
||||
H7 Text
|
||||
|
||||
|
||||
|
||||
* Table
|
||||
|
||||
| a | b | c | d | e | f |
|
||||
|----+----+----+----+----+----|
|
||||
| 0 | 1 | 2 | 3 | 4 | 5 |
|
||||
| 6 | 7 | 8 | 9 | 10 | 11 |
|
||||
| 12 | 13 | 14 | 15 | 16 | 17 |
|
||||
| 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 |
|
||||
|
||||
|
||||
* Blocks
|
||||
** Center
|
||||
#+begin_center
|
||||
This is a center block
|
||||
#+end_center
|
||||
|
||||
** Comment
|
||||
#+begin_comment
|
||||
This is a comment block
|
||||
#+end_comment
|
||||
|
||||
** Example
|
||||
#+begin_example
|
||||
This is an example block
|
||||
#+end_example
|
||||
|
||||
** Quote
|
||||
#+begin_quote
|
||||
This is a quote block
|
||||
#+end_quote
|
||||
|
||||
** Verse
|
||||
#+begin_verse
|
||||
This is a verse block
|
||||
#+end_verse
|
||||
|
||||
|
||||
** Source Blocks
|
||||
*** Python
|
||||
#+begin_src python :results output :exports both
|
||||
for i in range(10):
|
||||
print(i)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
#+begin_example
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
#+end_example
|
||||
|
||||
*** Elisp
|
||||
#+begin_src emacs-lisp :exports both
|
||||
(car '(a b c d))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: a
|
||||
|
||||
|
||||
@@ -1,132 +0,0 @@
|
||||
#+SETUPFILE: ~/.emacs.d/org-styles/html/simple_white.theme
|
||||
#+TITLE: Simple White
|
||||
#+AUTHOR: Unknown
|
||||
#+EMAIL: mail@blablub.nil
|
||||
#+OPTIONS: ^:nil p:t
|
||||
|
||||
* Simple White
|
||||
Includes:
|
||||
- [X] CSS
|
||||
- [ ] JAVASCRIPT
|
||||
|
||||
Available as:
|
||||
- [ ] CSS FILE
|
||||
- [ ] JS FILE
|
||||
- [X] SETUPFILE
|
||||
|
||||
* Lists
|
||||
** Todo List
|
||||
*** TODO First todo
|
||||
*** DONE First Done with Date
|
||||
CLOSED: [2021-02-18 Thu 10:12]
|
||||
*** TODO Scheduled
|
||||
SCHEDULED: <2021-02-18 Thu>
|
||||
*** TODO Deadline
|
||||
DEADLINE: <2021-02-18 Thu>
|
||||
*** TODO Date
|
||||
<2021-02-18 Thu>
|
||||
|
||||
** Simple list
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
|
||||
** Sorted List
|
||||
1. List item
|
||||
2. List item
|
||||
3. List item
|
||||
4. List item
|
||||
|
||||
** Checkbox
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
|
||||
|
||||
* H1
|
||||
H1 Text
|
||||
** H2
|
||||
H2 Text
|
||||
*** H3
|
||||
H3 Text
|
||||
**** H4
|
||||
H4 Text
|
||||
***** H5
|
||||
H5 Text
|
||||
****** H6
|
||||
H6 Text
|
||||
******* H7
|
||||
H7 Text
|
||||
|
||||
|
||||
|
||||
* Table
|
||||
|
||||
| a | b | c | d | e | f |
|
||||
|----+----+----+----+----+----|
|
||||
| 0 | 1 | 2 | 3 | 4 | 5 |
|
||||
| 6 | 7 | 8 | 9 | 10 | 11 |
|
||||
| 12 | 13 | 14 | 15 | 16 | 17 |
|
||||
| 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 |
|
||||
|
||||
|
||||
* Blocks
|
||||
** Center
|
||||
#+begin_center
|
||||
This is a center block
|
||||
#+end_center
|
||||
|
||||
** Comment
|
||||
#+begin_comment
|
||||
This is a comment block
|
||||
#+end_comment
|
||||
|
||||
** Example
|
||||
#+begin_example
|
||||
This is an example block
|
||||
#+end_example
|
||||
|
||||
** Quote
|
||||
#+begin_quote
|
||||
This is a quote block
|
||||
#+end_quote
|
||||
|
||||
** Verse
|
||||
#+begin_verse
|
||||
This is a verse block
|
||||
#+end_verse
|
||||
|
||||
|
||||
** Source Blocks
|
||||
*** Python
|
||||
#+begin_src python :results output :exports both
|
||||
for i in range(10):
|
||||
print(i)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
#+begin_example
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
#+end_example
|
||||
|
||||
*** Elisp
|
||||
#+begin_src emacs-lisp :exports both
|
||||
(car '(a b c d))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: a
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#+OPTIONS: org-html-head-include-default-style:nil
|
||||
|
||||
#+HTML_HEAD: <style type="text/css"> * { font-family: "Georgia";}h1, h2, h3, h4, h5, h6,h1 span, h2 span, h3 span, h4 span, h5 span, h6 span,h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-family: "Arial";}pre, code { font-family: Monaco, "Courier New", Courier;}#text-table-of-contents a { font-family: "Arial";}/* @end *//* @group Baseline */body { font-size: 14px; line-height: 1.5em; padding: 0; margin: 0;}h1 { margin: 0; font-size: 1.6666666666666667em; line-height: 0.9em; margin-bottom: 0.9em;}h2 { margin: 0; font-size: 1.5em; line-height: 1em; margin-bottom: 1em;}h3 { margin: 0; font-size: 1.3333333333333333em; line-height: 1.125em; margin-bottom: 1.125em;}h4 { margin: 0; font-size: 1.1666666666666667em; line-height: 1.2857142857142858em; margin-bottom: 1.2857142857142858em;}p, ul, blockquote, pre, td, th, label { margin: 0; font-size: 1em; line-height: 1.5em; margin-bottom: 1.5em;}p.small, #postamble { margin: 0; font-size: 0.8333333333333334em; line-height: 1.8em; margin-bottom: 1.8em;}table { border-collapse: collapse; margin-bottom: 1.5em;}/* @end *//* @group Layout */#content { width: 70em; margin-left: auto; margin-right: auto;}/* #header { height: 10em;}*/#table-of-contents { width: 15em; float: left; overflow: auto;}/* #main { */div.outline-2 { width: 52em; float: right; /* The lines below are useful if the "main" div isn't available and div.outline-2 has to be used. */ position: relative;}#postamble { clear: both; text-align: center;}div.outline-2 pre { width: 40em; overflow: auto;}/* @end *//* @group Header */h1.title { margin-top: 10px; text-align: center;}h1.title { font-size: 3em; font-weight: bold; margin-bottom: 0.8em;}/* @end *//* @group Org Keywords */.todo { color: red;}.done { color: green;}.tag { color: blue; text-transform: lowercase; /* This will be obscured by the surrounding span tag, so blank everything. */ background: #fff; border: none; /* position: relative; text-align: right; right: 1em; */}.timestamp {}.timestamp-kwd { /* keyword associated with a time stamp, like SCHEDULED */}.target { /* target for links */}/* @end *//* @group Table of Contents */#table-of-contents h2 { letter-spacing: -0.1em;}#table-of-contents ul,#table-of-contents ol { padding-left: 1em;}/* @end *//* @group Outline Level 2 */.outline-2 h2 { background: #ffc; border-bottom: 1px solid #ccc;}.outline-2 h2, .outline-2 h3 { letter-spacing: -0.05em;}.outline-2 { padding: 5px; /* margin-bottom: 10px; */ /* border-top: 1px solid #ccc; */}/* @end */td { border: 1px solid #ccc;}h1 span, h2 span, h3 span, h4 span, h5 span, h6 span { background-color: #eee; padding: 2px; border: 1px solid #ccc;}.outline-1, .outline-2, .outline-3, .outline-4, .outline-5, .outline-6 { margin-left: 2em;}a { text-decoration: none; color: #57d; /* TODO: Find a better colour for this. */}a:hover { border-bottom: 1px dotted #57d;}#postamble p { margin: 0px;}.footpara { display: inline; }.footdef { margin-bottom: 3em; font-size: 80%; }/*]]>*/--></style><script type="text/javascript">/*@licstart The following is the entire license notice for theJavaScript code in this tag.Copyright (C) 2012-2013 Free Software Foundation, Inc.The JavaScript code in this tag is free software: you canredistribute it and/or modify it under the terms of the GNUGeneral Public License (GNU GPL) as published by the Free SoftwareFoundation, either version 3 of the License, or (at your option)any later version. The code is distributed WITHOUT ANY WARRANTY;without even the implied warranty of MERCHANTABILITY or FITNESSFOR A PARTICULAR PURPOSE. See the GNU GPL for more details.As additional permission under GNU GPL version 3 section 7, youmay distribute non-source (e.g., minimized or compacted) forms ofthat code without the copy of the GNU GPL normally required bysection 4, provided you include this license notice and a URLthrough which recipients can access the Corresponding Source.@licend The above is the entire license noticefor the JavaScript code in this tag.*/<!--/*--><![CDATA[/*><!--*/ function CodeHighlightOn(elem, id) { var target = document.getElementById(id); if(null != target) { elem.cacheClassElem = elem.className; elem.cacheClassTarget = target.className; target.className = "code-highlighted"; elem.className = "code-highlighted"; } } function CodeHighlightOff(elem, id) { var target = document.getElementById(id); if(elem.cacheClassElem) elem.className = elem.cacheClassElem; if(elem.cacheClassTarget) target.className = elem.cacheClassTarget; }</script>
|
||||
@@ -1,132 +0,0 @@
|
||||
#+SETUPFILE: ~/.emacs.d/org-styles/html/simple_whiteblue.theme
|
||||
#+TITLE: Simple Whiteblue
|
||||
#+AUTHOR: Unknown
|
||||
#+EMAIL: mail@blablub.nil
|
||||
#+OPTIONS: ^:nil p:t
|
||||
|
||||
* Simple Whiteblue
|
||||
Includes:
|
||||
- [X] CSS
|
||||
- [ ] JAVASCRIPT
|
||||
|
||||
Available as:
|
||||
- [ ] CSS FILE
|
||||
- [ ] JS FILE
|
||||
- [X] SETUPFILE
|
||||
|
||||
* Lists
|
||||
** Todo List
|
||||
*** TODO First todo
|
||||
*** DONE First Done with Date
|
||||
CLOSED: [2021-02-18 Thu 10:12]
|
||||
*** TODO Scheduled
|
||||
SCHEDULED: <2021-02-18 Thu>
|
||||
*** TODO Deadline
|
||||
DEADLINE: <2021-02-18 Thu>
|
||||
*** TODO Date
|
||||
<2021-02-18 Thu>
|
||||
|
||||
** Simple list
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
|
||||
** Sorted List
|
||||
1. List item
|
||||
2. List item
|
||||
3. List item
|
||||
4. List item
|
||||
|
||||
** Checkbox
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
|
||||
|
||||
* H1
|
||||
H1 Text
|
||||
** H2
|
||||
H2 Text
|
||||
*** H3
|
||||
H3 Text
|
||||
**** H4
|
||||
H4 Text
|
||||
***** H5
|
||||
H5 Text
|
||||
****** H6
|
||||
H6 Text
|
||||
******* H7
|
||||
H7 Text
|
||||
|
||||
|
||||
|
||||
* Table
|
||||
|
||||
| a | b | c | d | e | f |
|
||||
|----+----+----+----+----+----|
|
||||
| 0 | 1 | 2 | 3 | 4 | 5 |
|
||||
| 6 | 7 | 8 | 9 | 10 | 11 |
|
||||
| 12 | 13 | 14 | 15 | 16 | 17 |
|
||||
| 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 |
|
||||
|
||||
|
||||
* Blocks
|
||||
** Center
|
||||
#+begin_center
|
||||
This is a center block
|
||||
#+end_center
|
||||
|
||||
** Comment
|
||||
#+begin_comment
|
||||
This is a comment block
|
||||
#+end_comment
|
||||
|
||||
** Example
|
||||
#+begin_example
|
||||
This is an example block
|
||||
#+end_example
|
||||
|
||||
** Quote
|
||||
#+begin_quote
|
||||
This is a quote block
|
||||
#+end_quote
|
||||
|
||||
** Verse
|
||||
#+begin_verse
|
||||
This is a verse block
|
||||
#+end_verse
|
||||
|
||||
|
||||
** Source Blocks
|
||||
*** Python
|
||||
#+begin_src python :results output :exports both
|
||||
for i in range(10):
|
||||
print(i)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
#+begin_example
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
#+end_example
|
||||
|
||||
*** Elisp
|
||||
#+begin_src emacs-lisp :exports both
|
||||
(car '(a b c d))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: a
|
||||
|
||||
|
||||
@@ -1,132 +0,0 @@
|
||||
#+SETUPFILE: ~/.emacs.d/org-styles/html/solarized_dark.theme
|
||||
#+TITLE: Solarized Dark
|
||||
#+AUTHOR: Unknown
|
||||
#+EMAIL: mail@blablub.nil
|
||||
#+OPTIONS: ^:nil p:t
|
||||
|
||||
* Solarized Dark
|
||||
Includes:
|
||||
- [X] CSS
|
||||
- [ ] JAVASCRIPT
|
||||
|
||||
Available as:
|
||||
- [ ] CSS FILE
|
||||
- [ ] JS FILE
|
||||
- [X] SETUPFILE
|
||||
|
||||
* Lists
|
||||
** Todo List
|
||||
*** TODO First todo
|
||||
*** DONE First Done with Date
|
||||
CLOSED: [2021-02-18 Thu 10:12]
|
||||
*** TODO Scheduled
|
||||
SCHEDULED: <2021-02-18 Thu>
|
||||
*** TODO Deadline
|
||||
DEADLINE: <2021-02-18 Thu>
|
||||
*** TODO Date
|
||||
<2021-02-18 Thu>
|
||||
|
||||
** Simple list
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
|
||||
** Sorted List
|
||||
1. List item
|
||||
2. List item
|
||||
3. List item
|
||||
4. List item
|
||||
|
||||
** Checkbox
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
|
||||
|
||||
* H1
|
||||
H1 Text
|
||||
** H2
|
||||
H2 Text
|
||||
*** H3
|
||||
H3 Text
|
||||
**** H4
|
||||
H4 Text
|
||||
***** H5
|
||||
H5 Text
|
||||
****** H6
|
||||
H6 Text
|
||||
******* H7
|
||||
H7 Text
|
||||
|
||||
|
||||
|
||||
* Table
|
||||
|
||||
| a | b | c | d | e | f |
|
||||
|----+----+----+----+----+----|
|
||||
| 0 | 1 | 2 | 3 | 4 | 5 |
|
||||
| 6 | 7 | 8 | 9 | 10 | 11 |
|
||||
| 12 | 13 | 14 | 15 | 16 | 17 |
|
||||
| 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 |
|
||||
|
||||
|
||||
* Blocks
|
||||
** Center
|
||||
#+begin_center
|
||||
This is a center block
|
||||
#+end_center
|
||||
|
||||
** Comment
|
||||
#+begin_comment
|
||||
This is a comment block
|
||||
#+end_comment
|
||||
|
||||
** Example
|
||||
#+begin_example
|
||||
This is an example block
|
||||
#+end_example
|
||||
|
||||
** Quote
|
||||
#+begin_quote
|
||||
This is a quote block
|
||||
#+end_quote
|
||||
|
||||
** Verse
|
||||
#+begin_verse
|
||||
This is a verse block
|
||||
#+end_verse
|
||||
|
||||
|
||||
** Source Blocks
|
||||
*** Python
|
||||
#+begin_src python :results output :exports both
|
||||
for i in range(10):
|
||||
print(i)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
#+begin_example
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
#+end_example
|
||||
|
||||
*** Elisp
|
||||
#+begin_src emacs-lisp :exports both
|
||||
(car '(a b c d))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: a
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
#+OPTIONS: org-html-head-include-default-style:nil
|
||||
|
||||
#+HTML_HEAD: <style type="text/css">
|
||||
#+HTML_HEAD: article,aside,details,figcaption,figure,footer,header,hgroup,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap;word-wrap:break-word}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}html{font-family:'PT Sans',sans-serif}pre,code{font-family:'Inconsolata',sans-serif}h1,h2,h3,h4,h5,h6{font-family:'PT Sans Narrow',sans-serif;font-weight:700}html{background-color:#073642;color:#839496;margin:1em}body{background-color:#002b36;margin:0 auto;max-width:23cm;border:1pt solid #586e75;padding:1em}code{background-color:#073642;padding:2px}a{color:#b58900}a:visited{color:#cb4b16}a:hover{color:#cb4b16}h1{color:#d33682}h2,h3,h4,h5,h6{color:#859900}pre{background-color:#002b36;color:#839496;border:1pt solid #586e75;padding:1em;box-shadow:5pt 5pt 8pt #073642}pre code{background-color:#002b36}h1{font-size:2.8em}h2{font-size:2.4em}h3{font-size:1.8em}h4{font-size:1.4em}h5{font-size:1.3em}h6{font-size:1.15em}.tag{background-color:#073642;color:#d33682;padding:0 .2em}.todo,.next,.done{color:#002b36;background-color:#dc322f;padding:0 .2em}.tag{-webkit-border-radius:.35em;-moz-border-radius:.35em;border-radius:.35em}.TODO{-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;background-color:#2aa198}.NEXT{-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;background-color:#268bd2}.ACTIVE{-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;background-color:#268bd2}.DONE{-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;background-color:#859900}.WAITING{-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;background-color:#cb4b16}.HOLD{-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;background-color:#d33682}.NOTE{-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;background-color:#d33682}.CANCELLED{-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;background-color:#859900}
|
||||
#+HTML_HEAD: </style>
|
||||
@@ -1,132 +0,0 @@
|
||||
#+SETUPFILE: ~/.emacs.d/org-styles/html/solarized_light.theme
|
||||
#+TITLE: Solarized light
|
||||
#+AUTHOR: Unknown
|
||||
#+EMAIL: mail@blablub.nil
|
||||
#+OPTIONS: ^:nil p:t
|
||||
|
||||
* Solarized light
|
||||
Includes:
|
||||
- [X] CSS
|
||||
- [ ] JAVASCRIPT
|
||||
|
||||
Available as:
|
||||
- [ ] CSS FILE
|
||||
- [ ] JS FILE
|
||||
- [X] SETUPFILE
|
||||
|
||||
* Lists
|
||||
** Todo List
|
||||
*** TODO First todo
|
||||
*** DONE First Done with Date
|
||||
CLOSED: [2021-02-18 Thu 10:12]
|
||||
*** TODO Scheduled
|
||||
SCHEDULED: <2021-02-18 Thu>
|
||||
*** TODO Deadline
|
||||
DEADLINE: <2021-02-18 Thu>
|
||||
*** TODO Date
|
||||
<2021-02-18 Thu>
|
||||
|
||||
** Simple list
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
|
||||
** Sorted List
|
||||
1. List item
|
||||
2. List item
|
||||
3. List item
|
||||
4. List item
|
||||
|
||||
** Checkbox
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
|
||||
|
||||
* H1
|
||||
H1 Text
|
||||
** H2
|
||||
H2 Text
|
||||
*** H3
|
||||
H3 Text
|
||||
**** H4
|
||||
H4 Text
|
||||
***** H5
|
||||
H5 Text
|
||||
****** H6
|
||||
H6 Text
|
||||
******* H7
|
||||
H7 Text
|
||||
|
||||
|
||||
|
||||
* Table
|
||||
|
||||
| a | b | c | d | e | f |
|
||||
|----+----+----+----+----+----|
|
||||
| 0 | 1 | 2 | 3 | 4 | 5 |
|
||||
| 6 | 7 | 8 | 9 | 10 | 11 |
|
||||
| 12 | 13 | 14 | 15 | 16 | 17 |
|
||||
| 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 |
|
||||
|
||||
|
||||
* Blocks
|
||||
** Center
|
||||
#+begin_center
|
||||
This is a center block
|
||||
#+end_center
|
||||
|
||||
** Comment
|
||||
#+begin_comment
|
||||
This is a comment block
|
||||
#+end_comment
|
||||
|
||||
** Example
|
||||
#+begin_example
|
||||
This is an example block
|
||||
#+end_example
|
||||
|
||||
** Quote
|
||||
#+begin_quote
|
||||
This is a quote block
|
||||
#+end_quote
|
||||
|
||||
** Verse
|
||||
#+begin_verse
|
||||
This is a verse block
|
||||
#+end_verse
|
||||
|
||||
|
||||
** Source Blocks
|
||||
*** Python
|
||||
#+begin_src python :results output :exports both
|
||||
for i in range(10):
|
||||
print(i)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
#+begin_example
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
#+end_example
|
||||
|
||||
*** Elisp
|
||||
#+begin_src emacs-lisp :exports both
|
||||
(car '(a b c d))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: a
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
#+OPTIONS: org-html-head-include-default-style:nil
|
||||
|
||||
#+HTML_HEAD: <style type="text/css">
|
||||
#+HTML_HEAD: article,aside,details,figcaption,figure,footer,header,hgroup,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap;word-wrap:break-word}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}html{font-family:'PT Sans',sans-serif}pre,code{font-family:'Inconsolata',sans-serif}h1,h2,h3,h4,h5,h6{font-family:'PT Sans Narrow',sans-serif;font-weight:700}html{background-color:#eee8d5;color:#657b83;margin:1em}body{background-color:#fdf6e3;margin:0 auto;max-width:23cm;border:1pt solid #93a1a1;padding:1em}code{background-color:#eee8d5;padding:2px}a{color:#b58900}a:visited{color:#cb4b16}a:hover{color:#cb4b16}h1{color:#d33682}h2,h3,h4,h5,h6{color:#859900}pre{background-color:#fdf6e3;color:#657b83;border:1pt solid #93a1a1;padding:1em;box-shadow:5pt 5pt 8pt #eee8d5}pre code{background-color:#fdf6e3}h1{font-size:2.8em}h2{font-size:2.4em}h3{font-size:1.8em}h4{font-size:1.4em}h5{font-size:1.3em}h6{font-size:1.15em}.tag{background-color:#eee8d5;color:#d33682;padding:0 .2em}.todo,.next,.done{color:#fdf6e3;background-color:#dc322f;padding:0 .2em}.tag{-webkit-border-radius:.35em;-moz-border-radius:.35em;border-radius:.35em}.TODO{-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;background-color:#2aa198}.NEXT{-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;background-color:#268bd2}.ACTIVE{-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;background-color:#268bd2}.DONE{-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;background-color:#859900}.WAITING{-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;background-color:#cb4b16}.HOLD{-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;background-color:#d33682}.NOTE{-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;background-color:#d33682}.CANCELLED{-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;background-color:#859900}
|
||||
#+HTML_HEAD: </style>
|
||||
@@ -1,132 +0,0 @@
|
||||
#+SETUPFILE: ~/.emacs.d/org-styles/html/stylish_white.theme
|
||||
#+TITLE: Stylish White
|
||||
#+AUTHOR: Unknown
|
||||
#+EMAIL: mail@blablub.nil
|
||||
#+OPTIONS: ^:nil p:t
|
||||
|
||||
* Stylish White
|
||||
Includes:
|
||||
- [X] CSS
|
||||
- [ ] JAVASCRIPT
|
||||
|
||||
Available as:
|
||||
- [ ] CSS FILE
|
||||
- [ ] JS FILE
|
||||
- [X] SETUPFILE
|
||||
|
||||
* Lists
|
||||
** Todo List
|
||||
*** TODO First todo
|
||||
*** DONE First Done with Date
|
||||
CLOSED: [2021-02-18 Thu 10:12]
|
||||
*** TODO Scheduled
|
||||
SCHEDULED: <2021-02-18 Thu>
|
||||
*** TODO Deadline
|
||||
DEADLINE: <2021-02-18 Thu>
|
||||
*** TODO Date
|
||||
<2021-02-18 Thu>
|
||||
|
||||
** Simple list
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
- List item
|
||||
|
||||
** Sorted List
|
||||
1. List item
|
||||
2. List item
|
||||
3. List item
|
||||
4. List item
|
||||
|
||||
** Checkbox
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
- [ ] List item
|
||||
- [X] List item
|
||||
|
||||
|
||||
* H1
|
||||
H1 Text
|
||||
** H2
|
||||
H2 Text
|
||||
*** H3
|
||||
H3 Text
|
||||
**** H4
|
||||
H4 Text
|
||||
***** H5
|
||||
H5 Text
|
||||
****** H6
|
||||
H6 Text
|
||||
******* H7
|
||||
H7 Text
|
||||
|
||||
|
||||
|
||||
* Table
|
||||
|
||||
| a | b | c | d | e | f |
|
||||
|----+----+----+----+----+----|
|
||||
| 0 | 1 | 2 | 3 | 4 | 5 |
|
||||
| 6 | 7 | 8 | 9 | 10 | 11 |
|
||||
| 12 | 13 | 14 | 15 | 16 | 17 |
|
||||
| 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 |
|
||||
|
||||
|
||||
* Blocks
|
||||
** Center
|
||||
#+begin_center
|
||||
This is a center block
|
||||
#+end_center
|
||||
|
||||
** Comment
|
||||
#+begin_comment
|
||||
This is a comment block
|
||||
#+end_comment
|
||||
|
||||
** Example
|
||||
#+begin_example
|
||||
This is an example block
|
||||
#+end_example
|
||||
|
||||
** Quote
|
||||
#+begin_quote
|
||||
This is a quote block
|
||||
#+end_quote
|
||||
|
||||
** Verse
|
||||
#+begin_verse
|
||||
This is a verse block
|
||||
#+end_verse
|
||||
|
||||
|
||||
** Source Blocks
|
||||
*** Python
|
||||
#+begin_src python :results output :exports both
|
||||
for i in range(10):
|
||||
print(i)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
#+begin_example
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
#+end_example
|
||||
|
||||
*** Elisp
|
||||
#+begin_src emacs-lisp :exports both
|
||||
(car '(a b c d))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: a
|
||||
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
#+TITLE: %n
|
||||
#+DESCRIPTION:
|
||||
#+KEYWORDS:
|
||||
#+STARTUP: content
|
||||
#+DATE: %d
|
||||
|
||||
- [[wiki:index][Index]]
|
||||
|
||||
- Related:
|
||||
|
||||
* %n
|
||||
14096
packages/dired+.el
@@ -1,397 +0,0 @@
|
||||
;;; dired-sort-menu+.el --- Extensions to `dired-sort-menu.el'
|
||||
;;
|
||||
;; Filename: dired-sort-menu+.el
|
||||
;; Description: Extensions to `dired-sort-menu.el'
|
||||
;; Author: Drew Adams
|
||||
;; Maintainer: Drew Adams (concat "drew.adams" "@" "oracle" ".com")
|
||||
;; Copyright (C) 2005-2018, Drew Adams, all rights reserved.
|
||||
;; Created: Thu Jul 07 12:39:36 2005
|
||||
;; Version: 0
|
||||
;; Package-Requires: ((dired-sort-menu "0"))
|
||||
;; Last-Updated: Fri Sep 21 13:38:59 2018 (-0700)
|
||||
;; By: dradams
|
||||
;; Update #: 140
|
||||
;; URL: https://www.emacswiki.org/emacs/download/dired-sort-menu%2b.el
|
||||
;; Doc URL: https://emacswiki.org/emacs/DiredSortMenu
|
||||
;; Keywords: directories, diredp, dired
|
||||
;; Compatibility: GNU Emacs: 20.x, 21.x, 22.x, 23.x, 24.x, 25.x, 26.x
|
||||
;;
|
||||
;; Features that might be required by this library:
|
||||
;;
|
||||
;; `dired', `dired-sort-menu', `easymenu', `wid-edit', `widget'.
|
||||
;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;
|
||||
;;; Commentary:
|
||||
;;
|
||||
;; Extensions to `dired-sort-menu.el'
|
||||
;;
|
||||
;; Francis J. Wright <F.J.Wright@maths.qmw.ac.uk> wrote library
|
||||
;; `dired-sort-menu.el'
|
||||
;; (https://www.emacswiki.org/emacs/dired-sort-menu.el, originally
|
||||
;; http://centaur.maths.qmw.ac.uk/Emacs/).
|
||||
;;
|
||||
;; Library `dired-sort-menu+.el' modifies `dired-sort-menu.el' to play
|
||||
;; better with other libraries from Drew Adams.
|
||||
;;
|
||||
;; Changes:
|
||||
;;
|
||||
;; 1. The toggles for reverse sorting, `ls-lisp-ignore-case' and
|
||||
;; `ls-lisp-dirs-first', are bound respectively to "a", "c", and
|
||||
;; "W" in the dired map, instead of "r", "c" and "b".
|
||||
;;
|
||||
;; 2. We don't define `dired-sort-menu-toggle-ignore-case' and
|
||||
;; `dired-sort-menu-toggle-dirs-first' unless they can be used.
|
||||
;;
|
||||
;; 3. `handle-delete-frame' is protected against nil `buffer-name'.
|
||||
;;
|
||||
;;
|
||||
;; ***** NOTE: The following functions defined in `dired.el' have
|
||||
;; been REDEFINED or ADVISED HERE:
|
||||
;;
|
||||
;; `dired-sort-dialogue' -
|
||||
;; 1. Fit frame. 2. Do not add `dired-sort-dialogue-auto-kill-1'
|
||||
;; to `kill-buffer-hook'.
|
||||
;; `dired-sort-dialogue-close' - Just `kill-buffer'.
|
||||
;; `handle-delete-frame' - Do nothing if `buffer-name' is nil.
|
||||
;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;
|
||||
;;; Change Log:
|
||||
;;
|
||||
;; 2018/09/21 dadams
|
||||
;; dired-sort-dialogue: Use pop-to-buffer-same-window, not switch-to-buffer.
|
||||
;; 2011/06/18 dadams
|
||||
;; Updated T prefix-key bindings, because added more in dired+.el.
|
||||
;; 2011/04/19 dadams
|
||||
;; Restore Dired+ bindings on prefix key T.
|
||||
;; 2011/04/16 dadams
|
||||
;; handle-delete-frame:
|
||||
;; Fix for lexbind Emacs 24: replace named arg EVENT by (ad-get-arg 0).
|
||||
;; 2005/11/05 dadams
|
||||
;; Renamed dired+ stuff to have diredp- prefix.
|
||||
;; 2005/11/02 dadams
|
||||
;; Restore dired+ bindings messed up by dired-sort-menu.el.
|
||||
;; Changed dired-sort-menu-toggle-reverse to "|" and
|
||||
;; dired-sort-menu-toggle-dirs-first to "/".
|
||||
;; 2005/07-26 dadams
|
||||
;; Protected ls-lisp-var-p with fboundp.
|
||||
;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
;; it under the terms of the GNU General Public License as published by
|
||||
;; the Free Software Foundation; either version 2, or (at your option)
|
||||
;; any later version.
|
||||
|
||||
;; This program is distributed in the hope that it will be useful,
|
||||
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
;; GNU General Public License for more details.
|
||||
|
||||
;; You should have received a copy of the GNU General Public License
|
||||
;; along with this program; see the file COPYING. If not, write to
|
||||
;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
;; Floor, Boston, MA 02110-1301, USA.
|
||||
;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;
|
||||
;;; Code:
|
||||
|
||||
(require 'dired-sort-menu) ; dired-sort-menu
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
|
||||
;;; Keys ----------------------------------
|
||||
|
||||
;; Restore bindings set by `dired+.el'.
|
||||
;; (They were changed by `dired-sort-menu.el'.)
|
||||
;; There should be a better way to do this, but probably there isn't.
|
||||
;;
|
||||
;; Replaces `T' binding for `dired-sort-menu-swap-config' in `dired-sort-menu.el'.
|
||||
;;
|
||||
(when (fboundp 'diredp-rename-this-file)
|
||||
(define-key dired-mode-map "b" 'diredp-byte-compile-this-file)
|
||||
(define-key dired-mode-map "r" 'diredp-rename-this-file)
|
||||
(define-key dired-mode-map "T" nil) ; For Emacs20
|
||||
(define-key dired-mode-map "T+" 'diredp-tag-this-file) ; `T +'
|
||||
(define-key dired-mode-map "T-" 'diredp-untag-this-file) ; `T -'
|
||||
(define-key dired-mode-map "T0" 'diredp-remove-all-tags-this-file) ; `T 0'
|
||||
(define-key dired-mode-map "Tc" 'diredp-copy-tags-this-file) ; `T c'
|
||||
(define-key dired-mode-map "Tp" 'diredp-paste-add-tags-this-file) ; `T p'
|
||||
(define-key dired-mode-map "Tq" 'diredp-paste-replace-tags-this-file) ; `T q'
|
||||
(define-key dired-mode-map "Tv" 'diredp-set-tag-value-this-file) ; `T v'
|
||||
(define-key dired-mode-map "T\M-w" 'diredp-copy-tags-this-file) ; `T M-w'
|
||||
(define-key dired-mode-map "T\C-y" 'diredp-paste-add-tags-this-file) ; `T C-y'
|
||||
(define-key dired-mode-map "T>+" 'diredp-do-tag) ; `T > +'
|
||||
(define-key dired-mode-map "T>-" 'diredp-do-untag) ; `T > -'
|
||||
(define-key dired-mode-map "T>0" 'diredp-do-remove-all-tags) ; `T > 0'
|
||||
(define-key dired-mode-map "T>p" 'diredp-do-paste-add-tags) ; `T > p'
|
||||
(define-key dired-mode-map "T>q" 'diredp-do-paste-replace-tags) ; `T > q'
|
||||
(define-key dired-mode-map "T>v" 'diredp-do-set-tag-value) ; `T > v'
|
||||
(define-key dired-mode-map "T>\C-y" 'diredp-do-paste-add-tags) ; `T > C-y'
|
||||
(define-key dired-mode-map "Tm%" 'diredp-mark-files-tagged-regexp) ; `T m %'
|
||||
(define-key dired-mode-map "Tm*" 'diredp-mark-files-tagged-all) ; `T m *'
|
||||
(define-key dired-mode-map "Tm+" 'diredp-mark-files-tagged-some) ; `T m +'
|
||||
(define-key dired-mode-map "Tm~*" 'diredp-mark-files-tagged-not-all) ; `T m ~ *'
|
||||
(define-key dired-mode-map "Tm~+" 'diredp-mark-files-tagged-none) ; `T m ~ +'
|
||||
(define-key dired-mode-map "Tu%" 'diredp-unmark-files-tagged-regexp) ; `T u %'
|
||||
(define-key dired-mode-map "Tu*" 'diredp-unmark-files-tagged-all) ; `T u *'
|
||||
(define-key dired-mode-map "Tu+" 'diredp-unmark-files-tagged-some) ; `T u +'
|
||||
(define-key dired-mode-map "Tu~*" 'diredp-unmark-files-tagged-not-all) ; `T u ~ *'
|
||||
(define-key dired-mode-map "Tu~+" 'diredp-unmark-files-tagged-none) ; `T u ~ +'
|
||||
)
|
||||
|
||||
;; Use "|", not "r".
|
||||
(define-key dired-mode-map "|" 'dired-sort-menu-toggle-reverse)
|
||||
|
||||
;; Don't define it unless you can use it.
|
||||
(when (and (fboundp 'ls-lisp-var-p) (ls-lisp-var-p 'ls-lisp-ignore-case))
|
||||
(define-key dired-mode-map "c" 'dired-sort-menu-toggle-ignore-case))
|
||||
|
||||
;; 1. Use "/", not "b". 2. Don't define it unless you can use it.
|
||||
(when (and (fboundp 'ls-lisp-var-p) (ls-lisp-var-p 'ls-lisp-dirs-first))
|
||||
(define-key dired-mode-map "/" 'dired-sort-menu-toggle-dirs-first))
|
||||
|
||||
|
||||
;; Remove from menu-bar "Immediate" submenu, and add it to "Dir" submenu.
|
||||
(easy-menu-remove-item dired-mode-map '("menu-bar" "immediate") "Sort By")
|
||||
(easy-menu-add-item dired-mode-map '("menu-bar" "subdir") dired-sort-menu
|
||||
'revert-buffer)
|
||||
|
||||
|
||||
;;; Functions -----------------------------
|
||||
|
||||
|
||||
;; REPLACE ORIGINAL in `dired-sort-menu.el'.
|
||||
;;
|
||||
;; 1. Fit frame.
|
||||
;; 2. Removed `dired-sort-dialogue-auto-kill-1' from `kill-buffer-hook'.
|
||||
;;
|
||||
;;;###autoload
|
||||
(defun dired-sort-dialogue ()
|
||||
"A static dialogue version of the Dired sort menu.
|
||||
This command *must* be run in the Dired buffer!"
|
||||
(interactive)
|
||||
(unless (eq major-mode 'dired-mode)
|
||||
(error "This command may only be run in a Dired buffer"))
|
||||
(let
|
||||
;; Must set these variables while still in the dired buffer!
|
||||
((radio (dired-sort-dialogue-choice))
|
||||
(reverse (dired-sort-menu-switch-p "r"))
|
||||
(recursive (dired-sort-menu-switch-p "R"))
|
||||
(dired-buffer (current-buffer))
|
||||
;; Suspend automatic mechanisms:
|
||||
window-configuration-change-hook kill-buffer-hook)
|
||||
|
||||
;; Check whether a dialogue buffer for this dired buffer is
|
||||
;; already visible, and if so re-use its window:
|
||||
(let ((bufname (dired-sort-dialogue-buffer-name))
|
||||
(bufs (buffer-list)) buf
|
||||
(title (concat "<" (buffer-name dired-buffer) ">")))
|
||||
(while (and bufs (not (string= bufname (buffer-name (setq buf (car bufs))))))
|
||||
(setq bufs (cdr bufs)))
|
||||
(if bufs
|
||||
(progn
|
||||
(if (dired-sort-dialogue-own-frame-really)
|
||||
(progn
|
||||
(select-frame (window-frame (get-buffer-window buf t)))
|
||||
(raise-frame))
|
||||
(select-window (get-buffer-window buf t)))
|
||||
(set-window-dedicated-p (selected-window) nil)
|
||||
(kill-buffer buf))
|
||||
(if (dired-sort-dialogue-own-frame-really)
|
||||
;; If room then put dialogue immediately to the right of
|
||||
;; the dired frame, else at right edge of screen.
|
||||
(let* ((alist (frame-parameters))
|
||||
(top (cdr (assq 'top alist))) ; pixels
|
||||
(left (cdr (assq 'left alist))) ; pixels
|
||||
)
|
||||
;; Allow form INTEGER or (+ INTEGER):
|
||||
(or (atom left) (setq left (cadr left)))
|
||||
;; Set left of dialogue frame to avoid falling off right
|
||||
;; of display:
|
||||
(setq left (+ left (frame-pixel-width))
|
||||
left (if (> (+ left (* dired-sort-dialogue-width
|
||||
(frame-char-width)))
|
||||
(x-display-pixel-width))
|
||||
-10
|
||||
;; (+ left (* 2 (cdr (assq 'border-width alist))))))
|
||||
(+ left 10)))
|
||||
(select-frame (make-frame
|
||||
`((title . ,title)
|
||||
(top . ,top)
|
||||
(left . ,left)
|
||||
(width . ,dired-sort-dialogue-width)
|
||||
(height . 22)
|
||||
(minibuffer . nil)
|
||||
(vertical-scroll-bars . nil)
|
||||
(horizontal-scroll-bars . nil)
|
||||
(unsplittable . nil)
|
||||
(menu-bar-lines . 0)
|
||||
))))
|
||||
(split-window ; WINDOW SIZE HORIZONTAL
|
||||
nil (- (window-width) dired-sort-dialogue-width) t)
|
||||
(select-window (next-window))))
|
||||
(if (fboundp 'pop-to-buffer-same-window)
|
||||
(pop-to-buffer-same-window bufname)
|
||||
(switch-to-buffer bufname))
|
||||
(set-window-dedicated-p (selected-window) t) ; can crash Emacs!
|
||||
(kill-all-local-variables)
|
||||
;; (or buffer-display-table
|
||||
;; (setq buffer-display-table
|
||||
;; (or standard-display-table (make-display-table))))
|
||||
;; (set-display-table-slot buffer-display-table 0 ?_)
|
||||
(setq truncate-lines t
|
||||
mode-line-format title))
|
||||
|
||||
(let ((inhibit-read-only t))
|
||||
(erase-buffer))
|
||||
;; Must set this only once in the dialogue buffer!
|
||||
(setq dired-sort-dialogue-dired-buffer dired-buffer)
|
||||
|
||||
(let ((start (point)))
|
||||
(widget-insert "Dired Sort Options")
|
||||
(put-text-property start (point) 'face 'bold))
|
||||
(widget-insert " for\n<"
|
||||
(buffer-name dired-buffer)
|
||||
">\n\n(Use any mouse button)\n\n ")
|
||||
(setq dired-sort-dialogue-radio-widget
|
||||
(eval `(widget-create
|
||||
'radio-button-choice
|
||||
:indent 1
|
||||
:value radio
|
||||
'(item :tag "Name" "")
|
||||
'(item :tag "Time Modified" "t")
|
||||
,@(if (dired-sort-menu-active-p "S")
|
||||
'('(item :tag "Size" "S")))
|
||||
,@(if (dired-sort-menu-active-p "X")
|
||||
'('(item :tag "Extension" "X")))
|
||||
,@(if (dired-sort-menu-active-p "U")
|
||||
'('(item :tag "Unsorted" "U")))
|
||||
,@(if (dired-sort-menu-active-p "c")
|
||||
`('(item :tag
|
||||
,(if (or (not (eq system-type 'windows-nt))
|
||||
(dired-sort-menu-remote-p))
|
||||
"Time Changed"
|
||||
"Time Created") "c")))
|
||||
,@(if (and (dired-sort-menu-active-p "u")
|
||||
(or (not (eq system-type 'windows-nt))
|
||||
(dired-sort-menu-remote-p)))
|
||||
'('(item :tag "Time Accessed" "u")))
|
||||
)))
|
||||
(widget-insert " _____________________\n\n ")
|
||||
(when (dired-sort-menu-active-p "r")
|
||||
(setq dired-sort-dialogue-reverse-widget
|
||||
(widget-create 'checkbox
|
||||
:help-echo "Reverse the sort order"
|
||||
reverse))
|
||||
(widget-insert " Reverse\n "))
|
||||
(when (dired-sort-menu-active-p "R")
|
||||
(setq dired-sort-dialogue-recursive-widget
|
||||
(widget-create 'checkbox
|
||||
:help-echo "Recursively list all subdirectories"
|
||||
recursive))
|
||||
(widget-insert " Recursive\n "))
|
||||
(when (ls-lisp-var-p 'ls-lisp-ignore-case)
|
||||
(setq dired-sort-dialogue-ignore-case-widget
|
||||
(widget-create 'checkbox
|
||||
:help-echo "Ignore case when sorting"
|
||||
ls-lisp-ignore-case))
|
||||
(widget-insert " Ignore Case\n "))
|
||||
(when (ls-lisp-var-p 'ls-lisp-dirs-first)
|
||||
(setq dired-sort-dialogue-dirs-first-widget
|
||||
(widget-create 'checkbox
|
||||
:help-echo "Sort directories first"
|
||||
ls-lisp-dirs-first))
|
||||
(widget-insert " Dirs First\n "))
|
||||
(widget-insert "_____________________\n\n ")
|
||||
(widget-create 'push-button
|
||||
:notify 'dired-sort-dialogue-OK
|
||||
:help-echo "Apply the settings and close the window"
|
||||
"OK")
|
||||
(widget-insert " ")
|
||||
(widget-create 'push-button
|
||||
:notify 'dired-sort-dialogue-close
|
||||
:help-echo "Close the window and ignore the settings"
|
||||
"Cancel")
|
||||
(widget-insert " ")
|
||||
(widget-create 'push-button
|
||||
:notify 'dired-sort-dialogue-apply
|
||||
:help-echo "Apply the settings without closing the window"
|
||||
"Apply")
|
||||
(widget-setup)
|
||||
(goto-char (point-min))
|
||||
;; (use-local-map widget-keymap)
|
||||
;; (let ((map (make-sparse-keymap)))
|
||||
;; (suppress-keymap map)
|
||||
;; (set-keymap-parent map widget-keymap)
|
||||
;; (define-key map [down-mouse-1] 'widget-button-click)
|
||||
;; (define-key map [down-mouse-3] 'widget-button-click)
|
||||
;; (use-local-map map))
|
||||
(let ((map widget-keymap))
|
||||
;; (define-key map [t] 'undefined)
|
||||
;; (define-key map [tab] 'widget-forward)
|
||||
;; (define-key map [return] 'widget-button-press)
|
||||
(define-key map [down-mouse-1] 'widget-button-click)
|
||||
(define-key map [down-mouse-3] 'widget-button-click)
|
||||
;; (define-key map [escape] (lambda () (interactive)
|
||||
;; (dired-sort-dialogue-close)))
|
||||
;; (define-key map "\C-h" 'describe-bindings)
|
||||
(use-local-map map)))
|
||||
;; D. Adams - added this line:
|
||||
(when (fboundp 'fit-frame) (fit-frame))
|
||||
|
||||
;; Set up these hooks here to avoid any possibility of causing
|
||||
;; trouble if the dialogue facility is not used:
|
||||
|
||||
;; D. Adams - REMOVED - not needed if use my stuff.
|
||||
;; (add-hook 'kill-buffer-hook 'dired-sort-dialogue-auto-kill-1)
|
||||
|
||||
(add-hook 'window-configuration-change-hook
|
||||
'dired-sort-dialogue-auto-kill-2))
|
||||
|
||||
|
||||
;; REPLACE ORIGINAL in `dired-sort-menu.el'.
|
||||
;;
|
||||
;; Redefined to just `kill-buffer'. My other libraries take care of the rest.
|
||||
;;
|
||||
;;;###autoload
|
||||
(defun dired-sort-dialogue-close (&rest ignore)
|
||||
"Close the dired sort dialogue (ignoring the settings)."
|
||||
(kill-buffer (current-buffer)))
|
||||
;;; (defun dired-sort-dialogue-close (&rest ignore)
|
||||
;;; "Close the dired sort dialogue (ignoring the settings)."
|
||||
;;; (let ((dired-buffer dired-sort-dialogue-dired-buffer)
|
||||
;;; window-configuration-change-hook
|
||||
;;; kill-buffer-hook)
|
||||
;;; (set-window-dedicated-p (selected-window) nil)
|
||||
;;; (kill-buffer (current-buffer))
|
||||
;;; (if (dired-sort-dialogue-own-frame-really)
|
||||
;;; (delete-frame)
|
||||
;;; (or (one-window-p t) (delete-window)))
|
||||
;;; (select-window (get-buffer-window dired-buffer))))
|
||||
|
||||
|
||||
;; REPLACE ORIGINAL in `dired-sort-menu.el'.
|
||||
;;
|
||||
;; Protect in case `buffer-name' is nil.
|
||||
;;
|
||||
(defadvice handle-delete-frame
|
||||
(before handle-delete-frame-advice activate)
|
||||
"Kill dialogue buffer before killing its frame."
|
||||
(let* ((frame (posn-window (event-start (ad-get-arg 0))))
|
||||
(buf (car (buffer-list frame))))
|
||||
(when (and (buffer-name buf)
|
||||
(dired-sort-dialogue-buffer-p (buffer-name buf)))
|
||||
(set-window-dedicated-p (selected-window) nil)
|
||||
(kill-buffer buf))))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(provide 'dired-sort-menu+)
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;; dired-sort-menu+.el ends here
|
||||
@@ -1,940 +0,0 @@
|
||||
;;; dired-sort-menu.el --- provide menu/dialogue for dired sort options
|
||||
|
||||
;; Copyright (C) 2000, 2001 Francis J. Wright
|
||||
|
||||
;; Author: Francis J. Wright <F.J.Wright@maths.qmw.ac.uk>
|
||||
;; Maintainer: Francis J. Wright <F.J.Wright@maths.qmw.ac.uk>
|
||||
;; Time-stamp: <26 July 2001>
|
||||
;; Version: 2001.07.26
|
||||
;; Package-Requires: ()
|
||||
;; URL: http://centaur.maths.qmw.ac.uk/Emacs/
|
||||
;; URL: https://sites.google.com/site/fjwcentaur/emacs/files/dired-sort-menu.el
|
||||
;; Keywords: dired, sort, menu, dialogue
|
||||
|
||||
;; $Id: dired-sort-menu.el,v 1.26 2001-07-26 21:22:48+01 fjw Exp $
|
||||
|
||||
;; This file is not part of GNU Emacs.
|
||||
|
||||
;; This package is free software; you can redistribute it and/or modify
|
||||
;; it under the terms of the GNU General Public License as published by
|
||||
;; the Free Software Foundation; either version 2, or (at your option)
|
||||
;; any later version.
|
||||
|
||||
;; This package is distributed in the hope that it will be useful,
|
||||
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
;; GNU General Public License for more details.
|
||||
|
||||
;; You should have received a copy of the GNU General Public License
|
||||
;; along with GNU Emacs; see the file COPYING. If not, write to the
|
||||
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
;; Boston, MA 02111-1307, USA.
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; This package, which is intended for use with GNU Emacs 20/21,
|
||||
;; implements a menu and a dialogue that consist of a set of radio
|
||||
;; buttons and toggles to control sort order in dired mode. The menu
|
||||
;; is added as a submenu to the Immediate menu, and bound to S-mouse-2
|
||||
;; as a popup menu. The dialogue can be accessed via the menu or the
|
||||
;; dired key binding `C-d' or the command `dired-sort-dialogue', which
|
||||
;; *must* be run in a dired buffer! The dialogue uses the Emacs
|
||||
;; widget library, which does not require GUI support but uses it if
|
||||
;; available. The dialogue can be used with a character-based
|
||||
;; display; the main keys to use are <TAB> and <RET> if a mouse is not
|
||||
;; available or does not work. With a GUI the dialogue pops up its
|
||||
;; own frame by default; otherwise it uses part of the dired window.
|
||||
;; This is controlled by the customizable user option
|
||||
;; `dired-sort-dialogue-own-frame'.
|
||||
|
||||
;; The menu and dialogue support the `ls' sort switches [tSXUucrR].
|
||||
;; These are all implemented by GNU `ls'; the subset [tSucr] are
|
||||
;; implemented by the standard Emacs 20 `ls-lisp' emulation and all
|
||||
;; are implemented by the Emacs 21 `ls-lisp' (see above URL).
|
||||
;; Changing a main sort option turns off reverse sorting; toggling
|
||||
;; reverse sorting does not change the main sort option. Setting any
|
||||
;; prefix argument before selecting a sort order reverses it
|
||||
;; (e.g. press `C-u' or `C-number' or `M-number' BEFORE accessing the
|
||||
;; menu bar). The menu also supports two Emacs 21 `ls-lisp' switches:
|
||||
;; `ls-lisp-ignore-case' ignores case in alphanumeric sorts and
|
||||
;; `ls-lisp-dirs-first' lists all directories first. (These latter
|
||||
;; two switches improve compatibility with Microsoft Windows
|
||||
;; Explorer.)
|
||||
|
||||
;; The toggles for reverse sorting, `ls-lisp-ignore-case' and
|
||||
;; `ls-lisp-dirs-first', are bound respectively to the keys "r", "c"
|
||||
;; and "b" in the dired map.
|
||||
|
||||
;; A `Configuration' submenu allows a dired sort configuration to be
|
||||
;; saved or restored, the current and saved configurations to be
|
||||
;; swaped (bound to "T" for "toggle"), or the default to be restored.
|
||||
;; The saved configuration is saved as a customization, which can also
|
||||
;; be changed directly. This submenu also allows
|
||||
;; `dired-sort-dialogue-own-frame' to be toggled.
|
||||
|
||||
;; If a `dired-sort-menu' option causes an error (but not if it is
|
||||
;; just ignored) then it is automatically disabled via the
|
||||
;; customization facility. This is useful because not all `ls' and
|
||||
;; `ftp' programs support the same sort options.
|
||||
|
||||
;; The dialogue allows the setting of arbitrary combinations of dired
|
||||
;; sort options together, without requiring multiple menu accesses.
|
||||
;; Each dired buffer has its own dialogue. This dialogue can be left
|
||||
;; displayed, in which case it is automatically updated to reflect any
|
||||
;; changes to its dired buffer that are made by other means. For
|
||||
;; tidiness, a dialogue buffer is automatically killed whenever it or
|
||||
;; its dired buffer becomes invisible.
|
||||
|
||||
;; To do:
|
||||
;; test `dired-sort-menu-invalid-options' facility;
|
||||
;; per-host `dired-sort-menu-invalid-options-remote';
|
||||
;; cascade multiple dialogue frames?
|
||||
|
||||
;;; Installation:
|
||||
|
||||
;; Put this file somewhere where Emacs can find it (i.e. in one of the
|
||||
;; directories in your `load-path' such as `site-lisp'), optionally
|
||||
;; byte-compile it (recommended), and put this in your .emacs:
|
||||
;;
|
||||
;; (add-hook 'dired-load-hook
|
||||
;; (lambda () (require 'dired-sort-menu)))
|
||||
|
||||
|
||||
;;; History:
|
||||
|
||||
;; Code for alternative ways to find files split off into
|
||||
;; `dired-explore'.
|
||||
|
||||
;;; Code:
|
||||
|
||||
(require 'dired)
|
||||
(require 'easymenu)
|
||||
;; Silence compiler:
|
||||
(eval-when-compile
|
||||
(defvar ls-lisp-ignore-case) ; not in current standard version
|
||||
(defvar ls-lisp-dirs-first) ; not in current standard version
|
||||
(require 'ange-ftp))
|
||||
|
||||
(defun dired-sort-menu-remote-p ()
|
||||
"Return the host name for a remote ange-ftp directory or nil if local."
|
||||
;; Use the actual host name later!
|
||||
;; The default extended filename syntax is '/user@host:name', where the
|
||||
;; 'user@' part may be omitted. This syntax can be customised to a certain
|
||||
;; extent by changing ange-ftp-name-format. There are limitations.
|
||||
(and (string-match "\\`/\\([^@:/]+@\\)?\\([^:/]+\\):" default-directory)
|
||||
(match-string 2)))
|
||||
|
||||
;;;###autoload
|
||||
(defgroup dired-sort-menu nil
|
||||
"Menu and dialogue to control `dired' sort options."
|
||||
:group 'dired)
|
||||
|
||||
(defcustom dired-sort-menu-saved-config nil
|
||||
"*Alist of saved `dired' sort options. Defaults to None (nil).
|
||||
Can be customized directly or by saving from Dired sort menu. If the
|
||||
AList option is chosen in a customization buffer then it defaults to
|
||||
the default options, which can be set via the Dired and Ls-Lisp
|
||||
customization buffers."
|
||||
:type `(choice
|
||||
(const :tag "None" nil)
|
||||
(list :tag "AList"
|
||||
:value
|
||||
((dired-actual-switches
|
||||
. ,dired-listing-switches)
|
||||
(ls-lisp-ignore-case
|
||||
. ,(let ((v (get 'ls-lisp-ignore-case 'standard-value)))
|
||||
(and v (apply 'eval v))))
|
||||
(ls-lisp-dirs-first
|
||||
. ,(let ((v (get 'ls-lisp-dirs-first 'standard-value)))
|
||||
(and v (apply 'eval v)))))
|
||||
(cons :tag "Any Ls"
|
||||
(const :tag "Switches" dired-actual-switches)
|
||||
string)
|
||||
(cons :tag "Ls-Lisp Only"
|
||||
(const :tag "Ignore Case" ls-lisp-ignore-case)
|
||||
boolean)
|
||||
(cons :tag "Ls-Lisp Only"
|
||||
(const :tag "Dirs First" ls-lisp-dirs-first)
|
||||
boolean)))
|
||||
:group 'dired-sort-menu)
|
||||
|
||||
(defcustom dired-sort-menu-invalid-options nil
|
||||
"*List of sort option strings that are invalid for the local ls program.
|
||||
The corresponding menu/dialogue items are inactive/unavailable.
|
||||
This variable is automatically updated when a sort option causes an
|
||||
error. It can also be set or reset explicitly, and you should reset
|
||||
it (usually to nil) if you change the ls program used by `dired'.
|
||||
Ignored when using `ls-lisp'."
|
||||
:type '(repeat string)
|
||||
:group 'dired-sort-menu)
|
||||
|
||||
(defcustom dired-sort-menu-invalid-options-remote nil
|
||||
;; Add option for one such variable per remote host later or some
|
||||
;; kind of alist.
|
||||
"*List of sort option strings that are invalid for the remote ls program.
|
||||
The corresponding menu/dialogue items are inactive/unavailable.
|
||||
This variable is automatically updated when a sort option causes an
|
||||
error. It can also be set or reset explicitly, and you should reset
|
||||
it if you change the remote host or ls program used by `dired'.
|
||||
[Note that `ls-lisp' is never used for remote directory listings.]"
|
||||
:type '(repeat string)
|
||||
:group 'dired-sort-menu)
|
||||
|
||||
(defconst dired-sort-display-graphic-p ; window-system
|
||||
(if (fboundp 'display-graphic-p)
|
||||
(funcall (symbol-function 'display-graphic-p)) ; Emacs 21
|
||||
(memq window-system '(x w32))) ; Emacs 20
|
||||
"Non-nil if graphic display is possible.")
|
||||
|
||||
(defcustom dired-sort-dialogue-own-frame dired-sort-display-graphic-p
|
||||
"*If non-nil then dialogues should pop up in their own frames (if possible)."
|
||||
:type 'boolean
|
||||
:group 'dired-sort-menu)
|
||||
|
||||
(defsubst dired-sort-dialogue-own-frame-really ()
|
||||
"Return non-nil if dialogues should and can pop up in their own frames."
|
||||
(and dired-sort-dialogue-own-frame dired-sort-display-graphic-p))
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(defun ls-lisp-var-p (var)
|
||||
"Return non-nil if ls-lisp variable VAR should be used."
|
||||
(and (boundp var)
|
||||
(boundp 'ls-lisp-use-insert-directory-program)
|
||||
(not ls-lisp-use-insert-directory-program)
|
||||
(not (dired-sort-menu-remote-p))))
|
||||
|
||||
(defsubst dired-sort-menu-help (help-string r)
|
||||
"Return HELP-STRING, for reversed sort order if R is non-nil."
|
||||
(if r (concat help-string " [reversed]") help-string))
|
||||
|
||||
(defun dired-sort-menu-items (&optional r)
|
||||
"Return sort-menu item list; reverse sort with optional argument R = \"r\"."
|
||||
(list
|
||||
(vector
|
||||
"Name"
|
||||
`(dired-sort-menu-set-switches ,(concat "" r)) :style 'radio
|
||||
:selected (if r
|
||||
'(and (not (dired-sort-menu-switch-p "[tSXUuc]"))
|
||||
(dired-sort-menu-switch-p "r"))
|
||||
'(not (dired-sort-menu-switch-p "[tSXUuc]")))
|
||||
:help (dired-sort-menu-help "Sort files by name" r)
|
||||
:active t)
|
||||
(vector
|
||||
"Time Modified"
|
||||
`(dired-sort-menu-set-switches ,(concat "t" r)) :style 'radio
|
||||
:selected `(dired-sort-menu-switch-p "t" ,r)
|
||||
:help (dired-sort-menu-help "Sort files by time last modified" r)
|
||||
:active t)
|
||||
;; extended sort options ...
|
||||
(vector
|
||||
"Size"
|
||||
`(dired-sort-menu-set-switches ,(concat "S" r)) :style 'radio
|
||||
:selected `(dired-sort-menu-switch-p "S" ,r)
|
||||
:help (dired-sort-menu-help "Sort files by size" r)
|
||||
:active '(dired-sort-menu-active-p "S"))
|
||||
(vector
|
||||
"Extension"
|
||||
`(dired-sort-menu-set-switches ,(concat "X" r)) :style 'radio
|
||||
:selected `(dired-sort-menu-switch-p "X" ,r)
|
||||
:help (dired-sort-menu-help "Sort files by extension" r)
|
||||
:active '(dired-sort-menu-active-p "X"))
|
||||
(vector
|
||||
"Unsorted"
|
||||
`(dired-sort-menu-set-switches ,(concat "U" r)) :style 'radio
|
||||
:selected `(dired-sort-menu-switch-p "U" ,r)
|
||||
:help (dired-sort-menu-help "Sort files by physical order" r)
|
||||
:active '(dired-sort-menu-active-p "U"))
|
||||
(vector
|
||||
"Time Created" ; Windows
|
||||
`(dired-sort-menu-set-switches ,(concat "c" r)) :style 'radio
|
||||
:selected `(dired-sort-menu-switch-p "c" ,r)
|
||||
:help (dired-sort-menu-help "Sort files by time created" r)
|
||||
:active '(dired-sort-menu-active-p "c")
|
||||
:visible (and (eq system-type 'windows-nt)
|
||||
(not (dired-sort-menu-remote-p))))
|
||||
(vector
|
||||
"Time Changed" ; not Windows
|
||||
`(dired-sort-menu-set-switches ,(concat "c" r)) :style 'radio
|
||||
:selected `(dired-sort-menu-switch-p "c" ,r)
|
||||
:help (dired-sort-menu-help "Sort files by time last changed" r)
|
||||
:active '(dired-sort-menu-active-p "c")
|
||||
:visible (or (not (eq system-type 'windows-nt))
|
||||
(dired-sort-menu-remote-p)))
|
||||
(vector
|
||||
"Time Accessed" ; not useful under Windows
|
||||
`(dired-sort-menu-set-switches ,(concat "u" r)) :style 'radio
|
||||
:selected `(dired-sort-menu-switch-p "u" ,r)
|
||||
:help (dired-sort-menu-help "Sort files by time last accessed" r)
|
||||
:active '(dired-sort-menu-active-p "u")
|
||||
:visible (or (not (eq system-type 'windows-nt))
|
||||
(dired-sort-menu-remote-p)))
|
||||
))
|
||||
|
||||
;; Build a menu assigned to `dired-sort-menu' as both a variable and a
|
||||
;; function, the former to use as a menu-bar sub-menu and the latter
|
||||
;; as a popup menu:
|
||||
(easy-menu-define ; (SYMBOL MAPS DOC MENU)
|
||||
dired-sort-menu
|
||||
nil
|
||||
"\"Sort By\" menu for dired mode."
|
||||
`("Sort By"
|
||||
,@(dired-sort-menu-items)
|
||||
"--"
|
||||
("Reversed Sort By"
|
||||
,@(dired-sort-menu-items "r"))
|
||||
"--"
|
||||
["Reverse" dired-sort-menu-toggle-reverse :style toggle
|
||||
:selected (dired-sort-menu-switch-p "r")
|
||||
:help "Reverse current sort order"
|
||||
:active (dired-sort-menu-active-p "r")]
|
||||
["Recursive" dired-sort-menu-toggle-recursive :style toggle
|
||||
:selected (dired-sort-menu-switch-p "R")
|
||||
:help "Recursively list all subdirectories"
|
||||
:active (dired-sort-menu-active-p "R")]
|
||||
["Ignore Case" dired-sort-menu-toggle-ignore-case :style toggle
|
||||
:selected ls-lisp-ignore-case :active t
|
||||
:help "Ignore case in alphanumeric sorting"
|
||||
;; supported only by (Emacs 21) ls-lisp library and local dired:
|
||||
:visible (ls-lisp-var-p 'ls-lisp-ignore-case)]
|
||||
["Dirs First" dired-sort-menu-toggle-dirs-first :style toggle
|
||||
:selected ls-lisp-dirs-first :active t
|
||||
:help "List subdirectories first [last if reversed]"
|
||||
;; supported only by (Emacs 21) ls-lisp library and local dired:
|
||||
:visible (ls-lisp-var-p 'ls-lisp-dirs-first)]
|
||||
"--"
|
||||
("Configuration"
|
||||
["Save Current" dired-sort-menu-save-config
|
||||
:suffix (dired-sort-menu-current-suffix)
|
||||
:help "Save current sort configuration as a customization"
|
||||
:active t]
|
||||
["Restore Saved" dired-sort-menu-restore-config
|
||||
:suffix (dired-sort-menu-restore-suffix)
|
||||
:help "Restore sort configuration saved as a customization"
|
||||
:active dired-sort-menu-saved-config]
|
||||
["Swap Current/Saved" dired-sort-menu-swap-config
|
||||
:help "Exchange current and saved sort configurations"
|
||||
:active dired-sort-menu-saved-config]
|
||||
"---"
|
||||
["Restore Default" dired-sort-menu-restore-default
|
||||
:suffix (dired-sort-menu-default-suffix)
|
||||
:help "Restore default sort configuration from customization"
|
||||
:active t]
|
||||
["Customize Saved" (customize-option 'dired-sort-menu-saved-config)
|
||||
:help "Customize saved sort configuration"
|
||||
:active t]
|
||||
"---"
|
||||
["Dialogue Own Frame" (setq dired-sort-dialogue-own-frame
|
||||
(not dired-sort-dialogue-own-frame))
|
||||
:style toggle
|
||||
:selected dired-sort-dialogue-own-frame
|
||||
:help "Sort dialogues use own frame if checked, else dired frame"
|
||||
:active t])
|
||||
["Dialogue" dired-sort-dialogue
|
||||
:help "Open a dialogue box to control this dired's sort options"
|
||||
:active t]
|
||||
))
|
||||
|
||||
;; Menu bar "Immediate" menu sub-menu:
|
||||
(easy-menu-add-item ; (map path item &optional before)
|
||||
dired-mode-map '("menu-bar" "immediate")
|
||||
dired-sort-menu
|
||||
'revert-buffer)
|
||||
|
||||
;; Popup menu on "Shift Mouse 2":
|
||||
(define-key ; (keymap key def)
|
||||
dired-mode-map [S-down-mouse-2] 'dired-sort-menu-popup)
|
||||
|
||||
;;;###autoload
|
||||
(defun dired-sort-menu-popup (event)
|
||||
"Pop up and run \"Sort By\" menu for dired mode *in EVENT window*."
|
||||
(interactive "@e")
|
||||
(let ((menu-item (x-popup-menu event dired-sort-menu)))
|
||||
;; menu-item is null if pop-up menu is cancelled
|
||||
(and menu-item
|
||||
(command-execute
|
||||
(lookup-key dired-sort-menu (apply 'vector menu-item))))))
|
||||
|
||||
;; Add a few key bindings, as suggested by Ed Park <park@sunshine.net>.
|
||||
;; Mnemonic *r*everse:
|
||||
(define-key dired-mode-map "r" 'dired-sort-menu-toggle-reverse)
|
||||
;; Mnemonic *c*asefold:
|
||||
(define-key dired-mode-map "c" 'dired-sort-menu-toggle-ignore-case)
|
||||
;; Mnemonic Files at *b*ottom:
|
||||
(define-key dired-mode-map "b" 'dired-sort-menu-toggle-dirs-first)
|
||||
;; Mnemonic *T*oggle Current/Saved:
|
||||
(define-key dired-mode-map "T" 'dired-sort-menu-swap-config)
|
||||
|
||||
|
||||
|
||||
(defun dired-sort-menu-switch-p (switch &optional r)
|
||||
"Return true if regexp SWITCH matches (case sensitive) ls switch string.
|
||||
With optional regexp R this must also match (case sensitive)."
|
||||
(let (case-fold-search)
|
||||
(setq switch (string-match switch dired-actual-switches))
|
||||
(if r
|
||||
(and switch (string-match r dired-actual-switches))
|
||||
switch
|
||||
)))
|
||||
|
||||
(defun dired-sort-menu-active-p (switch)
|
||||
"Return true if argument SWITCH not known to be invalid for the current ls."
|
||||
(if (dired-sort-menu-remote-p)
|
||||
(not (member switch dired-sort-menu-invalid-options-remote))
|
||||
(or (and (boundp 'ls-lisp-use-insert-directory-program)
|
||||
(not ls-lisp-use-insert-directory-program)) ; ls-lisp
|
||||
(not (member switch dired-sort-menu-invalid-options)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun dired-sort-menu-toggle-ignore-case ()
|
||||
"Toggle ls-lisp switch `ls-lisp-ignore-case' and update buffer."
|
||||
(interactive)
|
||||
(setq ls-lisp-ignore-case (not ls-lisp-ignore-case))
|
||||
(revert-buffer))
|
||||
|
||||
;;;###autoload
|
||||
(defun dired-sort-menu-toggle-dirs-first ()
|
||||
"Toggle ls-lisp switch `ls-lisp-dirs-first' and update buffer."
|
||||
(interactive)
|
||||
(setq ls-lisp-dirs-first (not ls-lisp-dirs-first))
|
||||
(revert-buffer))
|
||||
|
||||
(defun dired-sort-menu-set-switches (switch &optional reverse)
|
||||
"Set one ls sort switch SWITCH and update buffer.
|
||||
Clears *all* other sort switches.
|
||||
Reverse sort order if optional argument REVERSE is non-nil or if
|
||||
called with any prefix argument \(e.g. \\[universal-argument] or
|
||||
C-number or M-number BEFORE accessing menu bar)."
|
||||
;; [FJW: I would like to use modifier keys to reverse the sort, but
|
||||
;; that is not possible!]
|
||||
;; First delete ALL ls sort switches:
|
||||
(let (case-fold-search)
|
||||
(while (string-match "[rtSXUuc]" dired-actual-switches)
|
||||
(setq dired-actual-switches
|
||||
(replace-match "" t t dired-actual-switches))))
|
||||
(setq dired-actual-switches
|
||||
(concat dired-actual-switches switch))
|
||||
(if (or reverse current-prefix-arg)
|
||||
(setq dired-actual-switches
|
||||
(concat dired-actual-switches "r")))
|
||||
(dired-sort-set-modeline)
|
||||
(dired-sort-menu-revert-buffer switch))
|
||||
|
||||
(defun dired-sort-menu-revert-buffer (switch)
|
||||
"Revert buffer carefully, handling invalid sort options gracefully.
|
||||
If the current sort option SWITCH causes an error then update
|
||||
`dired-sort-menu-invalid-options' or
|
||||
`dired-sort-menu-invalid-options-remote' as appropriate."
|
||||
(condition-case nil
|
||||
(revert-buffer)
|
||||
('file-error
|
||||
(if (dired-sort-menu-remote-p)
|
||||
(customize-save-variable
|
||||
'dired-sort-menu-invalid-options-remote
|
||||
(cons switch dired-sort-menu-invalid-options-remote))
|
||||
(customize-save-variable
|
||||
'dired-sort-menu-invalid-options
|
||||
(cons switch dired-sort-menu-invalid-options)))
|
||||
;; Remove all sort switches:
|
||||
(dired-sort-menu-set-switches "")
|
||||
(error
|
||||
"Invalid sort menu option disabled and directory sorted by name"))))
|
||||
|
||||
;;;###autoload
|
||||
(defun dired-sort-menu-toggle-reverse ()
|
||||
"Toggle ls -r switch and update buffer.
|
||||
Does not affect other sort switches."
|
||||
(interactive)
|
||||
(let (case-fold-search)
|
||||
(setq dired-actual-switches
|
||||
(if (string-match "r" dired-actual-switches)
|
||||
(replace-match "" t t dired-actual-switches)
|
||||
(concat dired-actual-switches "r")))
|
||||
(dired-sort-set-modeline)
|
||||
(dired-sort-menu-revert-buffer "r")))
|
||||
|
||||
(defsubst dired-sort-menu-R-check (switches)
|
||||
"Additional processing of -R in ls option string SWITCHES.
|
||||
Calls `dired-sort-R-check' only if defined (by `dired-fix' or Emacs 21).
|
||||
Saves `dired-subdir-alist' when R is set and restores saved value
|
||||
minus any directories explicitly deleted when R is cleared.
|
||||
To be called first in body of `dired-sort-other', etc."
|
||||
(and (fboundp 'dired-sort-R-check)
|
||||
(funcall (symbol-function 'dired-sort-R-check) switches)))
|
||||
|
||||
;;;###autoload
|
||||
(defun dired-sort-menu-toggle-recursive ()
|
||||
"Toggle ls -R switch and update buffer.
|
||||
Does not affect other sort switches."
|
||||
(interactive)
|
||||
(let* (case-fold-search
|
||||
(switches
|
||||
(if (string-match "R" dired-actual-switches)
|
||||
(replace-match "" t t dired-actual-switches)
|
||||
(concat dired-actual-switches "R"))))
|
||||
(dired-sort-menu-R-check switches)
|
||||
(setq dired-actual-switches switches)
|
||||
(dired-sort-set-modeline)
|
||||
(dired-sort-menu-revert-buffer "R")))
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; Code to save and restore dired sort configurations. This has a lot
|
||||
;; of possibilities, e.g. saving multiple configurations, which I
|
||||
;; could implement if there were any demand.
|
||||
|
||||
(defsubst dired-sort-menu-current-suffix-flag (flag label)
|
||||
"Construct \"Configuration/Save Current\" menu item suffix for FLAG with LABEL."
|
||||
(and (boundp flag)
|
||||
(concat "; [" (if (eval flag) "X" " ") "] " label)))
|
||||
|
||||
(defun dired-sort-menu-current-suffix ()
|
||||
"Construct \"Configuration/Save Current\" menu item suffix."
|
||||
(concat
|
||||
"(ls " dired-actual-switches
|
||||
(dired-sort-menu-current-suffix-flag
|
||||
'ls-lisp-ignore-case "Ignore Case")
|
||||
(dired-sort-menu-current-suffix-flag
|
||||
'ls-lisp-dirs-first "Dirs First")
|
||||
")"
|
||||
))
|
||||
|
||||
(defsubst dired-sort-menu-restore-suffix-flag (flag label)
|
||||
"Construct \"Configuration/Restore Saved\" menu item suffix for FLAG with LABEL."
|
||||
(and (setq flag (assq flag dired-sort-menu-saved-config))
|
||||
(concat "; [" (if (cdr flag) "X" " ") "] " label)))
|
||||
|
||||
(defun dired-sort-menu-restore-suffix ()
|
||||
"Construct \"Configuration/Restore Saved\" menu item suffix."
|
||||
(and dired-sort-menu-saved-config
|
||||
(concat
|
||||
"(ls "
|
||||
(cdr (assq 'dired-actual-switches
|
||||
dired-sort-menu-saved-config))
|
||||
(dired-sort-menu-restore-suffix-flag
|
||||
'ls-lisp-ignore-case "Ignore Case")
|
||||
(dired-sort-menu-restore-suffix-flag
|
||||
'ls-lisp-dirs-first "Dirs First")
|
||||
")"
|
||||
)))
|
||||
|
||||
(defsubst dired-sort-menu-default-suffix-flag (flag label)
|
||||
"Construct \"Configuration/Restore Default\" menu item suffix for FLAG with LABEL."
|
||||
(and (boundp flag)
|
||||
(concat "; [" (if (apply 'eval (get flag 'standard-value)) "X" " ") "] " label)))
|
||||
|
||||
(defun dired-sort-menu-default-suffix ()
|
||||
"Construct \"Configuration/Restore Default\" menu item suffix."
|
||||
(concat
|
||||
"(ls " dired-listing-switches
|
||||
(dired-sort-menu-default-suffix-flag
|
||||
'ls-lisp-ignore-case "Ignore Case")
|
||||
(dired-sort-menu-default-suffix-flag
|
||||
'ls-lisp-dirs-first "Dirs First")
|
||||
")"
|
||||
))
|
||||
|
||||
(defun dired-sort-menu-config-alist ()
|
||||
"Return `dired' sort configuration as alist."
|
||||
(cons
|
||||
(cons 'dired-actual-switches dired-actual-switches)
|
||||
(and (boundp 'ls-lisp-use-insert-directory-program)
|
||||
(not ls-lisp-use-insert-directory-program)
|
||||
(append
|
||||
(and (boundp 'ls-lisp-ignore-case)
|
||||
(list (cons 'ls-lisp-ignore-case ls-lisp-ignore-case)))
|
||||
(and (boundp 'ls-lisp-dirs-first)
|
||||
(list (cons 'ls-lisp-dirs-first ls-lisp-dirs-first)))))))
|
||||
|
||||
(defun dired-sort-menu-save-config ()
|
||||
"Save current `dired' sort configuration."
|
||||
(interactive)
|
||||
(customize-save-variable 'dired-sort-menu-saved-config
|
||||
(dired-sort-menu-config-alist)))
|
||||
|
||||
(defun dired-sort-menu-restore-config (&optional swap)
|
||||
"Restore saved `dired' sort configuration.
|
||||
If optional (interactive prefix) argument SWAP is non-nil then swap
|
||||
saved and current configurations."
|
||||
(interactive "P")
|
||||
(when dired-sort-menu-saved-config
|
||||
(setq swap (if swap
|
||||
(dired-sort-menu-config-alist)
|
||||
dired-sort-menu-saved-config))
|
||||
(while dired-sort-menu-saved-config
|
||||
(set (caar dired-sort-menu-saved-config)
|
||||
(cdar dired-sort-menu-saved-config))
|
||||
(setq dired-sort-menu-saved-config
|
||||
(cdr dired-sort-menu-saved-config)))
|
||||
(dired-sort-set-modeline)
|
||||
(revert-buffer)
|
||||
(setq dired-sort-menu-saved-config swap)))
|
||||
|
||||
;;;###autoload
|
||||
(defun dired-sort-menu-swap-config ()
|
||||
"Swap saved and current `dired' sort configuration."
|
||||
(interactive)
|
||||
(dired-sort-menu-restore-config t))
|
||||
|
||||
(defun dired-sort-menu-restore-default ()
|
||||
"Restore default `dired' sort configuration."
|
||||
(interactive)
|
||||
(setq dired-actual-switches dired-listing-switches)
|
||||
(if (boundp 'ls-lisp-ignore-case)
|
||||
(setq ls-lisp-ignore-case
|
||||
(apply 'eval (get 'ls-lisp-ignore-case 'standard-value))))
|
||||
(if (boundp 'ls-lisp-dirs-first)
|
||||
(setq ls-lisp-dirs-first
|
||||
(apply 'eval (get 'ls-lisp-dirs-first 'standard-value))))
|
||||
(dired-sort-set-modeline)
|
||||
(revert-buffer))
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; Code to provide a customize-style dialogue-box that allows all sort
|
||||
;; options to be set at once. Care must be taken to access
|
||||
;; `dired-actual-switches' only when the dired buffer is current,
|
||||
;; because this variable is buffer-local. There is currently no good
|
||||
;; way to show that a widget is inactive, so inactive widgets are
|
||||
;; simply not displayed.
|
||||
|
||||
;; Key binding, mnemonic *D*ialogue (d, D and M-d are used):
|
||||
(define-key dired-mode-map "\C-d" 'dired-sort-dialogue)
|
||||
|
||||
(require 'wid-edit)
|
||||
|
||||
;; Buffer-local variables set in dired-sort-dialogue:
|
||||
(make-variable-buffer-local
|
||||
(defvar dired-sort-dialogue-dired-buffer))
|
||||
(make-variable-buffer-local
|
||||
(defvar dired-sort-dialogue-radio-widget))
|
||||
(make-variable-buffer-local
|
||||
(defvar dired-sort-dialogue-reverse-widget nil))
|
||||
(make-variable-buffer-local
|
||||
(defvar dired-sort-dialogue-recursive-widget nil))
|
||||
(make-variable-buffer-local
|
||||
(defvar dired-sort-dialogue-ignore-case-widget nil))
|
||||
(make-variable-buffer-local
|
||||
(defvar dired-sort-dialogue-dirs-first-widget nil))
|
||||
|
||||
(defun dired-sort-dialogue-choice ()
|
||||
"Return string to set Dired sort dialogue radio button choice."
|
||||
(let (case-fold-search
|
||||
(start (string-match "[tSXUuc]" dired-actual-switches)))
|
||||
(if start
|
||||
(substring dired-actual-switches start (1+ start))
|
||||
"")))
|
||||
|
||||
(defsubst dired-sort-dialogue-buffer-p (buffer-name)
|
||||
"Return non-nil if BUFFER-NAME corresponds to a dialogue buffer."
|
||||
(string-match "\\`\\*<\\(.*\\)> Dired Sort Options\\*\\'" buffer-name))
|
||||
|
||||
(defsubst dired-sort-dialogue-buffer-name (&optional buffer)
|
||||
"Return name of dialogue buffer corresponding to dired buffer BUFFER.
|
||||
If BUFFER is nil then current buffer is used."
|
||||
(concat "*<" (buffer-name buffer) "> Dired Sort Options*"))
|
||||
|
||||
(defconst dired-sort-dialogue-width 23
|
||||
"Dired sort dialogue width in characters.")
|
||||
|
||||
;;;###autoload
|
||||
(defun dired-sort-dialogue ()
|
||||
"A static dialogue version of the Dired sort menu.
|
||||
This command *must* be run in the Dired buffer!"
|
||||
(interactive)
|
||||
(or (eq major-mode 'dired-mode)
|
||||
(error "This command may only be run in a Dired buffer"))
|
||||
(let
|
||||
;; Must set these variables while still in the dired buffer!
|
||||
((radio (dired-sort-dialogue-choice))
|
||||
(reverse (dired-sort-menu-switch-p "r"))
|
||||
(recursive (dired-sort-menu-switch-p "R"))
|
||||
(dired-buffer (current-buffer))
|
||||
;; Suspend automatic mechanisms:
|
||||
window-configuration-change-hook
|
||||
kill-buffer-hook)
|
||||
|
||||
;; Check whether a dialogue buffer for this dired buffer is
|
||||
;; already visible, and if so re-use its window:
|
||||
(let ((bufname (dired-sort-dialogue-buffer-name))
|
||||
(bufs (buffer-list)) buf
|
||||
(title (concat "<" (buffer-name dired-buffer) ">")))
|
||||
(while (and bufs (not (string= bufname
|
||||
(buffer-name (setq buf (car bufs))))))
|
||||
(setq bufs (cdr bufs)))
|
||||
(if bufs
|
||||
(progn
|
||||
(if (dired-sort-dialogue-own-frame-really)
|
||||
(progn
|
||||
(select-frame (window-frame (get-buffer-window buf t)))
|
||||
(raise-frame))
|
||||
(select-window (get-buffer-window buf t)))
|
||||
(set-window-dedicated-p (selected-window) nil)
|
||||
(kill-buffer buf))
|
||||
(if (dired-sort-dialogue-own-frame-really)
|
||||
;; If room then put dialogue immediately to the right of
|
||||
;; the dired frame, else at right edge of screen.
|
||||
(let* ((alist (frame-parameters))
|
||||
(top (cdr (assq 'top alist))) ; pixels
|
||||
(left (cdr (assq 'left alist))) ; pixels
|
||||
)
|
||||
;; Allow form INTEGER or (+ INTEGER):
|
||||
(or (atom left) (setq left (cadr left)))
|
||||
;; Set left of dialogue frame to avoid falling off right
|
||||
;; of display:
|
||||
(setq left (+ left (frame-pixel-width)))
|
||||
(setq left (if (> (+ left (* dired-sort-dialogue-width
|
||||
(frame-char-width)))
|
||||
(x-display-pixel-width))
|
||||
-10
|
||||
;; (+ left (* 2 (cdr (assq 'border-width alist))))))
|
||||
(+ left 10)))
|
||||
(select-frame (make-frame
|
||||
`((title . ,title)
|
||||
(top . ,top)
|
||||
(left . ,left)
|
||||
(width . ,dired-sort-dialogue-width)
|
||||
(height . 22)
|
||||
(minibuffer . nil)
|
||||
(vertical-scroll-bars . nil)
|
||||
(horizontal-scroll-bars . nil)
|
||||
(unsplittable . nil)
|
||||
(menu-bar-lines . 0)
|
||||
))))
|
||||
(split-window ; WINDOW SIZE HORIZONTAL
|
||||
nil (- (window-width) dired-sort-dialogue-width) t)
|
||||
(select-window (next-window))))
|
||||
(switch-to-buffer bufname)
|
||||
(set-window-dedicated-p (selected-window) t) ; can crash Emacs!
|
||||
(kill-all-local-variables)
|
||||
; (or buffer-display-table
|
||||
; (setq buffer-display-table
|
||||
; (or standard-display-table (make-display-table))))
|
||||
; (set-display-table-slot buffer-display-table 0 ?_)
|
||||
(setq truncate-lines t
|
||||
mode-line-format title))
|
||||
|
||||
(let ((inhibit-read-only t))
|
||||
(erase-buffer))
|
||||
;; Must set this only once in the dialogue buffer!
|
||||
(setq dired-sort-dialogue-dired-buffer dired-buffer)
|
||||
|
||||
(let ((start (point)))
|
||||
(widget-insert "Dired Sort Options")
|
||||
(put-text-property start (point) 'face 'bold))
|
||||
(widget-insert " for\n<"
|
||||
(buffer-name dired-buffer)
|
||||
">\n\n(Use any mouse button)\n\n ")
|
||||
(setq dired-sort-dialogue-radio-widget
|
||||
(eval `(widget-create
|
||||
'radio-button-choice
|
||||
:indent 1
|
||||
:value radio
|
||||
'(item :tag "Name" "")
|
||||
'(item :tag "Time Modified" "t")
|
||||
,@(if (dired-sort-menu-active-p "S")
|
||||
'('(item :tag "Size" "S")))
|
||||
,@(if (dired-sort-menu-active-p "X")
|
||||
'('(item :tag "Extension" "X")))
|
||||
,@(if (dired-sort-menu-active-p "U")
|
||||
'('(item :tag "Unsorted" "U")))
|
||||
,@(if (dired-sort-menu-active-p "c")
|
||||
`('(item :tag
|
||||
,(if (or (not (eq system-type 'windows-nt))
|
||||
(dired-sort-menu-remote-p))
|
||||
"Time Changed"
|
||||
"Time Created") "c")))
|
||||
,@(if (and (dired-sort-menu-active-p "u")
|
||||
(or (not (eq system-type 'windows-nt))
|
||||
(dired-sort-menu-remote-p)))
|
||||
'('(item :tag "Time Accessed" "u")))
|
||||
)))
|
||||
(widget-insert " _____________________\n\n ")
|
||||
(when (dired-sort-menu-active-p "r")
|
||||
(setq dired-sort-dialogue-reverse-widget
|
||||
(widget-create 'checkbox
|
||||
:help-echo "Reverse the sort order"
|
||||
reverse))
|
||||
(widget-insert " Reverse\n "))
|
||||
(when (dired-sort-menu-active-p "R")
|
||||
(setq dired-sort-dialogue-recursive-widget
|
||||
(widget-create 'checkbox
|
||||
:help-echo "Recursively list all subdirectories"
|
||||
recursive))
|
||||
(widget-insert " Recursive\n "))
|
||||
(when (ls-lisp-var-p 'ls-lisp-ignore-case)
|
||||
(setq dired-sort-dialogue-ignore-case-widget
|
||||
(widget-create 'checkbox
|
||||
:help-echo "Ignore case when sorting"
|
||||
ls-lisp-ignore-case))
|
||||
(widget-insert " Ignore Case\n "))
|
||||
(when (ls-lisp-var-p 'ls-lisp-dirs-first)
|
||||
(setq dired-sort-dialogue-dirs-first-widget
|
||||
(widget-create 'checkbox
|
||||
:help-echo "Sort directories first"
|
||||
ls-lisp-dirs-first))
|
||||
(widget-insert " Dirs First\n "))
|
||||
(widget-insert "_____________________\n\n ")
|
||||
(widget-create 'push-button
|
||||
:notify 'dired-sort-dialogue-OK
|
||||
:help-echo "Apply the settings and close the window"
|
||||
"OK")
|
||||
(widget-insert " ")
|
||||
(widget-create 'push-button
|
||||
:notify 'dired-sort-dialogue-close
|
||||
:help-echo "Close the window and ignore the settings"
|
||||
"Cancel")
|
||||
(widget-insert " ")
|
||||
(widget-create 'push-button
|
||||
:notify 'dired-sort-dialogue-apply
|
||||
:help-echo "Apply the settings without closing the window"
|
||||
"Apply")
|
||||
(widget-setup)
|
||||
(goto-char (point-min))
|
||||
; (use-local-map widget-keymap)
|
||||
; (let ((map (make-sparse-keymap)))
|
||||
; (suppress-keymap map)
|
||||
; (set-keymap-parent map widget-keymap)
|
||||
; (define-key map [down-mouse-1] 'widget-button-click)
|
||||
; (define-key map [down-mouse-3] 'widget-button-click)
|
||||
; (use-local-map map))
|
||||
(let ((map widget-keymap))
|
||||
;; (define-key map [t] 'undefined)
|
||||
;; (define-key map [tab] 'widget-forward)
|
||||
;; (define-key map [return] 'widget-button-press)
|
||||
(define-key map [down-mouse-1] 'widget-button-click)
|
||||
(define-key map [down-mouse-3] 'widget-button-click)
|
||||
;; (define-key map [escape] (lambda () (interactive)
|
||||
;; (dired-sort-dialogue-close)))
|
||||
;; (define-key map "\C-h" 'describe-bindings)
|
||||
(use-local-map map)))
|
||||
;; Set up these hooks here to avoid any possibility of causing
|
||||
;; trouble if the dialogue facility is not used:
|
||||
(add-hook 'kill-buffer-hook
|
||||
'dired-sort-dialogue-auto-kill-1)
|
||||
(add-hook 'window-configuration-change-hook
|
||||
'dired-sort-dialogue-auto-kill-2))
|
||||
|
||||
(defun dired-sort-dialogue-apply (&rest ignore)
|
||||
"Apply the dired sort dialogue settings (without closing it)."
|
||||
(let ((radio-widget dired-sort-dialogue-radio-widget)
|
||||
(reverse-widget dired-sort-dialogue-reverse-widget)
|
||||
(recursive-widget dired-sort-dialogue-recursive-widget)
|
||||
(ignore-case-widget dired-sort-dialogue-ignore-case-widget)
|
||||
(dirs-first-widget dired-sort-dialogue-dirs-first-widget)
|
||||
window-configuration-change-hook)
|
||||
(with-current-buffer dired-sort-dialogue-dired-buffer
|
||||
(if dirs-first-widget
|
||||
(setq ls-lisp-dirs-first
|
||||
(widget-value dirs-first-widget)))
|
||||
(if ignore-case-widget
|
||||
(setq ls-lisp-ignore-case
|
||||
(widget-value ignore-case-widget)))
|
||||
(if recursive-widget
|
||||
(let* (case-fold-search
|
||||
(switches
|
||||
(if (widget-value recursive-widget)
|
||||
(if (not (string-match "R" dired-actual-switches))
|
||||
(concat dired-actual-switches "R")
|
||||
dired-actual-switches)
|
||||
(if (string-match "R" dired-actual-switches)
|
||||
(replace-match "" t t dired-actual-switches)
|
||||
dired-actual-switches))))
|
||||
(dired-sort-menu-R-check switches)
|
||||
(setq dired-actual-switches switches)))
|
||||
(dired-sort-menu-set-switches
|
||||
(widget-value radio-widget)
|
||||
(and reverse-widget (widget-value reverse-widget))))))
|
||||
|
||||
(defun dired-sort-dialogue-close (&rest ignore)
|
||||
"Close the dired sort dialogue (ignoring the settings)."
|
||||
(let ((dired-buffer dired-sort-dialogue-dired-buffer)
|
||||
window-configuration-change-hook
|
||||
kill-buffer-hook)
|
||||
(set-window-dedicated-p (selected-window) nil)
|
||||
(kill-buffer (current-buffer))
|
||||
(if (dired-sort-dialogue-own-frame-really)
|
||||
(delete-frame)
|
||||
(or (one-window-p t) (delete-window)))
|
||||
(select-window (get-buffer-window dired-buffer))))
|
||||
|
||||
(defun dired-sort-dialogue-OK (&rest ignore)
|
||||
"Apply the dired sort dialogue settings and close it."
|
||||
(dired-sort-dialogue-apply)
|
||||
(dired-sort-dialogue-close))
|
||||
|
||||
|
||||
;; Code to keep dialogue buffers tidy.
|
||||
|
||||
(defadvice show-paren-function (around show-paren-function-advice activate)
|
||||
"Do not show matching parens in a dired sort dialogue buffer."
|
||||
(or (dired-sort-dialogue-buffer-p (buffer-name)) ad-do-it))
|
||||
|
||||
(defadvice dired-revert (after dired-revert-advice activate)
|
||||
"Redisplay and update any related dired sort dialogue buffer."
|
||||
(if (and (eq major-mode 'dired-mode)
|
||||
(get-buffer (dired-sort-dialogue-buffer-name)))
|
||||
(if (dired-sort-dialogue-own-frame-really)
|
||||
(let ((frame (selected-frame)))
|
||||
(dired-sort-dialogue)
|
||||
(raise-frame frame))
|
||||
(save-selected-window
|
||||
(dired-sort-dialogue)))))
|
||||
|
||||
(defun dired-sort-dialogue-auto-kill-1 ()
|
||||
"If dialogue buffer is explicitly killed delete its window/frame.
|
||||
Also, kill any dialogue buffer related to a killed dired mode buffer.
|
||||
This function is hung on `kill-buffer-hook'."
|
||||
(if (dired-sort-dialogue-buffer-p (buffer-name))
|
||||
(if (dired-sort-dialogue-own-frame-really)
|
||||
(delete-frame)
|
||||
(delete-window))
|
||||
(let (buf kill-buffer-hook window-configuration-change-hook)
|
||||
(when (and (eq major-mode 'dired-mode)
|
||||
(setq buf
|
||||
(get-buffer
|
||||
(dired-sort-dialogue-buffer-name))))
|
||||
(or (one-window-p t) (delete-windows-on buf))
|
||||
(kill-buffer buf)))))
|
||||
|
||||
(defun dired-sort-dialogue-auto-kill-2 ()
|
||||
"Kill any dialogue buffer that has ceased to be visible.
|
||||
But do nothing if it was explicitly killed. Also, kill any dialogue
|
||||
buffer whose dired buffer has ceased to be visible.
|
||||
This function is hung on `window-configuration-change-hook'."
|
||||
(or (eq this-command 'kill-buffer) ; both are needed!
|
||||
(eq last-command 'kill-buffer) ; both are needed!
|
||||
(let ((bufs (buffer-list)) buf bufname
|
||||
kill-buffer-hook window-configuration-change-hook)
|
||||
(while bufs
|
||||
(setq buf (car bufs)
|
||||
bufs (cdr bufs)
|
||||
bufname (buffer-name buf))
|
||||
(if (dired-sort-dialogue-buffer-p bufname)
|
||||
(cond ((null (get-buffer-window buf 'visible))
|
||||
;; dialogue hidden...
|
||||
(kill-buffer buf))
|
||||
((null (get-buffer-window
|
||||
(get-buffer (match-string 1 bufname)) 'visible))
|
||||
;; dired hidden...
|
||||
(or (one-window-p t)
|
||||
(eq this-command 'mouse-delete-other-windows)
|
||||
(eq this-command 'delete-other-windows)
|
||||
(delete-windows-on buf))
|
||||
(kill-buffer buf))))))))
|
||||
|
||||
(defadvice handle-delete-frame
|
||||
(before handle-delete-frame-advice activate)
|
||||
"Kill dialogue buffer before killing its frame."
|
||||
(let* ((frame (posn-window (event-start event)))
|
||||
(buf (car (buffer-list frame))))
|
||||
(when (dired-sort-dialogue-buffer-p (buffer-name buf))
|
||||
(set-window-dedicated-p (selected-window) nil)
|
||||
(kill-buffer buf))))
|
||||
|
||||
(provide 'dired-sort-menu)
|
||||
|
||||
;;; dired-sort-menu.el ends here
|
||||