Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gtoffoli/viewerjs
ViewerJS, from github.com/kogmbh, packaged as a Django application.
https://github.com/gtoffoli/viewerjs
django-application javascript viewerjs visualization
Last synced: about 1 month ago
JSON representation
ViewerJS, from github.com/kogmbh, packaged as a Django application.
- Host: GitHub
- URL: https://github.com/gtoffoli/viewerjs
- Owner: gtoffoli
- Created: 2015-08-02T18:56:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-06T11:42:14.000Z (over 6 years ago)
- Last Synced: 2024-04-16T04:18:36.616Z (9 months ago)
- Topics: django-application, javascript, viewerjs, visualization
- Language: Java
- Homepage:
- Size: 451 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# viewerjs
This is the Javascript application **github.com/kogmbh/ViewerJS**, packaged as a *Django application*.I've reorganized the directory structure of ViewerJS in order to be able to integrate it in a Django project as an application.
I had to change only the content of index.html: did so by adding as first line{% load staticfiles %}
and by using the following 2 regular expressions in the Eclypse editor:
search: images\/([\w\-]+)\.png
replace: {% static "viewerjs/images/$1\.png" %}search: \.\/([\w\-]+)\.js
replace: {% static "viewerjs/$1\.js" %}in the same file, I had to make this other change, manually:
- PDFJS.workerSrc="viewerjs/pdf.worker.js"
+ PDFJS.workerSrc="{% static "viewerjs/pdf.worker.js" %}"In future I will try to understand how to keep this repository aligned with the original one.