This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Calendly Integration</title> | |
</head> | |
<body> | |
<ol> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setParameter(key, value) { | |
if (history.pushState) { | |
let parameters = new URLSearchParams(window.location.search); | |
parameters.set(key, value); | |
let newUrl = window.location.protocol + "//" + window.location.host + window.location.pathname + '?' + parameters.toString(); | |
window.history.pushState({ | |
path: newUrl | |
}, '', newUrl); |