forked from astagi/Turpial-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccounts.html
executable file
·121 lines (90 loc) · 4.31 KB
/
accounts.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
<html>
<head>
<meta name="viewport" content="width=100%; initial-scale=1; user-scalable=no" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<base><!-- used to process relative links in content -->
<title>Turpial</title>
<link href="css/common.css" rel="stylesheet" type="text/css">
<link href="css/accounts.css" rel="stylesheet" type="text/css">
<link href="css/dropdown.css" rel="stylesheet" type="text/css">
<script type="text/javascript" charset="utf-8" src="js/cordova-1.7.0.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/iscroll.js"></script>
<script type="text/javascript" src="js/iscrollfactory.js"></script>
<script type="text/javascript" src="js/templates.js"></script>
<script type="text/javascript" src="js/servicelistener.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/dropdown.js"></script>
<script type="text/javascript" src="js/imagebutton.js"></script>
<script type="text/javascript">
function deleteAccount(accountId) {
alert("DELETED" + accountId);
}
function addAccount(values) {
templates.getTemplate("templates/account_line.partial", function(template) {
newAccountLine = templates.fillTemplate(template, values);
$("#accounts").append(newAccountLine);
});
}
$(document).ready(function() {
var accounts = 1;
$("#accounts").css("margin-left", (-1)*($("#accounts").width()/2) + "px");
$(".addbtn").click(function() {
var current_height = $("#accounts").height();
current_height = current_height + current_height / accounts;
$("#accounts").height(current_height + "px");
addAccount();
accounts++;
});
var dropAccountType = $('#accounttype').DropDown({
image: "pixmaps/turpialtwitter.png",
value: "Twitter",
});
var addaccountBtn = $('#addaccountbtn').ImageButton({
image: "pixmaps/actionbar/light/add.png",
callback: undefined,
});
dropAccountType.addRow("pixmaps/turpialtwitter.png", "Twitter")
.addRow("pixmaps/turpialidentica.png", "Identica");
addAccount({ account_id: "twitter-Turpial",
account_name : "@Turpial",
account_img : "pixmaps/turpialtwitter.png",})
addAccount({ account_id: "identica-phonegap",
account_name : "@Phonegap",
account_img : "pixmaps/turpialidentica.png",})
addAccount({ account_id: "twitter-Twitter",
account_name : "@Twitter",
account_img : "pixmaps/turpialtwitter.png",})
addAccount({ account_id: "identica-ZZTop",
account_name : "@ZZTop",
account_img : "pixmaps/turpialidentica.png",})
addAccount({ account_id: "twitter-4ndreaSt4gi",
account_name : "@4ndreaSt4gi",
account_img : "pixmaps/turpialtwitter.png",})
addAccount({ account_id: "twitter-satanas",
account_name : "@satanas",
account_img : "pixmaps/turpialtwitter.png",})
addAccount({ account_id: "twitter-Twitter",
account_name : "@guerrerocarlos",
account_img : "pixmaps/turpialtwitter.png",})
});
</script>
</head>
<body onload="init();" style="background-color: #262626;">
<!-- The header of our application -->
<header id="mainHeader" class="header">
<div class="topcombo">
<img src="pixmaps/turpial.png" />
<label>Accounts</label>
</div>
</header>
<div class="footer"></div>
<!-- Our mentions-->
<div id="accounts" class="">
</div>
<div class="addaccountdiv">
<div id="accounttype" style="float:left; width: 200px; height:45px;"></div>
<div id="addaccountbtn" style="float:right;" class="addbtn"></div>
</div>
</body>
</html>