Unverified Commit 8d13b239 authored by Abraham Raji's avatar Abraham Raji 🤙🏻
Browse files

Switch javascript to ES6 syntax

parent cdf518d0
......@@ -261,10 +261,10 @@
</div>
</div>
<script>
var modal = document.getElementById("ml-modal");
var modal_btn = document.getElementById("ml-modal-open");
var close_btn = document.getElementsByClassName("close-btn")[0];
var subscribe_btn = document.getElementsByClassName("subscribe-btn")[0];
const modal = document.getElementById("ml-modal");
const modal_btn = document.getElementById("ml-modal-open");
const close_btn = document.getElementsByClassName("close-btn")[0];
const subscribe_btn = document.getElementsByClassName("subscribe-btn")[0];
modal_btn.onclick = function() {
modal.style.display = "block";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment