Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jeesh27 authored Dec 16, 2023
1 parent 9a6d95f commit 5c8951a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
Binary file added Assignments/CB.EN.U4CYS22032/ui/images/LOGO.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignments/CB.EN.U4CYS22032/ui/images/h.logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 24 additions & 3 deletions Assignments/CB.EN.U4CYS22032/ui/javascript/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,31 @@ $(document).ready(function(){
$('nav').toggleClass('nav-toggle');
});

$(window).on('scroll load',function(){
$('.fa-bars').removeClass('fa-times');
$('nav').removeClass('nav-toggle');
document.getElementById('myForm').addEventListener('submit', function(event) {
event.preventDefault();

var outputMessage = "Thank you for submitting the form! We will contact you soon.";

alert(outputMessage);

document.getElementById('firstName').value = '';
document.getElementById('lastName').value = '';
document.getElementById('email').value = '';
document.getElementById('message').value = '';
});

document.getElementById('subscribeForm').addEventListener('submit', function(event) {
event.preventDefault();


var email = document.getElementById('emailInput').value;

alert("Thank you for subscribing!");


document.getElementById('emailInput').value = '';
});


$('.count').each(function() {
var $this = $(this),
Expand Down

0 comments on commit 5c8951a

Please sign in to comment.