diff options
author | Yorhel <git@yorhel.nl> | 2008-10-26 13:23:15 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2008-10-26 13:23:15 +0100 |
commit | 45802c119b3f3a36ffae3296b37d51dd3a454f29 (patch) | |
tree | dde77096c1d248596c0c1d9b25f546db881ffd11 /static | |
parent | 3fb8a1ca280184cbe9b9873b2c736cab446414ac (diff) |
Removing all files we're not going to use with the rewrite
...this is basically everything we're going to rewrite
Diffstat (limited to 'static')
-rw-r--r-- | static/files/blank.css | 0 | ||||
-rw-r--r-- | static/files/def.js | 479 | ||||
-rw-r--r-- | static/files/dyna.js | 815 | ||||
-rw-r--r-- | static/files/footer.gif | bin | 91 -> 0 bytes | |||
-rw-r--r-- | static/files/graph.png | bin | 601 -> 0 bytes | |||
-rw-r--r-- | static/files/headerbg.jpg | bin | 6068 -> 0 bytes | |||
-rw-r--r-- | static/files/headerbot.png | bin | 2343 -> 0 bytes | |||
-rw-r--r-- | static/files/icons.png | bin | 3208 -> 0 bytes | |||
-rw-r--r-- | static/files/rss.png | bin | 735 -> 0 bytes | |||
-rw-r--r-- | static/files/select.png | bin | 1165 -> 0 bytes | |||
-rw-r--r-- | static/files/sidebarbg.jpg | bin | 3035 -> 0 bytes | |||
-rw-r--r-- | static/files/sidebarbot.jpg | bin | 1642 -> 0 bytes | |||
-rw-r--r-- | static/files/sidebg.jpg | bin | 553 -> 0 bytes | |||
-rw-r--r-- | static/files/style.css | 923 | ||||
-rw-r--r-- | static/files/uicons.png | bin | 4404 -> 0 bytes | |||
-rw-r--r-- | static/files/warning.png | bin | 2348 -> 0 bytes |
16 files changed, 0 insertions, 2217 deletions
diff --git a/static/files/blank.css b/static/files/blank.css deleted file mode 100644 index e69de29b..00000000 --- a/static/files/blank.css +++ /dev/null diff --git a/static/files/def.js b/static/files/def.js deleted file mode 100644 index 4928cb84..00000000 --- a/static/files/def.js +++ /dev/null @@ -1,479 +0,0 @@ - - -/* G L O B A L S T U F F */ - -function x(y){return document.getElementById(y)} -function cl(o,f){if(x(o))x(o).onclick=f} -function DOMLoad(y){var d=0;var f=function(){if(d++)return;y()}; -if(document.addEventListener)document.addEventListener("DOMCont" -+"entLoaded",f,false);document.write("<script id=_ie defer src=" -+"javascript:void(0)><\/script>");document.getElementById('_ie') -.onreadystatechange=function(){if(this.readyState=="complete")f() -};if(/WebKit/i.test(navigator.userAgent))var t=setInterval( -function(){if(/loaded|complete/.test(document.readyState)){ -clearInterval(t);f()}},10);window.onload=f;} - - - - -/* F O R M S U B S */ - -var formsubs = []; -function formhid() { - var i; - var j; - var l = document.forms[1].getElementsByTagName('a'); - for(i=0; i<l.length; i++) - if(l[i].className.indexOf('s_') != -1) { - formsubs[ l[i].className.substr(l[i].className.indexOf('s_')+2) ] = 0; - l[i].onclick = function() { - formtoggle(this.className.substr(this.className.indexOf('s_')+2)); - return false; - }; - } - - if(x('_hid') && x('_hid').value.length > 1) { - l = x('_hid').value.split(/,/); - for(i in formsubs) { - var inz=0; - for(j=0; j<l.length; j++) - if(l[j] == i) - inz = 1; - if(!inz) - formsubs[i] = !formsubs[i]; - } - } - if(x('screenshots') && !formsubs['scr']) - scrLoad(); -} -function formtoggle(n) { - formsubs[n] = !formsubs[n]; - if(x('screenshots') && !formsubs['scr'] && !x('scrTbl')) - scrLoad(); - - var i; - var l = document.forms[1].getElementsByTagName('a'); - for(i=0; i<l.length; i++) - if(l[i].className.indexOf('s_'+n) != -1) - l[i].innerHTML = (formsubs[n] ? '▸' : '▾') + l[i].innerHTML.substr(1); - - l = document.forms[1].getElementsByTagName('li'); - for(i=0; i<l.length; i++) - if(l[i].className.indexOf('sf_'+n) != -1) { - if(formsubs[n]) - l[i].className += ' formhid'; - else - l[i].className = l[i].className.replace(/formhid/g, ''); - } - - if(x('_hid')) { - l = []; - for(i in formsubs) - if(!formsubs[i]) - l[l.length] = i; - x('_hid').value = l.toString(); - } -} - - - - -/* D R O P D O W N M E N U S */ - -var ddx;var ddy;var dds=null; -function dropDown(e) { - e = e || window.event; - var tg = e.target || e.srcElement; - while(tg && (tg.nodeType == 3 || tg.nodeName.toLowerCase() != 'a')) - tg = tg.parentNode; - - if(tg && tg.rel) - tg.rel = tg.rel.replace(/ *nofollow */,""); - if(!dds && (!tg || !tg.rel || tg.className.indexOf('dropdown') < 0)) - return; - - if(!dds) { - var obj=tg; - ddx = ddy = 0; - do { - ddx += obj.offsetLeft; - ddy += obj.offsetTop; - } while(obj = obj.offsetParent); - if(tg.className.indexOf('above') >= 0) { - ddx += 30; - ddy -= x(tg.rel).offsetHeight - 20; - } - else - ddy += 16; - obj = x(tg.rel); - obj.style.left = ddx+'px'; - obj.style.top = ddy+'px'; - dds = tg; - } - - if(dds) { - var mouseX = e.pageX || (e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft); - var mouseY = e.pageY || (e.clientY + document.body.scrollTop + document.documentElement.scrollTop); - var obj = x(dds.rel); - if((mouseX < ddx-25 || mouseX > ddx+obj.offsetWidth+5 || mouseY < ddy-20 || mouseY > ddy + obj.offsetHeight) - || (tg && tg.className.indexOf('dropdown') >= 0 && tg != dds)) { - obj.style.left = '-500px'; - dds = null; - } - } -} - - - - -/* A D V A N C E D S E A R C H */ - -var ad_cats = {}; -var ad_lang = {}; -var ad_plat = {}; - -function adsearch() { - x('vsearch').onsubmit = ad_dosearch; - x('vsearch_sub').onclick = ad_dosearch; - x('q').onkeyup = ad_update; - - x('adsearchclick').onclick = function() { - if(x('adsearch').style.display == 'none') { - x('adsearch').style.display = 'block'; - x('adsearchclick').innerHTML = '▾ advanced options'; - } else { - x('adsearch').style.display = 'none'; - x('adsearchclick').innerHTML = '▸ advanced options'; - } - }; - - var l = x('cat').getElementsByTagName('li'); - for(i=0;i<l.length;i++) - if(l[i].id.indexOf('cat_') != -1) { - ad_cats[ l[i].id.substr(l[i].id.indexOf('cat_')+4, 3) ] = l[i].innerHTML.substring(0, l[i].innerHTML.indexOf('(')-1).toLowerCase(); - l[i].onclick = function () { - try { document.selection.empty() } catch(e) { try { window.getSelection().collapse(this, 0) } catch(e) {} }; - ad_update(1, this.innerHTML.substring(0, this.innerHTML.indexOf('(')-1)); - }; - } - - l = x('lfilter').getElementsByTagName('input'); - for(i=0;i<l.length;i++) { - ad_lang[ l[i].name.substring(5) ] = l[i].value.toLowerCase(); - l[i].onclick = function() { ad_update(0, this.value) }; - } - - l = x('pfilter').getElementsByTagName('input'); - for(i=0;i<l.length;i++) { - ad_plat[ l[i].name.substring(5) ] = l[i].value.toLowerCase(); - l[i].onclick = function() { ad_update(0, this.value) }; - } - - ad_update(); -} - -function ad_update(add, term) { - var q = x('q').value; - var i; - - if(add == 0 || add === 1) { - var qn = q; - if(!add) - eval('qn = qn.replace(/'+term+'/gi, "")'); - else { - eval('qn = qn.replace(/(^|[^-])'+term+'/gi, "$1-'+term+'")'); - if(qn == q) - eval('qn = qn.replace(/-'+term+'/gi, "")'); - } - if(qn == q) - q += ' '+term; - else - q = qn; - - q = q.replace(/^ +/, ""); - q = q.replace(/ +$/, ""); - q = q.replace(/ +/g, " "); - - x('q').value = q; - } - - q = q.toLowerCase(); - for (i in ad_lang) - x('lang_'+i).checked = q.indexOf(ad_lang[i]) >= 0 || q.indexOf('l:'+i) >= 0 ? true : false; - for (i in ad_plat) - x('plat_'+i).checked = q.indexOf(ad_plat[i]) >= 0 || q.indexOf('p:'+i) >= 0 ? true : false; - for (i in ad_cats) - x('cat_'+i).className = q.indexOf('-'+ad_cats[i]) >= 0 || q.indexOf('-c:'+i) >= 0 ? 'exc' : q.indexOf(ad_cats[i]) >= 0 || q.indexOf('c:'+i) >= 0 ? 'inc' : ''; -} - -function ad_dosearch() { - location.href = '?q='+x('q').value; - return false; -} - - - -/* S C R E E N S H O T S */ - -var scrNsfwEnabled = null; -function scrNsfwHid() { - var l=x('screenshots').getElementsByTagName('a'); - var i; - if(scrNsfwEnabled == null) - scrNsfwEnabled = 0; - else { - for(i=0;i<l.length;i++) - if(l[i].className.indexOf('scr_nsfw')>=0) - l[i].style.display = scrNsfwEnabled ? 'block' : 'none'; - scrNsfwEnabled = scrNsfwEnabled ? 0 : 1; - } - - var t=0;var n=0; - for(i=0;i<l.length;i++) { - if(l[i].className.indexOf('shot')<0) - continue; - t++; - if(l[i].className.indexOf('scr_nsfw')>=0) - n++; - if(l[i].style.display == 'none') - scrNsfwEnabled = 1; - } - x('scrNsfwHid').innerHTML = 'Showing '+(t-(scrNsfwEnabled?n:0))+' out of '+t+' items. ' - +(scrNsfwEnabled ? '<a href="javascript:scrNsfwHid()">Show</a> / hide' : 'Show / <a href="javascript:scrNsfwHid()">hide</a>') - +' nsfw.'; -} -function scrView(what) { - what = what && what.rel ? what : this; - var u=what.href; - var r=what.rel; - d = x('scrView'); - - // fix prev/next links (if any) - var ol=x('screenshots').getElementsByTagName('a'); - if(ol.length > 0) { - var l=[]; - for(i=0;i<ol.length;i++) - if(ol[i].className.indexOf('shot')>=0 && (!scrNsfwEnabled || ol[i].className.indexOf('scr_nsfw')<0)) - l[l.length] = ol[i]; - - ol=0; - for(i=0;i<l.length;i++) - if(l[i].href == u) { - ol=1; - x('scrnext').style.visibility = l[i+1] ? 'visible' : 'hidden'; - x('scrnext').href = l[i+1] ? l[i+1].href : '#'; - x('scrnext').rel = l[i+1] ? l[i+1].rel : ''; - x('scrprev').style.visibility = l[i-1] ? 'visible' : 'hidden'; - x('scrprev').href = l[i-1] ? l[i-1].href : '#'; - x('scrprev').rel = l[i-1] ? l[i-1].rel : ''; - } - } else - ol=0; - if(!ol) - x('scrnext').style.visibility = x('scrprev').style.visibility = 'hidden'; - - // calculate dimensions - var w = Math.floor(r.split('x')[0]); - var h = Math.floor(r.split('x')[1]); - var ww = typeof(window.innerWidth) == 'number' ? window.innerWidth : document.documentElement.clientWidth; - var wh = typeof(window.innerHeight) == 'number' ? window.innerHeight : document.documentElement.clientHeight; - var st = typeof(window.pageYOffset) == 'number' ? window.pageYOffset : document.body && document.body.scrollTop ? document.body.scrollTop : document.documentElement.scrollTop; - if(w+100 > ww || h+70 > wh) { - x('scrfull').href = u; - x('scrfull').innerHTML = w+'x'+h; - x('scrfull').style.visibility = 'visible'; - if(w/h > ww/wh) { // width++ - h *= (ww-100)/w; - w = ww-100; - } else { // height++ - w *= (wh-70)/h; - h = wh-70; - } - } else - x('scrfull').style.visibility = 'hidden'; - var dw = w; - var dh = h+20; - dw = dw < 200 ? 200 : dw; - - // update document - d.style.display = 'block'; - x('scrimg').innerHTML = '<img src="'+u+'" onclick="scrClose()" onload="document.getElementById(\'scrimgload\').style.top=\'-400px\'" style="width: '+w+'px; height: '+h+'px" />'; - d.style.width = dw+'px'; - d.style.height = dh+'px'; - d.style.left = ((ww - dw) / 2 - 10)+'px'; - d.style.top = ((wh - dh) / 2 + st - 20)+'px'; - x('scrimgload').style.left = ((ww - 100) / 2 - 10)+'px'; - x('scrimgload').style.top = ((wh - 20) / 2 + st)+'px'; - return false; -} -function scrClose() { - x('scrView').style.display = 'none'; - x('scrView').style.top = '-5000px'; - x('scrimg').innerHTML = ''; - return false; -} - - - - -/* O N L O A D */ - -DOMLoad(function() { - var i; - - // search box - i = x('searchfield'); - i.onfocus = function () { - if(this.value == 'search') { - this.value = ''; - this.style.color = '#000'; } }; - i.onblur = function () { - if(this.value.length < 1) { - this.value = 'search'; - this.style.color = '#999';} }; - - // advanced search - if(x('adsearch')) - adsearch(); - - // userdel - cl('userdel', function() { return confirm("Completely remove this account from the site?") }); - - // vote warnings - cl('dovote_10', function() { return confirm( - "You are about to give this visual novel a 10 out of 10. This is a rather extreme rating, " - +"meaning this is one of the best visual novels you've ever played and it's unlikely " - +"that any other game could ever be better than this one.\n" - +"It is generally a bad idea to have more than three games in your vote list with this rating, choose carefully!") }); - cl('dovote_1', function() { return confirm( - "You are about to give this visual novel a 1 out of 10. This is a rather extreme rating, " - +"meaning this game has absolutely nothing to offer, and that it's the worst game you have ever played.\n" - +"Are you really sure this visual novel matches that description?") }); - - // NSFW - cl('nsfw', function () { - this.src = this.className; - this.id = ''; - }); - - // rlists - i = x('rli'); - if(i) { - var l=i.getElementsByTagName('td'); - for(i=0;i<l.length;i++) - if(l[i].className.indexOf('relhid')>=0) - l[i].onclick = function() { - var id=this.id.substr(2); - var j=0;var o; - var op=x('rr'+id+'-1').style.display == 'none' ? 1 : 0; - while((o=x('rr'+id+'-'+(++j))) != null) - o.style.display = op ? '' : 'none'; - x('rhd'+id).innerHTML = op ? '▾' : '▸'; - }; - var l=x('rli').getElementsByTagName('tr'); - for(i=0;i<l.length;i++) - if(l[i].className.indexOf('relhid')>=0) - l[i].style.display = 'none'; - var allhid=1; - cl('relhidpar', function() { - allhid=!allhid; - l=x('rli').getElementsByTagName('tr'); - for(i=0;i<l.length;i++) - if(l[i].className.indexOf('relhid')>=0) - l[i].style.display = allhid ? 'none' : ''; - l=x('rli').getElementsByTagName('b'); - for(i=0;i<l.length;i++) - if(l[i].id.substr(0,3) == 'rhd') - l[i].innerHTML = !allhid ? '▾' : '▸'; - x('relhidparb').innerHTML = !allhid ? '▾' : '▸'; - }); - } - - // mass-change rlist or wlist status - if(x('vnlistchange')) { - x('vnlistchange').onchange = function() { - var val = this.options[this.selectedIndex].value; - if(val == 'n') - return; - var l = (x('rli')||x('twl')).getElementsByTagName('input'); - var y; var ch=0; - for(y=0;y<l.length;y++) - if(l[y].type == 'checkbox' && l[y].checked) - ch++; - if(!ch) - return alert('Nothing selected...'); - if(val == 'd' && !confirm('Are you sure you want to remove the selected items from your list?')) - return; - document.forms[1].submit(); - } - } - - // screenshots - if(x('scrNsfwHid')) - scrNsfwHid(); - if(x('screenshots')) { - l=x('screenshots').getElementsByTagName('a'); - for(i=0;i<l.length;i++) - l[i].onclick=scrView; - var d = document.createElement('div'); - d.id = 'scrView'; - d.innerHTML = '<b id="scrimg"></b><br />' - +'<a href="#" id="scrfull"> </a>' - +'<a href="#" onclick="return scrClose()" id="scrclose">close</a>' - +'<a href="#" onclick="return scrView(this)" id="scrprev"><- previous</a>' - +'<a href="#" onclick="return scrView(this)" id="scrnext">next -></a>'; - document.body.appendChild(d); - d = document.createElement('b'); - d.id = 'scrimgload'; - d.innerHTML = 'Loading...'; - document.body.appendChild(d); - } - - // spam protection on all forms - if(document.forms.length > 1) - for(i=1; i<document.forms.length; i++) - document.forms[i].action = document.forms[i].action.replace(/\/nospam\?/,''); - - // dropdown menus - var z = document.getElementsByTagName('a'); - for(i=0;i<z.length;i++) - if(z[i].rel && z[i].className.indexOf('dropdown') >= 0) { - document.onmousemove = dropDown; - break; - } - - // form-stuff - if(document.forms.length > 1) { - formhid(); - // edit summary warning - if(x('comm')) - document.forms[1].onsubmit = function () { - var z = x('comm'); - if(z.value.length > 5) return true; - var y = prompt("Edit summary field is empty,\nPlease explain your edits and cite all sources!", z.value); - if(y == null) return false; - z.value = y; - return true; - }; - } - - // init dyna - if(window.dInit) - dInit(); - - // zebra-striped tables (client side!? yes... client side :3) - var sub = document.getElementsByTagName('tr'); - for(i=1; i<sub.length; i+=2) - if(!sub[i].style.backgroundColor) - sub[i].style.backgroundColor = '#f5f5f5'; -}); - - - - -// small hack because the mozilla -moz-inline-stack display hack sucks -// (so we're counter-hacking a CSS hack using JS... right) -if(navigator.userAgent.indexOf('Gecko') >= 0 && navigator.userAgent.indexOf('like Gecko') < 0 && navigator.userAgent.indexOf('3.0') < 0) - document.write('<style type="text/css">.icons.lang { width: 15px; height: 13px; }</style>'); - - diff --git a/static/files/dyna.js b/static/files/dyna.js deleted file mode 100644 index fd0411d2..00000000 --- a/static/files/dyna.js +++ /dev/null @@ -1,815 +0,0 @@ -var med = { - cd: 'CD', - dvd: 'DVD', - gdr: 'GD-ROM', - blr: 'Blu-Ray disk', - 'in':'Internet download', - pa: 'Patch', - otc: 'Other (console)' -}; -var vrel = [ - 'Sequel', - 'Prequel', - 'Same setting', - 'Alternative setting', - 'Alternative version', - 'Same characters', - 'Side story', - 'Parent story', - 'Summary', - 'Full story', - 'Other' -]; - -var md;var pd;var rl;var vn;var ct; - -function dInit() { - md = x('md_select'); - if(md) { - md.onclick = mdChangeSel; - mdLoad(); - md.selectedIndex = 0; - mdChangeSel(); - } - - pd = x('pd_select'); - if(pd) { - pd.onclick = pdChangeSel; - pdLoad(); - pd.selectedIndex = 0; - pdChangeSel(); - } - - rl = x('rl_select'); - if(rl) { - rl.onclick = rlChangeSel; - rlLoad(); - rl.selectedIndex = 0; - rlChangeSel(); - } - - vn = x('vn_select'); - if(vn) { - vn.onclick = vnChangeSel; - vnLoad(); - vn.selectedIndex = 0; - vnChangeSel(); - } - - ct = x('categories'); - if(ct) - catLoad(); - -/* scrLoad() is called by the form sub functions in def.js - if(x('scrfrm')) - scrLoad();*/ -} - -function qq(v) { - return v.replace(/&/g,"&").replace(/</,"<").replace(/>/,">").replace(/'/g,/*'*/ "\\'").replace(/"/g,/*"*/'"'); -} - -// small AJAX wapper -var hr = false; -function ajax(url, func) { - if(hr) - hr.abort(); - hr = (window.ActiveXObject) ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest(); - if(hr == null) { - alert("Your browse does not support the functionality this website requires."); - return; - } - hr.onreadystatechange = func; - hr.open('GET', url, true); - hr.send(null); -} - - - - - /************************\ - * M E D I A * - \************************/ - - -function mdChangeSel() { - var sel = md.options[md.selectedIndex || 0]; - var o = x('md_conts'); - var i; - if(sel.value == '0_new') { - var l = ''; var q = '<option value="0">Qty</option>'; - for(i in med) - l += '<option value="'+i+'">'+med[i]+'</option>'; - for(i=1;i<10;i++) - q += '<option value="'+i+'">'+i+'</option>'; - o.innerHTML = '<select id="md_Q" name="md_Q" style="width: 50px;">'+q+'</select>' - + '<select id="md_S" name="md_S" style="width: 150px;">'+l+'</select>' - + '<br style="clear: both" />' - + '<button type="button" onclick="mdAddRem()">add/remove</button>' - + '<br />Qty is only required for CD & DVD'; - } else { - o.innerHTML = 'Selected "' + sel.text + '"<br />' - + '<button type="button" onclick="mdAddRem(\'' + sel.value + '\')">remove</button>'; - } -} - -function mdAddRem(id) { - var i; - var d = 0; - var o = id ? null : x('md_S').options[x('md_S').selectedIndex]; - var qty = id ? null : x('md_Q').options[x('md_Q').selectedIndex].value; - var v = id ? id : (o.value != 'cd' && o.value != 'dvd' && o.value != 'gdr' && o.value != 'blr' ? o.value : (o.value + '_' + qty)); - for(i=0;i<md.options.length;i++) - if(md.options[i].value == v) { - md.options[i] = null; - d = 1; - } - if(!d && !id) { - if(v.indexOf('_') >= 0 && qty == 0) { - alert('Please specify the quantity'); - return; - } - md.options[md.options.length] = new Option(mdString(qty, o.value), v); - } - else if(id) { - md.options[0].selected = true; - mdChangeSel(); - } - mdSerialize(); -} - -function mdSerialize() { - var dest = x('media'); - var str = ''; - var i; - for(i=0;i<md.options.length;i++) - md.options[i].value != '0_new' && (str += (str.length>0 ? ',' : '') + md.options[i].value); - dest.value = str; -} - -function mdLoad() { - var me = x('media').value.split(','); - var i, j; - for(i=0;i<me.length;i++) { - var m = me[i].split('_'); - if(med[m[0]]) - md.options[md.options.length] = new Option(mdString(m[1], m[0]), me[i]); - } -} - -function mdString(qty, medium) { - if(medium != 'cd' && medium != 'dvd' && medium != 'gdr' && medium != 'blr') - return med[medium]; - else - return qty + ' ' + med[medium] + (qty > 1 ? 's' : ''); -} - - - - - - - /************************\ - * P R O D U C E R S * - \************************/ - - -function pdChangeSel() { - var sel = pd.options[pd.selectedIndex || 0]; - var o = x('pd_conts'); - var i; - if(sel.value == '0_new') { - o.innerHTML = '<input type="text" name="pd_S" id="pd_S" onkeyup="pdDoSearch(0)" onkeydown="return pdEnter(event)" style="width: 150px;" />' - + '<button type="button" onclick="pdDoSearch(1)" style="width: 55px;">Search!</button><br style="clear: both" />' - + '<span id="pd_R" style="display: block; width: 220px; height: 70px; overflow: auto"></span>' - + '<a href="/p/add" target="_blank">Add new producer</a>'; - pdDoSearch(''); - } else { - o.innerHTML = 'Selected "' + sel.text + '"<br />' - + '<button type="button" onclick="pdAddRem(\'' + qq(sel.value) + '\')">remove</button>'; - } -} - -function pdEnter(ev) { - var c = document.layers ? ev.which : document.all ? event.keyCode : ev.keyCode; - if(c == 13) { - pdDoSearch(0); - return false; - } - return true; -} - -function pdDoSearch(f) { - var v = x('pd_S').value; - var d = x('pd_R'); - if(v.length < 1) - d.innerHTML = 'Hint: type pX if you know the producer id.'; - else { - if(f) - d.innerHTML = '...searching...'; - ajax('/xml/producers.xml?q='+encodeURIComponent(v)+'&r='+(Math.floor(Math.random()*999)+1), function () { - if(!hr || hr.readyState != 4 || !hr.responseText) - return; - if(hr.status != 200) - return alert('Whoops, error! :('); - var items = hr.responseXML.getElementsByTagName('item'); - if(!items || items.length < 1) { - d.innerHTML = 'No results'; - return false; - } - var res = ''; - var i,j; - for(i=0; i<items.length; i++) { - var id = items[i].getElementsByTagName('id')[0].firstChild.nodeValue; - var name = items[i].getElementsByTagName('name')[0].firstChild.nodeValue; - var cid = id + ',' + name; - var s = ''; - for(j=0; j<pd.options.length; j++) - if(pd.options[j].value == cid) - s = ' checked="checked"'; - res += '<input type="checkbox" id="pd_I'+id+'"'+s+' onclick="pdAddRem(\''+qq(cid)+'\', \''+qq(name)+'\')" />' - + '<label style="width: auto" for="pd_I'+id+'">'+name+'</label><br style="clear: left" />'; - } - d.innerHTML = res; - }); - } -} - -function pdAddRem(id, name) { - var i; - var d = 0; - for(i=0;i<pd.options.length;i++) - if(pd.options[i].value == id) { - pd.options[i] = null; - d = 1; - } - if(!d && name) - pd.options[pd.options.length] = new Option(name, id); - else if(!name) { - pd.options[0].selected = true; - pdChangeSel(); - } - pdSerialize(); -} - -// id,name|||id,name -function pdSerialize() { - var dest = x('producers'); - var str = ''; - var i; - for(i=0;i<pd.options.length;i++) - pd.options[i].value != '0_new' && (str += (str.length>0 ? '|||' : '') + pd.options[i].value); - dest.value = str; -} - -function pdLoad() { - var pds = x('producers').value.split('|||'); - if(!pds[0]) - return; - var i; - for(i=0;i<pds.length;i++) - pd.options[pd.options.length] = new Option(pds[i].split(',',2)[1], pds[i]); -} - - - - - - - - - /************************\ - * R E L A T I O N S * - \************************/ - - -var rlsel = ''; var rlname = ''; -function rlChangeSel() { - var sel = rl.options[rl.selectedIndex || 0]; - var o = x('rl_conts'); - var i; - rlsel = ''; - var ops=''; - for(i=0;i<vrel.length;i++) - ops += '<option value="'+i+'">'+vrel[i]+'</option>'; - if(sel.value == '0_new') { - o.innerHTML = '<input type="text" name="rl_S" id="rl_S" onkeyup="rlDoSearch(0)" onkeydown="return rlEnter(event)" style="width: 150px;" />' - + '<button type="button" onclick="rlDoSearch(1)" style="width: 60px;">Search!</button><br style="clear: both" />' - + '<span id="rl_R" style="display: block; width: 250px; height: 70px; overflow: auto"></span>' - + '<select id="rl_L" name="rl_L" onchange="rlAddRem(0)"><option value="-1">...is a [..] of this visual novel</option>'+ops+'</select>'; - rlDoSearch(''); - } else { - o.innerHTML = sel.value.split(',', 3)[2] + '<br />' - + '<select id="rl_L" name="rl_L" onchange="rlAddRem(\''+qq(sel.value)+'\')">' - + '<option value="-1"> - change - </option>'+ops+'<option value="-2"> - remove relation - </option></select>'; - } -} - -function rlEnter(ev) { - var c = document.layers ? ev.which : document.all ? event.keyCode : ev.keyCode; - if(c == 13) { - rlDoSearch(0); - return false; - } - return true; -} - -function rlDoSearch(f) { - var v = x('rl_S').value; - var d = x('rl_R'); - if(v.length < 1) - d.innerHTML = 'Search for a visual novel to add a relation.<br /><br />' - + 'Hint: type vX if you know the VN id.'; - else { - if(f) - d.innerHTML = '...searching...'; - ajax('/xml/vn.xml?q='+encodeURIComponent(v)+'&r='+(Math.floor(Math.random()*999)+1), function () { - if(!hr || hr.readyState != 4 || !hr.responseText) - return; - if(hr.status != 200) - return alert('Whoops, error! :('); - rlsel = ''; - var items = hr.responseXML.getElementsByTagName('item'); - if(!items || items.length < 1) { - d.innerHTML = 'No results'; - return false; - } - var res = ''; - var i,j; - for(i=0; i<items.length; i++) { - var id = items[i].getElementsByTagName('id')[0].firstChild.nodeValue; - var title = items[i].getElementsByTagName('title')[0].firstChild.nodeValue; - var cid = id + ',' + title; - res += '<input type="radio" name="rl_rad" id="pd_I'+id+'" value="rl_I'+id+'" onclick="rlAddRem(\''+qq(cid)+'\', \''+qq(title)+'\')" />' - + '<label style="width: auto" for="rl_I'+id+'">'+title+'</label><br style="clear: left" />'; - } - d.innerHTML = res; - }); - } -} - -function rlAddRem(id, name) { - var i; - var rs = x('rl_L').selectedIndex; - if(id && name) { - rlsel = id; - rlname = name; - } else if(id) { - if(!rs) - return; - if(rs == x('rl_L').options.length-1) { // remove - for(i=0;i<rl.options.length;i++) - if(rl.options[i].value == id) - rl.options[i] = null; - rl.options[0].selected = true; - } else { - var cur = id.split(',', 3); - i = rl.selectedIndex; - rs--; - rl.options[i] = new Option(vrel[rs]+': '+cur[2], (rs)+','+cur[1]+','+cur[2]); - rl.options[i].selected = true; - } - rlChangeSel(); - rlSerialize(); - return; - } else if(!rlsel) { - alert('No visual novel selected'); - return; - } - - if(!id && rlsel && !rs) { // remove - for(i=0;i<rl.options.length;i++) - if(rl.options[i].value.indexOf(rlsel) != -1) - rl.options[i] = null; - rlSerialize(); - return; - } - if(!rs) - return; - - // add/edit - var mod = rl.options.length; - rs--; - for(i=0;i<rl.options.length;i++) - if(rl.options[i].value.indexOf(rlsel) != -1) - mod = i; - rl.options[mod] = new Option(vrel[rs]+': '+rlname, rs+','+rlsel); - - rlSerialize(); -} - -// rel,id,name|||rel,id,name -function rlSerialize() { - var dest = x('relations'); - var str = ''; - var i; - for(i=0;i<rl.options.length;i++) - rl.options[i].value != '0_new' && (str += (str.length>0 ? '|||' : '') + rl.options[i].value); - dest.value = str; -} - -function rlLoad() { - var rls = x('relations').value.split('|||'); - if(!rls[0]) - return; - var i; - for(i=0;i<rls.length;i++) - rl.options[rl.options.length] = new Option(vrel[rls[i].split(',',3)[0]]+': '+rls[i].split(',',3)[2], rls[i]); -} - - - - - - - - - /************************\ - * VISUAL NOVELS * - \************************/ - - -function vnChangeSel() { - var sel = vn.options[vn.selectedIndex || 0]; - var o = x('vn_conts'); - var i; - var ops=''; - for(i=0;i<vrel.length;i++) - ops += '<option value="'+i+'">'+vrel[i]+'</option>'; - if(sel.value == '0_new') { - o.innerHTML = '<input type="text" name="vn_S" id="vn_S" onkeyup="vnDoSearch(0)" onkeydown="return vnEnter(event)" style="width: 150px;" />' - + '<button type="button" onclick="vnDoSearch(1)" style="width: 60px;">Search!</button><br style="clear: both" />' - + '<span id="vn_R" style="display: block; width: 250px; height: 90px; overflow: auto"></span>'; - vnDoSearch(''); - } else { - o.innerHTML = 'Selected "' + sel.text + '"<br />' - + '<button type="button" onclick="vnAddRem(\'' + sel.value + '\')">remove</button>'; - } -} - -function vnEnter(ev) { - var c = document.layers ? ev.which : document.all ? event.keyCode : ev.keyCode; - if(c == 13) { - vnDoSearch(0); - return false; - } - return true; -} - -function vnDoSearch(f) { - var v = x('vn_S').value; - var d = x('vn_R'); - if(v.length < 1) - d.innerHTML = 'Hint: type vX if you know the visual novel id.'; - else { - if(f) - d.innerHTML = '...searching...'; - ajax('/xml/vn.xml?q='+encodeURIComponent(v)+'&r='+(Math.floor(Math.random()*999)+1), function () { - if(!hr || hr.readyState != 4 || !hr.responseText) - return; - if(hr.status != 200) - return alert('Whoops, error! :('); - var items = hr.responseXML.getElementsByTagName('item'); - if(!items || items.length < 1) { - d.innerHTML = 'No results'; - return false; - } - var res = ''; - var i,j; - for(i=0; i<items.length; i++) { - var id = items[i].getElementsByTagName('id')[0].firstChild.nodeValue; - var title = items[i].getElementsByTagName('title')[0].firstChild.nodeValue; - var s = ''; - for(j=0; j<vn.options.length; j++) - if(vn.options[j].value == id) - s = ' checked="checked"'; - res += '<input type="checkbox" id="vn_I'+id+'"'+s+' onclick="vnAddRem(\''+qq(id)+'\', \''+qq(title)+'\')" />' - + '<label style="width: auto" for="vn_I'+id+'">'+title+'</label><br style="clear: left" />'; - } - d.innerHTML = res; - }); - } -} - -function vnAddRem(id, title) { - var i; - var d = 0; - for(i=0;i<vn.options.length;i++) - if(vn.options[i].value == id) { - vn.options[i] = null; - d = 1; - } - if(!d && title) - vn.options[vn.options.length] = new Option(title, id); - else if(!title) { - vn.options[0].selected = true; - vnChangeSel(); - } - vnSerialize(); -} - -// id,title|||id,title -function vnSerialize() { - var dest = x('vn'); - var str = ''; - var i; - for(i=0;i<vn.options.length;i++) - vn.options[i].value != '0_new' && (str += (str.length>0 ? '|||' : '') + vn.options[i].value + ',' + vn.options[i].text); - dest.value = str; -} - -function vnLoad() { - var vns = x('vn').value.split('|||'); - if(!vns[0]) - return; - var i; - for(i=0;i<vns.length;i++) - vn.options[vn.options.length] = new Option(vns[i].split(',',2)[1], vns[i].split(',',2)[0]); -} - - - - - - - /************************\ - * C A T E G O R I E S * - \************************/ - - -function catLoad() { - var i;var cats=[]; - var l = ct.value.split(','); - for(i=0;i<l.length;i++) - cats[l[i].substr(0,3)] = Math.floor(l[i].substr(3,1)); - - var l=x('cat').getElementsByTagName('a'); - for(i=0;i<l.length;i++) { - if(l[i].id.substr(0, 4) != 'cat_') - continue; - catSet(l[i].id.substr(4), cats[l[i].id.substr(4)]||0); - l[i].onclick = function() { - var c = this.id.substr(4); - if(!cats[c]) cats[c] = 0; - if(c.substr(0,1) == 'p' || c == 'gaa' || c == 'gab' || c.substr(0,1) == 'h' || c.substr(0,1) == 'l' || c.substr(0,1) == 't') { - if(cats[c]++) - cats[c] = 0; - } else if(++cats[c] == 4) - cats[c] = 0; - catSet(c, cats[c]); - - // has to be ordered before serializing! - var r;l=[];i=0; - for(r in cats) - l[i++] = r; - l = l.sort(); - r=''; - for(i=0;i<l.length;i++) - if(cats[l[i]] > 0) - r+=(r?',':'')+l[i]+cats[l[i]]; - ct.value = r; - return false; - }; - } -} - -function catSet(id, rnk) { - var c = rnk == 0 ? '#000' : - rnk == 1 ? '#090' : - rnk == 2 ? '#990' : '#900'; - x('b_'+id).style.color = c; - x('cat_'+id).style.color = c; - x('b_'+id).innerHTML = rnk; -} - - - - - - - - /***************************\ - * S C R E E N S H O T S * - \***************************/ - - -var scrL = []; // id, load, nsfw, obj, rid -function scrLoad() { - // 'screenshots' format: id,nsfw id,nsfw .. - var l=x('screenshots').value.split(' '); - for(var i=0;i<l.length;i++) - if(l[i].length > 2) - scrL[i] = { load: 2, id: l[i].split(',')[0], nsfw: l[i].split(',')[1]>0?1:0, rid: l[i].split(',')[2] }; - - // <tbody> because IE can't operate on <table> - x('scrfrm').innerHTML = '<table><tbody id="scrTbl"></tbody></table>'; - for(i=0;i<scrL.length;i++) - scrGenerateTR(i); - scrGenerateTR(i); - - setTimeout(scrSetSubmit, 1000); - scrCheckStatus(); -} - -// give an error when submitting the form while still uploading an image -function scrSetSubmit() { - var o=document.forms[1].onsubmit; - document.forms[1].onsubmit = function() { - var c=0;var r=0; - for(var i=0;i<scrL.length;i++) { - if(scrL[i] && scrL[i].load) - c=1; - if(scrL[i] && scrL[i].rid == 0) - r=1; - } - if(c) { - alert('Please wait for the screenshots to be uploaded before submitting the form.'); - return false; - } else if(r) { - alert('Please select the appropriate release for every screenshot'); - return false; - } else - return o(); - }; -} - -function scrURL(id, t) { - return x('scrfrm').className+'/s'+t+'/'+(id%100<10?'0':'')+(id%100)+'/'+id+'.jpg'; -} - -function scrGenerateTR(i) { - if(!scrL[i]) - scrL[i] = { id: 0, load: 0 }; - var r = '<b style="width: auto; float: none;margin: 0; padding: 0; font-weight: bold">'; - if(!scrL[i].id && !scrL[i].load) { - var c=0; - for(var j=0,c=0; j<scrL.length; j++) - if(scrL[j] && (scrL[j].load || scrL[j].id)) - c++; - if(c >= 10) - r += 'Enough screenshots</b>' - +'The limit of 10 screenshots per visual novel has been reached. ' - +'If you want to add a new screenshot, please remove an existing one first.'; - else - r += 'Add screenshot</b>' - +'<input type="file" name="scrAddFile'+i+'" id="scrAddFile'+i+'" style="float: none; height: auto; width: auto;" />' - +'<input type="button" value="Upload!" style="float: none; height: auto; width: auto; display: inline;" onclick="scrUpload('+i+')" /><br />' - +'Image must be smaller than 5MB and in PNG or JPEG format.'; - } - if(scrL[i].load && scrL[i].load == 1) - r += 'Uploading...</b>This could take a while, depending on the file size and your upload speed.<br />' - +'<a href="javascript:scrDel('+i+')">cancel</a>'; - if(scrL[i].load && scrL[i].load == 2) - r += 'Generating thumbnail...</b>Note: if this takes longer than 30 seconds, there\'s probably something wrong on our side.' - +'Please try again later or report a bug if that is the case.'; - if(scrL[i].id && !scrL[i].load) - r += 'Screenshot #'+scrL[i].id+'</b>' - +'<input type="checkbox" name="scrNSFW'+i+'" id="scrNSFW'+i+'"'+(scrL[i].nsfw?' checked="checked"':'')+' style="float: left" onclick="scrSer()" /> ' - +'<label for="scrNSFW'+i+'" class="checkbox"> This screenshot is NSFW.</label>' - +'<input type="button" value="remove" onclick="scrDel('+i+')" style="float: right; width: auto; height: auto" />' - +'<br /><b style="float: left; width: auto; margin-right: 5px">Release:</b>' - +'<select style="width: 350px; float: none; height: auto;" onchange="scrSer()" id="scrRel'+i+'">'+scrRelList(scrL[i].rid)+'</select>' - +'<br />Full size: '+scrL[i].width+'x'+scrL[i].height+'px'; - - if(scrL[i].obj) { - x('scrTr'+i).getElementsByTagName('td')[1].innerHTML = r; - return; - } - - // the slow and tedious way, because we need to use DOM functions to manipulate the table contents... - var o = document.createElement('tr'); - o.setAttribute('id', 'scrTr'+i); - o.style.cssText = 'border-top: 1px solid #ccc'; - var d = document.createElement('td'); - d.style.cssText = 'width: 141px; height: 102px; padding: 0;'; - d.innerHTML = scrL[i].id && !scrL[i].load ? '<img src="'+scrURL(scrL[i].id, 't')+'" style="margin: 0; padding: 0; border: 0" />' : ' '; - var e = document.createElement('td'); - e.innerHTML = r; - o.appendChild(d); - o.appendChild(e); - x('scrTbl').appendChild(o); - scrL[i].obj = o; - scrStripe(); -} - -function scrUpload(i) { - scrL[i].load = 1; - // move the file selection box into a temporary form and post it into a temporary iframe - var d = document.createElement('div'); - d.id = 'scrUpl'+i; - d.style.cssText = 'visibility: hidden; overflow: hidden; width: 1px; height: 1px; position: absolute; left: -500px; top: -500px'; - d.innerHTML = '<iframe name="scrIframe'+i+'" id="scrIframe'+i+'" style="height: 0px; width: 0px; visibility: hidden"' - +' src="about:blank" onload="scrUploadComplete('+i+')"></iframe>' - +'<form method="post" action="/xml/screenshots.xml" target="scrIframe'+i+'" enctype="multipart/form-data" id="scrUplFrm'+i+'" name="scrUplFrm'+i+'">' - +'<input type="hidden" name="itemnumber" value="'+i+'" />' - +'</form>'; - document.body.appendChild(d); - x('scrUplFrm'+i).appendChild(x('scrAddFile'+i)); - x('scrUplFrm'+i).submit(); - scrGenerateTR(i); - scrGenerateTR(i+1); - return false; -} - -function scrStripe() { - var l = x('scrTbl').getElementsByTagName('tr'); - for(var j=0; j<l.length; j++) - l[j].style.backgroundColor = j%2==0 ? '#fff' : '#f5f5f5'; -} - -function scrRelLine(rid, sel) { - var r; - for(var i=0;i<scrRel.length;i++) - if(scrRel[i][0] == rid) - r = scrRel[i]; - return '<option value="'+r[0]+'"'+(sel?' selected="selected"':'')+'>['+r[1]+'] '+r[2]+'</option>'; -} - -function scrRelList(rid) { - var r='<option value="0">-- select release --</option>'; - for(var i=0;i<scrRel.length;i++) - r += scrRelLine(scrRel[i][0], rid == scrRel[i][0] ? 1 : 0); - return r; -} - -function scrUploadComplete(i) { - if(window.frames['scrIframe'+i].location.href.indexOf('screenshots') > 0) { - try { - scrL[i].id = window.frames['scrIframe'+i].window.document.getElementsByTagName('image')[0].getAttribute('id'); - } catch(e) { - scrL[i].id = -10; - } - if(scrL[i].id < 0) { - alert( - scrL[i].id == -10 ? - 'Oops! Seems like something went wrong...\n' - +'Make sure the file you\'re uploading doesn\'t exceed 5MB in size.\n' - +'If that isn\'t the problem, then please report a bug.' : - scrL[i].id == -1 ? - 'Upload failed!\nOnly JPEG or PNG images are accepted.' : - 'Upload failed!\nNo file selected, or an empty file?'); - return scrDel(i); - } - scrL[i].load = 2; - scrGenerateTR(i); - scrImageFail(i); - } -} - -function scrCheckStatus() { - var ids=''; - for(var i=0;i<scrL.length;i++) - if(scrL[i] && scrL[i].load == 2) - ids+=(ids?';':'')+'id='+scrL[i].id; - if(!ids) - return setTimeout(scrCheckStatus, 1000); - var ti = setTimeout(scrCheckStatus, 10000); - ajax('/xml/screenshots.xml?'+ids+';r='+(Math.floor(Math.random()*999)+1), function () { - if(!hr || hr.readyState != 4 || !hr.responseText) - return; - if(hr.status != 200) - return alert('Whoops, error! :('); - var l = hr.responseXML.getElementsByTagName('image'); - for(var s=0;s<l.length;s++) { - for(i=0;i<scrL.length;i++) - if(scrL[i] && scrL[i].id == l[s].getAttribute('id') && l[s].getAttribute('status') > 0) { - scrL[i].load = 0; - scrL[i].width = l[s].getAttribute('width'); - scrL[i].height = l[s].getAttribute('height'); - x('scrTr'+i).getElementsByTagName('td')[0].innerHTML = - '<a href="'+scrURL(scrL[i].id, 'f')+'" rel="'+scrL[i].width+'x'+scrL[i].height+'" onclick="return scrView(this)">' - +'<img src="'+scrURL(scrL[i].id, 't')+'" style="margin: 0; padding: 0; border: 0" /></a>'; - scrGenerateTR(i); - scrSer(); - } - } - clearTimeout(ti); - setTimeout(scrCheckStatus, 1000); - }); -} - -function scrDel(i) { - x('scrTbl').removeChild(x('scrTr'+i)); - if(scrL[i].load) - document.body.removeChild(x('scrUpl'+i)); - scrL[i]=null; - scrGenerateTR(scrL.length-1); - scrSer(); - scrStripe(); -} - -function scrSer() { - var r=''; - for(var i=0;i<scrL.length;i++) { - if(scrL[i] && scrL[i].id && !scrL[i].load) { - scrL[i].nsfw = x('scrNSFW'+i).checked ? '1' : '0'; - scrL[i].rid = x('scrRel'+i).options[x('scrRel'+i).selectedIndex].value; - r += ' '+scrL[i].id+','+scrL[i].nsfw+','+scrL[i].rid; - } - } - x('screenshots').value = r; -} - - - - diff --git a/static/files/footer.gif b/static/files/footer.gif Binary files differdeleted file mode 100644 index c87fb121..00000000 --- a/static/files/footer.gif +++ /dev/null diff --git a/static/files/graph.png b/static/files/graph.png Binary files differdeleted file mode 100644 index bb56f758..00000000 --- a/static/files/graph.png +++ /dev/null diff --git a/static/files/headerbg.jpg b/static/files/headerbg.jpg Binary files differdeleted file mode 100644 index 81f4dd75..00000000 --- a/static/files/headerbg.jpg +++ /dev/null diff --git a/static/files/headerbot.png b/static/files/headerbot.png Binary files differdeleted file mode 100644 index 6e04ab05..00000000 --- a/static/files/headerbot.png +++ /dev/null diff --git a/static/files/icons.png b/static/files/icons.png Binary files differdeleted file mode 100644 index 4cb1a180..00000000 --- a/static/files/icons.png +++ /dev/null diff --git a/static/files/rss.png b/static/files/rss.png Binary files differdeleted file mode 100644 index 923c3822..00000000 --- a/static/files/rss.png +++ /dev/null diff --git a/static/files/select.png b/static/files/select.png Binary files differdeleted file mode 100644 index ac219e05..00000000 --- a/static/files/select.png +++ /dev/null diff --git a/static/files/sidebarbg.jpg b/static/files/sidebarbg.jpg Binary files differdeleted file mode 100644 index 00eb5697..00000000 --- a/static/files/sidebarbg.jpg +++ /dev/null diff --git a/static/files/sidebarbot.jpg b/static/files/sidebarbot.jpg Binary files differdeleted file mode 100644 index 49884ded..00000000 --- a/static/files/sidebarbot.jpg +++ /dev/null diff --git a/static/files/sidebg.jpg b/static/files/sidebg.jpg Binary files differdeleted file mode 100644 index 65fd3306..00000000 --- a/static/files/sidebg.jpg +++ /dev/null diff --git a/static/files/style.css b/static/files/style.css deleted file mode 100644 index 6c51bacf..00000000 --- a/static/files/style.css +++ /dev/null @@ -1,923 +0,0 @@ - -body { - margin: 15px 0 0 0; - padding: 0 0 60px 0; - background: #fff; - font-family: Arial, Helvetica, sans-serif; - font-size: 13px; - color: #203C36; -} - -form { - margin: 0; - padding: 0; -} - -fieldset { - margin: 0; - padding: 0; - border: none; -} - -legend { - display: none; -} - -input, textarea { - padding: 2px 5px; - border: 1px solid #B8E0D7; - font: normal 1em Arial, Helvetica, sans-serif; - color: #203C36; -} - -h1, h2 { - color: #203C36; - margin: 0; -} - -h1 { - text-transform: lowercase; - letter-spacing: -1px; - font-size: 3em; -} - -h2 { - font-size: 1.7em; - clear: right; -} - -h3 { - font-size: 1.1em; - margin: 0; -} -h3.alttitle { - margin: 0 0 0 20px; -} - -p, ul, ol { - margin: 0; -} -a { - color: #69A89A; -} -a:hover { - text-decoration: none; -} - -img { - border: none; -} - -/* Header */ - -#header { - width: 960px; - height: 80px; - margin: 0 auto; - background: url(/files/headerbg.jpg); -} - -#header h1 { - margin: 0; - padding: 15px 0 0 20px; - letter-spacing: normal; - font-size: 1em; - color: #FFFFFF; -} - -#header h1 a { - text-decoration: none; - color: #FFFFFF; -} - -#header h1 a:hover { - text-decoration: underline; -} - -#header b { - display: block; - letter-spacing: -2px; - font-size: 2.4em; -} - -/* Search */ - -#search { - float: right; - width: 180px; - padding-top: 30px; -} - -#searchfield { - width: 150px; -} - -#searchsubmit { - display: none; -} - -/* Login */ - -#loginform { - padding: 0; - margin: 0 0 0 20px; -} -#loginform input { - width: 40px; - margin: 0; - padding: 1px; - position: relative; -} -#loginform #usrname, #loginform #usrpass { - width: 70px; - border: 0; -} - -/* Page */ - -#page { - width: 960px; - margin: 0 auto; - padding: 40px 0; - background: url(/files/headerbot.png) no-repeat; -} - -#content { - float: left; - width: 700px; -} - -/* Side */ - -#side { - float: right; - padding: 0; - background: url(/files/sidebg.jpg); - color: #fff; -} -#side div { - background: url(/files/sidebarbg.jpg) no-repeat; -} -#side div div { - width: 240px; - padding: 0 0 60px 0; - background: url(/files/sidebarbot.jpg) no-repeat left bottom; -} - -#side a { - color: #fff; -} - -#side h2 { - padding: 20px 20px 0 15px; - text-transform: uppercase; - font-family: "Arial Black", Arial, Helvetica, sans-serif; - font-size: .8em; - color: #fff; -} - -#side ul { - margin: 0; - padding: 0 20px 0 20px; - list-style: none; -} - -#side li { - padding: 0; -} - -#side p { - margin: 0; - padding: 0 0 0 20px; -} -#side li.more { - font-style: italic; -} - -/* Footer */ - -#footer { - clear: both; - padding: 10px 0; -} - -#footer p { - margin: 0; - text-align: center; - color: #999999; - font-size: 0.8em; -} - -#footer a { - color: #999999; -} - -/* Forms */ -#content form { - display: block; - margin: 20px 0 10px 0; - padding: 0; -} -#content form.tblf { - margin: 0; -} -form ul { - margin: 0; - padding: 0; -} -form li { - display: block; - clear: left; - list-style-type: none; - margin: 0; - padding: 0; -} -form ul ul { - margin: 0; padding: 0; - clear: left; -} -form li.nolabel, form ul ul { - padding: 0 0 0 110px; -} -form li.nextpart { - padding: 10px 0 0 0; -} -#content label, #content input, #content textarea, #content select, form li b, form li p { - display: block; - float: left; -} -form li label i, form p.formnotice i { - display: inline; - color: #f00; -} -input.text, select { - width: 200px; -} -select, input.text, textarea { - border: 1px solid #B8E0D7; - font: normal 1em Arial, Helvetica, sans-serif; - color: #203C36; -} -form label.checkbox { - width: auto; -} -select.multiple { - height: 120px; - width: 230px; -} -#md_conts, #pd_conts, #rl_conts, #vn_conts { - display: block; - float: left; - background-color: #e3ecff; - border: 1px dashed #b4b4ff; - padding: 2px; -} -#rl_select { - width: 280px; -} -form li.longopts select { - width: 350px; -} -form li.shortopts input { - width: 50px; -} -form li i { - float: left; -} -input.hidden { - display: none; - position: absolute; - top: -30px; -} -label, form li b { - width: 110px; - font-weight: normal; -} -form li.nolabel b { - display: inline; - width: auto; - font-weight: bold; - float: none; -} -form li.subform { - padding: 10px 0 0 0; - clear: both; -} -form li.subform a { - display: block; - margin: 0; - padding: 0; - width: 100%; - background-color: #f0f0f0; - text-decoration: none; - font-weight: bold; - color: #7AB9AB; -} -li.formhid { - float: none; - position: absolute; - top: -2000px; - left: -2000px; - width: 10px; -} -form li.date select { - width: 100px; -} - -/* Platform selecter */ -form ul.platforms { - clear: none; - padding: 0; - margin: 0 0 0 110px; -} -form ul.platforms li { - float: left; - clear: none; -} -form ul.platforms li label { - width: 150px; -} -form ul.platforms input { - padding: 0; - margin: 0 2px 0 2px; - border: 0; - height: 14px; -} - -/* Warning & msg box */ -span.warning { - display: block; - margin: 5px 10% 5px 10%; - padding: 3px 5px 3px 60px; - background: #ffece3 url('/files/warning.png') no-repeat; - border: 1px dashed #ffb4b4; - min-height: 57px; -} -* html span.warning { height: 57px; } -span.msg { - display: block; - margin: 5px 10% 5px 10%; - padding: 3px 5px 3px 5px; - border: 1px dashed #3cb700; - background: #bfffb5; -} -span.warning ul, span.msg ul { - padding: 0 0 0 15px; -} -a.help { - vertical-align: super; - font-size: 10px; - text-decoration: none; - font-weight: bold; - padding-left: 1px; - /*background: #eee;*/ -} - - -/* VN page header, general dl and list markup */ -p.nsfw { color: #999; font-size: 10px; font-style: italic; } -dt { - float: left; - font-style: italic; -} -dd { - padding: 0 0 0 50px; -} -dl.vnrel dd, dl.vncat dd { - padding: 0 0 0 75px; -} -ul.vnani i { color: #999 } -ul.vnani b { color: #999; font-weight: normal; font-size: 10px; } -ul.vnani acronym { border: 0 } -ul { - padding: 0 0 0 17px; -} -p.actions { - display: inline; - margin: 0 0 0 5px; - font-weight: normal; - font-size: 12px; - color: #999; -} -#vnheader div { - width: 256px; - float: left; - text-align: center; -} -#vnheader div img { - margin: 0 auto 0 auto; -} -#vnheader #nsfw { - cursor: pointer; -} -#vnheader dl, #vnheader ul { - margin: 0 0 0 270px; - padding: 0; -} -#vnheader li { list-style-type: none; margin: 0; padding: 0; } -#vnheader h3 { - margin: 10px 0 0 260px; - font-size: 13px; -} -#vnheader p.mod { - margin: 0; -} - - -/* producer search */ - -form#psearch fieldset { - display: block; - width: 700px; - text-align: center; -} -form#psearch input { margin: 0 auto; float: none; position: relative; display: inline } - - -ul.home { - float: left; - list-style-type: none; - width: 210px; - margin-top: 30px; -} -ul.home li { padding: 0; } -ul.home.break { clear: left; } -h3.home { - clear: left; - padding-top: 30px; -} - - -/* edit links and stuff */ - -p.mod { - float: right; - color: #999; -} -div.dropdown { - width: 100px; - position: absolute; - left: -500px; - top: 0; - border: 1px solid #d0d0d0; - border-bottom: none; -} -div.dropdown ul, div.dropdown ul li { - list-style-type: none; - margin: 0; - padding: 0; - width: 100px; - background-color: #f0f0f0; - border-bottom: 1px solid #d0d0d0; -} -div.dropdown a, div.dropdown b { - display: block; - width: 90px; - margin: 0; - padding: 2px 5px; - text-decoration: none; -} -div.dropdown b { - font-weight: normal; - font-style: italic; - color: #666; -} -div.dropdown li.center a, div.dropdown li.center b { - text-align: center; -} -div.dropdown a:hover { - background-color: #e0e0e0; -} -div.rlistdd { - width: 200px; -} -div.rlistdd ul, div.rlistdd ul li { - float: left; -} -div.rlistdd a, div.rlistdd b { - padding: 0px 5px; -} -div.dropdown ul.full a, div.dropdown ul.full b { - width: 190px; - padding: 1px 5px; -} -div.dropdown ul.full, div.dropdown ul.full li { - clear: left; - width: 200px; -} - - -/* paragraph markups... */ - -p#relations { - margin: 20px 0 0 0; - width: 100%; - text-align: center; -} -p.desc { - padding: 0 10px 0 10px; -} -p.chr { - width: 100%; - text-align: center; - font-size: 1.1em; -} -p.browse { - width: 100%; - text-align: center; -} -b.mod, a.mod { - color: #f00; -} - - -/* vn search */ - -form#vsearch fieldset { - display: block; - width: 700px; - text-align: center; -} -form#vsearch input { margin: 0 auto; float: none; position: relative; display: inline } -form#vsearch input.text { width: 400px; } -b#adsearchclick { cursor: pointer } - -ul.filter { margin: 0 0 0 15px; padding: 0; list-style-type: none } -ul.filter li { float: left; padding: 4px 10px 0 0; } -ul.filter label { width: auto; color: #666; font-size: 11px; margin: 0; padding: 0 0 0 1px;} -ul.filter input { border: 0; margin: 0; } - - - -/* categories */ - -ul#cat { - margin: 0 0 0 15px; - padding: 0; -} -ul#cat ul { - list-style-type: none; - padding: 0; -} -ul#cat input { - padding: 0; - margin: 0 2px 0 2px; - border: 0; - height: 14px; -} -ul#cat li, form ul#cat li { - display: block; - width: 170px; - float: left; - clear: none; - font-weight: bold; -} -ul#cat li li { - display: list-item; - width: auto; - float: none; - clear: left; - font-weight: normal; - padding: 0 0 0 20px; - margin: 0; - cursor: pointer; - list-style-type: none; - background: url(/files/select.png) no-repeat; -} -form ul#cat li li { - padding: 0; - background: none; -} -form ul#cat li li b { width: 13px; font-weight: bold; } -form ul#cat li li a { color: #000; text-decoration: none; display: block; width: 160px; } -ul#cat li li.inc { background-position: 0px -16px; color: #090; } -ul#cat li li.exc { background-position: 0px -33px; color: #900; } -i.crgn0 { font-style: normal; } -i.crgn1 { font-style: normal; color: #bbb; } -i.crgn2 { font-style: normal; } -i.crgn3 { font-style: normal; font-weight: bold; } - - - -/* DOCUMENTATION PAGES */ -#dpage h3 { margin-top: 25px; } -#dpage h3 a { color: #203C36; text-decoration: none; } -#dpage dd { padding-bottom: 5px; margin-left: 70px; } -#dpage ul.index { display: block; float: right; width: 150px; padding: 2px; margin: 0 0 10px 5px; background-color: #f1f1f1; border: 1px solid #ccc; } -#dpage ul.index li { list-style-type: none; } -#dpage ul.index li a { margin: 0 0 0 10px; } -#dpage .retired { text-decoration: line-through; } -#dpage dt b { color: #999; font-weight: normal; font-style: normal; font-size: 12px; } - -/* Screenshots */ -div#screenshots { - display: block; - width: 700px; - margin: 0; - padding: 0; -} -div#screenshots b { - display: block; - margin: 0; - padding: 0; - width: 100%; - background-color: #f5f5f5; - font-weight: normal; -} -div#screenshots a.shot { - display: block; - float: left; - width: 136px; - height: 102px; - margin: 0; - padding: 2px; - text-decoration: none; - text-align: center; -} -div#screenshots a.shot:hover { - background-color: #ccc; -} -div#screenshots a.shot b { - display: block; - margin: -16px 0 0 0; - padding: 0; - height: 14px; - width: 136px; - text-align: right; - font-size: 12px; - color: #f00; -} -div#screenshots img { border: 0; padding: 0; } -div#scrView { - position: absolute; - display: none; - top: -5000px; - left: -5000px; - background-color: #fff; - border: 2px solid #ccc; - padding: 10px; - text-align: center; -} -#scrView img { cursor: pointer } -#scrclose { float: right; padding-left: 10px; } -#scrnext { padding-left: 5px; } -#scrprev { padding-right: 5px; } -#scrfull { float: left; padding-right: 10px; } -#scrimgload { - display: block; - position: absolute; - left: -500px; - top: -50px; - width: 100px; - padding: 3px; - background-color: #f5f5f5; - text-align: center; - border: 1px solid #ccc; - color: #000; -} - - - -#content input.right, #content select.right { - float: right; -} -#vnlistchange { width: 130px; } -p.opts { - clear: left; - text-align: center; - width: 100%; - background-color: #f0f0f0; - margin-bottom: 10px; - margin-top: 10px; - padding: 1px 0; -} -ul#stats { - clear: left; - list-style-type: none; - padding: 0px 0 0 5px; -} -ul#stats li { - padding: 0; - display: block; - width: 345px; - float: left; - margin: 0 0 20px 0; -} -ul#stats li.break { - clear: left; -} - -acronym { - border-bottom: 1px dotted #999; -} -acronym.date { - border: 0; -} -b.future { font-weight: normal; color: #900; } - - -/* icon image sprites */ - -a.rss { - display: block; - height: 16px; - width: 16px; - background: url(/files/rss.png) no-repeat; - text-indent: -9999px; - overflow: hidden; - float: right; -} -.icons, .uicons { - background: url(/files/icons.png) no-repeat; - width: 16px; - height: 14px; - margin: 0 2px 0 0; - overflow: hidden; - display:-moz-inline-stack; - display: inline-block; - padding: 0; - border: 0; - text-decoration: none; -} -.uicons { - width: 14px; - margin: 0; - background: url(/files/uicons.png) no-repeat; -} -.icons.lang { - width: 13px; - height: 11px; - border: 1px solid #999; - /* see def.js for an ugly FF hack */ -} -.icons.par, .icons.tri, .icons.com { width: 11px; } -acronym.icons, acronym.uicons { cursor: default; } -.icons.oth { background: none; } -.icons.drc { background-position: 0px 0px; } -.icons.lin { background-position: 0px -14px; } -.icons.nds { background-position: 0px -28px; } -.icons.ps2 { background-position: 0px -42px; } -.icons.sfc { background-position: 0px -56px; } -.icons.gba { background-position: 0px -70px; } -.icons.ps3 { background-position: 0px -84px; } - -.icons.dvd { background-position: -16px 0px; } -.icons.mac { background-position: -16px -14px; } -.icons.ps1 { background-position: -16px -28px; } -.icons.psp { background-position: -16px -42px; } -.icons.win { background-position: -16px -56px; } -.icons.wii { background-position: -16px -70px; } -.icons.xb3 { background-position: -16px -84px; } - -.icons.com { background-position: -32px 0px; } -.icons.par { background-position: -32px -14px; } -.icons.tri { background-position: -32px -28px; } -.icons.ext { background-position: -32px -42px; } -.icons.msx { background-position: -32px -56px; } -.icons.nes { background-position: -32px -70px; } - -.icons.cs { background-position: -48px 0px; } -.icons.da { background-position: -48px -11px; } -.icons.de { background-position: -48px -22px; } -.icons.en { background-position: -48px -33px; } -.icons.es { background-position: -48px -44px; } -.icons.fi { background-position: -48px -55px; } -.icons.fr { background-position: -48px -66px; } -.icons.it { background-position: -48px -77px; } -.icons.ja { background-position: -48px -88px; } - -.icons.nl { background-position: -61px 0px; } -.icons.no { background-position: -61px -11px; } -.icons.pl { background-position: -61px -22px; } -.icons.pt { background-position: -61px -33px; } -.icons.ru { background-position: -61px -44px; } -.icons.sv { background-position: -61px -55px; } -.icons.tr { background-position: -61px -66px; } -.icons.zh { background-position: -61px -77px; } -.icons.ko { background-position: -61px -88px; } - -.uicons.no { background-position: 0px 0px; } -.uicons.r0 { background-position: 0px -14px; } -.uicons.v0 { background-position: 0px -14px; } -.uicons.r1 { background-position: 0px -28px; } -.uicons.r2 { background-position: 0px -42px; } -.uicons.r3 { background-position: 0px -56px; } - -.uicons.r4 { background-position: -14px 0px; } -.uicons.v1 { background-position: -14px -14px; } -.uicons.v2 { background-position: -14px -28px; } -.uicons.v3 { background-position: -14px -42px; } -.uicons.v4 { background-position: -14px -56px; } - - -/* tables */ - -table td { vertical-align: top; } -table { width: 100%; border-collapse: collapse; } -thead tr td { font-weight: bold; } -thead tr td a { text-decoration: none; } -#content table input { - width: 13px; - height: 13px; - margin: 0; - float: right; -} - -/* revisions */ -#tmc { width: 650px; margin: 0 0 30px 30px; border: 1px solid #ddd; background-color: #fbfbfb; clear: both; } -#tmc thead tr td { font-weight: normal; text-align: center; } -#tmc .tc1, #tmc .tc2 { border-right: 1px solid #ddd; } -#tmc .tc1 { font-weight: bold; padding-right: 10px; } -#tmc .tc1 { width: 100px; } -#tmc .tc2, #tmc .tc3 { width: 275px; } -div#tmc { text-align: center; } -div#revbrowse { margin: 20px 0 0 30px; width: 650px; text-align: center; } /* position: relative; top: 17px; left: 30px; */ -a#revnext { float: right } -a#revprev { float: left; } -b.diff_add { font-weight: normal; background-color: #cfc; } -b.diff_del { font-weight: normal; background-color: #fcc; } - -#tvg tr, #tus tr { background-color: #fff!important } -#tvg .tc1, #tus .tc1 { width: 25px; text-align: right; padding-right: 3px; } -#tvg .tc2 div, #tus .tc2 div { margin: 0 5px 0 0; padding: 0; float: left; background: url(/files/graph.png); height: 13px; } -#tus .tc1 { width: 60px } - -#tvr .tc3, #tvl .tc5, #tur .tc3, #tul .tc8, #thi .tc6 { text-align: right } - -#tvl .tc1, #tvl .tc2, #tvl .tc3 { white-space: nowrap; padding-right: 10px; } - -#thi { clear: both } -#thi .tc1_1 { text-align: right; padding-right: 0; width: 10px; } -#thi .tc1_2 { padding-left: 0; padding-right: 10px; } -#thi .tc1_1 a, #thi .tc1_2 a { text-decoration: none } -#thi .tc1 { width: 10px } -#thi .tc2 { width: 110px; } - -#rli tr.relhid { background-color: #fff!important; } -#rli td.relhid, #relhidpar { cursor: pointer; } -#rli td.relnone { color: #aaa } -#rli .tc1 { width: 560px; } -#rli .tc2 { width: 80px; } -#rli .tc3 { width: 50px; } -#rli .tc1_1 { width: 70px; padding-left: 20px } -#rli .tc1_2 { width: 40px; padding:0; text-align: right; } -#rli .tc1_3 { width: 430px; } -#rli .tc1_3 a { color: #203c36; } -#rli .tc1_5 { text-align: right } - -#tre tr { background-color: #fff!important; } -#tre tr.lang { background-color: #f5f5f5!important; font-style: italic; } - -#tre .tc1 { width: 75px; padding-left: 10px; } -#tre .tc2 { width: 50px; text-align: center; white-space: nowrap; } -#tre .tc3, #tre .tc6 { width: 16px; margin: 0; padding: 0; white-space: nowrap; text-align: right } -#tre .tc3 { width: 70px; } -#tre .tc5 { width: 30px; text-align: right; padding: 0 10px 0 0; } -#tre .tc5 a { display: block; width: 30px; text-align: right;text-decoration: none; } - -#tbv .tc2 acronym, #tbv .tc3 acronym { - zoom: 1; - opacity: 0.7; - filter:alpha(opacity=70); - -moz-opacity: 0.7; -} -#tbv .tc2, #tbv .tc3 { margin: 0; padding: 0; white-space: nowrap } -#tbv .tc2 { text-align: right; padding-right: 3px; } - -#tpd .tc1 { margin: 0; padding: 0; } - - -/* message board */ - -#tth tr { border-top: 1px solid #999 } -#tth .tc1 { width: 150px; border-right: 1px solid #999; padding: 5px; } -#tth .tc2 { padding: 5px } -#tth p.mod { margin: -5px; font-size: 10px; } -#tth .tc2 i { font-size: 10px; float: right; } -#tth .tc2 b.hidden { font-size: 10px; color: #888; font-weight: normal; } -#tin .tc1 { width: 400px; } -#tin .tc2 { width: 25px; } -#tin .tc4 { text-align: right } -#tin .tc1 b { font-weight: normal; color: #888; } -#qreply { display: block; width: 100%; text-align: center } -#qreply textarea, #qreply input { float: none; margin: auto; } -a.right { float: right } -b.spoiler { font-weight: normal; color: #ccc; background-color: #ccc } -b.spoiler:hover { color: #000; background-color: #eee } - - - -#debug { - border-top: 1px solid #ffb4b4; - background-color: #ffece3; - height: 70px; - overflow: auto; - position: fixed; - left: 0; - bottom: 0; - width: 100%; - font-size: 10px; - margin: 0; - padding: 0; -} - diff --git a/static/files/uicons.png b/static/files/uicons.png Binary files differdeleted file mode 100644 index 09f8da17..00000000 --- a/static/files/uicons.png +++ /dev/null diff --git a/static/files/warning.png b/static/files/warning.png Binary files differdeleted file mode 100644 index b8af1a53..00000000 --- a/static/files/warning.png +++ /dev/null |