Xtre Components

Little components to use in your project, easy to initalize and customize.

Little things matter :)

Include in your page

Dependency:'jquery.min.js'

Unminified:'placeholderavatar.css, app.init.js, app.placeholderavatar.js'

Minified:'placeholderavatar.css, app.placeholderavatar.min.js'

Initialize

$(function(){ app.init({ }); });

Usage

Add: data-xt-placeholder-avatar='name goes here'

Change text size: data-xt-avatar-size='medium, large or small'

Use background image: data-xt-background-uimage='path to image'

Default state with no name, change icon in style: data-xt-placeholder-avatar

Use image: data-xt-uimage='path to image'

Options

If you want colors to be handled from stylesheet

$(function(){ app.init({ placeholderAvatar: { useColorClasses: true } }); });

Include in your page

Dependency:'jquery.min.js'

Unminified:'countdowntimer.css, app.init.js, app.countdowntimer.js'

Minified:'countdowntimer.css, app.countdowntimer.min.js'

Initialize

$(function(){ app.init({ }); });

Usage

Add: data-xt-countdowntimer

To add schedule dates: data-xt-schedule="October 5 2016, October 15 2016"

02day 16hr 12min 13sec

To add in secs: data-xt-endsec="30"

02day 16hr 12min 13sec

To add in days: data-xt-endday="October 13 2016 15:39 GMT+0100"

"15:39 GMT+0100" is so it will start from your GMT, you can set

02day 16hr 12min 13sec

Include in your page

Dependency:'jquery.min.js'

Unminified:'seemore.css, app.init.js, app.seemore.js'

Minified:'seemore.css, app.seemore.min.js'

Initialize

$(function(){ app.init({ }); });

Usage

Add with a count: data-xt-seemore="300"

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Include in your page

Dependency:'jquery.min.js'

Unminified:'socialshare.css, app.init.js, app.socialshare.js'

Minified:'socialshare.css, app.socialshare.min.js'

Initialize

$(function(){ app.init({ }); });

Usage

Include in your page

Dependency:'jquery.min.js'

Unminified:'app.init.js, app.confetti.js'

Minified:'app.confetti.min.js'

Initialize

$(function(){ app.init({ }); });

Usage

Add: data-xt-confetti

If you want change the width, position and z-index

$(function(){ app.init({ confetti: { position: 'static', width: '100%', zIndex: '-1' } }); });

Include in your page

Dependency:'jquery.min.js'

Unminified:'app.init.js, app.exitintent.js'

Minified:'app.exitintent.min.js'

Initialize

$(function(){ app.init({ }); });

Usage

Add: data-xt-exitintent

Try and close or leave the page

You are trying to leave, but why?