diff --git a/admin/404.html b/admin/404.html
deleted file mode 100644
index 40d481ee..00000000
--- a/admin/404.html
+++ /dev/null
@@ -1,52 +0,0 @@
-
-
-
-
- Page Not Found :(
-
-
-
-
-
Not found :(
-
Sorry, but the page you were trying to view does not exist.
-
It looks like this was the result of either:
-
- - a mistyped address
- - an out-of-date link
-
-
-
-
diff --git a/admin/common-js.php b/admin/common-js.php
index cb41b53c..7a0db800 100644
--- a/admin/common-js.php
+++ b/admin/common-js.php
@@ -7,10 +7,7 @@
$(document).ready(function() {
highlight): ?>
//增加高亮效果
- $('#highlight; ?>').addClass('nohover')
- .effect('highlight', '#AACB36', 1000, function () {
- $(this).removeClass('nohover');
- });
+ $('#highlight; ?>').effect('highlight', 1000);
//增加淡出效果
@@ -18,31 +15,59 @@
var p = $('.popup');
if (p.length > 0) {
- if (p.hasClass('notice')) {
- p.effect('bounce');
- } else if (p.hasClass('error')) {
- p.effect('shake');
- } else {
- p.slideDown();
+ var head = $('.typecho-head-nav'),
+ offset = head.length > 0 ? head.outerHeight() : 0;
+
+ function checkScroll () {
+ if ($(window).scrollTop() >= offset) {
+ p.css({
+ 'position' : 'fixed',
+ 'top' : 0
+ });
+ } else {
+ p.css({
+ 'position' : 'absolute',
+ 'top' : offset
+ });
+ }
}
-
- p.sticky({
- getWidthFrom : document.body
- }).delay(5000).fadeOut();
+
+ $(window).scroll(function () {
+ checkScroll();
+ });
+
+ checkScroll();
+
+ p.slideDown(function () {
+ var t = $(this), color = '#C6D880';
+
+ if (t.hasClass('error')) {
+ color = '#FBC2C4';
+ } else if (t.hasClass('notice')) {
+ color = '#FFD324';
+ }
+
+ t.effect('highlight', {color : color})
+ .delay(5000).slideUp(function () {
+ $(this).remove();
+ });
+ });
}
})();
- $('a').each(function () {
- var t = $(this), href = t.attr('href');
+ if ($('.typecho-login').length == 0) {
+ $('a').each(function () {
+ var t = $(this), href = t.attr('href');
- if ((href.length > 1 && href[0] == '#')
- || /^adminUrl, '/'); ?>.*$/.exec(href)
- || /^index), '/'), 0, -1); ?>action\/[_a-zA-Z0-9\/]+.*$/.exec(href)) {
- return;
- }
+ if ((href.length > 1 && href[0] == '#')
+ || /^adminUrl, '/'); ?>.*$/.exec(href)
+ || /^index), '/'), 0, -1); ?>action\/[_a-zA-Z0-9\/]+.*$/.exec(href)) {
+ return;
+ }
- t.attr('target', '_blank');
- });
+ t.attr('target', '_blank');
+ });
+ }
});
})();
diff --git a/admin/css/style.css b/admin/css/style.css
index 526e2561..bf8ecb95 100644
--- a/admin/css/style.css
+++ b/admin/css/style.css
@@ -427,12 +427,16 @@ button.primary:active, button.primary.active {
/** 增加顶部消息样式 by 70 */
.popup {
border-width: 0 0 1px 0;
- position: relative;
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
z-index: 10;
text-align: center;
font-weight: bold;
display: none;
margin: 0;
+ padding: 5px 0;
-moz-border-radius: 0;
-moz-border-radius: 0;
@@ -448,6 +452,12 @@ button.primary:active, button.primary.active {
list-style: none;
margin: 0;
padding: 0;
+ text-align: center;
+}
+
+.popup ul li {
+ display: inline-block;
+ margin-right: 10px;
}
/**
@@ -1216,26 +1226,6 @@ ul.typecho-list-notable li {
padding: 5px 0;
}
-ul.typecho-list-notable li span.comment,
-ul.typecho-list-notable li span.pingback,
-ul.typecho-list-notable li span.trackback {
- background: url(../images/comment.gif) top no-repeat;
- width: 16px;
- height: 16px;
- display: block;
- float: left;
- margin: 4px 3px -4px 0;
- _margin-right: 0;
-}
-
-ul.typecho-list-notable li span.pingback {
- background-position: center;
-}
-
-ul.typecho-list-notable li span.trackback {
- background-position: bottom;
-}
-
ul.typecho-list-notable li .comment-body {
overflow: visible;
}
diff --git a/admin/file-upload-js.php b/admin/file-upload-js.php
index 8eceb6cf..334e8da8 100644
--- a/admin/file-upload-js.php
+++ b/admin/file-upload-js.php
@@ -41,7 +41,7 @@ $(document).ready(function() {
+ data.cid + '">' + data.title + ' ' + data.bytes
+ ' '
+ ' ×')
- .effect('highlight', '#AACB36', 1000);
+ .effect('highlight', 1000);
attachInsertEvent(li);
attachDeleteEvent(li);
diff --git a/admin/images/arrow.gif b/admin/images/arrow.gif
deleted file mode 100644
index 391cba04..00000000
Binary files a/admin/images/arrow.gif and /dev/null differ
diff --git a/admin/images/attach.gif b/admin/images/attach.gif
deleted file mode 100644
index b48d9925..00000000
Binary files a/admin/images/attach.gif and /dev/null differ
diff --git a/admin/images/comment.gif b/admin/images/comment.gif
deleted file mode 100644
index d2b2c9af..00000000
Binary files a/admin/images/comment.gif and /dev/null differ
diff --git a/admin/images/notice.gif b/admin/images/notice.gif
deleted file mode 100644
index 878d3b11..00000000
Binary files a/admin/images/notice.gif and /dev/null differ
diff --git a/admin/images/progress.gif b/admin/images/progress.gif
deleted file mode 100644
index bda2b5a9..00000000
Binary files a/admin/images/progress.gif and /dev/null differ
diff --git a/admin/images/sprite.png b/admin/images/sprite.png
deleted file mode 100644
index 3e776f88..00000000
Binary files a/admin/images/sprite.png and /dev/null differ
diff --git a/admin/javascript/jquery-ui.js b/admin/javascript/jquery-ui.js
index 9a94562f..5e24f394 100755
--- a/admin/javascript/jquery-ui.js
+++ b/admin/javascript/jquery-ui.js
@@ -1,6 +1,6 @@
/*! jQuery UI - v1.10.3 - 2013-10-16
* http://jqueryui.com
-* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.datepicker.js, jquery.ui.slider.js, jquery.ui.effect.js, jquery.ui.effect-bounce.js, jquery.ui.effect-highlight.js, jquery.ui.effect-shake.js
+* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.datepicker.js, jquery.ui.slider.js, jquery.ui.effect.js, jquery.ui.effect-highlight.js
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(function( $, undefined ) {
@@ -4943,106 +4943,6 @@ $.each( baseEasings, function( name, easeIn ) {
})(jQuery);
(function( $, undefined ) {
-$.effects.effect.bounce = function( o, done ) {
- var el = $( this ),
- props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
-
- // defaults:
- mode = $.effects.setMode( el, o.mode || "effect" ),
- hide = mode === "hide",
- show = mode === "show",
- direction = o.direction || "up",
- distance = o.distance,
- times = o.times || 5,
-
- // number of internal animations
- anims = times * 2 + ( show || hide ? 1 : 0 ),
- speed = o.duration / anims,
- easing = o.easing,
-
- // utility:
- ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
- motion = ( direction === "up" || direction === "left" ),
- i,
- upAnim,
- downAnim,
-
- // we will need to re-assemble the queue to stack our animations in place
- queue = el.queue(),
- queuelen = queue.length;
-
- // Avoid touching opacity to prevent clearType and PNG issues in IE
- if ( show || hide ) {
- props.push( "opacity" );
- }
-
- $.effects.save( el, props );
- el.show();
- $.effects.createWrapper( el ); // Create Wrapper
-
- // default distance for the BIGGEST bounce is the outer Distance / 3
- if ( !distance ) {
- distance = el[ ref === "top" ? "outerHeight" : "outerWidth" ]() / 3;
- }
-
- if ( show ) {
- downAnim = { opacity: 1 };
- downAnim[ ref ] = 0;
-
- // if we are showing, force opacity 0 and set the initial position
- // then do the "first" animation
- el.css( "opacity", 0 )
- .css( ref, motion ? -distance * 2 : distance * 2 )
- .animate( downAnim, speed, easing );
- }
-
- // start at the smallest distance if we are hiding
- if ( hide ) {
- distance = distance / Math.pow( 2, times - 1 );
- }
-
- downAnim = {};
- downAnim[ ref ] = 0;
- // Bounces up/down/left/right then back to 0 -- times * 2 animations happen here
- for ( i = 0; i < times; i++ ) {
- upAnim = {};
- upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;
-
- el.animate( upAnim, speed, easing )
- .animate( downAnim, speed, easing );
-
- distance = hide ? distance * 2 : distance / 2;
- }
-
- // Last Bounce when Hiding
- if ( hide ) {
- upAnim = { opacity: 0 };
- upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;
-
- el.animate( upAnim, speed, easing );
- }
-
- el.queue(function() {
- if ( hide ) {
- el.hide();
- }
- $.effects.restore( el, props );
- $.effects.removeWrapper( el );
- done();
- });
-
- // inject all the animations we just queued to be first in line (after "inprogress")
- if ( queuelen > 1) {
- queue.splice.apply( queue,
- [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );
- }
- el.dequeue();
-
-};
-
-})(jQuery);
-(function( $, undefined ) {
-
$.effects.effect.highlight = function( o, done ) {
var elem = $( this ),
props = [ "backgroundImage", "backgroundColor", "opacity" ],
@@ -5078,64 +4978,3 @@ $.effects.effect.highlight = function( o, done ) {
};
})(jQuery);
-(function( $, undefined ) {
-
-$.effects.effect.shake = function( o, done ) {
-
- var el = $( this ),
- props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
- mode = $.effects.setMode( el, o.mode || "effect" ),
- direction = o.direction || "left",
- distance = o.distance || 20,
- times = o.times || 3,
- anims = times * 2 + 1,
- speed = Math.round(o.duration/anims),
- ref = (direction === "up" || direction === "down") ? "top" : "left",
- positiveMotion = (direction === "up" || direction === "left"),
- animation = {},
- animation1 = {},
- animation2 = {},
- i,
-
- // we will need to re-assemble the queue to stack our animations in place
- queue = el.queue(),
- queuelen = queue.length;
-
- $.effects.save( el, props );
- el.show();
- $.effects.createWrapper( el );
-
- // Animation
- animation[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance;
- animation1[ ref ] = ( positiveMotion ? "+=" : "-=" ) + distance * 2;
- animation2[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance * 2;
-
- // Animate
- el.animate( animation, speed, o.easing );
-
- // Shakes
- for ( i = 1; i < times; i++ ) {
- el.animate( animation1, speed, o.easing ).animate( animation2, speed, o.easing );
- }
- el
- .animate( animation1, speed, o.easing )
- .animate( animation, speed / 2, o.easing )
- .queue(function() {
- if ( mode === "hide" ) {
- el.hide();
- }
- $.effects.restore( el, props );
- $.effects.removeWrapper( el );
- done();
- });
-
- // inject all the animations we just queued to be first in line (after "inprogress")
- if ( queuelen > 1) {
- queue.splice.apply( queue,
- [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );
- }
- el.dequeue();
-
-};
-
-})(jQuery);
diff --git a/admin/javascript/typecho.js b/admin/javascript/typecho.js
index 78c0e961..d27dbd4d 100644
--- a/admin/javascript/typecho.js
+++ b/admin/javascript/typecho.js
@@ -1031,133 +1031,3 @@ jQuery.cookie = function (key, value, options) {
return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
};
-// Sticky Plugin v1.0.0 for jQuery
-// =============
-// Author: Anthony Garand
-// Improvements by German M. Bravo (Kronuz) and Ruud Kamphuis (ruudk)
-// Improvements by Leonardo C. Daronco (daronco)
-// Created: 2/14/2011
-// Date: 2/12/2012
-// Website: http://labs.anthonygarand.com/sticky
-// Description: Makes an element on the page stick on the screen as you scroll
-// It will only set the 'top' and 'position' of your element, you
-// might need to adjust the width in some cases.
-
-(function($) {
- var defaults = {
- topSpacing: 0,
- bottomSpacing: 0,
- className: 'is-sticky',
- wrapperClassName: 'sticky-wrapper',
- center: false,
- getWidthFrom: ''
- },
- $window = $(window),
- $document = $(document),
- sticked = [],
- windowHeight = $window.height(),
- scroller = function() {
- var scrollTop = $window.scrollTop(),
- documentHeight = $document.height(),
- dwh = documentHeight - windowHeight,
- extra = (scrollTop > dwh) ? dwh - scrollTop : 0;
-
- for (var i = 0; i < sticked.length; i++) {
- var s = sticked[i],
- elementTop = s.stickyWrapper.offset().top,
- etse = elementTop - s.topSpacing - extra;
-
- if (scrollTop <= etse) {
- if (s.currentTop !== null) {
- s.stickyElement
- .css('position', '')
- .css('top', '');
- s.stickyElement.parent().removeClass(s.className);
- s.currentTop = null;
- }
- }
- else {
- var newTop = documentHeight - s.stickyElement.outerHeight()
- - s.topSpacing - s.bottomSpacing - scrollTop - extra;
- if (newTop < 0) {
- newTop = newTop + s.topSpacing;
- } else {
- newTop = s.topSpacing;
- }
- if (s.currentTop != newTop) {
- s.stickyElement
- .css('position', 'fixed')
- .css('top', newTop);
-
- if (typeof s.getWidthFrom !== 'undefined') {
- s.stickyElement.css('width', $(s.getWidthFrom).width());
- }
-
- s.stickyElement.parent().addClass(s.className);
- s.currentTop = newTop;
- }
- }
- }
- },
- resizer = function() {
- windowHeight = $window.height();
- },
- methods = {
- init: function(options) {
- var o = $.extend(defaults, options);
- return this.each(function() {
- var stickyElement = $(this);
-
- var stickyId = stickyElement.attr('id');
- var wrapper = $('')
- .attr('id', stickyId + '-sticky-wrapper')
- .addClass(o.wrapperClassName);
- stickyElement.wrapAll(wrapper);
-
- if (o.center) {
- stickyElement.parent().css({width:stickyElement.outerWidth(),marginLeft:"auto",marginRight:"auto"});
- }
-
- if (stickyElement.css("float") == "right") {
- stickyElement.css({"float":"none"}).parent().css({"float":"right"});
- }
-
- var stickyWrapper = stickyElement.parent();
- // stickyWrapper.css('height', stickyElement.outerHeight());
- sticked.push({
- topSpacing: o.topSpacing,
- bottomSpacing: o.bottomSpacing,
- stickyElement: stickyElement,
- currentTop: null,
- stickyWrapper: stickyWrapper,
- className: o.className,
- getWidthFrom: o.getWidthFrom
- });
- });
- },
- update: scroller
- };
-
- // should be more efficient than using $window.scroll(scroller) and $window.resize(resizer):
- if (window.addEventListener) {
- window.addEventListener('scroll', scroller, false);
- window.addEventListener('resize', resizer, false);
- } else if (window.attachEvent) {
- window.attachEvent('onscroll', scroller);
- window.attachEvent('onresize', resizer);
- }
-
- $.fn.sticky = function(method) {
- if (methods[method]) {
- return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
- } else if (typeof method === 'object' || !method ) {
- return methods.init.apply( this, arguments );
- } else {
- $.error('Method ' + method + ' does not exist on jQuery.sticky');
- }
- };
- $(function() {
- setTimeout(scroller, 0);
- });
-})(jQuery);
-
diff --git a/admin/login.php b/admin/login.php
index 2f0a44cb..0b4601c3 100644
--- a/admin/login.php
+++ b/admin/login.php
@@ -25,8 +25,8 @@ Typecho_Cookie::delete('__typecho_remember_name');