I AM LISTENING TO
|
WAS ICH LIEBE
  • Englisch
  • Deutsch
BLOG FILTER

Startseite » Development » Javascript » Flexible JavaScript charting with Canvas using Chart.js

  • Visualize your data in 8 different ways; each of them animated and customizable.
  • Great rendering performance across all modern browsers (IE9+)
  • Redraws charts on window resize for perfect scale granularity.

GitHub

readmore

„Responsive FileManager is a free open-source file manager and image manager made with jQuery, CSS3, PHP and HTML5 that offers a nice and elegant way to upload and insert files, images and videos.
You can use it as external plugin for TinyMCE, CKEditor and CLEditor or as a stand-alone file manager to manage and select files.“

USAGE WITH TINYMCE

Responsive filemanager / GitHub

readmore

GoldenLayout is a web based docker layout engine that aids in creating flexible user interfaces by enabling panels to be docked on the screen.

  • Native popup windows
  • Completely themeable
  • Comprehensive API
  • Powerful persistence
  • Works in IE8+, Firefox, Chrome

GitHub & Demo

readmore

MediaStreamRecorder.js is a cross-browser implementation to record audio & video streams via WebRTC. The lib allows you to submit/upload recorded blobs in realtime to your server.

Record audio+video in Chrome

Uploading and receiving via PHP

API documentationGitHub

readmore

I am currently developing a drag and drop interface for a course builder. Courses are split into lessons and lessons into slides. While switching between slides, I wanted to have a small thumbnail representing the current slide content.

One option would have been to use something like PhantomJS / CasperJS.  A headless browser , to take a screenshot of the slide. I have done that in the past and it works perfectly.

This time, I decided to go with another solution, that allows me to convert html to a canvas element.

The project is called html2canvas (GitHub).

„This script allows you to take screenshots of webpages or parts of it, directly on the users browser. The screenshot is based on the DOM and as such may not be 100% accurate to the real representation as it does not make an actual screenshot, but builds the screenshot based on the information available on the page.“

EXAMPLE

CANVAS TO BACKGROUND IMAGE

I have a slide container (#slideContainer), that holds the active slide for editing and a thumb navigation to switch between slides (.slide.thumb).

When switching between slides, I am doing a snapshot of the current slideContainer and add it as a new background image to the thumb navigation item for that slide. This is done with canvas.toDataURL() and by embedding the resulting image  using a data: url.

Works perfectly. html2canvas has no full css support, so the output will not always match 100%, but its close enough to get a glimpse of what is stored per slide ;)

html2canvas
PhantomJS
CasperJS

Enjoy coding …

readmore

An HTML to Markdown converter written in JavaScript.

GitHub

readmore

Enjoy coding…

readmore

Background Blur plugin is a cross browser jQuery plugin for blurring images.

Demo + GitHub

readmore

Dragdealer.js is a drag-based JavaScript component, embracing endless UI solutions.

The lib provides a huge amount of options to use it for a multitude of functions.

GitHub

 

readmore

This is a simple loop to check for a partial key in an Array

Use it like this

I am using something similar to look though a huge word/key index and output matching keys that link to a Data object.

Enjoy coding …

readmore