diff --git a/proj/batteries/index.html b/proj/batteries/index.html index d743c3f..d5f17ad 100644 --- a/proj/batteries/index.html +++ b/proj/batteries/index.html @@ -4,41 +4,7 @@
-
\ No newline at end of file
+
++ @_sjs +
\ No newline at end of file diff --git a/proj/format/index.html b/proj/format/index.html index 70828b7..d56f347 100644 --- a/proj/format/index.html +++ b/proj/format/index.html @@ -4,41 +4,7 @@
-
\ No newline at end of file
+
++ @_sjs +
\ No newline at end of file diff --git a/proj/gitter/index.html b/proj/gitter/index.html index 1b885ad..73984fa 100644 --- a/proj/gitter/index.html +++ b/proj/gitter/index.html @@ -4,41 +4,7 @@
-
\ No newline at end of file
+
++ @_sjs +
\ No newline at end of file diff --git a/proj/index.html b/proj/index.html index 9065661..50b9c9a 100644 --- a/proj/index.html +++ b/proj/index.html @@ -5,13 +5,7 @@
people+
+ @_sjs +
+ diff --git a/proj/proj.css b/proj/proj.css new file mode 100644 index 0000000..036eff4 --- /dev/null +++ b/proj/proj.css @@ -0,0 +1,51 @@ +#forkme { position: absolute + ; top: 0 + ; right: 0 + } + +#info { text-align: center + ; margin: 1em auto + ; padding: 1em + ; border: solid 1px #ccc + ; width: 90% + ; max-width: 950px + ; background-color: #fff + ; border-radius: 20px + ; -webkit-border-radius: 20px + ; -moz-border-radius: 20px + } + +h4 { margin: 0.5em 0 0.7em } + +#info > div { text-align: center + ; font-size: 1.3em + ; width: 32% + ; max-width: 400px + ; float: left + ; padding: 0.5em 0.2em + ; border-left: dashed 1px #aaa + } + +#info > div:first-child { border-left: none } + +#info div:last-child { clear: both + ; float: none + ; border: none + ; height: 0 + ; width: 0 + ; padding: 0 + } + +@media only screen and (max-device-width:480px) { + #info { width: 80% + ; max-width: 400px + ; padding: 0 1em + } + + #info > div { clear: left + ; width: 100% + ; max-width: 100% + ; padding: 0.5em 0.2em 1em + ; border-left: none + } +} diff --git a/proj/proj.js b/proj/proj.js new file mode 100644 index 0000000..1824e15 --- /dev/null +++ b/proj/proj.js @@ -0,0 +1,115 @@ +(function() { + function addClass(el, name) { + var c = el.className || name + if (!c.match(new RegExp('\b' + name + '\b', 'i'))) c += ' ' + name + } + function html(id, h) { + document.getElementById(id).innerHTML = h + } + function text(id, text) { + document.getElementById(id).innerText = text + } + function highlight(id) { + document.getElementById(id).style.className = ' highlight' + } + function textHighlight(id, text) { + var el = document.getElementById(id) + el.innerText = text + el.className = ' highlight' + } + function hide(id) { + document.getElementById(id).style.display = 'none' + } + + function langsByUsage(langs) { + return Object.keys(langs).sort(function(a, b) { + return langs[a] < langs[b] ? -1 : 1 + }) + } + + function updateBranches(name, branches) { + function branchLink(b) { + return '' + b + '' + } + html('branches', Object.keys(branches).map(branchLink).join('
-
\ No newline at end of file
+
++ @_sjs +
\ No newline at end of file diff --git a/proj/strftime/index.html b/proj/strftime/index.html index 8dddd13..57d035d 100644 --- a/proj/strftime/index.html +++ b/proj/strftime/index.html @@ -4,41 +4,7 @@
-
\ No newline at end of file
+
++ @_sjs +
\ No newline at end of file diff --git a/proj/template/index.html b/proj/template/index.html index 99892d1..7263ad9 100644 --- a/proj/template/index.html +++ b/proj/template/index.html @@ -4,40 +4,7 @@