23 lines
443 B
JavaScript
23 lines
443 B
JavaScript
|
"use strict";
|
||
|
|
||
|
$(document).ready(function () {
|
||
|
$('#submitBtn').click(function () {
|
||
|
generateLink();
|
||
|
});
|
||
|
});
|
||
|
|
||
|
function generateLink() {
|
||
|
let link = 'abc';
|
||
|
let providedRaPlaLink = $('#raplalink').val().toString();
|
||
|
|
||
|
console.log(providedRaPlaLink);
|
||
|
|
||
|
const urlParams = new URLSearchParams(providedRaPlaLink);
|
||
|
|
||
|
console.log(urlParams.keys());
|
||
|
|
||
|
console.log(urlParams.get('b'));
|
||
|
|
||
|
$('#full-link').text(link);
|
||
|
}
|