css for links and nolinks

This commit is contained in:
ville rantanen
2018-12-09 10:06:59 +02:00
parent 86572856b1
commit 97f34cf157

View File

@@ -27,8 +27,8 @@
}
A:link { text-decoration:none; color: #000000; }
A:visited { text-decoration:none; color: #000000; }
A:hover { text-decoration: underline; }
A:focus { text-decoration: underline; }
A.link:hover { text-decoration: underline; }
A.link:focus { text-decoration: underline; }
#filter { width: 100%; }
#search { width: 100%; display: table; }
.search_span { display: table-cell; text-align: center; vertical-align: middle;
@@ -92,20 +92,20 @@ String.prototype.capitalizeFirstLetter = function() {
function make_link(md) {
var match=linkReg.exec(md);
if (match != null) {
return "<li>"+match[1]+"<a href=\""+match[3]+"\">"+match[2]+"</a>"+match[4];
return "<li>"+match[1]+"<a class=\"link\" href=\""+match[3]+"\">"+match[2]+"</a>"+match[4];
}
match=linkPlain.exec(md);
if (match != null) {
return "<li>"+match[1]+"<a href=\""+match[2]+"\">"+match[2]+"</a>"+match[3];
return "<li>"+match[1]+"<a class=\"link\" href=\""+match[2]+"\">"+match[2]+"</a>"+match[3];
}
return "<li class=nolink>"+md
return "<li class=\"nolink\">"+md
}
function make_head(c,index="") {
var name=c.substring(1).trim();
var head=c.replace(/ /g,"&nbsp;");
var id=name.replace(/ /g,"")+"_"+index;
return '<a name="'+name+'" id="anchor_'+id+'" onclick="fold_toggle(\''+id+'\')">'+
return '<a name="'+name+'" id="anchor_'+id+'" class="nolink" onclick="fold_toggle(\''+id+'\')">'+
'<div class=head align=center id="head_'+id+'">'+head+'</div></a>'+
'<hr WIDTH="100%" SIZE=3 NOSHADE>';
}