Skip to content

Commit

Permalink
rename: Calendar include
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbruce committed Feb 22, 2024
1 parent a24dab1 commit 6471f7a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion site-root/public/booking/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<article is="booking">
<section>
<h2>Book 30 minute free consultation</h2>
<?php require_once($relativeToRoot . 'calendly-widget.php'); ?>
<?php require_once($relativeToRoot . 'calendar-widget.php'); ?>
</section>
</article>
<?php require_once($relativeToRoot . 'foot.php'); ?>
14 changes: 14 additions & 0 deletions site-root/public/calendar-widget.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div style="width:100%;overflow:scroll" id="my-cal-inline"></div>
<script type="text/javascript">
(function (C, A, L) { let p = function (a, ar) { a.q.push(ar); }; let d = C.document; C.Cal = C.Cal || function () { let cal = C.Cal; let ar = arguments; if (!cal.loaded) { cal.ns = {}; cal.q = cal.q || []; d.head.appendChild(d.createElement("script")).src = A; cal.loaded = true; } if (ar[0] === L) { const api = function () { p(api, arguments); }; const namespace = ar[1]; api.q = api.q || []; typeof namespace === "string" ? (cal.ns[namespace] = api) && p(api, ar) : p(cal, ar); return; } p(cal, ar); }; })(window, "https://app.cal.com/embed/embed.js", "init");
Cal("init", {origin:"https://cal.com"});
Cal("inline", {
elementOrSelector:"#my-cal-inline",
calLink: "mastering-the-mundane/free-consultation",
layout: "month_view"
});
Cal("ui", {"styles":{"branding":{"brandColor":"#831601"}},"hideEventTypeDetails":false,"layout":"month_view"});
</script>
<!-- Cal inline embed code ends -->
9 changes: 0 additions & 9 deletions site-root/public/calendly-widget.php

This file was deleted.

2 changes: 1 addition & 1 deletion site-root/public/time/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<section>
<h3 id="step-two">Step two</h3>
<p>Youʼve read the book and taken your system as far as you can on your own, and want to direct feedback and attention.</p>
<?php require_once($relativeToRoot . 'calendly-widget.php'); ?>
<?php require_once($relativeToRoot . 'calendar-widget.php'); ?>
</section>
<section>
<h3>Step three</h3>
Expand Down

0 comments on commit 6471f7a

Please sign in to comment.