Skip to content

Instantly share code, notes, and snippets.

@GerDner
Created May 30, 2014 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GerDner/43915ec74e6260c0837d to your computer and use it in GitHub Desktop.
Save GerDner/43915ec74e6260c0837d to your computer and use it in GitHub Desktop.
var html = "<div class='fancyboxContainer container'>\n\
<div class='headline' style='font-weight:bold;font-size:15px;margin-bottom:10px;'>"+ Navigate.options.Translations.ChooseShippingCountry.yourShippingCountry +
"</div>\n\
<p>"+ Navigate.options.Translations.ChooseShippingCountry.yourShippingCountryTextOne +"</p>";
html += $(".language-select").html();
html += "<div id='saveAndContinueShopping' class='button'>"+ Navigate.options.Translations.ChooseShippingCountry.saveAndContinueShopping+"</div></div>";
$.fancybox(html);
var scrollTop = jQuery('body').scrollTop();
// die Topbar muss subtrahiert werden
$('.fancybox-wrap').css({top:scrollTop+'px!important'});
$(".fancybox-wrap #countrySelection").attr("id","countrySelection1");
$(".fancybox-wrap .flag").remove();
$('.fancybox-wrap #saveAndContinueShopping').click(function(){
NavigateLanguageSwitcher.changeCountryPopup();
});
$('.fancybox-wrap .language-select-box').parent().remove();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment