Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <?php
- $dbIP = 'localhost';
- $db = 'gimmesne_home';
- $dbusername = 'gimmesne_home';
- $dbpass = 'X';
- $starttime = explode(' ', microtime());
- $starttime = $starttime[1] + $starttime[0];
- ?>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script type="text/javascript">
- <!--
- function updateClock ( )
- {
- var currentTime = new Date ( );
- var currentHours = currentTime.getHours ( );
- var currentMinutes = currentTime.getMinutes ( );
- var currentSeconds = currentTime.getSeconds ( );
- // Pad the minutes and seconds with leading zeros, if required
- currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
- currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
- // Choose either "AM" or "PM" as appropriate
- var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
- // Convert the hours component to 12-hour format if needed
- currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
- // Convert an hours component of "0" to "12"
- currentHours = ( currentHours == 0 ) ? 12 : currentHours;
- // Compose the string for display
- var currentTimeString = currentHours + ":" + currentMinutes + ":" + currentSeconds + " " + timeOfDay;
- // Update the time display
- document.getElementById("clock").firstChild.nodeValue = currentTimeString;
- }
- // -->
- </script>
- <style>
- #KiesGebruiker {
- border: 1px solid red;
- text-align: center;
- font-size: 3.9vw;
- }
- #thumbs {
- display: flex;
- justify-content:space-between;
- }
- .fotos {
- width:auto;
- height:auto;
- max-width:100%;
- max-height:90vh;
- }
- </style>
- </head>
- <body onload="updateClock(); setInterval('updateClock()', 1000 )">
- <?php $startScriptTime=microtime(TRUE); ?>
- <div id="KiesGebruiker">Het is <span id="clock"> </span>! <br> <i>Druk op jezelf om je aan te melden</i> <hr> Pagina geladen in <?php $load = microtime();print (number_format($load,2));?> seconds. <?php
- $loadtime = explode(' ', microtime()); $loadtime = $loadtime[0]+$loadtime[1]-$starttime; echo '<br>Piek geheugen gebruik: ',round(memory_get_peak_usage()/1048576, 2), 'MB';
- ?>
- </div>
- <div id="thumbs">
- <?php
- function CreateLoginWithName($name) {
- $image = $name . ".JPG";
- $href = "auth.php?username=" . $name;
- echo "<a class='fotos' href='$href'><figure><img width='100px' src='$image' alt='$name'/></a>";
- echo "<center><figcaption>$name</figcaption></center></figure>";
- }?>
- <?php
- CreateLoginWithName('Tycho');
- CreateLoginWithName('Helen');
- CreateLoginWithName('Algemeen');
- CreateLoginWithName('Timo');
- CreateLoginWithName('Anton');?>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement