@@ -534,9 +534,9 @@ function SampleWidget() {
534534 "Footsteps walking on wooden floor" ,
535535 "Car honking on the street" ,
536536 "Clock ticking in a quiet room"
537- ]
537+ ] ;
538538
539- const randomPrompt = promptList [ randomDigit ]
539+ const randomPrompt = promptList [ randomDigit ] ;
540540
541541 const container = document . createElement ( "div" ) ;
542542 container . id = "samplerPrompt" ;
@@ -563,7 +563,7 @@ function SampleWidget() {
563563 textArea . style . fontSize = "30px" ;
564564 textArea . style . resize = "none" ;
565565 textArea . style . borderRadius = "10px" ;
566- textArea . style . border = "none"
566+ textArea . style . border = "none" ;
567567 textArea . style . padding = "15px" ;
568568 textArea . placeholder = randomPrompt ;
569569 textArea . addEventListener ( "input" , function ( ) {
@@ -577,7 +577,7 @@ function SampleWidget() {
577577 preview . disabled = true ;
578578 save . disabled = true ;
579579 }
580- } )
580+ } ) ;
581581
582582 const buttonDiv = document . createElement ( "div" ) ;
583583 buttonDiv . style . display = "flex" ;
@@ -589,7 +589,7 @@ function SampleWidget() {
589589 submit . style . height = "61px" ;
590590 submit . style . fontSize = "32px" ;
591591 submit . style . borderRadius = "10px" ;
592- submit . style . border = "none"
592+ submit . style . border = "none" ;
593593 submit . style . cursor = "pointer" ;
594594 submit . innerHTML = "Submit" ;
595595 submit . onclick = async function ( ) {
@@ -604,7 +604,7 @@ function SampleWidget() {
604604
605605 generating = true ;
606606
607- activity . textMsg ( _ ( "Generating Audio..." ) , 2500 )
607+ activity . textMsg ( _ ( "Generating Audio..." ) , 2500 ) ;
608608
609609 let blinkInterval = setInterval ( ( ) => {
610610 activity . textMsg ( _ ( "Generating Audio..." ) , 1000 ) ;
@@ -635,22 +635,22 @@ function SampleWidget() {
635635 preview . style . height = "61px" ;
636636 preview . style . fontSize = "32px" ;
637637 preview . style . borderRadius = "10px" ;
638- preview . style . border = "none"
638+ preview . style . border = "none" ;
639639 preview . style . cursor = "pointer" ;
640640 preview . innerHTML = "Preview" ;
641641 preview . disabled = true ;
642642 preview . onclick = function ( ) {
643643 const audioURL = `http://localhost:8000/preview` ;
644644 const audio = new Audio ( audioURL ) ;
645645 audio . play ( ) ;
646- }
646+ } ;
647647
648648 const save = document . createElement ( "button" ) ;
649649 save . style . width = "152px" ;
650650 save . style . height = "61px" ;
651651 save . style . fontSize = "32px" ;
652652 save . style . borderRadius = "10px" ;
653- save . style . border = "none"
653+ save . style . border = "none" ;
654654 save . style . cursor = "pointer" ;
655655 save . innerHTML = "Save" ;
656656 save . disabled = true ;
@@ -662,7 +662,7 @@ function SampleWidget() {
662662 document . body . appendChild ( link ) ;
663663 link . click ( ) ;
664664 document . body . removeChild ( link ) ;
665- }
665+ } ;
666666
667667 buttonDiv . appendChild ( submit ) ;
668668 buttonDiv . appendChild ( preview ) ;
@@ -719,7 +719,7 @@ function SampleWidget() {
719719 uploadSample . style . height = "32px" ;
720720 uploadSample . style . width = "32px" ;
721721
722- divUploadSample . appendChild ( uploadSample )
722+ divUploadSample . appendChild ( uploadSample ) ;
723723
724724 const fileChooser = document . createElement ( "input" ) ;
725725 fileChooser . type = "file" ;
@@ -794,7 +794,7 @@ function SampleWidget() {
794794 preview . style . height = "61px" ;
795795 preview . style . fontSize = "32px" ;
796796 preview . style . borderRadius = "10px" ;
797- preview . style . border = "none"
797+ preview . style . border = "none" ;
798798 preview . style . cursor = "pointer" ;
799799 preview . innerHTML = "Preview" ;
800800
@@ -808,14 +808,14 @@ function SampleWidget() {
808808 audio . play ( ) ;
809809 save . disabled = false ;
810810
811- }
811+ } ;
812812
813813 const save = document . createElement ( "button" ) ;
814814 save . style . width = "152px" ;
815815 save . style . height = "61px" ;
816816 save . style . fontSize = "32px" ;
817817 save . style . borderRadius = "10px" ;
818- save . style . border = "none"
818+ save . style . border = "none" ;
819819 save . style . cursor = "pointer" ;
820820 save . innerHTML = "Save" ;
821821 save . disabled = true ;
@@ -827,7 +827,7 @@ function SampleWidget() {
827827 document . body . appendChild ( link ) ;
828828 link . click ( ) ;
829829 document . body . removeChild ( link ) ;
830- }
830+ } ;
831831
832832 buttonDiv . appendChild ( preview ) ;
833833 buttonDiv . appendChild ( save ) ;
0 commit comments