profile/5736download.png
Mmsh350
Display Easter Date Using JavaScript
In this code we will try to create Display Easter Date using JavaScript. The code will display the actual easter date base on the given year. This a user-friendly kind of code, feel free to modify it and use it as your coding reference. To learn more about this, just follow the steps below.Getting started:First you have to download bootstrap framework, this is the link for the bootstrap that I used for the layout design https://getbootstrap.com/.The Main InterfaceThis code contains the interface of the application. To create this just write these block of code inside the text editor and save this as index.html.
Creating the ScriptThis code contains the script of the application. The code will dynamically limit the password length when user click the button. To do this just copy and write these block of codes inside the text editor, then save it as script.js inside the js folder.
var m=["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
function getEasterDate(year) {
var f = Math.floor;
var G = year % 19;
var C = f(year / 100);
var H = (C - f(C / 4) - f((8 * C + 13)/25) + 19 * G + 15) % 30;
var I = H - f(H/28) * (1 - f(29/(H + 1)) * f((21-G)/11));
var J = (year + f(year / 4) + I + 2 - C + f(C / 4)) % 7;
var L = I - J;
var month = 3 + f((L + 40)/44);
var day = L + 28 - 31 * f(month / 4);
return [month,day];
}
function displayDate(){
var year=document.getElementById('year').value;
if(year.length == 0){
alert("Please enter something");
}else{
var month=getEasterDate(year)[0];
var day=getEasterDate(year)[1];
document.getElementById('result').innerHTML="
Easter Date:
"+m[month-1]+" "+day+", "+year+"
"; }
}
There you have it we successfully created a Display Easter Date using JavaScript. I hope that this simple tutorial help you to what you are looking for. For more updates and tutorials just kindly visit this site. Enjoy Coding!
profile/5736download.png
Mmsh350
TODO List App Using JavaScript
TODO List App with Source Code is a JavaScript project that can manage and enlist your daily activity. The program was developed using JavaScript, CSS and HTML.The program is not that hard to use, the user can enter the title and description of an activity in order to maintain the ordering of their daily task. They can enlist their task accordingly so that they can wrap up all things that needed to finish in time. The program also has a delete feature so that whenever a task is done you can delete it afterwards.Installation:Extract the zip file.Find and locate the file "index.html".Open the file in a web browser.The Source Code is ready to be downloaded, just kindly click download button below. I hope that this system can help you to what you are looking for. For more updates and tutorials just kindly visit this site. Enjoy Coding!!Link : https://www.sourcecodester.com/javascript/14394/todo-list-app-using-javascript.html