Skip to content

Commit

Permalink
embed calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
gpchelkin committed Oct 1, 2023
1 parent b230ee5 commit 6f41727
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<title>gpchelkin</title>
<base target="_blank" />
<link href="/favicon.ico" rel="icon" type="image/x-icon" />
<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link href="https://fonts.googleapis.com/css?family=PT+Mono|PT+Sans|PT+Sans+Caption" rel="stylesheet" />
<link href="skeleton.min.css" rel="stylesheet" type="text/css" />
<base target="_blank" />
<script src="qrmsg.js" type="text/javascript"></script>
</head>
<body style="font-family: &#39;PT Sans Caption&#39;, sans-serif; background-color: #cef3f2; text-align: right;">
Expand Down
2 changes: 1 addition & 1 deletion index.slim
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ html
meta charset="utf-8"
meta name="viewport" content="width=device-width, initial-scale=1"
title gpchelkin
base target="_blank"
link rel="icon" href="/favicon.ico" type="image/x-icon"
link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"
link href="https://fonts.googleapis.com/css?family=PT+Mono|PT+Sans|PT+Sans+Caption" rel="stylesheet"
link href="skeleton.min.css" rel="stylesheet" type="text/css"
base target="_blank"
script type="text/javascript" src="qrmsg.js"

body style="font-family: 'PT Sans Caption', sans-serif; background-color: #cef3f2; text-align: right;"
Expand Down
2 changes: 1 addition & 1 deletion tusit.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<title>gpchelkin/tusit</title>
<base target="_blank" />
<link href="/favicon.ico" rel="icon" type="image/x-icon" />
<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<base target="_blank" />
<script src="tusit.js" type="text/javascript"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion tusit.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
document.addEventListener(
"DOMContentLoaded", async function (event) {
var calendar = document.getElementById("calendar");
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const calendarId = urlParams.get('id')
// var hash = location.hash.replace("#", "");
// location.hash = "";
var calendar = document.getElementById("calendar");
if (calendarId != null)
{
calendar.src += calendarId
Expand Down
2 changes: 1 addition & 1 deletion tusit.slim
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ html
meta charset="utf-8"
meta name="viewport" content="width=device-width, initial-scale=1"
title gpchelkin/tusit
base target="_blank"
link rel="icon" href="/favicon.ico" type="image/x-icon"
link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"
base target="_blank"
script type="text/javascript" src="tusit.js"
body
iframe#calendar src="https://calendar.yandex.com/embed/month?layer_names=gpchelkin/tusit&layer_ids=" width="100%" height="800" frameborder="0" style="border: 1px solid #eee"

0 comments on commit 6f41727

Please sign in to comment.