Too much new stuff to remember.
This commit is contained in:
parent
b88e85264f
commit
7085c71feb
|
@ -1 +1,44 @@
|
|||
#
|
||||
function get_window_size() {
|
||||
if (window.innerHeight)
|
||||
return [window.innerHeight, window.innerWidth];
|
||||
else if (self.innerHeight)
|
||||
return [self.innerHeight, self.innerWidth];
|
||||
else if (document.documentElement && document.documentElement.clientHeight)
|
||||
return [document.documentElement.clientHeight,
|
||||
document.documentElement.clientWidth];
|
||||
else if (document.body)
|
||||
return [document.body.clientHeight, document.body.clientWidth];
|
||||
}
|
||||
|
||||
function is_screen_media() {
|
||||
return (document.getElementsByTagName('link')[0].getAttribute('media').indexOf(
|
||||
'screen') != -1 || (document.styleSheets &&
|
||||
(document.styleSheets[0].media.mediaText.indexOf(
|
||||
'screen') != -1 || document.styleSheets[0].media.indexOf(
|
||||
'screen') != -1)));
|
||||
}
|
||||
|
||||
function set_min_height() {
|
||||
if (!is_screen_media())
|
||||
return;
|
||||
var ws, wh, ww, h
|
||||
ws = get_window_size()
|
||||
wh = ws[0]
|
||||
ww = ws[1]
|
||||
|
||||
h = metadiv.offsetHeight + 15
|
||||
metadiv.style.position = 'absolute'
|
||||
metadiv.style.bottom = '5px'
|
||||
metadiv.style.width = (bodydiv.offsetWidth - 22) + 'px'
|
||||
bodydiv.style.paddingBottom = h + 'px'
|
||||
|
||||
h = wh - h - menudiv.offsetHeight - 145
|
||||
bodydiv.style.minHeight = h + 'px'
|
||||
}
|
||||
|
||||
window.addEventListener('load', function(event){
|
||||
menudiv = document.getElementById('menu');
|
||||
bodydiv = document.getElementById('body');
|
||||
metadiv = document.getElementById('metadata');
|
||||
set_min_height();
|
||||
}, false);
|
||||
|
|
|
@ -19,13 +19,11 @@ print(' background-color: ' + page_bg + ';')
|
|||
#minilogo {
|
||||
color: #008000;
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
right: 4px;
|
||||
font-family: Inconsolata, 'Dejavu Sans Mono', Consolas, 'Lucida Console',
|
||||
Monaco, mono;
|
||||
font-size: 20px;
|
||||
background-color: #39ffff;
|
||||
padding: 3px;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 20px;
|
||||
height: 126px;
|
||||
background: url('/static/metanohi-minilogo.png') no-repeat center;
|
||||
}
|
||||
|
||||
#menu {
|
||||
|
@ -66,10 +64,14 @@ print(' background-color: ' + page_bg + ';')
|
|||
}
|
||||
|
||||
#body {
|
||||
width: 750px;
|
||||
width: 720px;
|
||||
margin: 0 auto;
|
||||
padding: 5px;
|
||||
background-color: #e3e3e3;
|
||||
background-color: #e9e9e9;
|
||||
border-color: #ddd;
|
||||
border-style: solid;
|
||||
border-width: 3px 1px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#body.full {
|
||||
|
@ -78,7 +80,7 @@ print(' background-color: ' + page_bg + ';')
|
|||
}
|
||||
|
||||
#metadata {
|
||||
margin-top: 8px;
|
||||
margin-top: 10px;
|
||||
border-style: dashed;
|
||||
border-color: #ccc;
|
||||
border-width: 4px 0 0 0;
|
||||
|
|
|
@ -17,6 +17,15 @@ print(page.title, end='')--></title>
|
|||
<meta name='keywords'
|
||||
content='programming, hacking, nqpz, portfolio' />
|
||||
<meta name='generator' content='{generator}' />
|
||||
<link rel='stylesheet' type='text/css' media='screen, tv'
|
||||
href='/static/screen.css' />
|
||||
<link rel='stylesheet' type='text/css' media='print'
|
||||
href='/static/print.css' />
|
||||
<link rel='stylesheet' type='text/css' media='tty'
|
||||
href='/static/tty.css' />
|
||||
<link rel='stylesheet' type='text/css' media='handheld'
|
||||
href='/static/handheld.css' />
|
||||
<link href='/atom.xml' type='application/atom+xml' rel='alternate' title='metanohi atom feed' />
|
||||
<link rel='schema.DCTERMS' href='http://purl.org/dc/terms/' />
|
||||
<meta name='DCTERMS.title' content='{title}' />
|
||||
<meta name='DCTERMS.description' content='{description}' />
|
||||
|
@ -37,18 +46,15 @@ if page.licenses:
|
|||
<meta name='DCTERMS.license' content='{x.url}' />""").format(x=x)-->
|
||||
<meta name='robots' content='ALL' />
|
||||
<link rel='icon' type='image/png' href='/favicon.png' />
|
||||
<link rel='stylesheet' type='text/css' media='screen, tv'
|
||||
href='/static/screen.css' />
|
||||
<link rel='stylesheet' type='text/css' media='print'
|
||||
href='/static/print.css' />
|
||||
<link rel='stylesheet' type='text/css' media='tty'
|
||||
href='/static/tty.css' />
|
||||
<link rel='stylesheet' type='text/css' media='handheld'
|
||||
href='/static/handheld.css' />
|
||||
<!--
|
||||
The following JavaScript file contains trivial code. This website requires
|
||||
it for aesthetic reasons only. Not loading it will not make this website
|
||||
less functional.
|
||||
-->
|
||||
<script type='text/javascript' src='/static/basics.js'></script>
|
||||
</head>
|
||||
<body>
|
||||
<a id='minilogo' href='/'>metanohi</a>
|
||||
<a id='minilogo' href='/'></a>
|
||||
<div id='menu'>
|
||||
<ul id='menulinks'>
|
||||
<!--@preval
|
||||
|
@ -56,7 +62,7 @@ for x in('projects', 'writings', 'films', 'about'):
|
|||
print(' ' * 14 + "<li><a href='/{x}/'>{x}</a></li>".format(x=x))-->
|
||||
</ul>
|
||||
</div>
|
||||
<div id='body'<!--@eval if page.full: print(" class='full'", end='')-->>
|
||||
<div id='body'<!--@eval if page.fullpage: print(" class='full'", end='')-->>
|
||||
<!--@eval print(page.body)-->
|
||||
<div id='metadata'>
|
||||
<!--@eval print(page.metadata_info)-->
|
||||
|
|
|
@ -1,4 +1,13 @@
|
|||
wsgi nohi.wsgi
|
||||
|
||||
title metanohi
|
||||
url http://metanohi.org/
|
||||
description 'This feed contains the newest pages on metanohi
|
||||
author Niels\ Serup
|
||||
email ns@metanohi.org
|
||||
aboutauthorurl http://metanohi.org/about/niels/
|
||||
feeditems 40
|
||||
|
||||
template template.html
|
||||
|
||||
# Convert the static parts of HTML, CSS, and JS files
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#+TITLE: Start
|
||||
#+title: Home
|
||||
|
||||
* Hej!
|
||||
* This is metanohi
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
|
@ -0,0 +1,124 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="8.3823595"
|
||||
height="52.660725"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.0 r9654"
|
||||
sodipodi:docname="metanohi-minilogo.svg"
|
||||
inkscape:export-filename="/home/niels/www/nohi/static/metanohi-minilogo.png"
|
||||
inkscape:export-xdpi="215.34074"
|
||||
inkscape:export-ydpi="215.34074">
|
||||
<defs
|
||||
id="defs4">
|
||||
<linearGradient
|
||||
id="linearGradient3824">
|
||||
<stop
|
||||
style="stop-color:#ff0000;stop-opacity:0.39215687;"
|
||||
offset="0"
|
||||
id="stop3826" />
|
||||
<stop
|
||||
id="stop3840"
|
||||
offset="0.5"
|
||||
style="stop-color:#ff0000;stop-opacity:1;" />
|
||||
<stop
|
||||
style="stop-color:#ff0000;stop-opacity:0.39215687;"
|
||||
offset="1"
|
||||
id="stop3828" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="11.313709"
|
||||
inkscape:cx="-2.3044289"
|
||||
inkscape:cy="24.620941"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="svg2"
|
||||
showgrid="false"
|
||||
inkscape:window-width="1280"
|
||||
inkscape:window-height="1024"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="0"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<path
|
||||
d="m 8.3512889,52.656161 0,-1.166668 -5.37373,0 c -0.388892,0 -0.742428,-0.0353 -1.166668,-0.265148 -0.530308,-0.28283 -0.742426,-0.636362 -0.742426,-0.972218 0,-0.282831 0.176788,-0.601014 0.618689,-0.742428 0.335853,-0.106058 0.72475,-0.08838 1.060607,-0.08838 l 5.603528,0 0,-1.18434 -5.338382,0 c -0.42424,0 -0.760096,-0.03532 -1.272726,-0.335858 -0.212142,-0.141415 -0.724746,-0.441919 -0.724746,-0.936869 0,-0.265147 0.159111,-0.512627 0.459598,-0.636363 0.335853,-0.159092 0.795456,-0.123738 1.166661,-0.123738 l 5.727274,0 0,-1.202019 -5.744945,0 c -0.671717,0 -1.34344,-0.01771 -1.89141502,0.335865 -0.459591,0.3005 -0.636361,0.813126 -0.636361,1.255048 0,0.777776 0.459596,1.502523 1.16666902,1.820702 -0.67172502,0.123739 -1.16666902,0.689399 -1.16666902,1.414148 0,0.671711 0.424238,1.290402 0.98989502,1.661607 l -0.79545402,-0.01771 0,1.184339 8.06060102,0"
|
||||
style="fill:#008000;fill-opacity:1;-inkscape-font-specification:Inconsolata Bold"
|
||||
id="path3758"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
d="m 2.6104019,3.662785 0.745172,0 0,-1.389316 4.306869,0 0,50.381955 0.71992,0.0053 0,-52.660724 -0.71992,0 0,1.351414 -5.052041,0 0,2.31132"
|
||||
style="fill:#008000;fill-opacity:1;-inkscape-font-specification:Inconsolata Bold"
|
||||
id="path3772"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccccccccccc" />
|
||||
<path
|
||||
d="m 0.27519488,35.856867 1.69308202,0.123883 0,1.500374 0.812128,0.01373 0,-1.472851 c 1.073665,0.08256 2.147335,0.123883 3.207227,0.123883 0.564364,0 1.197553,0 1.720619,-0.371652 0.41295,-0.302822 0.660717,-0.7846 0.660717,-1.431552 0,-0.743304 -0.316593,-1.472843 -0.702013,-2.009677 l -0.784595,0.302838 c 0.399176,0.536825 0.578124,1.032368 0.578124,1.417787 0,0.468005 -0.261532,0.949775 -1.018606,1.059893 -0.05511,0 -0.289062,0.04128 -1.211315,0.04128 -0.812125,0 -1.638027,-0.04128 -2.450158,-0.123883 l 0,-2.064741 -0.825893,0 0,2.050975 c 0,0 -1.12872802,-0.09636 -1.48661602,-0.165184 -0.137657,-0.01373 -0.220243,-0.123883 -0.371655,-0.06883 l 0.178958,1.073668"
|
||||
style="fill:#008000;fill-opacity:1;-inkscape-font-specification:Inconsolata Bold"
|
||||
id="path3762"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
d="m 8.3689679,24.792207 0,-1.293165 -4.658939,0 c -0.531442,0 -0.938882,-0.0709 -1.381747,-0.407431 -0.407432,-0.301147 -1.133736,-1.080591 -1.133736,-1.930898 0,-0.407436 0.177168,-0.814869 0.513732,-1.098302 0.531439,-0.442871 1.2223,-0.442871 1.789171,-0.442871 l 4.871519,0 0,-1.257737 -4.906949,0 0,0 c -0.620005,0 -1.293167,0 -1.948608,0.283433 -0.90343802,0.40744 -1.41716402,1.24002 -1.41716402,2.161183 0,1.098311 0.708579,2.090326 1.61203102,2.692623 l -1.41717002,0 0,1.293165 8.07786002,0"
|
||||
style="fill:#008000;fill-opacity:1;-inkscape-font-specification:Inconsolata Bold"
|
||||
id="path3766"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3903"
|
||||
style="fill:#008000;fill-opacity:1;-inkscape-font-specification:Inconsolata Bold"
|
||||
d="m 4.2412449,10.332633 c -2.728791,0 -4.14499802,1.727089 -4.14499802,3.523256 0,2.003411 1.72707602,3.730494 4.17953302,3.730494 2.400638,0 4.093188,-1.709815 4.093188,-3.695957 0,-1.865249 -1.502566,-3.557793 -4.127723,-3.557793 m -3.091479,3.609608 c 0,-1.139877 0.98444,-2.348834 3.143288,-2.348834 1.986143,0 2.987852,1.139872 2.987852,2.279749 0,1.260767 -1.17441,2.400642 -3.126022,2.400642 -1.934331,0 -3.005118,-1.1226 -3.005118,-2.331557" />
|
||||
<path
|
||||
sodipodi:type="arc"
|
||||
style="fill:#008000;fill-opacity:1;stroke:none"
|
||||
id="path3818"
|
||||
sodipodi:cx="211.94649"
|
||||
sodipodi:cy="186.10309"
|
||||
sodipodi:rx="0.84869117"
|
||||
sodipodi:ry="0.84869117"
|
||||
d="m 212.79518,186.10309 a 0.84869117,0.84869117 0 1 1 -1.69738,0 0.84869117,0.84869117 0 1 1 1.69738,0 z"
|
||||
transform="matrix(0,-1.1581814,1.1581814,0,-214.5582,247.4486)" />
|
||||
<path
|
||||
d="m 8.3441519,9.211831 0,-0.921964 -3.276694,0 c -0.37377,0 -0.66033,-0.03738 -0.971798,-0.274105 -0.286569,-0.224255 -0.797373,-0.772459 -0.797373,-1.370487 0,-0.286569 0.124606,-0.573106 0.361307,-0.772448 0.373772,-0.311494 0.859667,-0.311494 1.258345,-0.311494 l 3.426209,0 0,-0.884587 -3.451126,0 0,0 c -0.436062,0 -0.909494,0.01247 -1.370478,0.211785 -0.635409,0.286531 -0.996712,0.859657 -0.996712,1.507527 0,0.772449 0.498356,1.482606 1.133762,1.893753 l -3.30161502,0 c -0.03737,0 -0.07478,0 -0.112128,-0.03738 -0.03738,-0.03738 -0.07478,-0.08719 -0.137042,-0.08719 -0.01247,0 -0.02489,0 -0.03738,0.01247 l 0,1.034092 8.27272102,0"
|
||||
style="fill:#008000;fill-opacity:1;-inkscape-font-specification:Inconsolata Bold"
|
||||
id="path3770"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
d="m 1.1865809,31.225353 0.796118,-0.605745 c -0.674965,-0.657664 -0.882651,-1.540313 -0.882651,-2.284511 0,-0.934577 0.398058,-1.401871 0.761506,-1.626858 0.432671,-0.259604 0.95188,-0.242306 1.367246,-0.242306 l 0.276902,0 0,0.242306 c 0,1.176872 0,2.422973 0.363459,3.426778 0.449979,1.246098 1.384554,1.799921 2.249901,1.799921 1.159571,0 2.249906,-1.003801 2.249906,-2.647964 0,-0.969186 -0.363461,-1.972987 -1.073031,-2.838339 l 0.865344,0 0,-1.176873 -4.897868,0 c -0.640355,0 -1.246092,0.01738 -1.869144,0.380754 -0.84804602,0.519204 -1.29802202,1.523009 -1.29802202,2.751806 0,1.055722 0.328827,2.076836 1.09033402,2.821031 m 3.271021,-4.811331 0.536508,0 c 0.39806,0 0.917273,0 1.488404,0.53652 0.294195,0.294197 0.934567,1.038414 0.934567,2.076832 0,1.055723 -0.674967,1.661459 -1.367245,1.661459 -0.588434,0 -1.228789,-0.398057 -1.471091,-1.384554 -0.173082,-0.726891 -0.121138,-1.782613 -0.121138,-2.613345 l 0,-0.2769"
|
||||
style="fill:#008000;fill-opacity:1;-inkscape-font-specification:Inconsolata Bold"
|
||||
id="path3764"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
d="m 0.09624688,41.032349 c 0,1.886462 1.34994102,3.634465 4.22289302,3.634465 2.647956,0 4.049828,-1.644163 4.049828,-3.790225 0,-1.142255 -0.415366,-2.163367 -1.228796,-2.838338 l -0.67497,0.692278 c 0.588437,0.501898 0.899964,1.263403 0.899964,2.042222 0,1.055722 -0.588441,2.596038 -2.959485,2.682571 l 0,-5.607451 c -0.53652,-0.05194 -1.055736,-0.03459 -1.505712,0.05194 -2.12875402,0.36345 -2.80372202,1.834545 -2.80372202,3.13256 m 3.35754802,2.388361 c -1.869155,-0.2596 -2.405668,-1.453781 -2.405668,-2.301818 0,-1.280717 1.12495,-2.197989 2.405668,-2.04222 l 0,4.344038"
|
||||
style="fill:#008000;fill-opacity:1;-inkscape-font-specification:Inconsolata Bold"
|
||||
id="path3760"
|
||||
inkscape:connector-curvature="0" />
|
||||
</svg>
|
After Width: | Height: | Size: 8.5 KiB |
Loading…
Reference in New Issue