Merge branch 'base-edits'
This commit is contained in:
Vendored
+3
File diff suppressed because one or more lines are too long
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 57 KiB |
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 74 KiB |
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 7.4 KiB |
Vendored
+76
@@ -0,0 +1,76 @@
|
||||
$(document).ready(function() {
|
||||
// popup when they try to log in or signup
|
||||
$('#login, #signup, .social-media-icons').click(function() {
|
||||
$('#popup')
|
||||
.text('Coming Soon!')
|
||||
.slideDown()
|
||||
.delay(4000)
|
||||
.slideUp();
|
||||
});
|
||||
|
||||
// email submission
|
||||
$('#email-form').submit(function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
$('#popup')
|
||||
.text('Added to list! Thank you for joining!')
|
||||
.slideDown()
|
||||
.delay(4000)
|
||||
.slideUp();
|
||||
|
||||
$.ajax({
|
||||
url: 'https://ucharify-api.herokuapp.com/api/users/landing',
|
||||
type: 'post',
|
||||
data: $('#email-form').serialize(),
|
||||
success: function(data) {
|
||||
// whatever you wanna do after the form is successfully submitted
|
||||
// $('#popup')
|
||||
// .text('Added to list! Thank you for joining!')
|
||||
// .slideDown()
|
||||
// .delay(4000)
|
||||
// .slideUp();
|
||||
console.log('successfully added email');
|
||||
},
|
||||
error: function(error) {
|
||||
// $('#popup')
|
||||
// .text('Email invalid or exists')
|
||||
// .slideDown()
|
||||
// .delay(4000)
|
||||
// .slideUp();
|
||||
console.log('invalid or exists email');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Countdown
|
||||
$('#countdown').countdown('2019/03/15', function(event) {
|
||||
$(this).text(event.strftime('%D days %H:%M:%S'));
|
||||
var $this = $(this).html(
|
||||
event.strftime(`
|
||||
<div class="time-factor"><span class="number-text">%w</span><span>weeks</span></div>
|
||||
<div class="time-factor"><span class="number-text">%d</span><span>days</span></div>
|
||||
<div class="time-factor"><span class="number-text">%H</span><span>hr</span></div>
|
||||
<div class="time-factor"><span class="number-text">%M</span><span>min</span></div>
|
||||
<div class="time-factor right-most"><span class="number-text">%S</span><span>sec</span></div>
|
||||
`)
|
||||
);
|
||||
});
|
||||
|
||||
// Slideshow main
|
||||
var myIndex = 0;
|
||||
carousel();
|
||||
|
||||
function carousel() {
|
||||
var i;
|
||||
var x = document.getElementsByClassName('mySlides');
|
||||
for (i = 0; i < x.length; i++) {
|
||||
x[i].style.display = 'none';
|
||||
}
|
||||
myIndex++;
|
||||
if (myIndex > x.length) {
|
||||
myIndex = 1;
|
||||
}
|
||||
x[myIndex - 1].style.display = 'block';
|
||||
setTimeout(carousel, 4000); // Change image every 2 seconds
|
||||
}
|
||||
});
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
!function(){const e=document.documentElement;if(e.classList.remove("no-js"),e.classList.add("js"),document.body.classList.contains("has-animations")){const e=window.sr=ScrollReveal();e.reveal(".hero-title, .hero-paragraph, .hero-cta",{duration:1e3,distance:"40px",easing:"cubic-bezier(0.5, -0.01, 0, 1.005)",origin:"bottom",interval:150}),e.reveal(".feature, .pricing-table",{duration:600,distance:"40px",easing:"cubic-bezier(0.5, -0.01, 0, 1.005)",interval:100,origin:"bottom",viewFactor:.5}),e.reveal(".feature-extended-image, .testimonial",{duration:600,scale:.9,easing:"cubic-bezier(0.5, -0.01, 0, 1.005)",viewFactor:.5})}}();
|
||||
Reference in New Issue
Block a user