-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support rendering button as images (#2)
* Show config name in the displayed info * Change createDiv into createElem * Add image rendering from the config * Support button widget as images * Add support for the Mega Drive 6 button controller * Update documentation
- Loading branch information
Showing
19 changed files
with
537 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
import { initControllers } from './controllers'; | ||
import { updateInfo } from './info'; | ||
import { renderConfig } from './config'; | ||
import { config } from './elite'; | ||
import { config as megaDrive6config } from './megadrive6'; | ||
import { config as eliteConfig } from './elite'; | ||
|
||
const url = new URL(location.href); | ||
if (url.searchParams.get('display')) { | ||
document.body.classList.add('display'); | ||
} | ||
const configGetParam = url.searchParams.get('config'); | ||
const config = /mega/.test(configGetParam!) ? megaDrive6config : eliteConfig; | ||
|
||
renderConfig(config); | ||
initControllers(); | ||
updateInfo(); | ||
updateInfo(config); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.