# EuVatBanner
Automatically adds a banner only visible to visitors from the EU

## Demo
See <a href="http://euvatbanner.appspot.com/">http://euvatbanner.appspot.com/</a> for an example


## Usage
I recommend you lazy-load the javascript asynchronously by pasting this snippet before your closing body tag:

```
    <script type="text/javascript">
    (function() {
        function async_load(){
            var s = document.createElement('script');
            s.type = 'text/javascript';
            s.async = true;
            s.src = 'http://euvatbanner.appspot.com/banner.js';
            var x = document.getElementsByTagName('script')[0];
            x.parentNode.insertBefore(s, x);
        }
        if (window.attachEvent)
            window.attachEvent('onload', async_load);
        else
            window.addEventListener('load', async_load, false);
    })();
    </script>
```

Or if you prefer simplicity, you can simply include the javascript like this:
```
<script type="text/javascript">http://euvatbanner.appspot.com/banner.js</script>
```


# EuVatBanner
Automatically adds a banner only visible to visitors from the EU (but not from GB)

## Demo
See <a href="http://euvatbanner.appspot.com/">http://euvatbanner.appspot.com/</a> for an example


## Usage
I recommend you lazy-load the javascript asynchronously by pasting this snippet before your closing body tag:

```
    <script type="text/javascript">
    (function() {
        function async_load(){
            var s = document.createElement('script');
            s.type = 'text/javascript';
            s.async = true;
            s.src = 'http://euvatbanner.appspot.com/banner.js';
            var x = document.getElementsByTagName('script')[0];
            x.parentNode.insertBefore(s, x);
        }
        if (window.attachEvent)
            window.attachEvent('onload', async_load);
        else
            window.addEventListener('load', async_load, false);
    })();
    </script>
```

Or if you prefer simplicity, you can simply include the javascript like this:
```
<script type="text/javascript">http://euvatbanner.appspot.com/banner.js</script>
```


Clarify message is not visible in GB
Clarify message is not visible in GB
