Skip to content

Instantly share code, notes, and snippets.

@nickforce
Created December 2, 2023 05:44
Show Gist options
  • Select an option

  • Save nickforce/e86bafaaa804374ba83255f17d1071b2 to your computer and use it in GitHub Desktop.

Select an option

Save nickforce/e86bafaaa804374ba83255f17d1071b2 to your computer and use it in GitHub Desktop.
AdventofCode_FileReader
<template>
<lightning-card title="Puzzle File Reader">
<div class="slds-p-around_medium">
<lightning-input type="file" label="Select File" onchange={handlePuzzleInputChange}></lightning-input>
{puzzleInputFileName}
<div class="slds-p-top_small">
<lightning-button label="Read Puzzle Input" onclick={uploadPuzzleInput} disabled={disabled}></lightning-button>
</div>
</div>
</lightning-card>
<lightning-card title="Puzzle Result">
<div class="slds-p-around_medium">
Answer: {puzzleAnswer}
</div>
</lightning-card>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment