avm99963 | 99bb77c | 2020-01-27 03:15:08 +0100 | [diff] [blame] | 1 | <?php |
| 2 | /*require_once("core.php"); |
| 3 | |
| 4 | $element = "Gtfs\CalendarDate"; |
| 5 | |
| 6 | $item = new $element([ |
| 7 | "service_id" => "a", |
| 8 | "date" => "b", |
| 9 | "exception_type" => Gtfs\CalendarDate\ExceptionType::ADDED |
| 10 | ]); |
| 11 | |
| 12 | //$feed->setServiceId(Gtfs\CalendarDate\ExceptionType::ADDED); |
| 13 | |
| 14 | var_dump(json_decode($item->serializeToJsonString(), true)); |
| 15 | */ |
| 16 | ?> |
| 17 | |
| 18 | <!DOCTYPE html> |
| 19 | <html> |
| 20 | <head> |
| 21 | <style> |
| 22 | @media (orientation: landscape) { |
| 23 | :root { |
| 24 | --size: 4vh; |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | @media (orientation: portrait) { |
| 29 | :root { |
| 30 | --size: 4vw; |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | .a { |
| 35 | font-size: calc(4 * var(--size)); |
| 36 | background: cyan; |
| 37 | width: 400px; |
| 38 | height: 400px; |
| 39 | } |
| 40 | </style> |
| 41 | </head> |
| 42 | <body> |
| 43 | <div class="a"> |
| 44 | Adri |
| 45 | </div> |
| 46 | </body> |
| 47 | </html> |