Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

learn and test. thx #1

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .gitignore

This file was deleted.

12 changes: 12 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[submodule "platforms/android/assets/www/apps"]
path = platforms/android/assets/www/apps
url = https://github.com/bcsphere/apps
[submodule "platforms/android/assets/www/framework"]
path = platforms/android/assets/www/framework
url = https://github.com/bcsphere/framework
[submodule "platforms/ios/BCSphere/www/framework"]
path = platforms/ios/BCSphere/www/framework
url = https://github.com/bcsphere/framework
[submodule "platforms/ios/BCSphere/www/apps"]
path = platforms/ios/BCSphere/www/apps
url = https://github.com/bcsphere/apps
Binary file added bin/BCSphere.1.3.0.apk
Binary file not shown.
Binary file added bin/BCSphere.apk
Binary file not shown.
Binary file added bin/BCSphere.ipa
Binary file not shown.
Binary file added bin/BCSphere1.2.1.apk
Binary file not shown.
52 changes: 52 additions & 0 deletions bin/samples/findme/cordova_plugins.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
cordova.define('cordova/plugin_list', function(require, exports, module) {
module.exports = [
{
"file": "plugins/org.apache.cordova.dialogs/www/notification.js",
"id": "org.apache.cordova.dialogs.notification",
"merges": [
"navigator.notification"
]
},
{
"file": "plugins/org.apache.cordova.dialogs/www/android/notification.js",
"id": "org.apache.cordova.dialogs.notification_android",
"merges": [
"navigator.notification"
]
},
{
"file": "plugins/org.bcsphere.bleprofiles/www/findme.js",
"id": "org.bcsphere.bleprofiles.findme",
"merges": [
"BC.Findme"
]
},
{
"file": "plugins/org.bcsphere.bleprofiles/www/proximity.js",
"id": "org.bcsphere.bleprofiles.proximity",
"merges": [
"BC.Proximity"
]
},
{
"file": "plugins/org.bcsphere.bleprofiles/www/serialport.js",
"id": "org.bcsphere.bleprofiles.serialport",
"merges": [
"BC.SerialPort"
]
},
{
"file": "plugins/org.bcsphere.bluetooth/www/bluetooth.js",
"id": "org.bcsphere.bluetooth.bluetooth",
"merges": [
"navigator.bluetooth"
]
}
];
module.exports.metadata =
{
"org.apache.cordova.dialogs": "0.2.6",
"org.bcsphere.bleprofiles": "0.1.0",
"org.bcsphere.bluetooth": "0.4.0"
}
});
238 changes: 238 additions & 0 deletions bin/samples/findme/css/bcstyle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,238 @@
html, body, img,h3,p,h1{
margin: 0;
padding: 0;
}
body{
background-color: #000;
background-image: url('../img/background.png');
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
}

.container img{
margin: 0 auto;
}

#logo{
position:absolute;
bottom:60px;
}


#cartoon{
position: absolute;
top: 0;
left: 0;
}
.container .searched{
margin: 0 auto;
margin-bottom:30px;
margin-top: 50px;
width: 70%;
height: 70%;
}
.container .row{
width: 100%;
margin: 0 auto;
margin-top:1em;
height: 70px;
}
.container .row .dots{
width:2%;
float:left;
}
.container .row .dots .dot{
float:left;
width: 10px;
height:10px;
margin: 0 auto;
margin-top: 30px;
border-radius: 50%;
background-color: rgb(227,125,30);
}
.container .row .device_content{
padding-left:10px;
margin-left:10px;
width:80%;
float:left;
font-size: 16px;
color: rgb(255,255,255);
}
h3,p{
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
p{
color: rgb(82,82,82);
}
.container .row .prev{
width:10%;
float:right;
margin-top: 22px;
}
.container .row .prev img{

}

/*header part*/
.header{
position:absolute;
top:0;
left:0;
width:100%;
height:60px;
line-height: 60px;
background-color:rgb(229,137,32);
}
.header .back{
position:absolute;
top:11px;
left:10px;
width:28px;
height:35px;
display:block;
z-index:9999;
}
.header .setting{
display:block;
height:40px;
line-height:35px;
margin:10px 10px;
border-radius: 6px;
border: 1px solid rgb(255,255,255);
background-color: rgb(227,125,30);
color: rgb(255,255,255);
float:right;
padding:0.2em 1.1em;
font-size: 1.2em;
}
.header h1{
position: absolute;
top:0;
left:0;
width: 100%;
display:block;
text-align:center;
font-size:1.8em;
line-height: 60px;
color: rgb(255,255,255);
}


.desc{
text-align:center;
font-size:1.2em;
}
.btn{
width:100%;
}
.btn button{
margin: 0 auto;
margin-top: 50px;
padding:0.5em 1.3em;
border-radius: 6px;
border: 1px solid rgb(227,125,30);
background: none;
color: rgb(255,255,255);
font-size:1.8em;
}

/* content part */
.content{
width:100%;
margin-top: 60px;
position: relative;
}
.content .findme_word{
text-align: center;
padding-top: 2.8em;
}
.content .findme_word p{
font-size: 1.8em;
color: rgb(255,255,255);
}
.content .findme_word h1{
padding-top: 0.3em;
color: rgb(255,255,255);
}
.content .findme_pic .arrow_down{
margin:2em 0 0 0;
}
.content .findme_pic .arrow_up{
margin:0;
}
.content .findme_pic .center_btn{
width: 100%;
text-align: center;
}
.content .findme_pic .center_btn .find_btn{
margin: 0 auto;
width:50%;
}
.find_btn .img_border{
display: inline-block;
border-radius:50%;
padding:0.2em;
border: 0.3em solid rgb(227,125,30);
}
.center_img{
display:inline-block;
padding:0em;
border-radius:50%;
background-image: url('../img/phone.png');
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
canvas{
z-index: -9999;
}
.content .photo_input{
height: 3em;
margin-top: 8em;
}
.content .photo_input .photo_word{
display: inline-block;
font-size: 1.8em;
line-height: inherit;
color: rgb(118,118,118);
}
.content .photo_input input{
display: inline-block;
height: inherit;
background: none;
boder: 1px solid rgb(255,255,255);
border-radius: 6px;
margin-left: 0.5em;
color: rgb(227,125,30);
}
.content .photo_pic .photo_title{
display: block;
font-size: 1.8em;
line-height: 3em;
color: rgb(118,118,118);
}
.content .photo_pic .center_btn{
width: 100%;
text-align: center;
}
.content .photo_pic .center_btn .find_btn{
margin: 0 auto;
width:50%;
}














52 changes: 52 additions & 0 deletions bin/samples/findme/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="css/bcstyle.css"/>
<script src="js/jquery-1.7.1.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/index.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>

<body>
<div class="container">
<div class="header">
<h1><div id="service_deviceName">Find Me</div></h1>
</div>

<div class="content">
<div class="findme_word">
<div style="height:35px;"></div>
<h1>O-Click</h1>
</div>
<div class="findme_pic">
<div class="arrow_down">
<img src="img/arrow_down1.png" class="img-responsive"/>
<img src="img/arrow_down2.png" class="img-responsive"/>
<img src="img/arrow_down3.png" class="img-responsive"/>
</div>
<div class="center_btn">
<div class="find_btn">
<div class="img-responsive img_border">
<img id="doevent" src="img/find.png" onclick='app.findMe()' class="img-responsive circle center_img"/>
</div>
</div>
</div>
<div class="arrow_up" style="clear:both;">
<img src="img/arrow_up3.png" class="img-responsive"/>
<img src="img/arrow_up2.png" class="img-responsive"/>
<img src="img/arrow_up1.png" class="img-responsive"/>
</div>
</div>
</div>
</div>
<script>
$(function(){
app.initialize();
})
</script>
</body>
</html>
Loading