Commit 23755582 authored by Zac Wood's avatar Zac Wood

Merge branch '34-makeShareLink' into 'master'

made the share link clickable

Closes #34

See merge request !41
parents 7c54416a f74c7ce6
Pipeline #3961 passed with stage
in 2 minutes and 42 seconds
......@@ -69,6 +69,7 @@ const initListeners = () => {
document.getElementById('save-image').onclick = saveImage;
document.getElementById('share-url').innerText = `${window.location.protocol}//${window.location.hostname}/schedule/view?crns=${Cart._courses.join(',')}`;
document.getElementById('share-url').href= `${window.location.protocol}//${window.location.hostname}/schedule/view?crns=${Cart._courses.join(',')}`;
};
if (!HTMLCanvasElement.prototype.toBlob) {
......
......@@ -34,7 +34,7 @@
<h3 id="share-header">Share</h3>
Want to share your schedule with your friends? Send them this link:<br/>
<blockquote ><code id="share-url"></code></blockquote>
<a id="share-url"></a>
<template id="events" data-events="<%= @events.to_json %>"></template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment