mirror of
https://github.com/xevidos/codiad.git
synced 2024-12-22 13:52:16 +01:00
Added manifest and noscript for PWA start
This commit is contained in:
parent
0785970628
commit
d26394f151
2 changed files with 39 additions and 0 deletions
|
@ -26,7 +26,12 @@ if( isset( $_SESSION['theme'] ) ) {
|
|||
initial-scale=1.0,
|
||||
maximum-scale=1.0,
|
||||
user-scalable=no">
|
||||
<meta name="theme-color" content="#1a1a1a">
|
||||
<title><?php echo SITE_NAME;?></title>
|
||||
<link rel="manifest" href="manifest.php">
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
var theme = `<?php echo $theme;?>`;
|
||||
|
@ -61,6 +66,9 @@ if( isset( $_SESSION['theme'] ) ) {
|
|||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<noscript>
|
||||
<p style="color: #FFF;text-align:center;">This page requires javascript!<br>Please enable javascript and come back!</p>
|
||||
</noscript>
|
||||
<div class="lds-container">
|
||||
<div class="lds-dual-ring"></div>
|
||||
</div>
|
||||
|
|
31
manifest.php
Normal file
31
manifest.php
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
$manifest = array(
|
||||
|
||||
"short_name" => "Codiad",
|
||||
"name" => "Codiad",
|
||||
"description" => "A code editor.",
|
||||
"icons" => array(
|
||||
array(
|
||||
"src" => "/images/icons-192.png",
|
||||
"type" => "image/png",
|
||||
"sizes" => "192x192"
|
||||
),
|
||||
array(
|
||||
"src" => "/images/icons-512.png",
|
||||
"type" => "image/png",
|
||||
"sizes" => "512x512"
|
||||
),
|
||||
),
|
||||
"start_url" => "",
|
||||
"background_color" => "#1a1a1a",
|
||||
"display" => "standalone",
|
||||
"scope" => "",
|
||||
"theme_color" => "#1a1a1a",
|
||||
"shortcuts" => array(),
|
||||
);
|
||||
|
||||
|
||||
exit( json_encode( $manifest ) );
|
||||
|
||||
?>
|
Loading…
Reference in a new issue