initial commit
authordanix <danix@danix.xyz>
Sun, 10 Mar 2019 09:53:37 +0000 (10:53 +0100)
committerdanix <danix@danix.xyz>
Sun, 10 Mar 2019 09:53:37 +0000 (10:53 +0100)
index.php [new file with mode: 0644]

diff --git a/index.php b/index.php
new file mode 100644 (file)
index 0000000..2372dfa
--- /dev/null
+++ b/index.php
@@ -0,0 +1,58 @@
+<?php
+$numbers = array();
+$i=0;
+while ($i<=5) {
+       $rnd_num = random_int(1, 90);
+       if (! in_array($rnd_num, $numbers)) {
+               $numbers[] = $rnd_num;
+       }
+       $i++;
+}
+sort($numbers);
+?>
+<!DOCTYPE html>
+<html lang="it_IT">
+<head>
+       <meta charset="UTF-8">
+       <title>I tuoi numeri fortunati&excl;&excl;</title>
+       <meta name="description" content="">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+
+       <!-- <link rel="stylesheet" href="assets/style/main.css"> -->
+       <!-- <link rel="icon" sizes="192x192" href="assets/img/favicon.png"> -->
+</head>
+<body>
+       <div id="wrapper">
+               <div id="header">
+                       <header></header>
+               </div>
+
+               <div id="main" role="main">
+
+                       <div id="container">
+                               <div id="content">
+                                       <article>
+                                               <header>
+                                                       <h2>I tuoi numeri fortunati</h2>
+                                               </header>
+                                               <div class="numbers">
+                                                       <div id="1"><?php echo $numbers[0]; ?></div>
+                                                       <div id="2"><?php echo $numbers[1]; ?></div>
+                                                       <div id="3"><?php echo $numbers[2]; ?></div>
+                                                       <div id="4"><?php echo $numbers[3]; ?></div>
+                                                       <div id="5"><?php echo $numbers[4]; ?></div>
+                                                       <div id="6"><?php echo $numbers[5]; ?></div>
+                                               </div>
+                                       </article>
+                               </div>
+                       </div> <!-- /#container -->
+
+                       <aside></aside>
+               </div> <!-- /#main -->
+
+               <footer id ="footer">
+               </footer>
+       </div> <!-- /#wrapper -->
+
+</body>
+</html>
\ No newline at end of file