/* By ZBlogPHP erx_Beautify [//app.zblogcn.com/?auth=3ec7ee20-80f2-498a-a5dd-fda19b198194] */
$(function(){
var erxBeautyLinktip = {
x: 10,
y: 20,
tipElements: "a,span,img,div ",
noTitle: false,
init: function() {
var noTitle = this.noTitle;
$(this.tipElements).each(function() {
$(this).mouseover(function(e) {
if (noTitle) {
isTitle = true;
} else {
isTitle = $.trim(this.title) != '';
}
if (isTitle) {
this.myTitle = this.title;
this.title = "";
var erxLinktip = "
";
if(($(window).width() - e.pageX) > 80){
$('body').append(erxLinktip);
}
$('.erx-linktip').css({
"top": (e.pageY + 20) + "px",
"left": (e.pageX - 20) + "px"
}).show('fast');
}
}).mouseout(function() {
if (this.myTitle != null) {
this.title = this.myTitle;
$('.erx-linktip').remove();
}
}).mousemove(function(e) {
$('.erx-linktip').css({
"top": (e.pageY + 20) + "px",
"left": (e.pageX - 20) + "px"
});
});
});
}
};
erxBeautyLinktip.init();
var erxBeautyjs = bloghost + "zb_users/plugin/erx_Beautify/js/";
erxBeautyLoadJs(erxBeautyjs + "nprogress.js",function(){
NProgress.configure({
showSpinner:true
});
NProgress.start();
$(window).on('load',function(){
NProgress.done();
});
});
$("body").append('');
erxBeautyLoadJs(erxBeautyjs + "sketch.min.js",function(){});
});
function erxBeautyLoadJs(src, callback) {
var script = document.createElement('script'),
head = document.getElementsByTagName('head')[0];
script.type = 'text/javascript';
script.charset = 'utf-8';
script.src = src;
if (script.addEventListener) {
script.addEventListener('load', function () {
callback();
}, false);
} else if (script.attachEvent) {
script.attachEvent('onreadystatechange', function () {
var target = window.event.srcElement;
if (target.readyState == 'loaded') {
callback();
}
});
}
head.appendChild(script);
}