aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authormoehm2014-11-03 15:21:16 +0100
committermoehm2014-11-03 15:21:16 +0100
commit4a21347d01c6837159bc489a859fa494a6a8d339 (patch)
tree9a09b8f1b41c244b6232e9f2c5f4979d5cc43cef /index.php
parent5ee0ffcdce5a931eda3c8a21336b0b396aac1624 (diff)
downloadjungegemeinde-4a21347d01c6837159bc489a859fa494a6a8d339.tar.gz
Added preloader javascript.preloader
Diffstat (limited to 'index.php')
-rw-r--r--index.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/index.php b/index.php
index b0d80fd..2dad660 100644
--- a/index.php
+++ b/index.php
@@ -39,13 +39,23 @@ $user = new jg($u);
if( ! isset($_GET["page"]) || $_GET["page"] == "" )
$_GET["page"] = "index";
+if( ! isset($_SESSION['inline']) )
+ $_SESSION['inline'] = true;
+
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
+<?php
+ if ( $_SESSION['inline'] ){
+ echo "<style>".file_get_contents("static/bootstrap/css/bootstrap.min.css") . file_get_contents("static/fontawesome/css/font-awesome.min.css")."</style>";
+ } else {
+?>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
+<?
+ }
<link rel='dns-prefetch' href="//secure.iamfabulous.de/">
<?php
echo "<style>" . file_get_contents('static/style.min.css');