GithubHelp home page GithubHelp logo

diegodlh / unofficial-hypothesis-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hypothesis/client

1.0 2.0 0.0 27.59 MB

An unofficial Hypothesis web-based annotation client.

License: Other

Makefile 0.09% JavaScript 85.67% HTML 2.94% Shell 0.11% CoffeeScript 6.94% CSS 4.22% Dockerfile 0.03%

unofficial-hypothesis-client's Introduction

Unofficial Hypothesis client

npm version BSD licensed

The unofficial Hypothesis client is a browser-based tool for making annotations on web pages. It’s an unofficial client for the Hypothesis web annotation service. It’s used by the unofficial Hypothesis browser extension, and can also be embedded directly into web pages (not yet).

It is a fork of the official Hypothesis client.

Screenshot of the unofficial Hypothesis client

Client configuration

The annotation client gets its configuration parameters from the sidebar-app iframe's own document (provided by the h service or by the browser extension) and from the parent document. Information about how to configure the client from the parent document is available here, and full details about how the client configures itself here.

This unofficial client implements configuration from the browser extension as well via the fetchConfigExtension method in fetch-config. Briefly, configuration settings are retrieved by the sidebar from the extension, merged with the other configuration sources, and consumed by the sidebar itself or relayed to the annotator component.

Some of the settings retrieved from the extension are supported by the official client and documented here. Others are experimental features implemented by this unofficial client and documented below. They are disabled by default and can be configured via the sidebar-app iframe's own document and from the parent document as well.

adderToolbarFooter

String. Controls whether the name of the currently selected annotation group is shown on the adder toolbar. (Default: never).

always - The group name is always shown.

exceptPublic - The group name is shown for groups other than “Public”.

never - The group name is not shown.

usePdfWhiteOverlay

Boolean. Controls whether the transparent text layer in PDF documents is rendered white instead to aid selection. (Default: false).

transparentToolbarButtons

Boolean. Controls whether the annotator toolbar buttons are rendered transparent i nstead of opaque. (Default: false).

enableExperimentalNewNoteButton

This setting is already supported by the official client and documented here. This unnoficial client implements configuration via the browser extension.

openSidebar

This setting is already supported by the official client and documented here. This unnoficial client implements configuration via the browser extension.

Development

See the official client Development Guide for instructions on building, testing and contributing to the client.

License

The unofficial Hypothesis client is released under the 2-Clause BSD License, sometimes referred to as the "Simplified BSD License". Some third-party components are included. They are subject to their own licenses. All of the license information can be found in the included LICENSE file.

unofficial-hypothesis-client's People

Contributors

robertknight avatar tilgovi avatar seanh avatar dependabot-preview[bot] avatar nickstenning avatar csillag avatar lyzadanger avatar gergely-ujvari avatar aron avatar dependabot-support avatar jtremback avatar sean-roberts avatar lms007 avatar diegodlh avatar sheetaluk avatar chdorner avatar jakehartnell avatar treora avatar finitud avatar bigbluehat avatar edsu avatar jccr avatar davidmcclure avatar lenazun avatar roberthodan avatar judell avatar dwolfe avatar xolotl avatar greebie avatar eng-hypothesis avatar

Stargazers

BeztDonkey avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.