/*
 * Wikimedia Entdecke Wikipedia
 *
 * Copyright (c) 2013 Atelier Disko - All rights reserved.
 *
 * Use of this source code is governed by the AGPL v3
 * license that can be found in the LICENSE file.
 */
require(["jquery","scrollTo","modernizr","waypoints","domready!"],function($,ScrollTo,Modernizr){$(".scrollto").on("click",function(ev){ev.preventDefault();ScrollTo.element($(this).attr("href"))});var $body=$("body");var $imprint=$(".imprint");var $close=$(".imprint-close");var $toggle=$(".imprint-toggle");$toggle.on("click",function(ev){ev.preventDefault();var o=$toggle.offset();var imprintOffset=$imprint.offset();if($imprint.hasClass("invis")){ScrollTo.offsets(o.left,imprintOffset.top+2)}$imprint.toggleClass("invis");$close.toggleClass("invis")});$close.on("click",function(ev){ev.preventDefault();$close.addClass("invis");$imprint.addClass("invis")});$(".block--animate").waypoint(function(direction){if(direction=="up"){$(this.element).removeClass("come-in")}else{$(this.element).addClass("come-in")}},{offset:"75%"})});