I want to make a form in html that gives up a copy button to copy the reminder's sharing link and also the direct link to "save" page in Google calendar.
The link format is as below (click to check): https://calendar.google.com/calendar/u/0/r/eventedit?text=Eventtitle&dates=20230523T170000/20230523T183000&ctz=America/USA&details=EnevtSummary
If you click such a link, you will be taken to your online Google calendar page to save this reminder
So variables are as below:
var event_title =
var begin_date=
var begin_time=
var finish_date=
var finish_time=
var event_Summary=
I need a final code that will perform a copy action by one click.
I haven't found such a thing all over my searches. That's odd! The very Google calendar doesn't have such an option!
It would be great and useful to create and hand over such a webpage, so people can manage to get the code or even set a reminder that takes them directly to their Google calendar save page.
The code can be something like this (but not all of it):
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript code for Google calendar</h2>
<script>
var url = "https://calendar.google.com/calendar/u/0/r/eventedit?text=" event_title "&dates=" begin_date "T" begin_time "/" finish_date "T" finish_time "&ctz=" time_zone "&details=" event_Summary
var event_title = function (alert) {}
var begin_date=
var begin_time=
var finish_date=
var finish_time
var event_Summary=
//Console.log(URL);
</script>
<form>
<P>Please fill this form</p>
<Button>Copy link</button>
<Button>Save reminder</button>
</form>
</body>
</html>
Please edit this code. Thanks.
CodePudding user response:
Found a webpage and works well: