Styling a javascript popup window on shopify
<p>I'd really appreciate some help with this - I'm not really a developer/programmer, just sort of ended up doing this at work!</p>

<p>I need a popup to display a discount coupon to only the visitors from Canada. Step one was figuring out a script to identify these visitors, which I did. My knowledge of JS is very limited though so I used open.window for the popup which doesn't really allow me to style the window. I want the popup to look like a fancybox popup but can't add that to the shopify theme (tried and didn't work).</p>

<p>Any ideas would be highly appreciated. Thanks so much.</p>

<p>Here's the code:</p>

<pre><code>&lt;script&gt;

jQuery.ajax( {
url: 'https://api.wipmania.com/jsonp?callback=?',
type: 'POST',
dataType: 'jsonp',
success: function(location) {

if (location.address.country === 'Canada') {

  window.open("","","width=300, height=100");
 }
}
} ); 

&lt;/script&gt;
</code></pre>