- When the game loads, establish an event listener to listen for messageevents from the parent window:
window.addEventListener('message', (event) => {
  if (event.origin !== 'https://rensa.games') return;| { | |
| "log": { | |
| "version": "1.2", | |
| "creator": { | |
| "name": "WebInspector", | |
| "version": "537.36" | |
| }, | |
| "pages": [ | |
| { | |
| "startedDateTime": "2023-12-14T19:51:44.123Z", | 
| import React, {Component} from 'react'; | |
| class TopAppBar extends Component { | |
| render() { | |
| return ( | |
| <div className="mdc-top-app-bar"> | |
| {this.props.children} | |
| </div> | |
| ); | |
| } | 
| // Create rendering context | |
| let ctx = document.createElement('canvas').getContext('2d'); | |
| // Get font family, font size, and letter spacing, | |
| const fontFamily = window.getComputedStyle(<HTML ELEMENT>).getPropertyValue('font-family').split(',')[0]; | |
| const fontSize = window.getComputedStyle(<HTML ELEMENT>).getPropertyValue('font-size'); | |
| const letterSpacing = parseFloat(window.getComputedStyle(<HTML ELEMENT>).getPropertyValue('letter-spacing')); | |
| // Get padding | |
| const paddingLeft = parseInt(window.getComputedStyle(<HTML ELEMENT>).getPropertyValue('padding-left'), 10); | 
| # Vim plugins: | |
| https://github.com/tpope/vim-pathogen | |
| https://github.com/scrooloose/nerdtree | |
| https://github.com/kien/ctrlp.vim | |
| # System stuff | 
| #!/bin/bash | |
| export PATH="/usr/local/bin:$PATH" | |
| if [ -f `brew --prefix`/etc/bash_completion ]; then | |
| . `brew --prefix`/etc/bash_completion | |
| fi | |
| PS1="(╯°□°)╯︵[\w] 𝝺: " | 
| execute pathogen#infect() | |
| """"""""""""""" | |
| " Navigation " | |
| """"""""""""""" | |
| set bs=indent,eol,start | |
| set incsearch | |
| set hlsearch | 
| session_attributes: { | |
| session_id: '', | |
| user_id: '', | |
| user_role: '' | |
| } | 
| Verifying myself: My Bitcoin username is +ams. https://onename.io/ams |