$(function() {
function positionStepNavTip() {
var jumpBtn = $('#jump-to-step-btn'),
jumpX = jumpBtn.position().left,
parentX = jumpBtn.parent().position().left,
totalX = parentX+jumpX,
stepNavTip = $('#ible-steps-nav > .bubble-tip');
stepNavTip.css({'left':totalX+45});
stepNavTip.show();
}
function jumpToStep(stepIndex) {
var anchorId = "stepanchor-step"+stepIndex;
$(window).scrollTop($('#'+anchorId).offset().top-$('#ible-header').outerHeight());
$('.jump-to-link').removeClass('active');
$('#stepnav-step'+stepIndex).addClass('active');
}
positionStepNavTip();
var currentStep = 0, stepCount = $('#ible-steps-nav a.btn').size();
var jumpToStepBtn = $('#jump-to-step-btn'),
next = jumpToStepBtn.next(),
prev = jumpToStepBtn.prev();
var H = window.location.hash;
if (H == '#intro') {currentStep = 0;}
if (H == '#step1') {currentStep = 1; prev.removeClass('disabled');}
$('#jumpto-btngroup > a').click(function(e) {
var $btn = $(this),
onFirstPage = $btn.data('firstpage') == 1,
allSteps = $btn.data("allsteps") == 1;
if (onFirstPage || allSteps) {
e.preventDefault();
if ($btn.hasClass('next')) {
if (!$btn.hasClass('disabled')) {
if (onFirstPage && currentStep == 1) {
window.location = $btn.attr('href');
return;
}
prev.removeClass('disabled');
currentStep++;
if (currentStep == stepCount-1)
next.addClass('disabled');
jumpToStep(currentStep);
}
}
if ($btn.hasClass('prev')) {
if (!$btn.hasClass('disabled')) {
next.removeClass('disabled');
currentStep--;
if (currentStep == 0)
prev.addClass('disabled');
jumpToStep(currentStep);
}
}
}
if ($btn.hasClass('dropdown-toggle')) {
var header = $('#ible-header');
document.cookie=($('#ible-steps-nav').is(':hidden')) ? 'ibleStepNavOpened=1; path=/':"ibleStepNavOpened=0; path=/";
positionStepNavTip();
$btn.toggleClass('active');
$('#ible-steps-nav').toggleClass('collapsed');
header.parent().height(header.outerHeight());
header.data('offsetbottom', header.data('offsettop') + header.height());
}
});
$(".jump-to-link").hover(
function() {
$(this).parent().addClass('open');
},
function() {
$(this).parent().removeClass('open');
}
);
if (true) {
$(".jump-to-link").click(function(e) {
e.preventDefault();
currentStep = $(this).data('stepindex');
if (currentStep == stepCount-1)
next.addClass('disabled');
if (currentStep == 0)
prev.addClass('disabled');
if (currentStep > 0 && currentStep < stepCount-1) {
next.removeClass('disabled');
prev.removeClass('disabled');
}
jumpToStep(currentStep);
});
}
});
$(function(){
if (true) {
$('.ajax-action-btn').ajaxActionBtn();
} else {
$('.ajax-action-btn').click(function(e){
e.preventDefault();
navoperator.makeLoginByJquery();
});
}
$('#vote-dropdown-toggle').click(function(e) {
e.preventDefault();
var parent = $(this).parent(),
wasActive = parent.hasClass('open'),
clearMenu = function() {
parent.removeClass('open');
$('html').off('click.vote-dropdown');
};
parent.toggleClass('open');
if (wasActive) {
clearMenu();
} else {
$('html').on('click.vote-dropdown', function(e) {
var target = $(e.target);
if (target.closest('.vote-dropdown').length == 0) {
parent.removeClass('open');
$('html').off('click.vote-dropdown');
}
});
}
});
});
/* needs to run in tier3 after the Ads have loaded */
$(function() {
var header = $("#ible-header"),
headerState = header.data('initialstate'),
ibleHeaderCollapsed;
function readCookie(name) {
var re = new RegExp(name + "=([^;]+)"), value = re.exec(document.cookie);
return (value != null) ? unescape(value[1]) : null;
}
ibleHeaderCollapsed = (readCookie('ibleHeaderCollapsed') == 1);
headerState = (ibleHeaderCollapsed) ? 'collapsed':'expanded';
$('#ible-header-toggle').click(function(){
var headerInner = $('#ible-header-inner'),
visible = headerInner.is(':visible');
document.cookie=(visible) ? 'ibleHeaderCollapsed=1; path=/':"ibleHeaderCollapsed=0; path=/";
if (visible) {
headerInner.slideUp('fast', function(){
header.removeClass('expanded').addClass('collapsed');
headerState = 'collapsed';
});
} else {
headerInner.slideDown('fast', function() {
header.removeClass('collapsed').addClass('expanded');
headerState = 'expanded';
});
}
});
window.setTimeout(function(){
var updateFlag = true;
header.data('offsettop', header.offset().top);
header.data('offsetbottom', header.offset().top + header.height());
$(window).bind('scroll.ibleheader', function() {
var scrollTop = $(window).scrollTop(),
headerOffsetTop = header.data('offsettop'),
headerOffsetBottom = header.data('offsetbottom');
function fixHeader() {
if (updateFlag) {
header.parent().height(header.outerHeight());
updateFlag = false;
header.css({'top':0, 'position':'fixed'}).addClass(headerState);
$('#ible-header-toggle').show();
}
}
function unfixHeader() {
header.css({'position':'relative'}).removeClass(headerState);
$('#ible-header-toggle').hide();
updateFlag = true;
}
if ((header.hasClass('collapsed') || headerState == 'collapsed') && !header.hasClass('expanded')) {
if (scrollTop > headerOffsetBottom) {
fixHeader();
$('#ible-header-inner').hide();
} else {
unfixHeader();
$('#ible-header-inner').show();
}
} else {
if (scrollTop > headerOffsetTop) {
fixHeader();
} else {
unfixHeader();
}
}
});
}, 750);
});
There are a lot of instructions available for making
non-alcoholic versions of ginger beer, but for those who want to savor this
beverage in its pure form you can try these instructions. Ginger beer was one of
the most popular beverages in both America, Canada and Europe until 1920
(Prohibition) in America and 1950's in Europe.I've always wanted to brew
my own beer and or other drinks, but with the hop shortages that are going on I
though that it would be fun to try a different style of beer/ale. The results
were good.
The Beer/Ale that is produced is definitely alcoholic and I found it quite
powerful which is partially due to the very high level of carbonation
Step 1: Ingredients
http://c