mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
hider
This commit is contained in:
parent
95063eaf44
commit
7ad47a4a6e
@ -106,18 +106,22 @@ ST.line_highlighter = function() {
|
|||||||
ST.highlight_lines = function() {
|
ST.highlight_lines = function() {
|
||||||
var wloc = window.location.href;
|
var wloc = window.location.href;
|
||||||
if(wloc.indexOf('#') > -1) {
|
if(wloc.indexOf('#') > -1) {
|
||||||
$('blockquote li').css('background', 'none');
|
$('.text_formatted .container li').css('background', 'none');
|
||||||
|
|
||||||
var lines = wloc.split('#')[1];
|
var lines = wloc.split('#')[1];
|
||||||
if(lines.indexOf('-') > -1) {
|
if(lines.indexOf('-') > -1) {
|
||||||
var start_line = parseInt(lines.split('-')[0].replace('L', ''), 10);
|
var start_line = parseInt(lines.split('-')[0].replace('L', ''), 10);
|
||||||
var end_line = parseInt(lines.split('-')[1].replace('L', ''), 10);
|
var end_line = parseInt(lines.split('-')[1].replace('L', ''), 10);
|
||||||
for(var i=start_line; i<=end_line; i++) {
|
for(var i=start_line; i<=end_line; i++) {
|
||||||
$('blockquote li:nth-child(' + i + ')').css('background', '#F8EEC7');
|
$('.text_formatted .container li:nth-child(' + i + ')').css('background', '#F8EEC7');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var marked_line = lines.replace('L', '');
|
var re = new RegExp('^L[0-9].*?$');
|
||||||
$('blockquote li:nth-child(' + marked_line + ')').css('background', '#F8EEC7');
|
var r = lines.match(re);
|
||||||
|
if(r) {
|
||||||
|
var marked_line = lines.replace('L', '');
|
||||||
|
$('.text_formatted .container li:nth-child(' + marked_line + ')').css('background', '#F8EEC7');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -188,13 +192,7 @@ ST.crypto = function() {
|
|||||||
$('.text_formatted .container div').html(decrypted);
|
$('.text_formatted .container div').html(decrypted);
|
||||||
|
|
||||||
// kick out potential dangerous and unnecessary stuff
|
// kick out potential dangerous and unnecessary stuff
|
||||||
$('.text_formatted').css('background', '#efe');
|
|
||||||
$('.replies').hide();
|
$('.replies').hide();
|
||||||
for(var i=2; i<=7; i++) {
|
|
||||||
$('.meta .detail:nth-child(' + i + ')').hide();
|
|
||||||
}
|
|
||||||
$('.meta .spacer:first').hide();
|
|
||||||
$('.qr').hide();
|
|
||||||
} catch(e) {}
|
} catch(e) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user