yew/examples/timer/index.html
Jay Graves 2bbb35027f
Add a ticking clock to the timer example (#1617)
* Add a ticking clock to the timer example.

* Remove unneeded use of js_sys.

* Update examples/timer/Cargo.toml

Co-authored-by: Simon <simon@siku2.io>

* Update examples/timer/index.html

Co-authored-by: Simon <simon@siku2.io>

* Use local scss instead of Bulma.

* Refactor out the time function and restructure the html.

* Refactor the clock.

Remove Msg::StartClock
Remove Model.clock_job
Model._standalone now takes 2 IntervalTasks
Model.get_current_time is now Static
Renamed Msg::Tock to Msg::UpdateTime

* Remove disabled button style.

* Remove CSS line from improvements.

Co-authored-by: Simon <simon@siku2.io>
2020-10-15 17:56:53 +02:00

14 lines
284 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Yew • Timer</title>
<link data-trunk rel="scss" href="index.scss"/>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@900&display=swap" rel="stylesheet">
</head>
<body></body>
</html>