Skip to content

sebbekarlsson/HCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HCV

HTML CSS View.
A simple tool for creating windows and popup messages using HTML and CSS and Javascript.

LICENSE

Usage

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:

example.png

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/"

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.

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

About

Create native windows and popup messages using HTML and CSS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published