@@ -977,7 +977,7 @@ async function doMediaSelect() {
977977 accountHelper . getCurrentValidationState ( )
978978 . username ;
979979 }
980- const embedURL = `https://random-rants-chat.github.io/taco-shoot-minigame/?n=${ Math . round ( Date . now ( ) ) } &username=${ encodeURIComponent ( username ) } &id=${ Math . round ( Date . now ( ) ) } &project=${ encodeURIComponent ( "isolation" ) } ` ;
980+ const embedURL = `https://random-rants-chat.github.io/taco-shoot-minigame/?n=${ Math . round ( Date . now ( ) ) } &username=${ encodeURIComponent ( username ) } &id=${ Math . round ( Date . now ( ) ) } &project=${ encodeURIComponent ( "isolation-fixed " ) } ` ;
981981
982982 sws . send (
983983 JSON . stringify ( {
@@ -1014,6 +1014,65 @@ async function doMediaSelect() {
10141014 ] ,
10151015 } ,
10161016
1017+ {
1018+ element : "div" ,
1019+ className : "divButton roundborder" ,
1020+ eventListeners : [
1021+ {
1022+ event : "click" ,
1023+ func : async function ( e ) {
1024+ e . preventDefault ( ) ;
1025+ div . remove ( ) ;
1026+ div = null ;
1027+
1028+ var loadingMediaDiv = doLoadingMediaScreen ( ) ;
1029+
1030+ try {
1031+ loadingMediaDiv . remove ( ) ;
1032+ var username = "player" ;
1033+ if ( accountHelper . getCurrentValidationState ( ) ) {
1034+ username =
1035+ accountHelper . getCurrentValidationState ( )
1036+ . username ;
1037+ }
1038+ const embedURL = `https://random-rants-chat.github.io/taco-shoot-minigame/?n=${ Math . round ( Date . now ( ) ) } &username=${ encodeURIComponent ( username ) } &id=${ Math . round ( Date . now ( ) ) } &project=${ encodeURIComponent ( "multiplayermonopolyjunior" ) } ` ;
1039+
1040+ sws . send (
1041+ JSON . stringify ( {
1042+ type : "media" ,
1043+ command : "mediaResetRequest" ,
1044+ } )
1045+ ) ;
1046+ sws . send (
1047+ JSON . stringify ( {
1048+ type : "media" ,
1049+ command : "mediaEmbedRunning" ,
1050+ url : embedURL ,
1051+ } )
1052+ ) ;
1053+ } catch ( err ) {
1054+ loadingMediaDiv . remove ( ) ;
1055+ dialog . alert ( "Error creating game room:\n" + err ) ;
1056+ }
1057+ } ,
1058+ } ,
1059+ ] ,
1060+ children : [
1061+ surroundFlexboxDiv ( [
1062+ {
1063+ element : "img" ,
1064+ src : "images/multiplayermonopolyjunior.png" ,
1065+ style : { height : "25px" } ,
1066+ } ,
1067+ {
1068+ element : "span" ,
1069+ textContent :
1070+ "Multiplayer Monopoly Junior (by RokCoder)" ,
1071+ } ,
1072+ ] ) ,
1073+ ] ,
1074+ } ,
1075+
10171076 {
10181077 element : "br" ,
10191078 } ,
0 commit comments