-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from CH1006/180
180: signup,login,forgotpass
- Loading branch information
Showing
62 changed files
with
1,124 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
//= require rails-ujs | ||
//= require activestorage | ||
//= require cable | ||
//= require jquery3 | ||
//= require popper | ||
//= require bootstrap | ||
//= require custom | ||
//= require toastr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
$(document).ready(function() { | ||
var $headline = $('.headline'), | ||
$inner = $('.inner'), | ||
$nav = $('nav'), | ||
navHeight = 75; | ||
|
||
$(window).scroll(function() { | ||
var scrollTop = $(this).scrollTop(), | ||
headlineHeight = $headline.outerHeight() - navHeight, | ||
navOffset = $nav.offset().top; | ||
|
||
$headline.css({ | ||
'opacity': (1 - scrollTop / headlineHeight) | ||
}); | ||
|
||
$inner.children().css({ | ||
'transform': 'translateY('+ scrollTop * 0.4 +'px)' | ||
}); | ||
if (navOffset > headlineHeight) { | ||
$nav.addClass('scrolled'); | ||
} else { | ||
$nav.removeClass('scrolled'); | ||
} | ||
}); | ||
|
||
$(".preview-signup").change(function() { | ||
readURL(this, '#img-prev-signup'); | ||
}); | ||
}); | ||
|
||
function readURL(f, previewId) { | ||
if (f.files && f.files[0]) { | ||
var reader = new FileReader(); | ||
reader.onload = function (e) { | ||
$(previewId) | ||
.attr('src', e.target.result); | ||
}; | ||
reader.readAsDataURL(f.files[0]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
/* | ||
*= require custom | ||
.*= require toastr | ||
*= require_self | ||
*/ |
Oops, something went wrong.