About Widgets

    You can provide your website (portal) visitors with free dynamic historical content from our database. Using of our widget can add engagement to your site and grow up your audience. Simple grab desired javascript code, and paste it on belonging part of your page, or website template.

    Content is available via widget javascript from our site. Our widgets can be embedded on any webpage, blog, social media page or website, or any other website that allows javascript.


Widgets examples

    Our widgets are flexible and using the latest technologies to obtain correct functionality of widgets. The size (width & height) of widgets is adjustable.

    Some examples of our widgets:


1. 600px x 200px


Code:


<script type='text/javascript'>
    if (typeof(he_script_initialized) == 'undefined') {
        he_script_initialized = true;
        function HE_async_load(){
            scriptElement = document.createElement('script'),
            firstScript = document.getElementsByTagName('script')[0];
            scriptElement.async = true;
            scriptElement.width = '600px';
            scriptElement.height = '200px';
            scriptElement.src = '//cdn.history-events.info/js/history-widget.min.js';
            firstScript.parentNode.insertBefore(scriptElement, firstScript);
        };
        if (window.attachEvent) {window.attachEvent('onload', HE_async_load);}
        else {window.addEventListener('load', HE_async_load, false);}
    }
</script>


2. 250px x 250px


Code:


<script type='text/javascript'>
    if (typeof(he_script_initialized) == 'undefined') {
        he_script_initialized = true;
        function HE_async_load(){
            scriptElement = document.createElement('script'),
            firstScript = document.getElementsByTagName('script')[0];
            scriptElement.async = true;
            scriptElement.width = '250px';
            scriptElement.height = '250px';
            scriptElement.src = '//cdn.history-events.info/js/history-widget.min.js';
            firstScript.parentNode.insertBefore(scriptElement, firstScript);
        };
        if (window.attachEvent) {window.attachEvent('onload', HE_async_load);}
        else {window.addEventListener('load', HE_async_load, false);}
    }
</script>

Adjust widget size

    For better embedding of widget in empty area on page, you can set any satisfactory width and height value of widget. Just copy & paste code from example above, and change values:


scriptElement.width = '250px';
scriptElement.height = '250px';

For any other question, you can send e-mail to: webmaster /(at)/ history-events.info