-
Notifications
You must be signed in to change notification settings - Fork 2
/
robe.html
executable file
·126 lines (118 loc) · 4.06 KB
/
robe.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
<html>
<head>
<title>dp_robe</title>
<script src="js/jquery-3.1.1.min.js"></script>
<script src="js/materialize.js"></script>
<script src="js/init.js"></script>
<script src="js/hammer.min.js"></script>
<script src="js/hammer-time.min.js"></script>
<script src="https://use.fontawesome.com/0eaed8d23a.js"></script>
<script type="text/javascript">
$("#all").append("CIAO");
function test(){
var max = 255;
var min = 0;
var a = Math.random() * (max - min) + min;
var b = Math.random() * (max - min) + min;
var c = Math.random() * (max - min) + min;
Android.sbColor(255,a,b,c);
//Android.sbColor(255,a,b,c);
}
function test2(){
Android.sharer("A test string");
}
var i = 0;
var cp = 0;
$( document ).ready(function() {
for (i=0; i < 10; i++){
var card2 = '';
card = '<div class="col s12 m6 l5 xl4"><div class="card blue-grey darken-1"><div class="card-content white-text"><span class="card-title">title</span><p>card content</p></div><div class="card-action"><a href="#">This is a link</a><a href="#">This is a link</a></div></div>';
var row = '<div class="row" id="'+i+'"></div>'
if (cp == 0){
card2 = '<div class="hide-on-med-and-down col m1 l1 xl2">A</div>' + card
console.log("lx");
cp = 1;
$("#all").append(row);
$("#"+i).append(card2);
}
else if (cp == 1) {
console.log("rx")
cp = 0;
card2 = card + '<div class="hide-on-med-and-down col m1 l1 xl2">B</div>'
$("#"+(i-1)).append(card2);
}
}
});
</script>
<link href="css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="" id="styleSheet" type="text/css" rel="stylesheet" media="screen,projection"/>
</head>
<body>
<h1> JSInterface Testing </h1>
<a onClick="test()">StatusBarColor</a>
<br>
<a onClick="test2()">Sharer</a>
<br>
<br>
<div id="all"> ALL </div>
<h1> Robbe </h1>
<div class="row">
<div class="hide-on-med-and-down col m1 l1 xl2">A</div>
<div class="col s12 m6 l5 xl4">
<div class="card blue-grey darken-1">
<div class="card-content white-text">
<span class="card-title">title</span>
<p>card content</p>
</div>
<div class="card-action">
<a href="#">This is a link</a>
<a href="#">This is a link</a>
</div>
</div>
</div>
<div class="col s12 m6 l5 xl4">
<div class="card blue-grey darken-1">
<div class="card-content white-text">
<span class="card-title">title</span>
<p>card content</p>
</div>
<div class="card-action">
<a href="#">This is a link</a>
<a href="#">This is a link</a>
</div>
</div>
</div>
<div class="hide-on-med-and-down col m1 l1 xl2">B</div>
</div>
<div class="row">
<div class="hide-on-med-and-down col m1 l1 xl2">A</div>
<div class="col s12 m6 l5 xl4">
<div class="card blue-grey darken-1">
<div class="card-content white-text">
<span class="card-title">title</span>
<p>card content</p>
</div>
<div class="card-action">
<a href="#">This is a link</a>
<a href="#">This is a link</a>
</div>
</div>
</div>
<div class="col s12 m6 l5 xl4">
<div class="card blue-grey darken-1">
<div class="card-content white-text">
<span class="card-title">title</span>
<p>card content</p>
</div>
<div class="card-action">
<a href="#">This is a link</a>
<a href="#">This is a link</a>
</div>
</div>
</div>
<div class="hide-on-med-and-down col m1 l1 xl2">B</div>
</div>
<!-- Scripts -->
</body>
</html>