/*! jQuery Include - v0.1.1 - 2014-07-23 * https://github.com/zengohm/jquery-include * Copyright (c) 2014 Zeng Ohm; Licensed MIT */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b=function(a,b){return a=arguments[0]?arguments[0]:location.pathname,b=arguments[1]?arguments[1]:"","/"===b[0]||b.match(/^\w+\:\/\//)?b:a.substr(0,a.lastIndexOf("/"))+"/"+b};a.fn.include=function(){return this.each(function(){a(this).find("[jq-include]").not("[jq-include-ignore]").each(function(){var c=a(this),d=c.parents("[jq-include]:first").attr("jq-include-from");d||(d=b());var e=b(d,a(this).attr("jq-include"));c.attr("jq-include-from",b(e)).attr("jq-include-ignore",!0),a(this).html(a.ajax({async:!1,method:"get",url:e}).responseText),a(this).include()})})},a.include=function(){return a("body").include()}});