https://github.com/sebbekarlsson/hcv
Create native windows and popup messages using HTML and CSS
https://github.com/sebbekarlsson/hcv
applications command-line css html javascript native web
Last synced: 2 months ago
JSON representation
Create native windows and popup messages using HTML and CSS
- Host: GitHub
- URL: https://github.com/sebbekarlsson/hcv
- Owner: sebbekarlsson
- License: gpl-3.0
- Created: 2018-05-06T21:38:47.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-13T08:23:50.000Z (almost 8 years ago)
- Last Synced: 2025-03-25T20:45:32.299Z (about 1 year ago)
- Topics: applications, command-line, css, html, javascript, native, web
- Language: C++
- Homepage:
- Size: 55.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# HCV
> HTML CSS View.
> A simple tool for creating windows and popup messages using HTML and CSS and
> Javascript.
> [LICENSE](LICENSE.md)
## Usage
> To create a Window:
$ hcv -w -h -c -u
> For example:
$ hcv -w 150 -h 150 -c "
hello
"
> 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 "
$(< myfile.txt)
"
> Handle a button click:
$ hcv -w 300 -h 300 -c "Clickdocument.getElementById('btn').addEventListener('click', function() { alert(1); })"
> You can also open a URL:
$ hcv -w 640 -h 480 -u "http://localhost/"
## Accessing the file system and things like that
> To be able to access the file system, you could for example run a flask
> server under HCV. [Here is an example](https://github.com/sebbekarlsson/flask-hcv-example).
## Installing
> 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
### Linux
> Run this script to install on Linux:
$ ./install.sh
### OSX
> Run this script to install on OSX:
$ ./install-osx.sh