|
622 | 622 | if (user) { |
623 | 623 | $.ajax({ |
624 | 624 | type: "POST", |
625 | | - url: "[%LINK:talk/start%]/"+ user |
| 625 | + url: "{%start_url%}/"+ user |
626 | 626 | }).done(function( msg ) {}); |
627 | 627 | } |
628 | 628 | else { |
|
666 | 666 | function autoupdate() { |
667 | 667 | if(!is_running) { |
668 | 668 | is_running = true; |
669 | | - $.getJSON( "[%LINK:talk/update%]/{%meeting_code%}/{%session_id%}", function(data) { |
| 669 | + $.getJSON( "{%meeting_update_url%}", function(data) { |
670 | 670 | update(data); |
671 | 671 | is_running = false; |
672 | 672 | }).done(function( msg ) { |
|
777 | 777 | $("#dialog_submit").click(function(){ |
778 | 778 | $.ajax({ |
779 | 779 | type: "POST", |
780 | | - url: "[%LINK:talk/start%]/"+ $("#nickname").val() |
| 780 | + url: "{%start_url%}/"+ $("#nickname").val() |
781 | 781 | }).done(function( msg ) { |
782 | 782 | $("#modal").modal('hide'); |
783 | 783 | user = $("#nickname").val(); |
|
789 | 789 | $("#topic_submit").click(function(){ |
790 | 790 | $.ajax({ |
791 | 791 | type: "POST", |
792 | | - url: "[%LINK:talk/topic%]/", |
| 792 | + url: "[%LINK:talk/topic%]", |
793 | 793 | data: {topic: $("#brief").val()} |
794 | 794 | }).done(function( msg ) { |
795 | 795 | $("#topic_modal").modal('hide'); |
|
808 | 808 | } |
809 | 809 |
|
810 | 810 | $("#link").click(function(){ |
| 811 | + navigator.clipboard.writeText(this.innerText) |
| 812 | + .then(() => { |
| 813 | + console.log('Copied.'); |
| 814 | + }) |
| 815 | + .catch(err => { |
| 816 | + console.error('Failed to copy url:', err); |
| 817 | + }); |
811 | 818 | $.ajax({ |
812 | 819 | type: "POST", |
813 | | - url: "[%LINK:talk/matrix%]/{%meeting_code%}", |
| 820 | + url: "{%meeting_qr_code_url%}", |
814 | 821 | data: {meeting_code: "{%meeting_code%}"} |
815 | 822 | }).done(function( msg ) { |
816 | 823 | $("#matrix").css({"background":"url("+msg+") transparent center center"}); |
|
958 | 965 | </div> |
959 | 966 | <form id="sender"> |
960 | 967 | <div class="note">Share the link to invite others join this conversation: <a id="link" |
961 | | - href="javascript:void(0)">[%LINK:talk/join%]/{%meeting_code%}</a> |
| 968 | + href="javascript:void(0)">{%meeting_url%}</a> |
962 | 969 | <div id="matrix"><img/><span>Click For QR Code</span></div> |
963 | 970 | </div> |
964 | 971 | <div class="pad"> |
|
0 commit comments