Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbrjt committed Mar 29, 2024
1 parent a98738c commit d174b47
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@

document.addEventListener('DOMContentLoaded', () => {
// in mobile view hide unnecessary columns
(function hide_cols_in_mobile() {
;(function hide_cols_in_mobile() {
const l = ['quota', 'state', 'seat', 'gender', 'open']

if (window.matchMedia('(max-width: 576px)').matches) {
Expand All @@ -159,7 +159,7 @@ document.addEventListener('DOMContentLoaded', () => {
})()

// load form inputs from local storage
(function load_local() {
;(function load_local() {
if (localStorage.getItem('rank') !== null) {
document.getElementById('rank').value = localStorage.getItem('rank')
document.getElementById('category').value = localStorage.getItem('category')
Expand Down Expand Up @@ -192,7 +192,7 @@ document.addEventListener('DOMContentLoaded', () => {
})()

// make sure atleast one checkbox is checked
(function check_type() {
;(function check_type() {
let type = document.getElementsByName('type')

for (let i of type) {
Expand All @@ -211,11 +211,11 @@ document.addEventListener('DOMContentLoaded', () => {
})()

// make sure atleast one radio is checked
(function check_gender() {
neu_check = document.getElementById('Neutral')
fem_check = document.getElementById('Female')
neu_radio = document.getElementById('neu-radio')
fem_radio = document.getElementById('fem-radio')
;(function check_gender() {
const neu_check = document.getElementById('Neutral')
const fem_check = document.getElementById('Female')
const neu_radio = document.getElementById('neu-radio')
const fem_radio = document.getElementById('fem-radio')

neu_check.addEventListener('change', () => {
if (!fem_check.checked) {
Expand Down

0 comments on commit d174b47

Please sign in to comment.