gh code highlighting on
parent
8a10b99f41
commit
111af98d27
1 changed files with 40 additions and 35 deletions
|
@ -9,6 +9,7 @@ To open the inspector, right click on the view and choose `Inspect Element` from
|
||||||
|
|
||||||
## Hide posts with stopwords plugin
|
## Hide posts with stopwords plugin
|
||||||
|
|
||||||
|
``` js
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
if(tentia_instance.action == "timeline") {
|
if(tentia_instance.action == "timeline") {
|
||||||
tentia_instance.body.addEventListener( 'DOMNodeInserted', filter, false );
|
tentia_instance.body.addEventListener( 'DOMNodeInserted', filter, false );
|
||||||
|
@ -32,12 +33,13 @@ To open the inspector, right click on the view and choose `Inspect Element` from
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
You can use the embeded jQuery too, here for example a plugin which lets you mark particular posts so you don't forget them in your timeline:
|
You can use the embeded jQuery too, here for example a plugin which lets you mark particular posts so you don't forget them in your timeline:
|
||||||
|
|
||||||
## Mark post plugin
|
## Mark post plugin
|
||||||
|
|
||||||
|
``` js
|
||||||
$("ol").delegate('a', 'click dblclick', function(e) {
|
$("ol").delegate('a', 'click dblclick', function(e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}).delegate('li', 'dblclick', function(e) {
|
}).delegate('li', 'dblclick', function(e) {
|
||||||
|
@ -48,9 +50,12 @@ You can use the embeded jQuery too, here for example a plugin which lets you mar
|
||||||
li.addClass("selected");
|
li.addClass("selected");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
```
|
||||||
|
|
||||||
And add this to your CSS plugin file.
|
And add this to your CSS plugin file.
|
||||||
|
|
||||||
|
``` css
|
||||||
.selected {
|
.selected {
|
||||||
border-right: 5px solid green;
|
border-right: 5px solid green;
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
Reference in a new issue