Skip to content

Instantly share code, notes, and snippets.

@halka9000stg
Created October 23, 2022 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halka9000stg/9f0cb72229c64383448a834a56b2ef10 to your computer and use it in GitHub Desktop.
Save halka9000stg/9f0cb72229c64383448a834a56b2ef10 to your computer and use it in GitHub Desktop.
World Time in Offsets Table

World Time in Offsets Table

Created with <3 with dartpad.dev.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>World Time in Offsets Table</title>
<link rel="stylesheet" href="styles.css">
<script type="application/dart" src="main.dart"></script>
</head>
<body>
<div id="bsse"></div>
</body>
</html>
import 'dart:html';
void main() {
final bsse = querySelector('bsse');
final ttd = TimeTableDivs();
if (bsse is DivElement) {
ttd.injectTo(bsse);
}
}
abstract class InjectableElementProcessor<E extends HtmlElement> {
late E _target;
bool _targetSettled = false;
void injectTo(E target) {
this._targetSettled = true;
this._target = target;
}
void inject(){}
}
class TimeTableDivs extends InjectableElementProcessor<DivElement> {}
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
width: 100%;
height: 100%;
}
h1 {
color: white;
font-family: Arial, Helvetica, sans-serif;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment