diff --git a/css/style.css b/css/style.css index 7e530eb..01448d6 100644 --- a/css/style.css +++ b/css/style.css @@ -1,47 +1,3 @@ -body { - font-family: sans-serif; - /*padding: 0em 0.5em 1em 0.5em;*/ -} - -.container { - padding-right: 15px; - padding-left: 15px; - margin-right: auto; - margin-left: auto; -} - -@media (orientation:portrait) { - .option{ - width: 100%; - margin-left: 0%; - } -} - -@media (min-width:768px) { - .container { - width: 100%; - } -} -@media (min-width:992px) { - .container { - width: 970px; - } -} -@media (min-width:1200px) { - .container { - width: 1170px; - } -} -@media (max-width:992px) and (min-resolution:100dpi) and (orientation:portrait) { - .btn-block{ - font-size: 32px; - height: 120px; - } - .btn{ - font-size: 32px; - } -} - .hsganswer{ width: 80px; padding-left: auto; @@ -49,7 +5,7 @@ body { margin-left: auto; margin-right: auto; } - + .statement { min-height: 90px; } @@ -59,12 +15,12 @@ body { } -.top-buffer { - margin-top:80px; +.top-buffer { + margin-top:80px; } -.bottom-buffer { - margin-bottom:60px; +.bottom-buffer { + margin-bottom:60px; } .pagination > .pagination-yes > a { @@ -95,17 +51,3 @@ body { .progress { margin-bottom: 0px; } - -@media (min-width:767px) { - -.mow-container { - width: 700px; -} - -.mow-container .form-horizontal .controls { - text-align: center; - /*margin-left: 130px;*/ - margin-left: auto; - margin-right: auto; - display: block; -} \ No newline at end of file diff --git a/index.php b/index.php index e5a9e3f..a6114db 100644 --- a/index.php +++ b/index.php @@ -8,54 +8,50 @@ $baseurl = "http://" . $_SERVER['SERVER_NAME'] . $uri_parts[0]; Mahlowat - + - + - + - - - - - -
- -
- - - -

Der Mahlowat

+ +
+
+ +
+
+ +

Der Mahlowat

+
+ +

Der Mahlowat ist ein technisches Hilfsmittel, das es ermöglicht, zu ausgewählten Themen die eigenen Standpunkte mit denen der Listen abzugleichen, die zur $Wahl antreten.

+

Er ist selbstverständlich nur als Automat ohne Hirn zu verstehen und spricht keine Wahlempfehlungen aus.

+

Lorem Ipsum.

+

Für ihre Stellungnahmen zu den Thesen sind die Listen selbst verantwortlich.

+

Mit der Befragung beginnen!

+ +

+ FAQ +

+ +
+
+ +
-

Der Mahlowat ist ein technisches Hilfsmittel, das es ermöglicht, zu ausgewählten Themen die eigenen Standpunkte mit denen der Listen abzugleichen, die zur $Wahl antreten.

- -

Er ist selbstverständlich nur als Automat ohne Hirn zu verstehen und spricht keine Wahlempfehlungen aus.

- -

Lorem Ipsum.

- -

Für ihre Stellungnahmen zu den Thesen sind die Listen selbst verantwortlich.

- -

Mit der Befragung beginnen!

- -

FAQ

- - - -
- -
- + + - \ No newline at end of file + diff --git a/mahlowat.php b/mahlowat.php index 37493f3..618ee75 100644 --- a/mahlowat.php +++ b/mahlowat.php @@ -1,81 +1,79 @@ - 16){ - $css_id = 0; - } - } - - //$theses = get_theses_array(); - $theses = $data['theses']; + $data_content = file_get_contents("config/data.json"); + if(!$data_content){ + echo "ERROR READING CONFIG"; + } else { + $data = json_decode($data_content, true); - $theses_count = sizeof($theses); - - $ans = Array(); - $emph = Array(); - $answerstring = ''; - $warning = false; - $count = 'undefined'; - - if(isset($_POST['count'])){ - $count = $_POST['count']; - } - - if(isset($_POST['ans'])){ - $answerstring = $_POST['ans']; - $retval = result_from_string($answerstring, $theses_count); - $ans = $retval[0]; - $emph = $retval[1]; - } elseif(isset($_GET['ans'])){ - $answerstring = $_GET['ans']; - $retval = result_from_string($answerstring, $theses_count); - $ans = $retval[0]; - $emph = $retval[1]; - } else { - $warning = true; - for($i = 0; $i < $theses_count; $i++){ - $ans[$i] = 'skip'; - $emph[$i] = 1; - } - } - } + if($data == NULL){ + echo "ERROR PARSING CONFIG"; + } - + $css = Array(); + $css[0] = "bootstrap.min.css"; + $css[1] = "cerulean.min.css"; + $css[2] = "cosmo.min.css"; + $css[3] = "cyborg.min.css"; + $css[4] = "darkly.min.css"; + $css[5] = "flatly.min.css"; + $css[6] = "journal.min.css"; + $css[7] = "lumen.min.css"; + $css[8] = "paper.min.css"; + $css[9] = "readable.min.css"; + $css[10] = "sandstone.min.css"; + $css[11] = "simplex.min.css"; + $css[12] = "slate.min.css"; + $css[13] = "spacelab.min.css"; + $css[14] = "superhero.min.css"; + $css[15] = "united.min.css"; + $css[16] = "yeti.min.css"; + $css_id = 9; + if(isset($_GET['css'])){ + $css_id = intval($_GET['css']); + if($css_id < 0 || $css_id > 16){ + $css_id = 0; + } + } + //$theses = get_theses_array(); + $theses = $data['theses']; + + $theses_count = sizeof($theses); + + $ans = Array(); + $emph = Array(); + $answerstring = ''; + $warning = false; + $count = 'undefined'; + + if(isset($_POST['count'])){ + $count = $_POST['count']; + } + + if(isset($_POST['ans'])){ + $answerstring = $_POST['ans']; + $retval = result_from_string($answerstring, $theses_count); + $ans = $retval[0]; + $emph = $retval[1]; + } elseif(isset($_GET['ans'])){ + $answerstring = $_GET['ans']; + $retval = result_from_string($answerstring, $theses_count); + $ans = $retval[0]; + $emph = $retval[1]; + } else { + $warning = true; + for($i = 0; $i < $theses_count; $i++){ + $ans[$i] = 'skip'; + $emph[$i] = 1; + } + } +} ?> + @@ -84,245 +82,237 @@ - + - + + - - -
- -

-
- - - - - -

- -
-
- -
-
- -
-
- -
-
- -
-
- - -
-
- Du kannst die Befragung - neu starten - oder den Rest der Thesen - überspringen.
- Außerdem haben wir auch eine FAQ-Seite. -
- -
-
+ - - - \ No newline at end of file +
+
+ +
+ +

+ +
+ + + + +

+ +
+
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ +
+
+ Du kannst die Befragung neu starten oder den Rest der Thesen überspringen.
Außerdem haben wir auch eine FAQ-Seite.
+
+ +
+ +
+
+
+ + + + + + diff --git a/multiplier.php b/multiplier.php index f3790e7..cef68a4 100644 --- a/multiplier.php +++ b/multiplier.php @@ -1,77 +1,76 @@ - 16){ - $css_id = 0; - } - } - + $data = json_decode($data_content, true); + + + $css = array(); + $css[0] = "bootstrap.min.css"; + $css[1] = "cerulean.min.css"; + $css[2] = "cosmo.min.css"; + $css[3] = "cyborg.min.css"; + $css[4] = "darkly.min.css"; + $css[5] = "flatly.min.css"; + $css[6] = "journal.min.css"; + $css[7] = "lumen.min.css"; + $css[8] = "paper.min.css"; + $css[9] = "readable.min.css"; + $css[10] = "sandstone.min.css"; + $css[11] = "simplex.min.css"; + $css[12] = "slate.min.css"; + $css[13] = "spacelab.min.css"; + $css[14] = "superhero.min.css"; + $css[15] = "united.min.css"; + $css[16] = "yeti.min.css"; + $css_id = 9; + if (isset($_GET['css'])) { + $css_id = intval($_GET['css']); + if ($css_id < 0 || $css_id > 16) { + $css_id = 0; + } + } + //$theses = get_theses_array(); $theses = $data['theses']; - - $theses_count = sizeof($theses); - - $ans = Array(); - $emph = Array(); - $answerstring = ''; - $warning = false; - $count = 'undefined'; - - if(isset($_POST['count'])){ - $count = $_POST['count']; + + $theses_count = sizeof($theses); + + $ans = array(); + $emph = array(); + $answerstring = ''; + $warning = false; + $count = 'undefined'; + + if (isset($_POST['count'])) { + $count = $_POST['count']; + } + + if (isset($_POST['ans'])) { + $answerstring = $_POST['ans']; + $retval = result_from_string($answerstring, $theses_count); + $ans = $retval[0]; + $emph = $retval[1]; + } elseif (isset($_GET['ans'])) { + $answerstring = $_GET['ans']; + $retval = result_from_string($answerstring, $theses_count); + $ans = $retval[0]; + $emph = $retval[1]; + } else { + $warning = true; + for ($i = 0; $i < $theses_count; $i++) { + $ans[$i] = 'skip'; + $emph[$i] = 1; + } + } } - - if(isset($_POST['ans'])){ - $answerstring = $_POST['ans']; - $retval = result_from_string($answerstring, $theses_count); - $ans = $retval[0]; - $emph = $retval[1]; - } elseif(isset($_GET['ans'])){ - $answerstring = $_GET['ans']; - $retval = result_from_string($answerstring, $theses_count); - $ans = $retval[0]; - $emph = $retval[1]; - } else { - $warning = true; - for($i = 0; $i < $theses_count; $i++){ - $ans[$i] = 'skip'; - $emph[$i] = 1; - } - } - - } - - + + ?> @@ -81,16 +80,17 @@ - + - + - - + + - + - - -
+ + +

- +
- +

Ergebnisse

Klicke auf die Titel, um die zugehörige These anzuzeigen.

- "; - echo " + "; + echo ""; - echo "\n"; - echo ""; + echo "\n"; + echo ""; } - - ?> + + ?>
Deine WahlDoppelt gewichten".$theses[$i]['s']."".$theses[$i]['s']."
".$theses[$i]['l']."
".$theses[$i]['l']."
- +

- Du kannst die Befragung + Du kannst die Befragung neu starten oder deine )" title="Antworten ändern">Antworten ändern.
@@ -161,7 +162,7 @@
- + - \ No newline at end of file +