File tree Expand file tree Collapse file tree
life-game/LifeGameFunctions Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- function PlayAndPause ( ) {
2- window . addEventListener ( "message" , ( event ) => {
3- if ( event . data . type === "play-pause" ) {
4- console . log ( "Play/Pause toggled" ) ;
5- }
6- } ) ;
7- }
8-
9- export default PlayAndPause ;
1+ window . addEventListener ( "message" , ( event ) => {
2+ if ( event . data . type === "play-pause" ) {
3+ console . log ( "Play/Pause toggled" ) ;
4+ }
5+ } ) ;
Original file line number Diff line number Diff line change 22 import * as icons from " $lib/icons/index.js" ;
33 import lghtml from " ../life-game/life-game.html?raw" ;
44 import lgjs from " ../life-game/life-game.js?raw" ;
5- import { processFunctions } from " $lib/components/ImportFunction" ;
6-
7- const funcModules = import .meta .glob (" ../life-game/LifeGameFunctions/*.js" , {
8- query: " ?raw" ,
9- import: " default" ,
10- eager: true ,
11- });
12-
13- const lgfuncs = processFunctions (funcModules );
5+ import PlayandPause from " ../life-game/LifeGameFunctions/PlayAndPause.js?raw" ;
146
157 let code = $state (
168 lghtml .replace (
179 / <script src="\.\/ life-game\. js"><\/ script>/ ,
1810 ` <script>
1911 \n ${lgjs }\n
20- ${ lgfuncs . PlayAndPause || " " }
12+ \n ${ PlayandPause } \n
2113 <\/ script> ` ,
2214 ),
2315 );
You can’t perform that action at this time.
0 commit comments