diff options
author | Yorhel <git@yorhel.nl> | 2015-11-01 13:42:56 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2015-11-01 13:43:50 +0100 |
commit | 8c9cfe238e565088b37d256eb461a01919ef9968 (patch) | |
tree | 56143b98815c308aa84dc626a91364db5eadec23 /data | |
parent | 3c967881d7b5408a49f16de8b268b053d6ba9051 (diff) |
Switch to HTML5 doctype + s/acronym/abbr/ + s/ / /e
I'd have preferred to stick with XHTML 1.0, but unfortunately browsers
won't allow you to use modern Javascript APIs with an older doctype.
Note that most pages don't actually validate correctly as HTML5, I'm
relying on browsers to be lenient.
In either case, I'd like VNDB to stay valid XML (XHTML5, then), and
luckily that shouldn't be a problem.
Diffstat (limited to 'data')
-rw-r--r-- | data/js/misc.js | 6 | ||||
-rw-r--r-- | data/style.css | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/data/js/misc.js b/data/js/misc.js index 89572e82..a1e86827 100644 --- a/data/js/misc.js +++ b/data/js/misc.js @@ -210,7 +210,7 @@ if(byId('batchedit')) // mouse-over price information / disclaimer (function(){ if(byId('buynow')) { - var l = byClass(byId('buynow'), 'acronym', 'pricenote'); + var l = byClass(byId('buynow'), 'abbr', 'pricenote'); for(var i=0; i<l.length; i++) { l[i].buynow_last = l[i].title; l[i].title = null; @@ -257,12 +257,12 @@ if(byId('not') && byId('vns')) // Language selector (function(){ var d = byId('lang_select'); - var flag = byName(d, 'acronym')[0]; + var flag = byName(d, 'abbr')[0]; ddInit(d, 'bottom', function(lnk) { var lst = tag('ul', null); for(var i=0; i<VARS.l10n_lang.length; i++) { var ln = VARS.l10n_lang[i]; - var icon = tag('acronym', {'class':'icons lang '+ln[0]}, ' '); + var icon = tag('abbr', {'class':'icons lang '+ln[0]}, ' '); lst.appendChild(tag('li', {'class':'lang_selector'}, hasClass(flag, ln[0]) ? tag('i', icon, ln[1]) : tag('a', {href:'/setlang?lang='+ln[0]+';ref='+encodeURIComponent(location.pathname+location.search)}, icon, ln[1]) diff --git a/data/style.css b/data/style.css index 736fb910..095ea98c 100644 --- a/data/style.css +++ b/data/style.css @@ -156,7 +156,7 @@ table.formtable tr.newpart td { padding-top: 20px; font-weight: bold; } #menulist input.submit { width: 90px; margin-left: 20px; } #menulist #search input.text { width: 133px; margin: 0 0 3px 7px; font-style: italic; } #menulist #search input.submit { display: none; } -#dd_box acronym { margin: 2px 5px 2px 0!important; } +#dd_box abbr { margin: 2px 5px 2px 0!important; } #menulist .notifyget { display: inline-block; width: 125px; padding: 4px; background: $warnbg$; border: 1px solid $warnborder$; } @@ -471,7 +471,7 @@ div.scr_uploader { visibility: hidden; overflow: hidden; width: 1px; height: div.producerbrowse { padding-bottom: 10px } .producerbrowse ul { float: left; margin-top: -5px; margin-left: 3%; width: 28%; } .producerbrowse ul li { list-style-type: none; } -.producerbrowse ul li acronym { margin-right: 5px; margin-top: 1px; } +.producerbrowse ul li abbr { margin-right: 5px; margin-top: 1px; } /***** Producer edit *****/ @@ -576,7 +576,7 @@ div.charb td.tc2 b a { color: $grayedout$!important } div.staffbrowse { padding-bottom: 10px } .staffbrowse ul { float: left; margin-top: -5px; margin-left: 3%; width: 28%; } .staffbrowse ul li { list-style-type: none; margin-bottom: 2px; } -.staffbrowse ul li acronym { margin-right: 5px; margin-top: 1px; } +.staffbrowse ul li abbr { margin-right: 5px; margin-top: 1px; } .staffpage table.stripe { width: 400px; margin: 0 auto; } .staffpage .key { width: 70px; } .staffroles td.tc2 { white-space: nowrap; width: 80px } @@ -862,7 +862,7 @@ div#fil_div { .icons.gen { width: 14px; height: 14px } .icons.gen.b { width: 28px } .icons.rtcomplete, .icons.rtpartial, .icons.rttrial { width: 11px; } -acronym.icons, acronym.uicons { cursor: default; } +abbr.icons, abbr.uicons { cursor: default; } a .icons { cursor: pointer } .icons.oth { background: none; } $iconcss$ |