#poDRAPaj kod
This is my first web app in which I used Messi (Messi), a simple message plugin for jQuery. I also used Vex (Vex) - great dialog library in javascript. Vex is tiny (6kb minified), has a clear and simple API, works on mobile devices, and can be customized to match your style in seconds. Both technologies support IE8+!
- Display text
new Messi('your text', {options});
example of options:
title: 'someTitle',
center: true/false,
closeButton: true/false,
height: 'specificInPixels/auto',
width: 'specificInPixels/auto'
- Display image
new Messi.img('Image URL', {options});
example of options:
title: 'someTitle',
center: true/false,
Vex Dialog exposes 4 main apis:
-
vex.dialog.alert(stringOrOptions)
-
vex.dialog.confirm(options)
-
vex.dialog.prompt(options)
-
vex.dialog.open(options)
(Internally, alert, confirm, and prompt call open with a different compositions of options.)
In my app I used confirm api.
vex.defaultOptions.className = 'one of 7 themes';
vex.dialog.confirm({message:"yourMessage"});
At the moment, there are 7 themes:
-
vex-theme-default
-
vex-theme-os
-
vex-theme-plain
-
vex-theme-wireframe
-
vex-theme-flat-attack
-
vex-theme-top
-
vex-theme-bottom-right-corner
This app is made for job application and it was a great moment to try something new.