HTML CSS View.
A simple tool for creating windows and popup messages using HTML and CSS and Javascript.
To create a Window:
$ hcv -w <width> -h <height> -c <html/contents> -u <url>
For example:
$ hcv -w 150 -h 150 -c "<h1>hello</h1>"
This will create a window looking like this:
The possibilities are endless, for example here is how to create a
file viewer:
$ hcv -w 640 -h 480 -c "<pre>$(< myfile.txt)</pre>"
Handle a button click:
$ hcv -w 300 -h 300 -c "<button id='btn'>Click</button><script>document.getElementById('btn').addEventListener('click', function() { alert(1); })</script>"
You can also open a URL:
$ hcv -w 640 -h 480 -u "http://localhost/"
To be able to access the file system, you could for example run a flask server under HCV. Here is an example.
The requirements are:
- Qt5
- a C++ compiler (g++ for example)
To install the requirements on Debian or Ubuntu, run:
apt-get install g++ qt5-default qt5-qmake qtbase5-dev qtmultimedia5-dev qtdeclarative5-dev libqt5xmlpatterns5-dev libqt5webkit5-dev qtwebengine5-dev libhunspell-dev
Run this script to install on Linux:
$ ./install.sh
Run this script to install on OSX:
$ ./install-osx.sh