mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-05 17:24:20 -04:00
Refactor PHP.
This commit is contained in:
parent
8f921c8a1f
commit
291f4e28d8
1 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
- var app_href = '<?= APP_HREF; ?>'
|
- var APP_HREF = '<?= APP_HREF; ?>'
|
||||||
- var fallback = '<?= FALLBACK; ?>'
|
- var FALLBACK = '<?= FALLBACK; ?>'
|
||||||
|
|
||||||
<?php header('Content-type: text/html;charset=utf-8'); ?>
|
<?php header('Content-type: text/html;charset=utf-8'); ?>
|
||||||
doctype html
|
doctype html
|
||||||
|
@ -12,11 +12,11 @@ head
|
||||||
title index · powered by #{pkg.name} #{pkg.version} (#{pkg.homepage})
|
title index · powered by #{pkg.name} #{pkg.version} (#{pkg.homepage})
|
||||||
meta( name="description", content="index - powered by #{pkg.name} #{pkg.version} (#{pkg.homepage})" )
|
meta( name="description", content="index - powered by #{pkg.name} #{pkg.version} (#{pkg.homepage})" )
|
||||||
meta( name="viewport", content="width=device-width, initial-scale=1" )
|
meta( name="viewport", content="width=device-width, initial-scale=1" )
|
||||||
link( rel="shortcut icon", href!="#{app_href}client/images/favicon/favicon-16-32.ico" )
|
link( rel="shortcut icon", href!="#{APP_HREF}client/images/favicon/favicon-16-32.ico" )
|
||||||
link( rel="apple-touch-icon-precomposed", type="image/png", href!="#{app_href}client/images/favicon/favicon-152.png" )
|
link( rel="apple-touch-icon-precomposed", type="image/png", href!="#{APP_HREF}client/images/favicon/favicon-152.png" )
|
||||||
link( rel="stylesheet", href="//fonts.googleapis.com/css?family=Roboto:300,400,700" )
|
link( rel="stylesheet", href="//fonts.googleapis.com/css?family=Roboto:300,400,700" )
|
||||||
link( rel="stylesheet", href!="#{app_href}client/css/styles.css" )
|
link( rel="stylesheet", href!="#{APP_HREF}client/css/styles.css" )
|
||||||
script( src!="#{app_href}client/js/scripts.js", data-module="index" )
|
script( src!="#{APP_HREF}client/js/scripts.js", data-module="index" )
|
||||||
|
|
||||||
body#root
|
body#root
|
||||||
|
|
||||||
|
@ -30,6 +30,6 @@ body#root
|
||||||
span.backlink
|
span.backlink
|
||||||
a( href="#{pkg.homepage}", title="#{pkg.name} #{pkg.version} · #{pkg.description}" ) powered by #{pkg.name}
|
a( href="#{pkg.homepage}", title="#{pkg.name} #{pkg.version} · #{pkg.description}" ) powered by #{pkg.name}
|
||||||
|
|
||||||
div#fallback !{fallback}
|
div#fallback !{FALLBACK}
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue