"use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _createClass=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},a=t.el,r=void 0===a?document.querySelector("body"):a,l=t.type,i=void 0===l?1:l;_classCallCheck(this,e),this.el=this.queryEl(r),this.setType(i),this.importCss(n),this.render()}return _createClass(e,[{key:"render",value:function(){3===this.type?this.renderVerticalFooter():this.renderHorizontalFooter()}},{key:"renderVerticalFooter",value:function(){var e='\n \n ';$(this.el).append(e)}},{key:"renderHorizontalFooter",value:function(){var e='\n \n ';$(this.el).append(e)}},{key:"queryEl",value:function(e){if("string"==typeof e){var t=document.querySelector(e);return t||void 0,t}return e}},{key:"setType",value:function(e){1==e||2==e||3==e?this.type=Number(e):void 0}},{key:"isDark",value:function(){var e=document.querySelector('meta[name="toolbar"]'),t=e&&JSON.parse(e.getAttribute("content")).type;return window.csdn.toolbarIsBlack||"1"===t}},{key:"importCss",value:function(e){var t=document.createElement("link");t.rel="stylesheet",t.type="text/css",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)}}]),e}();$(function(){var t=e();new o(t||window.csdn.csdnFooter.options)})}();