-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfo.js
executable file
·80 lines (61 loc) · 2.3 KB
/
info.js
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
komut="";
function info(layContent )
{
GilayContent=layContent;
//Get page states.
this.IsVisible = function() {
console.log('Info IsVisible' + layContent.IsVisible())
return layContent.IsVisible() }
this.IsChanged = function() { return false }
//Show or hide this page.
this.Show = function( show )
{
if( show ) layContent.Animate("SlideFromLeft");
else layContent.Animate( "fadeout" );
}
//Create layout for app controls.
layV= app.CreateLayout( "Linear", "Vertical,Left,FillXY" );
layV.SetBackColor( "#f8f8f7" );
layVh = app.CreateLayout( "Linear", "Horizontal,FillX,Left" );
layVh.SetBackColor( "#356e9d" );
btngeri = app.CreateButton( "[fa-arrow-left]", 0.1, 0.135 ,"FontAwesome,Custom,Right");
btngeri.SetBackColor('#356e9e');
btngeri.SetOnTouch( btngeriinfo_OnTouch );
layVh.AddChild( btngeri );
txt = app.CreateText( "Bluetooth Controller" );
txt.SetTextSize( 22 );
txt.SetMargins( 0, 0.01, 0.24, 0 );
txt.SetBackColor( "#356e9d" );
txt.SetTextColor( "#ffffff" );
txt.SetTextShadow( 2, 0, 1, "#356e9d" );
layVh.AddChild( txt );
btngplay = app.CreateButton( "[fa-star-o]", 0.1, 0.135 ,"FontAwesome,Custom");
btngplay.SetBackColor('#a4c639');
btngplay.SetOnTouch( web );
layVh.AddChild( btngplay );
layV.AddChild( layVh );
layC = app.CreateLayout( "Linear", "VCenter,FillXY" );
layC.SetPadding(0,0.05,0,0);
img = app.CreateImage( "Img/Bt Controller.png", 0.5, -1 );
layC.AddChild( img );
//Create a text with formatting.
var text = "HC05/HC06 Bluetooth modülüne kod göndermek için yapılmış bir uygulamadır<br>"+
"Bu uygulama DroidScript Kullanılarak Yapılmıştır.<br>"+
"<font color=#356e9d><h2><a href=https://github.com/mzuvin>" +
"@mzuvin</a></h2></font>";
txt = app.CreateText( text, 0.8, -1, "Html,Link" );
txt.SetMargins( 0, 0.02, 0, 0 );
txt.SetPadding( 0.03, 0.03, 0.03, 0.03 );
txt.SetTextSize( 17 );
txt.SetTextColor( "#1e73be" );
layC.AddChild( txt );
layV.AddChild(layC)
layContent.AddChild(layV);
}
function btngeriinfo_OnTouch (){
GilayContent.Animate( "SlideToLeft" );
}
function web()
{
app.OpenUrl("https://github.com/mzuvin")
}