This repository has been archived by the owner on Apr 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·151 lines (142 loc) · 6.13 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE HTML>
<head>
<!-- screen formatting -->
<meta name="viewport" content="width=device-width"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<link rel="apple-touch-icon" href="images/apple-touch-icon.png" />
<link rel="apple-touch-startup-image" href="images/splashscreen.png">
<link href="css/jquery.mobile.scrollview.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/jquery.mobile-1.1.0.min.css" />
<link rel="stylesheet" href="css/owncss.css"/>
<!--Javascript libraries-->
<script type="text/javascript" src="js/Libraries/jquery-1.7.1.min.js"></script>
<script src="js/Libraries/jquery.mobile-1.1.0.min.js"></script>
<script src="js/Libraries/jquery.easing.1.3.js" type="text/javascript"></script>
<script src="js/Libraries/jquery.mobile.scrollview.js" type="text/javascript"></script>
<script src="js/Libraries/scrollview.js" type="text/javascript"></script>
<!--Home Made-->
<!--<script src="js/Parsers/generatearticles.js"></script>
<script src="js/Parsers/generateconcerts.js"></script>
<script src="js/Parsers/generatestuff.js"></script>-->
<script type="text/javascript">
window.onorientationchange = detectIPadOrientation;
function detectIPadOrientation () {
if ( orientation == 90 || orientation == -90) {
$('#wrap').hide();
$('#landscape').show();
}
else
{
$('#wrap').show();
$('#landscape').hide();
}
}
</script>
<script type="text/javascript">
function navigatea(position)
{
window.location.href="artikel.php?count="+position;
}
$(document).ready(function generatexml(){
$.ajax({
type: "GET",
url: "data/artikels.xml",
dataType: "xml",
success: function(xml){
var counter = 0;
var line = "";
var window = $(document).width();
var iheight = window * 0.30;
$(xml).find("article").each(function(){
if(counter > 0){
line = '<hr /> <br />'
}
$('#artikels').append(line + '<div id="block" onclick="navigatea('+"'"+$(this).index()+"'"+')"><div id="title"><strong>'+$(this).find('title').text()+'</strong></div>'
+'<div id="date">'+$(this).find('date').text()+'</div><div id="image"><img src="'+$(this).find('image').text()+'"alt="articleimage" style="width:'+iheight+'px;"/></div>'
+'<div id="content">'+$(this).find('shortcontent').text()+'</div></div><br />').trigger('create');
counter++;
})
}
})
})
function navigate(artist)
{
window.location.href="concert.php?id="+encodeURIComponent(artist);
}
$(document).ready(function generatexml(){
$.ajax({
type: "GET",
url: "data/concerts.xml",
dataType: "xml",
success: function(xml){
var counter = 0;
var line = "";
var window = $(document).width();
var iheight = window * 0.30;
$(xml).find("concert").each(function(){
if(counter > 0){
line = '<hr /> <br />'
}
$('#concerten').append(line+'<div id="tabelhomepage" onclick="navigate('+"'"+$(this).find('artist').text()+"'"+')"><div id="artist">'+$(this).find('artist').text()+'</div>'
+'<div id="date">'+$(this).find('date').text()+'</div>'
+'<div id="tabelimage"><img src="'+$(this).find('image').text()+'"alt="articleimage" style="width:'+iheight+'px;"/></div>'
+'<div id="location">'+$(this).find('location').text()+'</div>'
+'<div id="shortreview">'+$(this).find('shortreview').text()+'</div>').trigger('create');
counter ++;
})
}
})
})
$(document).ready(function generatestuff(){
$.ajax({
type: "GET",
url: "data/freestuff.xml",
dataType: "xml",
success: function(xml){
var counter = 0;
var line = "";
var window = $(document).width();
var iheight = window * 0.30
$(xml).find("stuff").each(function(){
if(counter > 0){
line = '<hr /> <br />'
}
$('#freestuff').append(line + '<div id="stuff" onclick="window.location.href='+"'"+'freestuff.html'+"'"+'"><div id="titlestuff"><strong>'+$(this).find('title').text()+'</strong></div>'
+'<div id="detail">'+$(this).find('detail').text()+'</div><div id="image"><img src="'+$(this).find('image').text()+'"alt="articleimage" style="width:'+iheight+'px;"/></div>'
+'<div id="content">'+$(this).find('content').text()+'</div>'
+'<div id="url">'+$(this).find('url').text()+'</div></div><br />').trigger('create');
counter++;
})
}
})
})
</script>
<title>Home</title>
</head>
<body>
<div id="landscape">
</div>
<div data-role="page" id="wrap">
<div data-role="header" data-position="fixed">
<h1>Update!</h1></div>
<div class="banner"><img src="images/banner2.jpg"/></div>
<div class="ui-grid-a">
<div class="ui-block-d" data-scroll="y"><div id="artikels"></div></div>
<div class="ui-block-e" data-scroll="y"><div id="concerten"></div></div>
<div class="ui-block-f" data-scroll="y"><div id="freestuff"></div></div>
</div>
<div data-role="footer" data-position="fixed">
<div data-role="navbar">
<ul>
<li onclick="window.location.href='index.html'"><a href="">Update!</a></li>
<li onclick="window.location.href='xml-parser.html'"><a href="">Kalender</a></li>
<li onclick="window.location.href='freestuff.html'"><a href="">Free Stuff</a></li>
<li onclick="window.location.href='issues.php'"><a href="">Magazine</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>