Skip to content

Instantly share code, notes, and snippets.

View gkalmoukis's full-sized avatar
🥦
Focusing

Giorgos Kalmoukis gkalmoukis

🥦
Focusing
View GitHub Profile
@gkalmoukis
gkalmoukis / calendly.html
Last active May 6, 2023 23:10
Calendly Integration
<!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>
@gkalmoukis
gkalmoukis / keep-query-params.js
Created June 25, 2021 11:34
Simpe script that allows you to keep all query parameters from URL
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);