aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorKukielka <kukielka58@gmail.com>2018-04-16 10:15:14 +0200
committerKukielka <kukielka58@gmail.com>2018-04-16 10:15:14 +0200
commitfde7fd95d9ece31997777ef87f0ac015709cc86b (patch)
tree6c650441c5b7ad89e7d00f8a4c9d098b5be966f6 /index.php
parent6248a4dc783b1fe8859fe6fffee921977c683165 (diff)
downloadsimple-dash-fork-fde7fd95d9ece31997777ef87f0ac015709cc86b.zip
Updated Libs, refactoring, cleaning up
Updated FontAwesome Updated Bootstrap Removed unnecessary Code from the Fork
Diffstat (limited to 'index.php')
-rw-r--r--index.php21
1 files changed, 4 insertions, 17 deletions
diff --git a/index.php b/index.php
index e432727..fc1651e 100644
--- a/index.php
+++ b/index.php
@@ -1,18 +1,13 @@
<?php
- /**
- * homepage
- */
-
session_start();
$config = json_decode(file_get_contents("config.json"), true);
function get_current_url() {
$protocol = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
- $domainName = $_SERVER['SERVER_NAME'];
- return $protocol . $domainName;
+ $domainName = $_SERVER['SERVER_NAME'];
+ return $protocol . $domainName;
}
-
?>
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
@@ -21,7 +16,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" type="text/css" href="hp_assets/css/font-awesome.min.css" />
+ <link rel="stylesheet" type="text/css" href="hp_assets/css/fontawesome-all.min.css" />
<link rel="stylesheet" type="text/css" href="hp_assets/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="hp_assets/css/main.css" />
@@ -33,10 +28,6 @@
<!-- Line below is to preload the font when the page loads -->
<span class="fa fa-asterisk" style="opacity: 0;">&nbsp;</span>
- <!-- <div id="mobile-menu-wrap" class="bg">
- <a href="#"><span class="fa fa-bars">&nbsp;</span></a>
- </div> -->
-
<div id="links-wrap" class="menu-item bg">
<?php
echo '<center><p>';
@@ -59,13 +50,8 @@
<script type="text/javascript" src="hp_assets/js/jquery.min.js"></script>
- <script type="text/javascript" src="hp_assets/js/mousetrap.min.js"></script>
<script type="text/javascript" src="hp_assets/js/main.js"></script>
- <script type="text/javascript">
- setMenuVisibility(true);
- </script>
-
<script src="hp_assets/js/trianglify.min.js"></script>
<script>
function addTriangleTo(target) {
@@ -88,6 +74,7 @@
}
var resizeTimer;
+
$(window).on('resize', function(e) {
clearTimeout(resizeTimer);
resizeTimer = setTimeout(function() {