-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
78 lines (60 loc) · 2.39 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Indawo</title>
<link rel="stylesheet" href="css/semantic.min.css"/>
</head>
<body>
<div class="resize" height=0.1 style="background-color:#ef6c00;">
<i class="icon content resize proptop" height=0.05 top=0.025 style="color:#cf360c;margin-left:5%;float:left"></i>
<center class="resize proptop" height=0.05 top=0.02 style="position:absolute;color:white;font-weight:300;width:100%">IndawoPro</center>
</div>
<div class="resize" height=0.075 style="background-color:#ef6c00;">
<center class="resize proptop" height=0.02 top=0.02 style="position:absolute;color:white;font-weight:300;width:100%">ACCES PIETONS</center>
</div>
<div class="resize" height=0.001 style="background-color:#cf360c;"></div>
</body>
<script src="js/jquery-2.1.3.min.js"></script>
<script src="js/semantic.min.js"></script>
<script src="cordova.js"></script>
<script src="js/feed.js"></script>
<script src="js/application.js"></script>
<script type="text/javascript" charset="utf-8" src="js/phonegap-nfc.js"></script>
<script>
$(document)
.on('pagebeforecreate', Application.updateIcons)
.one('deviceready', Application.initApplication);
var x = 10;
var y = 10;
$(function() {
x = $(window).width();
y = $(window).height();
// svgtocode();
$( ".resize" ).each(function( index, element ) {
var k = $(this).attr('height')*y;
if (k < 1) k = 1;
$(this).attr('style', 'height:' + k + 'px;' + $(this).attr('style'));
if (k < 10) k = 10;
$(this).attr('style', 'font-size:' + k + 'px;' + $(this).attr('style'));
$(this).attr('y', '' + k + 'px;');
});
$( ".resize2" ).each(function( index, element ) {
alert(element);
var k = $(this).attr('height')*y;
if (k < 1) k = 1;
$(this).attr('style', 'height:' + k + 'px;' + 'font-size:' + $(this).attr('height')*y + 'px;' + $(this).attr('style'));
$(this).attr('y', '' + k + 'px;');
});
$( ".propwidth" ).each(function( index, element ) {
var k = $(this).attr('width')*y;
if (k < 1) k = 1;
$(this).attr('style', 'width:' + k + 'px;' + $(this).attr('style'));
});
$( ".proptop" ).each(function( index, element ) {
$(this).attr('style', 'margin-top:' + $(this).attr('top')*y + 'px;' + $(this).attr('style'));
});
});
</script>
</html>