Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,20 @@ class CardDeck {
// Your code goes below this comment.
/*------------------------------------------*/

//Here i create a new object using querystring
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);

// Here i am extracting parameters and their values
const cardsParam = urlParams.get('cards');
const suitsParam = urlParams.get('suits');
const ranksParam = urlParams.get('ranks');
const limitParam = urlParams.get('limit');

//Drawing the cards that match the parameters
//
//

// Create a new card deck.
const deck = new CardDeck(".deck", ".hand");

Expand Down