An open API service indexing awesome lists of open source software.

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

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:

![example.png](example.png)

> 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