Commit f74c7ce6 authored by Gilberto's avatar Gilberto

made the share link clickable

parent 676b28b8
Pipeline #3960 passed with stage
in 2 minutes and 47 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