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
/
freestuff.html
executable file
·90 lines (80 loc) · 3.31 KB
/
freestuff.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
<!DOCTYPE HTML>
<head>
<!-- screen formatting -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no" />
<link rel="apple-touch-icon" href="images/apple-touch-icon.png" />
<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>
<!--Home Made-->
<!--<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">
$(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.20
$(xml).find("stuff").each(function(){
if(counter > 0){
line = '<hr /> <br />'
}
$('#allfreestuff').append(line + '<div id="stuff" onclick="navigatea('+"'"+$(this).find('title').text()+"'"+')"><div id="titlestuff_all"><strong>'+$(this).find('title').text()+'</strong></div>'
+'<div id="detail_all">'+$(this).find('detail').text()+'</div><div id="image_all"><img src="'+$(this).find('image').text()+'"alt="articleimage" style="width:50%"/></div>'
+'<div id="content_all">'+$(this).find('content').text()+'</div>'
+'<div id="url">'+$(this).find('url').text()+'</div></div><br />').trigger('create');
counter++;
})
}
})
})
</script>
<!-- End Declarations -->
<title>Free Stuff!</title>
</head>
<body>
<div id="fb-root"></div>
<div id="landscape"></div>
<div data-role="page" id="wrap">
<div data-role="header" data-position="fixed">
<a href="" data-icon="back" data-rel="back">back</a>
<h1>Free Stuff!</h1></div>
<div data-role="content">
<div class="banner"><img src="images/05-1.jpg"/></div>
<div id="allfreestuff"></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>