repl.it
@cftxp/

php-portfolio

PHP Web Server

My web development portfolio in PHP.

fork
loading
Files
  • index.php
  • includes
  • resources
  • contact.php
  • manifest.webmanifest
  • pwabuilder-sw.js
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, shrink-to-fit=yes"
    />
    <meta name="theme-color" content="#000000" />
    <link href="resources/index.css" rel="stylesheet" type="text/css" />
    <link rel='manifest' href='/manifest.webmanifest'>
    <title>Chris Fornesa - Web Development using PHP</title>
  </head>
  <body>
    <?php include("includes/app.php") ?>
    <?php include("includes/footer.php"); ?>
    <script src="resources/script.js" type="text/javascript"></script>
    <script type="text/javascript">
      // This is the service worker with the combined offline experience (Offline page + Offline copy of pages)

      // Add this below content to your HTML page, or add the js file to your page at the very top to register service worker

      // Check compatibility for the browser we're running this in
      if ("serviceWorker" in navigator) {
        if (navigator.serviceWorker.controller) {
          console.log("[PWA Builder] active service worker found, no need to register");
        } else {
          // Register the service worker
          navigator.serviceWorker
            .register("pwabuilder-sw.js", {
              scope: "./"
            })
            .then(function (reg) {
              console.log("[PWA Builder] Service worker has been registered for scope: " + reg.scope);
            });
        }
      }
    </script>
    <script>
      if(location.protocol!=="https:"){
        location.protocol="https:"
      }
    </script>
  </body>
</html>
Fetching token
?