GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - buzzfeed/annotator: Adds interactive annotations to images

BranchesTags
Open more actions menu

Latest commit

 

History

32 Commits
32 Commits

Folders and files

NameName
Last commit message
Last commit date
builder
builder
 
 
dist
dist
 
 
engine
engine
 
 
grunt
grunt
 
 
.gitignore
.gitignore
 
 
Gruntfile.js
Gruntfile.js
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
example.html
example.html
 
 
package.json
package.json
 
 

Repository files navigation

annotator

Got an image you want to point details out on? annotator creates embeddable HTML to help users dive in to details on a document. Here's an example.

It consists of a builder and an engine. The builder creates embeds, the engine renders embeds on to the page.

Screenshot

get started in 30 seconds

I wish to annotate an image and generate an embed

The builder is located at ./builder/index.html.

Please note: You will need to host dist/annotator.min.js yourself before putting an embed live. Read on for how to do that...

I wish to get the annotator engine working for our organisation

Get the latest version of yarn (0.21+): https://yarnpkg.com/en/

Then just run yarn in the repository folder.

This will grab the packages it needs, then use grunt to build the distributable engine. Once that's done, it'll watch for changes in engine/, rebuilding when it sees them.

The two main files to modify are engine/js/annotator.js and engine/sass/annotator.scss. It will build to the single file dist/annotator.min.js, which you can then upload to your own infrastructure.

We would recommend at minimum changing the following to your requirements:

  • builder/builder-config.js to point to your distributable
  • engine/sass/annotator.sass to meet your own styling requirements
  • engine/js/plugins/ to match your environment - analytics, image hosting, etc
  • We use the <!-- UKNF --> tag to mark our embeds as special in the BuzzFeed CMS. You probably won't need this tag, so feel free to remove it.

Be aware: annotator will add the following to the global scope of your page.

  • Styling which is applied to page objects with a parent class of .annotated_media
  • window.annotate_media and window.annotate_tools are new JS globals which may be called

annotator is powered primarily by a cut-down version of jQuery.

About

Adds interactive annotations to images

Resources

Readme
MIT license
Activity
Custom properties

Stars

11 stars

Watchers

152 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.