File tree Expand file tree Collapse file tree
src/chat/interface/mediaengine Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -895,6 +895,61 @@ async function doMediaSelect() {
895895 ] ) ,
896896 ] ,
897897 } ,
898+
899+ {
900+ element : "div" ,
901+ className : "divButton roundborder" ,
902+ eventListeners : [
903+ {
904+ event : "click" ,
905+ func : async function ( e ) {
906+ e . preventDefault ( ) ;
907+ div . remove ( ) ;
908+ div = null ;
909+
910+ var loadingMediaDiv = doLoadingMediaScreen ( ) ;
911+
912+ try {
913+ loadingMediaDiv . remove ( ) ;
914+
915+ const embedURL = `https://random-rants-chat.github.io/taco-shoot-minigame/#${ Math . round ( Date . now ( ) ) } ` ;
916+
917+ sws . send (
918+ JSON . stringify ( {
919+ type : "media" ,
920+ command : "mediaResetRequest" ,
921+ } )
922+ ) ;
923+ sws . send (
924+ JSON . stringify ( {
925+ type : "media" ,
926+ command : "mediaEmbedRunning" ,
927+ url : embedURL ,
928+ } )
929+ ) ;
930+ } catch ( err ) {
931+ loadingMediaDiv . remove ( ) ;
932+ dialog . alert ( "Error creating game room:\n" + err ) ;
933+ }
934+ } ,
935+ } ,
936+ ] ,
937+ children : [
938+ surroundFlexboxDiv ( [
939+ {
940+ element : "img" ,
941+ src : "images/tacoshoot.png" ,
942+ style : { height : "25px" } ,
943+ } ,
944+ {
945+ element : "span" ,
946+ textContent :
947+ "Taco Shoot (Edit of griffpatch's taco burp)" ,
948+ } ,
949+ ] ) ,
950+ ] ,
951+ } ,
952+
898953 {
899954 element : "br" ,
900955 } ,
Original file line number Diff line number Diff line change 1- {"timestamp" :" 1761652921290 " }
1+ {"timestamp" :" 1761657415363 " }
You can’t perform that action at this time.
0 commit comments