Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Karóczkai Krisztián

No description
by

Krisztián Karóczkai

on 30 May 2014

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Karóczkai Krisztián

Ötletelés Folyamatban
Új Róka érkezik
Rókatalógus
Ami még hátra van...
Rókalak
Hol a Róka
Legyen egyszerű
Törlés és adatmódosítás
Adatfelvitel a névjegyzékbe
Teljes névjegyzék listázása
Alkalmazás összeépítése
Keresés a névjegyzékben
Karóczkai Krisztián
Firefox OS
minta alkalmazás
S
imple
C
ontact
M
anager

Tudjon mindent
Kezdjünk valamit a kontaktokkal !
Funkciók
Felvitel
Módosítás
Törlés
Keresés
Listázás
Név, telefon, email
Teljes funkciós MozContact kezelés
<li>
<p>Vezeték név:</p>
<p> <input type="text"
id="pnewfamilyname"></p>
</li>
<link rel="stylesheet" href="style/lists.css">
<section data-type="list"
id="panel_new" style="display:none">
<header>Új névjegy</header>
<ul>
#pnewfamilyname
#pnewgivenname
#pnewnikname
#pnewmtel
#pnewemail
var contactData = {

givenName
: [$("#pnewgivenname").val()],

familyName
: [$("#pnewfamilyname").val()],

nickname
: [$("#pnewnikname").val()],

nickname
: [$("#pnewnikname").val()],

email
: [{
types
:["work"],
preferred
:true,
value
:$("#pnewemail").val()}],

tel
:[{
types
:["work"],
preferred
:true,
value
:$("#pnewmtel").val()}]
};
var person = new mozContact(contactData);
if ("init" in person) //v1.2
person.init(contactData);
var saving = navigator.mozContacts.save(person);
saving.onsuccess = function() {
initContactsList();
};
saving.onerror = function(err) {};
Listázás
Törlés = Listázás / Keresés + Megerősítés
Módosítás = Listázás / Keresés + Megjelenítés + Megerősítés
CONFIRM
buildingfirefoxos.com
Van telefonszám
Nincs telefonszám
var sort={
sortBy
:['familyName', 'nickname', 'firstName'],
sortOrder
:"descending"};
var request = window.navigator.mozContacts.getAll(sort);
request.onsuccess = function() {
if (this.result) {
addOneItem(
this.result
);
this.continue();
}
else addDialEvent();
}
request.onerror = function(err) {console.log('Something goes wrong!'+err);}
function addOneItem(
pItem
) {
var txt="";
if(
pItem.familyName
!= null)
txt =
pItem.familyName
+ "";
if(
pItem.givenName
!= null)
txt = txt +
pItem.givenName
+ "";
if(
pItem.nickname
!= null)
txt = txt + "(" +
pItem.nickname
+ ")";
if(txt == "")
txt =
pItem.name
+ "";
if(
pItem.tel
!=null)
$("#panel_list ul").append("<li><a
tel='" +
pItem.tel[0].value
+ "'><p>" + txt + "</p></a></li>");
else
$("#panel_list ul").append("<li><p class='red'>" + txt + "</p></li>");
}
MozContact
function addDialEvent(){
$("a[tel]").click(function(e) {

var activity = new MozActivity({
name: "dial",
data: {
type: "webtelephony/number",
number: $(this).attr("tel")
}
});

activity.onsuccess = function() {};
activity.onerror = function() {}
});
}
var filter = {

filterValue
: $("#pfind").val(),

filterBy
: ['familyName',
'givenName','nickName','name'],

filterOp
: "startsWith" };
var request =
window.navigator.mozContacts.find
(filter);
request.
onsuccess
= function () {
for(var i=0;i<this.result.length;i++)

addOneItem(
this.result[i]
);
addDialEvent();
}
request.
onerror
= function(event) {}
function addOneItem(
pItem
) {
var txt="";
if(
pItem.familyName
!= null)
txt =
pItem.familyName
+ "";
if(
pItem.givenName
!= null)
txt = txt +
pItem.givenName
+ "";
if(
pItem.nickname
!= null)
txt = txt + "(" +
pItem.nickname
+ ")";
if(txt == "")
txt =
pItem.name
+ "";
if(
pItem.tel
!=null)
$("#panel_list ul").append("<li><a
tel='" +
pItem.tel[0].value
+ "'><p>" + txt + "</p></a></li>");
else
$("#panel_list ul").append("<li><p class='red'>" + txt + "</p></li>");
}
function addDialEvent(){
$("a[tel]").click(function(e) {

var activity = new MozActivity({
name: "dial",
data: {
type: "webtelephony/number",
number: $(this).attr("tel")
}
});

activity.onsuccess = function() {};
activity.onerror = function() {}
});
}
<section data-type="list" id="panel_new">
<header>Új névjegy</header>
<ul> ...</ul>
</section>
<section data-type="list" id="panel_find" >
<header>Keres</header>
<ul>
<li>
<p><input type="text" id="pfind"></p>
</li>
</ul>
</section>
<section data-type="list" id="panel_list">
<header>Lista</header>
<ul></ul>
</section>
Full transcript