Skip to content

Commit

Permalink
view: Make more natural loading effect in two column mode
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Apr 7, 2017
1 parent a5d9000 commit 5fe1253
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions app/assets/stylesheets/less/_page.less
Original file line number Diff line number Diff line change
Expand Up @@ -6843,7 +6843,6 @@ div.diff-body[data-outdated="true"] tr:hover .icon-comment {
#pageslide {
/* These styles MUST be included. Do not change. */
display: none;
position: absolute;
position: fixed;
top: 0;
height: 100%;
Expand All @@ -6854,7 +6853,6 @@ div.diff-body[data-outdated="true"] tr:hover .icon-comment {
padding: 0;

/* These styles are optional, and describe how the pageslide will look */
color: #FFF;
-webkit-box-shadow: inset 0 0 5px 5px #222;
-moz-shadow: inset 0 0 5px 5px #222;
//box-shadow: inset 0 0 5px 5px #222;
Expand Down
Binary file added public/images/Loading.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions public/javascripts/lib/jquery.pageslide.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
} else {
// Load a URL. Into an iframe?
if( useIframe ) {
var iframe = $("<iframe />").attr({
var iframe = $("<iframe allowtransparency='true' />").attr({
src: url,
frameborder: 0,
hspace: 0
Expand Down Expand Up @@ -157,7 +157,10 @@
_start( settings.direction, settings.speed );
});
} else {
_load( settings.href, settings.iframe );
setTimeout(function () {
_load(settings.href, settings.iframe);
}, 300);
$("#pageslide > iframe").remove();
if( $pageslide.is(':hidden') ) {
_start( settings.direction, settings.speed );
}
Expand Down
1 change: 0 additions & 1 deletion public/javascripts/service/yona.twoColumnMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ function _initTwoColumnMode(){
localStorage.setItem('useTwoColumnMode', true);
attachPageSlideEvent($twoColumnMode, $title);
bindFrameLoading();
$('#pageslide').html("<div>Loading...</div>");
} else {
localStorage.setItem('useTwoColumnMode', false);
$('.post-item').removeClass('highlightBg').css("cursor", "");
Expand Down

0 comments on commit 5fe1253

Please sign in to comment.