diff options
Diffstat (limited to 'res')
33 files changed, 650 insertions, 0 deletions
diff --git a/res/css/dark.min.css b/res/css/dark.min.css new file mode 100755 index 0000000..ebfa8a8 --- /dev/null +++ b/res/css/dark.min.css @@ -0,0 +1,68 @@ +/* +This stylesheet contains only colors which are +different depending on theme. All other styles have +been moved to global.css and imported below. +*/ +@import url('global.css'); + +div.project pre { + border: 1px solid #666666 +} + +body { + color: #ddd; + background-color: #333; +} + +h1 { + color: #fff; +} + + +h2 { + color: #fff; +} + +h3 { + color: #fff; +} + + + +div.preview pre, div.project pre { + background-color: #222; + color: #ccc; +} + +a { + color: #99f; + text-decoration: none +} +.header { + color: #fff; +} + + +.header .pagetree { + color: #fff; +} + +.header .pagetree .title { + color: #fff +} + + +table.skami .semiused { + color: #ccc; + background-color: #444; + border-color: #FFF; +} + +table.skami .unused { + color: #bbb; + background-color: #555 +} + +table { + border-color: #fff +}
\ No newline at end of file diff --git a/res/css/global.css b/res/css/global.css new file mode 100755 index 0000000..8d2ff53 --- /dev/null +++ b/res/css/global.css @@ -0,0 +1,270 @@ +/* +This stylesheet contains all styles which are +the same across both themes. +*/ +ul { + list-style-type: square; +} + +div.page { + margin-left: 0.5em; + margin-right: 0.5em +} + +h1.inline { + font-family: sans-serif; + font-weight: normal; + margin-top: 0em; + clear: none; + font-size: 100%; + display: inline +} + +h1.inline:before { + content: "" +} + +h1:before { + content: "> " +} + +h2:before { + content: ">> " +} + +h3:before { + content: ">>> " +} + +.toplinks span:after { + content: " >" +} + +h1, h2, h3 { + font-family: Monospace; + font-weight: normal; + margin-top: 1em; + clear: left +} + +img { + border: none; + max-width: 100% +} + +img.right { + float: right; + margin-left: 0.5em +} + +div.preview { + display: inline-block; + width: 30em; + max-width: 100%; + text-align: center; + vertical-align: top; + margin-bottom: 2em +} + +div.project { + display: inline-block; + width: 40em; + max-width: 100%; + text-align: center; + vertical-align: top; + margin-bottom: 2em +} + +div.preview .heading .name, div.project .heading .name { + font-size: 120% +} + +div.preview img, div.project img { + width: auto; + max-width: 90%; + max-height: 15em +} + +div.preview pre.small, div.project pre.small { + font-size: 75%; + overflow: hidden +} + +pre { + display: inline; + max-width: 95%; + overflow: auto +} + +.header a { + text-decoration: none +} + +nav { + margin-bottom: 0.3em +} + +div.ddate { + text-align: center +} + +div.note { + font-style: italic +} + +table { + border-collapse: collapse +} + +table.noborder td { + border: none +} + +table.skami a { + text-decoration: none +} + +table.weather th { + font-weight: normal +} + +table.weather td { + font-weight: bold; + text-align: right +} + +.project .name { + font-weight: bold +} + +.toplinks a { + margin-right: 0.5em; + text-decoration: none +} + +div.inlinepage { + margin-top: 2em; + border: 0; + padding: 0 +} + +div.pheader { + font-size: 120% +} + +div.pheader span.date { + margin-right: 1em; + font-weight: normal +} + +div.pheader a { + font-weight: bold; + text-decoration: none +} + +div.rss { + position: absolute; + top: 1em; + right: 1em +} + +div.archived { + margin-top: 0.5em +} + +div.archived span.date { + font-style: italic; + margin-right: 0.2em +} + +video { + max-width: 100% +} + +.toplinks span { + display: block; + text-align: right; + float: left; + width: 8em; + margin-right: 0.5em +} + +.deprecated { + line-height: 140%; + width: 100%; + color: #aa0000; + text-align: center; + padding-bottom: 0.5em; + border-bottom: 2px dashed #aa0000 +} + +.project .attributes { + font-style: italic +} + +.project .attribbracket { + margin-left: 0.5em +} + +.toplinks { + line-height: 140%; + width: 100%; + padding-top: 0.5em; + padding-bottom: 0.5em; + border-bottom: 1px solid #cccccc +} + +table td { + border: 1px solid white +} + +td { + vertical-align: top; +} + +table.skami { + border-color: #eeeeee !important +} + +.header .pagetree { + font-size: 80%; + display: block; + text-align: center; + width: 100%; + padding-top: 0.1em; + padding-bottom: 0.1em; + border-top: 1px solid #cccccc +} + +.header { + font-size: 100%; + font-weight: normal; + padding-bottom: 0em; + border-bottom: 1px solid #cccccc; + text-align: center +} + +div.preview pre, div.project pre { + display: inline-block; + text-align: left; + padding: 0.2em; + max-width: 90% +} + +h1 { + font-size: 150% +} + + +h2 { + font-size: 130% +} + +h3 { + font-size: 115% +} + +body { + font-family: sans-serif; + margin: 0px; +} diff --git a/res/css/light.min.css b/res/css/light.min.css new file mode 100755 index 0000000..96b5b4d --- /dev/null +++ b/res/css/light.min.css @@ -0,0 +1,286 @@ +@import url('global.css'); + +body { + font-family: sans-serif; + color: #000; + background-color: #fff; + margin: 0px; +} + +div.page { + margin-left: 0.5em; + margin-right: 0.5em +} + +h1.inline { + font-family: sans-serif; + font-weight: normal; + margin-top: 0em; + clear: none; + font-size: 100%; + display: inline +} + +h1.inline:before { + content: "" +} + +h1:before { + content: "> " +} + +h1, h2, h3 { + font-family: Monospace; + font-weight: normal; + margin-top: 1em; + clear: left +} + +h1 { + color: #333; + font-size: 150% +} + +h2:before { + content: ">> " +} + +h2 { + color: #333; + font-size: 130% +} + +h3:before { + content: ">>> " +} + +h3 { + color: #333; + font-size: 115% +} + +img { + border: none; + max-width: 100% +} + +img.right { + float: right; + margin-left: 0.5em +} + +div.preview { + display: inline-block; + width: 30em; + max-width: 100%; + text-align: center; + vertical-align: top; + margin-bottom: 2em +} + +div.project { + display: inline-block; + width: 40em; + max-width: 100%; + text-align: center; + vertical-align: top; + margin-bottom: 2em +} + +div.preview .heading .name, div.project .heading .name { + font-size: 120% +} + +div.preview img, div.project img { + width: auto; + max-width: 90%; + max-height: 15em +} + +div.preview pre, div.project pre { + display: inline-block; + text-align: left; + background-color: #333; + color: #fff; + padding: 0.2em; + max-width: 90% +} + +div.preview pre.small, div.project pre.small { + font-size: 75%; + overflow: hidden +} + +a { + color: #009; + text-decoration: none +} + +pre { + max-width: 95%; + overflow: auto +} + +.header { + font-size: 100%; + font-weight: normal; + color: #333; + padding-bottom: 0em; + border-bottom: 1px solid #cccccc; + text-align: center +} + +.header a { + text-decoration: none +} + +nav { + margin-bottom: 0.3em +} + +div.ddate { + text-align: center +} + +.header .pagetree { + font-size: 80%; + color: #333; + display: block; + text-align: center; + width: 100%; + padding-top: 0.1em; + padding-bottom: 0.1em; + border-top: 1px solid #cccccc +} + +.header .pagetree .title { + color: #333 +} + +div.note { + font-style: italic +} + +table { + border-collapse: collapse +} + +table td { + border: 1px solid black +} + +table.noborder td { + border: none +} + +table.skami { + border-color: #eeeeee +} + +table.skami .semiused { + color: #111; + background-color: #eee +} + +table.skami .unused { + color: #222; + background-color: #ddd +} + +table.skami a { + text-decoration: none +} + +table.weather th { + font-weight: normal +} + +table.weather td { + font-weight: bold; + text-align: right +} + +.project .name { + font-weight: bold +} + +.project .attributes { + font-style: italic +} + +.project .attribbracket { + margin-left: 0.5em +} + +.toplinks { + line-height: 140%; + width: 100%; + padding-top: 0.5em; + padding-bottom: 0.5em; + border-bottom: 1px solid #cccccc +} + +.toplinks span { + display: block; + text-align: right; + float: left; + width: 8em; + margin-right: 0.5em +} + +.toplinks span:after { + content: " >" +} + +.toplinks a { + margin-right: 0.5em; + text-decoration: none +} + +.deprecated { + line-height: 140%; + width: 100%; + color: #aa0000; + text-align: center; + padding-bottom: 0.5em; + border-bottom: 2px dashed #aa0000 +} + +div.inlinepage { + margin-top: 2em; + border: 0; + padding: 0 +} + +div.pheader { + font-size: 120% +} + +div.pheader span.date { + margin-right: 1em; + font-weight: normal +} + +div.pheader a { + font-weight: bold; + text-decoration: none +} + +div.rss { + position: absolute; + top: 1em; + right: 1em +} + +div.archived { + margin-top: 0.5em +} + +div.archived span.date { + font-style: italic; + margin-right: 0.2em +} + +video { + max-width: 100% +}
\ No newline at end of file diff --git a/res/img/calculators/casio-fx-120/1s.jpeg b/res/img/calculators/casio-fx-120/1s.jpeg Binary files differnew file mode 100755 index 0000000..9b253d7 --- /dev/null +++ b/res/img/calculators/casio-fx-120/1s.jpeg diff --git a/res/img/calculators/casio-fx-120/2s.jpeg b/res/img/calculators/casio-fx-120/2s.jpeg Binary files differnew file mode 100755 index 0000000..0cdb616 --- /dev/null +++ b/res/img/calculators/casio-fx-120/2s.jpeg diff --git a/res/img/calculators/casio-fx-120/3s.jpeg b/res/img/calculators/casio-fx-120/3s.jpeg Binary files differnew file mode 100755 index 0000000..c87c2db --- /dev/null +++ b/res/img/calculators/casio-fx-120/3s.jpeg diff --git a/res/img/calculators/casio-fx-120/4s.jpeg b/res/img/calculators/casio-fx-120/4s.jpeg Binary files differnew file mode 100755 index 0000000..3981a43 --- /dev/null +++ b/res/img/calculators/casio-fx-120/4s.jpeg diff --git a/res/img/calculators/casio-fx-120/pspbrwse.jbf b/res/img/calculators/casio-fx-120/pspbrwse.jbf Binary files differnew file mode 100755 index 0000000..e9f587f --- /dev/null +++ b/res/img/calculators/casio-fx-120/pspbrwse.jbf diff --git a/res/img/calculators/casio-fx-82/1s.jpeg b/res/img/calculators/casio-fx-82/1s.jpeg Binary files differnew file mode 100755 index 0000000..d5ba32f --- /dev/null +++ b/res/img/calculators/casio-fx-82/1s.jpeg diff --git a/res/img/calculators/casio-fx-82/2s.jpeg b/res/img/calculators/casio-fx-82/2s.jpeg Binary files differnew file mode 100755 index 0000000..29c8469 --- /dev/null +++ b/res/img/calculators/casio-fx-82/2s.jpeg diff --git a/res/img/calculators/casio-fx-82/3s.jpeg b/res/img/calculators/casio-fx-82/3s.jpeg Binary files differnew file mode 100755 index 0000000..9aa97bb --- /dev/null +++ b/res/img/calculators/casio-fx-82/3s.jpeg diff --git a/res/img/calculators/casio-fx-82/4s.jpeg b/res/img/calculators/casio-fx-82/4s.jpeg Binary files differnew file mode 100755 index 0000000..de0714c --- /dev/null +++ b/res/img/calculators/casio-fx-82/4s.jpeg diff --git a/res/img/calculators/casio-fx-82/pspbrwse.jbf b/res/img/calculators/casio-fx-82/pspbrwse.jbf Binary files differnew file mode 100755 index 0000000..2c4f9a7 --- /dev/null +++ b/res/img/calculators/casio-fx-82/pspbrwse.jbf diff --git a/res/img/calculators/casio-fx-cg50/1s.jpeg b/res/img/calculators/casio-fx-cg50/1s.jpeg Binary files differnew file mode 100755 index 0000000..6526f7c --- /dev/null +++ b/res/img/calculators/casio-fx-cg50/1s.jpeg diff --git a/res/img/calculators/casio-fx-cg50/2s.jpeg b/res/img/calculators/casio-fx-cg50/2s.jpeg Binary files differnew file mode 100755 index 0000000..9feb772 --- /dev/null +++ b/res/img/calculators/casio-fx-cg50/2s.jpeg diff --git a/res/img/calculators/casio-fx-cg50/3s.jpeg b/res/img/calculators/casio-fx-cg50/3s.jpeg Binary files differnew file mode 100755 index 0000000..21c8066 --- /dev/null +++ b/res/img/calculators/casio-fx-cg50/3s.jpeg diff --git a/res/img/calculators/casio-fx-cg50/4s.jpeg b/res/img/calculators/casio-fx-cg50/4s.jpeg Binary files differnew file mode 100755 index 0000000..c09618e --- /dev/null +++ b/res/img/calculators/casio-fx-cg50/4s.jpeg diff --git a/res/img/calculators/casio-fx-cg50/pspbrwse.jbf b/res/img/calculators/casio-fx-cg50/pspbrwse.jbf Binary files differnew file mode 100755 index 0000000..471fc12 --- /dev/null +++ b/res/img/calculators/casio-fx-cg50/pspbrwse.jbf diff --git a/res/img/calculators/texet-880/1s.jpeg b/res/img/calculators/texet-880/1s.jpeg Binary files differnew file mode 100755 index 0000000..14f849c --- /dev/null +++ b/res/img/calculators/texet-880/1s.jpeg diff --git a/res/img/calculators/texet-880/2s.jpeg b/res/img/calculators/texet-880/2s.jpeg Binary files differnew file mode 100755 index 0000000..836997c --- /dev/null +++ b/res/img/calculators/texet-880/2s.jpeg diff --git a/res/img/calculators/texet-880/3s.jpeg b/res/img/calculators/texet-880/3s.jpeg Binary files differnew file mode 100755 index 0000000..2312952 --- /dev/null +++ b/res/img/calculators/texet-880/3s.jpeg diff --git a/res/img/calculators/texet-880/4s.jpeg b/res/img/calculators/texet-880/4s.jpeg Binary files differnew file mode 100755 index 0000000..0b9fee8 --- /dev/null +++ b/res/img/calculators/texet-880/4s.jpeg diff --git a/res/img/calculators/texet-880/pspbrwse.jbf b/res/img/calculators/texet-880/pspbrwse.jbf Binary files differnew file mode 100755 index 0000000..67f6254 --- /dev/null +++ b/res/img/calculators/texet-880/pspbrwse.jbf diff --git a/res/img/calculators/ti-30/1s.jpeg b/res/img/calculators/ti-30/1s.jpeg Binary files differnew file mode 100755 index 0000000..80133d5 --- /dev/null +++ b/res/img/calculators/ti-30/1s.jpeg diff --git a/res/img/calculators/ti-30/2s.jpeg b/res/img/calculators/ti-30/2s.jpeg Binary files differnew file mode 100755 index 0000000..1b18bac --- /dev/null +++ b/res/img/calculators/ti-30/2s.jpeg diff --git a/res/img/calculators/ti-30/3s.jpeg b/res/img/calculators/ti-30/3s.jpeg Binary files differnew file mode 100755 index 0000000..d51f4bd --- /dev/null +++ b/res/img/calculators/ti-30/3s.jpeg diff --git a/res/img/calculators/ti-30/4s.jpeg b/res/img/calculators/ti-30/4s.jpeg Binary files differnew file mode 100755 index 0000000..027f74d --- /dev/null +++ b/res/img/calculators/ti-30/4s.jpeg diff --git a/res/img/calculators/ti-30/pspbrwse.jbf b/res/img/calculators/ti-30/pspbrwse.jbf Binary files differnew file mode 100755 index 0000000..dc20900 --- /dev/null +++ b/res/img/calculators/ti-30/pspbrwse.jbf diff --git a/res/img/calculatorssmol.7z b/res/img/calculatorssmol.7z Binary files differnew file mode 100755 index 0000000..9aaccef --- /dev/null +++ b/res/img/calculatorssmol.7z diff --git a/res/img/icons/ico/calc.ico b/res/img/icons/ico/calc.ico Binary files differnew file mode 100755 index 0000000..b304c47 --- /dev/null +++ b/res/img/icons/ico/calc.ico diff --git a/res/img/icons/ico/favicon.ico b/res/img/icons/ico/favicon.ico Binary files differnew file mode 100755 index 0000000..848cc6f --- /dev/null +++ b/res/img/icons/ico/favicon.ico diff --git a/res/img/icons/png/Calculator-11.png b/res/img/icons/png/Calculator-11.png Binary files differnew file mode 100755 index 0000000..bdc9e06 --- /dev/null +++ b/res/img/icons/png/Calculator-11.png diff --git a/res/js/themeswap.js b/res/js/themeswap.js new file mode 100755 index 0000000..12969a0 --- /dev/null +++ b/res/js/themeswap.js @@ -0,0 +1,26 @@ +function addStyleSheet(name, id) { + var path = '/res/css/' + name + '.min.css'; + var old = document.getElementById(id); + if (old && (old.href != path)) { + old.href = path; + } +} + +var otherTheme = { + 'dark': 'light', + 'light': 'dark', +}; + +var currentTheme = localStorage.getItem('theme'); + +if (!otherTheme.hasOwnProperty(currentTheme)) { + currentTheme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'; +} + +addStyleSheet(currentTheme, 'theme'); + +function toggleTheme() { + currentTheme = otherTheme[currentTheme] || 'light'; + localStorage.setItem('theme', currentTheme); + addStyleSheet(currentTheme, 'theme'); +}
\ No newline at end of file |