Skip to content
Snippets Groups Projects
Commit 50153170 authored by Rico van Endern's avatar Rico van Endern
Browse files

ne bissle test shit

parent d9422c2f
Branches
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
}, },
"down": "down":
{ {
"type":"panel","name":"mensaPlan" "type":"panel","name":"topListe"
} }
} }
} }
<?php <?php
// Universal // Universal
$MENSA_URL = "http://www.stwdo.de/gastronomie/speiseplaene/hauptmensa/wochenansicht-hauptmensa/"; $MENSA_URL = "http://www.stwdo.de/gastronomie/speiseplaene/hauptmensa/wochenansicht-hauptmensa/";
$PARSE_DAYLIST = array ( $PARSE_DAYLIST = array (
"montag", "montag",
"dienstag", "dienstag",
"mittwoch", "mittwoch",
"donnerstag", "donnerstag",
"freitag" "freitag"
); );
$DO_SQL = true; $DO_SQL = true;
$DO_JSON = true; $DO_JSON = true;
// SQL // SQL
$SQL_SERVER = "ovanier.de"; $SQL_SERVER = "ovanier.com";
$SQL_USER = "info_writer"; $SQL_USER = "info_writer";
$SQL_PW = "XAHQTZeGbqsnt8K6"; $SQL_PW = "XAHQTZeGbqsnt8K6";
$SQL_DB = "infoscreen"; $SQL_DB = "infoscreen";
// JSON // JSON
$JSON_NAME = "mensaPlan.json"; $JSON_NAME = "mensaPlan.json";
$JSON_INC_NR = false; $JSON_INC_NR = false;
$JSON_INC_ORIGINAL = false; $JSON_INC_ORIGINAL = false;
$JSON_INC_SHORT = true; $JSON_INC_SHORT = true;
$JSON_INC_ART = true; $JSON_INC_ART = true;
$JSON_INC_KIND = false; $JSON_INC_KIND = false;
$JSON_INC_COUNTER = true; $JSON_INC_COUNTER = true;
$JSON_INC_STOFFE = false; $JSON_INC_STOFFE = false;
$JSON_INC_DATE = true; $JSON_INC_DATE = true;
?> ?>
\ No newline at end of file
<?php
?>
\ No newline at end of file
this.loaded = function(panel, config) { this.loaded = function(panel, config) {
<<<<<<< HEAD addElement("A");
addElement("B");
addElement("C");
addElement("D");
addElement("E");
//removeElement(3);
moveElement(3,1);
}
$(function() { var lastUpdates;
$( "#sortable" ).sortable();
$( "#sortable" ).disableSelection();
});
function pull(){
} }
=======
var $li = $("<li class='ui-state-default'/>").text("BLA"); function addElement($text){
$("#sortable").append($li); var $li = $("<li class='ui-state-default'/>").text($text);
$("#sortable").sortable('refresh'); $("#topListSortable").append($li);
$("#topListSortable").sortable();
$("#topListSortable").disableSelection();
$("#topListSortable").sortable('refresh');
} }
>>>>>>> remotes/origin/dev
function moveElement($idO,$idN){
if($idO != $idN) {
if($idO < $idN){
$("#topListSortable li:eq("+$idO+")").insertAfter($("#topListSortable li:eq("+$idN+")"));
} else {
$("#topListSortable li:eq("+$idO+")").insertBefore($("#topListSortable li:eq("+$idN+")"));
}
$("#topListSortable").sortable('refresh');
}
}
function removeElement($id){
$("#topListSortable li:eq(" + $id+")").remove();
$("#topListSortable").sortable('refresh');
}
\ No newline at end of file
...@@ -30,13 +30,13 @@ ...@@ -30,13 +30,13 @@
font-size: 200%; font-size: 200%;
} }
#topListSortable{ #topListAnzeige{
float: left; float: left;
width: 100%; width: 100%;
height: 25%; height: 25%;
} }
#sortable { #topListSortable {
font-weight: bold; font-weight: bold;
color: #ffffff; color: #ffffff;
list-style-type: decimal; list-style-type: decimal;
......
<<<<<<< HEAD
<div id="topListe"> <div id="topListe">
<div id="currentTop"> <div id="currentTop">
<div id="topName"> <div id="topName">
TEST1 TEST1
</div>
<div id="topDescription">
TEST2
</div>
</div> </div>
<div id="topDescription"> <div id="topListAnzeige">
TEST2 <ol id="topListSortable">
</ol>
</div> </div>
</div> </div>
<div id="topListSortable">
<ol id="sortable">
<li class="ui-state-default">Item 1</li>
<li class="ui-state-default">Item 2</li>
<li class="ui-state-default">Item 3</li>
<li class="ui-state-default">Item 4</li>
<li class="ui-state-default">Item 5</li>
<li class="ui-state-default">Item 6</li>
<li class="ui-state-default">Item 7</li>
</ol>
</div>
=======
<ul id="sortable">
<li class="ui-state-default">Item 1</li>
</ul>
>>>>>>> remotes/origin/dev
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment