RaPla-Middleware-LinkGen/scripts.js

23 lines
443 B
JavaScript
Raw Normal View History

2021-10-06 18:05:01 +00:00
"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);
}