imspidey commited on
Commit
bfe0dfb
1 Parent(s): ed2e85d

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +5 -49
index.html CHANGED
@@ -3,59 +3,15 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Directory Listing</title>
7
  <style>
8
- body {
9
- font-family: Arial, sans-serif;
10
- background-color: #f0f0f0;
11
- padding: 20px;
12
- }
13
-
14
- h1 {
15
- background-color: #333;
16
- color: #fff;
17
- padding: 10px;
18
- }
19
-
20
- ul {
21
- list-style: none;
22
- padding: 0;
23
- }
24
-
25
- li {
26
- margin: 5px;
27
- padding: 5px;
28
- background-color: #fff;
29
- border: 1px solid #ccc;
30
- }
31
-
32
- a {
33
- text-decoration: none;
34
- color: #0077cc;
35
- }
36
-
37
- a:hover {
38
- text-decoration: underline;
39
- }
40
  </style>
41
  </head>
42
  <body>
43
- <h1>Directory Listing</h1>
44
- <ul>
45
- <?php
46
- // Get the list of files and subfolders in the 'spidey' directory
47
- $directory = 'spidey';
48
- $contents = scandir($directory);
49
 
50
- // Loop through the contents and display them as links
51
- foreach ($contents as $item) {
52
- // Exclude '.' and '..' (current directory and parent directory)
53
- if ($item != '.' && $item != '..') {
54
- $path = $directory . '/' . $item;
55
- echo '<li><a href="' . $path . '">' . $item . '</a></li>';
56
- }
57
- }
58
- ?>
59
- </ul>
60
  </body>
61
  </html>
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Folder Contents</title>
7
  <style>
8
+ /* Add your CSS styles here */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  </style>
10
  </head>
11
  <body>
12
+ <h1>Folder Contents</h1>
13
+ <div id="folder-contents"></div>
 
 
 
 
14
 
15
+ <script src="script.js"></script>
 
 
 
 
 
 
 
 
 
16
  </body>
17
  </html>