forked from FSFTN/peyar-firefoxos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html~
154 lines (140 loc) · 20.3 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
152
153
154
<!DOCTYPE HTML>
<html>
<head>
<title>Peyar.in</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" charset="utf-8" src="js/phonegap-1.3.0.js"></script>
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<script>
var str="<items><prefix letter='«'><item name='«¸õ' gender='boy' /><item name='«¸ì¸¼ø' gender='boy' /><item name='«¸ì¸ñ½ý' gender='boy' /><item name='«¸ì¸¾¢÷' gender='boy' /><item name='«¸ì¸¨Ä»ý' gender='boy' /><item name='«¸ì¸£Ãý' gender='boy' /><item name='«¸ìÌÁÃý' gender='boy' /><item name='«¸ìÌýÈý' gender='boy' /><item name='«¸ì§¸¡' gender='boy' /><item name='«¸ì§¸¡Á¡ý' gender='boy' /><item name='«¸ì¸¼ø' gender='girl' /><item name='«¸ì¸ñ½¢' gender='girl' /><item name='«¸ì¸ñÏ' gender='girl' /><item name='«¸ì¸¨½' gender='girl' /><item name='«¸ì¸¾¢÷' gender='girl' /><item name='«¸ì¸¨Ä' gender='girl' /><item name='«¸ì¸Éø' gender='girl' /><item name='«¸ì¸É¢' gender='girl' /><item name='«¸ì¸¢û¨Ç' gender='girl' /><item name='«¸ì¸¢Ç¢' gender='girl' /></prefix><prefix letter='¬'><item name='¬ðº¢' gender='boy' /><item name='¬ðº¢ì¸Éø' gender='boy' /><item name='¬ðº¢ì¸¢Æ¡ý' gender='boy' /><item name='¬ðº¢ìÌÁÃý' gender='boy' /><item name='¬ðº¢ìÌ⺢ø' gender='boy' /><item name='¬ðº¢ìÌýÈý' gender='boy' /><item name='¬ðº¢ìÜò¾ý' gender='boy' /><item name='¬ðº¢ì¦¸¡Ê' gender='boy' /><item name='¬ðº¢ì§¸¡' gender='boy' /><item name='¬ðº¢ì§¸¡¼ý' gender='boy' /><item name='¬¨º' gender='girl' /><item name='¬¨ºì¸ñ½¢' gender='girl' /><item name='¬¨ºì¸ñÏ' gender='girl' /><item name='¬¨ºì¸É¢' gender='girl' /><item name='¬¨ºì¸¢Ç¢' gender='girl' /><item name='¬¨ºìÌ¢ø' gender='girl' /><item name='¬¨ºìÌÃø' gender='girl' /><item name='¬¨ºìÌÆø' gender='girl' /><item name='¬¨ºì¦¸¡Ê' gender='girl' /><item name='¬¨ºîº¢ðÎ' gender='girl' /></prefix><prefix letter='þ'><item name='þ¸ø' gender='boy' /><item name='þ¸øÅؾ¢' gender='boy' /><item name='þ¸øÅÇÅý' gender='boy' /><item name='þ¸øÅ¡½ý' gender='boy' /><item name='þ¸øÅ£Ãý' gender='boy' /><item name='þ¸ø¦ÅüÀý' gender='boy' /><item name='þ¸ø§Åí¨¸' gender='boy' /><item name='þ¸Äúý' gender='boy' /><item name='þ¸Ä¡Æ¢' gender='boy' /><item name='þ¸Ä¡Çý' gender='boy' /><item name='þ¨º' gender='girl' /><item name='þ¨¼' gender='girl' /><item name='þò¾¢' gender='girl' /><item name='þ¨Á' gender='girl' /><item name='þ¨Æ' gender='girl' /><item name='þ¨Æ¡û' gender='girl' /><item name='þ¨ÈÅ¢' gender='girl' /><item name='þýÀõ' gender='girl' /><item name='þÉ¢' gender='girl' /><item name='þÉ¢Âû' gender='girl' /></prefix><prefix letter='®'><item name='®¸õ' gender='boy' /><item name='®¸ì¸ñÏ' gender='boy' /><item name='®¸ì¸¾¢÷' gender='boy' /><item name='®¸ì¸Éø' gender='boy' /><item name='®¸ì¸¢ûÇ¢' gender='boy' /><item name='®¸ì¸£Ãý' gender='boy' /><item name='®¸ìÌÁÃý' gender='boy' /><item name='®¸ìÌ⺢ø' gender='boy' /><item name='®¸ìÌýÈý' gender='boy' /><item name='®¸ì§¸ûÅý' gender='boy' /><item name='®¸õ' gender='girl' /><item name='®¸ì¸¼ø' gender='girl' /><item name='®¸ì¸¾¢÷' gender='girl' /><item name='®¸ì¸Éø' gender='girl' /><item name='®¸ì¸¢Ç¢' gender='girl' /><item name='®¸ìÌ¢ø' gender='girl' /><item name='®¸ì¦¸¡Ê' gender='girl' /><item name='®¸ì¦¸¡ØóÐ' gender='girl' /><item name='®¸îº¢ðÎ' gender='girl' /><item name='®¸îͼ÷' gender='girl' /></prefix><prefix letter='¯'><item name='¯¨¼Â¡ý' gender='boy' /><item name='¯½÷×' gender='boy' /><item name='¯½÷Åñ½ø' gender='boy' /><item name='¯½÷ÅÓ¾ý' gender='boy' /><item name='¯½÷Åúý' gender='boy' /><item name='¯½÷ÅƸý' gender='boy' /><item name='¯½÷Å¡Æ¢' gender='boy' /><item name='¯½÷Å¡Çý' gender='boy' /><item name='¯½÷×츼ø' gender='boy' /><item name='¯½÷×ì¸Éø' gender='boy' /><item name='¯¨¼Â¡û' gender='girl' /><item name='¯½÷×' gender='girl' /><item name='¯½÷Åõ¨Á' gender='girl' /><item name='¯½÷Åú¢' gender='girl' /><item name='¯½÷Å¡Æ¢' gender='girl' /><item name='¯½÷Å¢ýÀõ' gender='girl' /><item name='¯½÷Ţɢ¡û' gender='girl' /><item name='¯½÷¦Åâ' gender='girl' /><item name='¯½÷¦Å¡Ç¢' gender='girl' /><item name='¯Â¢÷' gender='girl' /></prefix><prefix letter='°'><item name='°ì¸Ó¨ÉÅý' gender='boy' /><item name='°ì¸¦ÁöÂý' gender='boy' /><item name='°ì¸ÅÄÅý' gender='boy' /><item name='°ì¸ÅûÇø' gender='boy' /><item name='°ì¸Å¡½ý' gender='boy' /><item name='°ì¸Å¡Çý' gender='boy' /><item name='°ì¸Å£Ãý' gender='boy' /><item name='°÷' gender='boy' /><item name='°÷ì¸ñÏ' gender='boy' /><item name='°÷ì¸Éø' gender='boy' /><item name='°ì¸õ' gender='girl' /><item name='°ì¸Á¸û' gender='girl' /><item name='°ì¸Á½¢' gender='girl' /><item name='°÷' gender='girl' /><item name='°Ã½¢' gender='girl' /><item name='°Ãõ¨Á' gender='girl' /><item name='°ÃÓÐ' gender='girl' /><item name='°ÃƸ¢' gender='girl' /><item name='°Ã¡û' gender='girl' /><item name='°Õ½¢' gender='girl' /></prefix><prefix letter='±'><item name='±Â¢ý' gender='boy' /><item name='±Â¢Éý' gender='boy' /><item name='±Ã¢' gender='boy' /><item name='±Ã¢¸¨½' gender='boy' /><item name='±Ã¢¸¾¢÷' gender='boy' /><item name='±Ã¢¸Éø' gender='boy' /><item name='±Ã¢¸¡¼ý' gender='boy' /><item name='±Ã¢Í¼÷' gender='boy' /><item name='±Ã¢Í¼§Ã¡ý' gender='boy' /><item name='±Ã¢Á¨Ä' gender='boy' /><item name='±¸¢Éõ' gender='girl' /><item name='±ñ' gender='girl' /><item name='±ñ¸¼ø' gender='girl' /><item name='±ñͼ÷' gender='girl' /><item name='±ñ½È¢×' gender='girl' /><item name='±ñ½¡Æ¢' gender='girl' /><item name='±ñ½¡üÈø' gender='girl' /><item name='±ñ¦½¡Ç¢' gender='girl' /><item name='±ñ§½¡Å¢Âõ' gender='girl' /><item name='±ñÅøÄ¡û' gender='girl' /></prefix><prefix letter='²'><item name='²ó¾ø' gender='boy' /><item name='²ó¾ÄÓÐ' gender='boy' /><item name='²ó¾Ä¨Ä' gender='boy' /><item name='²ó¾ÄÆÌ' gender='boy' /><item name='²ó¾ü¸£Ãý' gender='boy' /><item name='²ó¾ü§¸ûÅý' gender='boy' /><item name='²ó¾ýÁ¸ý' gender='boy' /><item name='²ó¾ýÁÕ¸ý' gender='boy' /><item name='²ó¾ýÁ¡ñÀý' gender='boy' /><item name='²ó¦¾Æ¢ø' gender='boy' /><item name='²óоø' gender='girl' /><item name='²ó¾¢¨Æ' gender='girl' /><item name='²ó¾¢¨Æ¡û' gender='girl' /><item name='²ó¦¾Æ¢ø' gender='girl' /><item name='²ó¦¾Æ¢Ä¢' gender='girl' /><item name='²ó¦¾Æ¢É¢' gender='girl' /><item name='²÷' gender='girl' /><item name='²÷ì¸ñ½¢' gender='girl' /><item name='²÷즸¡Ê' gender='girl' /><item name='²÷ÄõÒ' gender='girl' /></prefix><prefix letter='³'><item name='³Âý' gender='boy' /><item name='³Âý¸¼ø' gender='boy' /><item name='³Âý¸¨Ã' gender='boy' /><item name='³Âý¸¡Ã¢' gender='boy' /><item name='³Âý¸¢Æ¡ý' gender='boy' /><item name='³Âý¸¢ûÇ¢' gender='boy' /><item name='³Âý¸£Ãý' gender='boy' /><item name='³ÂýÌÁÃý' gender='boy' /><item name='³Âý§¸ûÅý' gender='boy' /><item name='³Âý¦¸¡Ê' gender='boy' /><item name='³õÀ¡ø' gender='girl' /><item name='³õÀ¡ÄÕÅ¢' gender='girl' /><item name='³õÀ¡ÄƸ¢' gender='girl' /><item name='³õÀ¡ÄÆÌ' gender='girl' /><item name='³õÀ¡¦ÄÆ¢ø' gender='girl' /><item name='³õÀ¡¦ÄƢĢ' gender='girl' /><item name='³õÀ¡¦ÄƢɢ' gender='girl' /><item name='³õÀ¡ü¸¼ø' gender='girl' /><item name='³õÀ¡ü¦ºøÅõ' gender='girl' /><item name='³õÀ¡ü¦ºøÅ¢' gender='girl' /></prefix><prefix letter='´'><item name='´ñ¨Á' gender='boy' /><item name='´ñ¦À¡ÕôÀý' gender='boy' /><item name='´ñ¦À¡Æ¢ø' gender='boy' /><item name='´ñ¦À¡Æ¢Äý' gender='boy' /><item name='´ñÁ½¢' gender='boy' /><item name='´ñÁ¾¢' gender='boy' /><item name='´ñÁ¡÷Àý' gender='boy' /><item name='´ñÓò¾ý' gender='boy' /><item name='´ñÓòÐ' gender='boy' /><item name='´ñÓÃÍ' gender='boy' /><item name='´ÕŨ¸ÁÃõ' gender='girl' /><item name='´ñ¨Á' gender='girl' /><item name='´ñ¸¼ø' gender='girl' /><item name='´ñ¸ñ½¢' gender='girl' /><item name='´ñ¸¨½' gender='girl' /><item name='´ñ¸¾¢÷' gender='girl' /><item name='´ñ¸Âø' gender='girl' /><item name='´ñ¸Äõ' gender='girl' /><item name='´ñ¸¨Ä' gender='girl' /><item name='´ñ¸ÆÉ¢' gender='girl' /></prefix><prefix letter='µ'><item name='µ¨º' gender='boy' /><item name='µ¨ºì¸¼ø' gender='boy' /><item name='µ¨ºò¾¢Èø' gender='boy' /><item name='µ¨ºÂý' gender='boy' /><item name='µ¨ºÂ¢ýÀý' gender='boy' /><item name='µ¨ºÂ¢É¢Âý' gender='boy' /><item name='µ¼õ' gender='boy' /><item name='µ¼ò¾õÀ¢' gender='boy' /><item name='µ¼ò¾¢Èø' gender='boy' /><item name='µ¼òШÃ' gender='boy' /><item name='µ¨º' gender='girl' /><item name='µ¨ºì¸¼ø' gender='girl' /><item name='µ¨ºîº¢ÄõÒ' gender='girl' /><item name='µ¨ºÁ½¢' gender='girl' /><item name='µ¨ºÂÕÅ¢' gender='girl' /><item name='µ¨ºÂƸ¢' gender='girl' /><item name='µ¨ºÂ¡ú' gender='girl' /><item name='µ¨ºÂ¢ýÀõ' gender='girl' /><item name='µ¨ºÂ¢É¢Â¡û' gender='girl' /><item name='µ¨¼' gender='girl' /></prefix><prefix letter='¶'></prefix><prefix letter='¸'><item name='¸¼õÒ' gender='boy' /><item name='¸¼ôÀ狀¡¨Ä' gender='boy' /><item name='¸¼ôÀó¾¡÷' gender='boy' /><item name='¸¼ôÀó¦¾ýÈø' gender='boy' /><item name='¸¼ôÀÁ¡÷Àý' gender='boy' /><item name='¸¼ôÀÁ¡Èý' gender='boy' /><item name='¸¼ôÀ¨Áó¾ý' gender='boy' /><item name='¸¼õÀ¿õÀ¢' gender='boy' /><item name='¸¼õÀ¿øÄý' gender='boy' /><item name='¸¼õÀ¿ø§Ä¡ý' gender='boy' /><item name='¸ðÎ' gender='girl' /><item name='¸ð¼Æ¸¢' gender='girl' /><item name='¸¼õÒ' gender='girl' /><item name='¸¼õÀÁ½¢' gender='girl' /><item name='¸¼õÀÁ¢ø' gender='girl' /><item name='¸¼õÀÁÄ÷' gender='girl' /><item name='¸¼õÀÁ¨Ä' gender='girl' /><item name='¸¼õÀÁ¡¨Ä' gender='girl' /><item name='¸¼õÀ½¢' gender='girl' /><item name='¸¼õÀõ¨Á' gender='girl' /></prefix><prefix letter='º'><item name='ºÄõÁø' gender='boy' /><item name='ºíÌ' gender='boy' /><item name='ºí¸ÕÅ¢' gender='boy' /><item name='ºí¸¢¨º' gender='boy' /><item name='ºí¸¢¨º»ý' gender='boy' /><item name='ºíÜÃý' gender='boy' /><item name='ºí¦¸¡Ä¢Âý' gender='boy' /><item name='ºó¾Éõ' gender='boy' /><item name='ºó¾É츼ø' gender='boy' /><item name='ºó¾Éì¸ñ½ý' gender='boy' /><item name='ºíÌ' gender='girl' /><item name='ºí¸½¢' gender='girl' /><item name='ºí¸Æ¸¢' gender='girl' /><item name='ºí¸ÆÌ' gender='girl' /><item name='ºí¸¡Æ¢' gender='girl' /><item name='ºí¸¢¨º' gender='girl' /><item name='ºí¸¢¨Æ' gender='girl' /><item name='ºí¸¢¨Æ¡û' gender='girl' /><item name='ºí¸¢É¢Â¡û' gender='girl' /><item name='ºíÌ츼ø' gender='girl' /></prefix><prefix letter='¾'><item name='¾¸×' gender='boy' /><item name='¾¸Åñ½ø' gender='boy' /><item name='¾¸ÅôÀý' gender='boy' /><item name='¾¸ÅÓ¾ý' gender='boy' /><item name='¾¸Åúý' gender='boy' /><item name='¾¸ÅÃÍ' gender='boy' /><item name='¾¸ÅƸý' gender='boy' /><item name='¾¸Åý' gender='boy' /><item name='¾¸ÅýÀý' gender='boy' /><item name='¾¸ÅÈ¢Åý' gender='boy' /><item name='¾¸×' gender='girl' /><item name='¾¸Å½¢' gender='girl' /><item name='¾¸ÅõÁ¡' gender='girl' /><item name='¾¸Åõ¨Á' gender='girl' /><item name='¾¸ÅÓÐ' gender='girl' /><item name='¾¸Åú¢' gender='girl' /><item name='¾¸ÅÃÍ' gender='girl' /><item name='¾¸ÅÃñ' gender='girl' /><item name='¾¸Åâ' gender='girl' /><item name='¾¸ÅÕÅ¢' gender='girl' /></prefix><prefix letter='À'><item name='À¸ø' gender='boy' /><item name='À¸ÄÅý' gender='boy' /><item name='À¸§Ä¡ý' gender='boy' /><item name='À¨¸' gender='boy' /><item name='À¨¸Âﺡý' gender='boy' /><item name='ÀíÌ' gender='boy' /><item name='Àí¸¡Çý' gender='boy' /><item name='ÀͨÁ' gender='boy' /><item name='ÀÁ½¢' gender='boy' /><item name='ÀÁ¨Ä' gender='boy' /><item name='À¸ø' gender='girl' /><item name='À¸øÅÊ×' gender='girl' /><item name='À¸øÅ¡Éõ' gender='girl' /><item name='À¸øŢƢ' gender='girl' /><item name='À¸øÅ¢Èø' gender='girl' /><item name='À¸øÅ¢ÈÄ¢' gender='girl' /><item name='À¸øÅ£' gender='girl' /><item name='À¸ø§Åø' gender='girl' /><item name='À¸Ä½¢' gender='girl' /><item name='À¸ÄõÁ¡' gender='girl' /></prefix></items>";
$(document).ready(function(){
var xml = $.parseXML(str);
var op1="<ul data-role='listview' class='nameList'>";
var op2="<ul data-role='listview' class='nameList'>";
var op3="<ul data-role='listview' class='nameList'>";
$(xml).find('prefix').each(function(){
if($(this).children().size() > 0 ){
var ltr = $(this).attr('letter');
op1 +="<li data-role='list-divider'>"+ltr+"</li>";
op2 +="<li data-role='list-divider'>"+ltr+"</li>";
op3 +="<li data-role='list-divider'>"+ltr+"</li>";
$(this).children().each(function(){
var name = $(this).attr('name');
var gender = $(this).attr('gender');
op1 +="<li >"+name+"</li>"
if(gender == "girl"){
op3 +="<li>"+name+"</li>"
}else if(gender=="boy"){
op2 +="<li >"+name+"</li>"
}
});
}
});
op1+="</ul>";
op2+="</ul>";
op3+="</ul>";
$('#nameListContainerBoth').html(op1);
$('#nameListContainerBoy').html(op2);
$('#nameListContainerGirl').html(op3);
/* $('#nameListContainerBoth').bind('pageshow',function(event){
$('[data-role=navbar] a').removeClass("ui-btn-active");
var menuLink = $('#nameListContainerBoth .btnBoth');
menuLink.addClass("ui-btn-active");
});
$('#nameListContainerBoy').bind('pageshow',function(event){
$('[data-role=navbar] a').removeClass("ui-btn-active");
var menuLink = $('#nameListContainerBoy .btnBoy');
menuLink.addClass("ui-btn-active");
});
$('#nameListContainerGirl').bind('pageshow',function(event){
$('[data-role=navbar] a').removeClass("ui-btn-active");
var menuLink = $('#nameListContainerGirl .btnBoy');
menuLink.addClass("ui-btn-active");
});*/
});
</script>
<script type="text/javascript" src="js/jquery.mobile-1.0.min.js"></script>
<link href="css/jquery.mobile-1.0.min.css" rel="stylesheet"/>
<style>
/* @font-face { font-family: Tamil; src: url('TSCKANNA_0.ttf'); } */
@font-face { font-family: Tamil; src: url('TSCu_Paranar.ttf'); }
.nameList li {
font-family: Tamil;
}
</style>
<script>
$(document).bind('mobileinit',function(){
$.extend($.mobile,{
touchOverflowEnabled:true
});
});
</script>
</head>
<body>
<script type="text/javascript">
app.initialize();
</script>
<div data-role="page" id="nameBoth" >
<div data-role="header" data-position="fixed">
<h1>Thamizha's Peyar.in</h1>
</div>
<div data-role="content">
<div id="nameListContainerBoth">
</div>
</div>
<div data-role="footer" data-position="fixed">
<div data-role="navbar" data-iconpos="bottom">
<ul>
<li ><a href="#" class="btnBoth ui-btn-active ui-state-persist">Both</a></li>
<li><a href="#boy" class="btnBoy" data-direction="reverse">Boy</a></li>
<li><a href="#girl" class="btnGirl" data-direction="reverse">Girl</a></li>
</ul>
</div>
</div>
</div>
<div data-role="page" id="boy">
<div data-role="header" data-position="fixed">
<h1>Thamizha's Peyar.in</h1>
</div>
<div data-role="content">
<div id="nameListContainerBoy">
</div>
</div>
<div data-role="footer" data-position="fixed">
<div data-role="navbar" data-iconpos="bottom">
<ul>
<li ><a href="#nameBoth" class="btnBoth " >Both</a></li>
<li><a href="#" class="btnBoy ui-btn-active ui-state-persist">Boy</a></li>
<li><a href="#girl" class="btnGirl" data-direction="reverse">Girl</a></li>
</ul>
</div>
</div>
</div>
<div data-role="page" id="girl">
<div data-role="header" data-position="fixed">
<h1>Thamizha's Peyar.in</h1>
</div>
<div data-role="content">
<div id="nameListContainerGirl">
</div>
</div>
<div data-role="footer" data-position="fixed">
<div data-role="navbar" data-iconpos="bottom">
<ul>
<li ><a href="#nameBoth" class="btnBoth" >Both</a></li>
<li><a href="#boy" class="btnBoy" >Boy</a></li>
<li><a href="#" class="btnGirl ui-btn-active ui-state-persist">Girl</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>