diff options
author | zotlabs <mike@macgirvin.com> | 2017-02-12 07:47:06 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-12 07:47:06 +1100 |
commit | 1ba1c5b44ec08820fcc134aaffb977a51dca67df (patch) | |
tree | e2f233df9bda3936837cb0dd3254d598502c3d03 | |
parent | bc3605a5025908ae0835c057cb7caa1bc26d9c37 (diff) | |
parent | 7db55d8db27d84f8523c74f50945444829d0518e (diff) | |
download | volse-hubzilla-1ba1c5b44ec08820fcc134aaffb977a51dca67df.tar.gz volse-hubzilla-1ba1c5b44ec08820fcc134aaffb977a51dca67df.tar.bz2 volse-hubzilla-1ba1c5b44ec08820fcc134aaffb977a51dca67df.zip |
Merge pull request #670 from anaqreon/doco
Scroll to doco links with anchor references when there is a ?zid parameter
-rw-r--r-- | doc/about/about_hubzilla.bb | 2 | ||||
-rw-r--r-- | doc/toc.html | 13 |
2 files changed, 11 insertions, 4 deletions
diff --git a/doc/about/about_hubzilla.bb b/doc/about/about_hubzilla.bb index 3327e0b50..e9485ffa6 100644 --- a/doc/about/about_hubzilla.bb +++ b/doc/about/about_hubzilla.bb @@ -32,7 +32,7 @@ The $Projectname software stack is a relatively standard webserver application w [*= nomadic identity] The ability to authenticate and easily migrate an identity across independent hubs and web domains. Nomadic identity provides true ownership of an online identity, because the identities of the channels controlled by an account on a hub are not tied to the hub itself. A hub is more like a "host" for channels. With Hubzilla, you don't have an "account" on a server like you do on typical websites; you own an identity that you can take with you across the grid by using clones. -[*= [url=[baseurl]/help/developer/api_zot]Zot[/url]] The novel JSON-based protocol for implementing secure decentralised communications and services. It differs from many other communication protocols by building communications on top of a decentralised identity and authentication framework. The authentication component is similar to OpenID conceptually but is insulated from DNS-based identities. Where possible remote authentication is silent and invisible. This provides a mechanism for internet-scale distributed access control which is unobtrusive. +[*= [url=[baseurl]/help/developer/zot_protocol]Zot[/url]] The novel JSON-based protocol for implementing secure decentralised communications and services. It differs from many other communication protocols by building communications on top of a decentralised identity and authentication framework. The authentication component is similar to OpenID conceptually but is insulated from DNS-based identities. Where possible remote authentication is silent and invisible. This provides a mechanism for internet-scale distributed access control which is unobtrusive. [/dl] [h3]Features[/h3] diff --git a/doc/toc.html b/doc/toc.html index 4c52c5e74..851f356e6 100644 --- a/doc/toc.html +++ b/doc/toc.html @@ -74,7 +74,7 @@ $(".panel-collapse.in").find('a').each(function(){ var url = document.createElement('a'); url.href = window.location; - var pageName = url.href.split('/').pop().split('#').shift(); + var pageName = url.href.split('/').pop().split('#').shift().split('?').shift(); var linkName = $(this).attr('href').split('/').pop(); if(pageName === linkName) { var tocUl = $(this).closest('li').append('<ul>').find('ul'); @@ -116,8 +116,15 @@ // When the page loads, it does not scroll to the section specified in the URL because it // has not been constructed yet by the script. This will reload the URL - if (typeof(location.href.split('#')[1]) !== 'undefined') { - location.replace(location.href) + if (typeof(location.href.split('#')[1]) !== 'undefined') { + var p = document.createElement('a'); + p.href = location.href; + var portstr = ''; + if(p.port !== '') { + portstr = ':'+ p.port; + } + var newref = p.protocol + '//'+ p.hostname + portstr + p.pathname + p.hash.split('?').shift(); + location.replace(newref) } }); </script> |