Giter Site home page Giter Site logo

hypothes-test's Introduction

Code test for Hypothes

If you are looking at this code test please be aware it's quite different from my usual style due to specific requirement. This is intended to be an embeddable plugin using minimum space hence no react/angular/ember/vue etc.

Compatibility requested

Chrome (latest) | 70% Firefox (latest) | 15% Chrome on Android (latest) | 5% Safari 9 | 2% iOS Safari 9.x | 1.4% Edge 12 | 1% Internet Explorer 11 | 1%

Compatibility

I don't have a window machine configured at the moment so I can't test it for the time being on edge

To run the example

  • cd example
  • run a server locally (see below)

I don't have a local server

I got an error why installing the local server

How to use

It can't be simpler Include the plugin

	<script src="/src/plugin.js"></script>
    FriendsTagger.init({
      list:'/example/data.json', //Any url
      selector:'#input' //Any selector
    })

If you have doubts check the example

Hey, my style doesn't work

I didn't implement full style yet

What it is not done

  • A plugin should probably have a stronger inline styling
  • Minify the code
  • Write tests (some parts might be unit test easily, other far from easy)
  • Test note: unit tests requires a slight change to the plugin to export certain elements
  • Use a transpiler (just in case, more compatibility)
  • Highlight the added name (not in the requirement but it would be quite nice)

hypothes-test's People

Contributors

obsidianart avatar

Watchers

 avatar James Cloos 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.