Skip to content

Commit

Permalink
Post and addon publication
Browse files Browse the repository at this point in the history
  • Loading branch information
dascritch committed Jun 24, 2014
1 parent 3f0b4dd commit d406222
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 19 deletions.
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
ANCHORS REVEAL
Anchors reveal
==============

Addon to show anchors in a web page
* Firefox addon to show anchors in a web page. * Its main use is to help [a lazy blog redactor](http://dascritch.net) for rapidly linking to a relevant chapter in a long web page.

Author : [Xavier "dascritch" Mouton-Dubosc](http://dascritch.com)

Icon taken from the [default KDE](http://kde.org) theme [Oxygen by the Oxygen Team](http://techbase.kde.org/Projects/Oxygen)

Version : 0.1

TODO
Reference links
---------------
* Mozilla addon page : <https://addons.mozilla.org/fr/firefox/addon/anchors-reveal/>
* Repository : <https://github.com/dascritch/anchors-reveal>
* Blog post (FR) : <http://dascritch.net/post/2014/06/24/Sniffeur-d-ancre>

Todo
----
* Layout position problems
* Documentation
* Purposes
* do not display id for hidden elements
See <https://github.com/dascritch/anchors-reveal/issues>
* Do not display id for hidden elements
* Original logo in SVG
* Refresh on resize
* Refresh on mutations
Expand Down Expand Up @@ -43,9 +47,8 @@ Versions
--------
* June 2014 : 0.1 , first version. Standalone JS and Firefox Addon

Repository : <https://github.com/dascritch/anchors-reveal>

Keeping in touch :
Keeping in touch
----------------
* professional <http://dascritch.com>
* blog <http://dascritch.net>
* twitter : [@dascritch](https://twitter.com/dascritch)
Binary file added anchors-reveal.xpi
Binary file not shown.
10 changes: 3 additions & 7 deletions data/anchors-reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ function reBuild() {
'<div id="'+prefix+'" style="'+
'position : absolute;'+
'top : 0px;'+
'bottom : 0px;'+
'left : 0px;'+
'right : 0px;'+
'margin : 0px;'+
'padding : 0px;'+
'border : none;'+
'width : 100%;'+
'height : 100%;'+
'width : '+document.body.scrollWidth+'px;'+
'height : '+document.body.scrollHeight+'px;'+
'overflow : hidden;'+
'z-index : 50;'+
'pointer-events : none;'+
Expand Down Expand Up @@ -59,9 +57,7 @@ function reBuild() {
}
);
if (!has) {
layout.insertAdjacentHTML('beforeend',
'<a>Unnamed dog : Not a single ID element in this page.</a>'
);
window.alert('Unnamed puppy : Not a single ID element in this page. Bad dog, no biscuit.');
}
}

Expand Down
Binary file added example.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"id": "jid1-XX0TcCGBa7GVGw",
"description": "Shows anchors in a webpage",
"author": "Xavier “dascritch” Mouton-Dubosc",
"license": "MPL 2.0",
"license": "GPL 3.0",
"version": "0.1"
}

0 comments on commit d406222

Please sign in to comment.