more work on frontend

This commit is contained in:
Josh
2018-05-25 16:51:16 -04:00
parent 0dce8d2bf5
commit 6c1074443f
5 changed files with 126 additions and 23 deletions

View File

@ -1,5 +1,5 @@
<div class="container">
<h1 class="display-3 text-center text-primary">Teach Students Online</h1>
<h1 id="main-text" class="display-3 text-center text-primary">Teach Students Online.</h1>
<hr class="small-rule">
<%= render "shared/start_meeting" %>
@ -15,4 +15,24 @@
$(window).on('load',function(){
$('#welcomeModal').modal('show');
});
textOptions = [
"Start your own Meeting.",
"Collaborate with Friends.",
"Connect in Real-Time.",
"Teach Students Online.",
]
textOpt = 0
var changeText = function(){
$('#main-text').text(textOptions[textOpt]);
$('#main-text').fadeIn(1000)
textOpt++;
if (textOpt > textOptions.length) { textOpt = 0; }
}
setInterval(function(){
$('#main-text').fadeOut(1000, changeText)
}, 7000);
</script>