Caesar's Cipher was named after Julius Caesar, who used this cipher to encrypt his private messages. The cipher takes each letter in a word and rotates it by a number.
For example, if the cipher was a ROT1 (rotate by 1 letter), then every a in the message would show up as a b.
This is a ROT13 cipher. It will encrypt your messages by rotating the letters by 13 characters.
42 |
43 |
44 |
--------------------------------------------------------------------------------
/Palindrome_Checker/script.js:
--------------------------------------------------------------------------------
1 | function palindrome(){
2 | var num = document.querySelector(".inputbox").value.toUpperCase();
3 | // The code that organises and checks if it is a palindrome
4 | var alpha = num
5 | .split('')
6 | .reverse()
7 | .join('');
8 | // This is an if statement for when the letters are less than or equal to 2 and an else if statement for when the letters are greater than or equal to 3 and whether or not num is strictly equal to alpha
9 | if(num.length<=2){
10 | document.querySelector(".list").innerHTML = "TYPE MORE VALUES"
11 | }else if(num.length>=3 && num===alpha){
12 | document.querySelector(".list").innerHTML =`"${num}" is a palindrome!`
13 | }else{
14 | document.querySelector(".list").innerHTML =`"${num}" is not a palindrome!`
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Palindrome_Checker/style.css:
--------------------------------------------------------------------------------
1 | *{
2 | padding:0;
3 | margin:0;
4 | }
5 | body{
6 | background-color: #202020;
7 | margin: 60px auto;
8 | text-align:center;
9 | }
10 | h1{
11 | font-family: cursive;
12 | padding-top:100px;
13 | color:#f6f8fa;
14 | font-weight:100;
15 | }
16 | h3{
17 | font-weight:lighter;
18 | font-family: cursive;
19 | padding-top:10px;
20 | color:#f6f8fa;
21 | font-weight:100;
22 | word-spacing:1;
23 | }
24 | .inputbox{
25 | border:1px solid #f6f8fa;
26 | padding:10px;
27 | text-indent:5px;
28 | width:450px;
29 | background-color:#202020;
30 | margin:10px;
31 | text-transform:uppercase;
32 | color:#f6f8fa;
33 | font-weight:lighter;
34 | }
35 | .list{
36 | color:#f6f8fa;
37 | font-size:20px;
38 | padding-top:50px;
39 | }
40 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # JavaScript Projects 🚧
2 | While going through the JavaScript Algorithms and Data Structures Certification curriculum I had to write various functions.
3 | So, I decided to take this challenge a bit further and implement a UI for it and dive more into testing.
4 |
5 | ## Palindrome_Checker
6 | A palindrome is a word or sentence that's spelled the same way both forward and backward, ignoring punctuation, case, and spacing (e.g. mom, dad, racecar, madam). A palindrome checker checks if a string is a palindrome or not.
7 |
8 | ## Mobile_Number_Validator 📱
9 | Mobile number validation is the process of checking if a mobile number is accurate. It lets you find out if the mobile number you have for a business contact is active and able to receive calls or not.
10 |
11 | ## Caesar_Cipher 🔑
12 | The Caesar Cipher technique is one of the earliest and simplest method of encryption technique. It’s simply a type of substitution cipher, i.e., each letter of a given text is replaced by a letter some fixed number of positions down the alphabet. For example, if the Cipher was a ROT1 (rotate by 1 letter), then every a in the message would show up as a b. I have made a ROT13 cipher, it will encrypt your messages by rotating the letters by 13 characters.
13 |
14 | ## Roman_Numeral_Converter 🔢
15 | Roman numerals are a number system developed in ancient Rome where letters represent numbers. The modern use of Roman numerals involves the letters I, V, X, L, C, D, and M. I made a converter which can convert numbers from 1 to 3999 into Roman numerals or viceversa.
16 |
17 | ## DrumKit 🥁
18 | The point of this project is to have each key, when pressed, make a corresponding drum noise. It also uses CSS transitions and animations to make the project more interactive to the user.
19 |
20 |
21 | # Live demo
22 | [PalindromeChecker](https://codepen.io/adishisood/full/JjbJOda)
23 |
24 | [MobileNumberValidator](https://codepen.io/adishisood/full/wvoeZYX)
25 |
26 | [CaesarCipher](https://codepen.io/adishisood/full/VwmWRWO)
27 |
28 | [RomanNumeralConverter](https://codepen.io/adishisood/full/xxRrWgy)
29 |
30 | [DrumKit](https://codepen.io/adishisood/full/GRrORzr)
31 |
--------------------------------------------------------------------------------
/Roman_Numeral_Converter/converter.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | Roman Numeral Conversion
10 |
11 |
12 |