質問編集履歴

7

Login\.html追加

2017/05/11 03:50

投稿

seri
seri

スコア422

test CHANGED
File without changes
test CHANGED
@@ -189,3 +189,57 @@
189
189
  </html>
190
190
 
191
191
  ```
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+ login.html
204
+
205
+ ```ここに言語を入力
206
+
207
+ <ng-include src="'login.html'"></ng-include>
208
+
209
+
210
+
211
+ <ons-template id="login.html" >
212
+
213
+
214
+
215
+ <ons-page >
216
+
217
+ <ons-toolbar style="background-color:#009688;">
218
+
219
+ <div class="center">My App</div>
220
+
221
+ </ons-toolbar>
222
+
223
+
224
+
225
+ <ons-tabbar position="bottom" >
226
+
227
+ <ons-tab page="ranking.html" label="A" icon="ion-lightbulb" style="background-color:#009688;" active></ons-tab>
228
+
229
+ <ons-tab page="create.html" label="B" icon="ion-plus-round" style="background-color:#009688;"></ons-tab>
230
+
231
+ <ons-tab page="star.html" label="C" icon="ion-android-star" style="background-color:#009688;"></ons-tab>
232
+
233
+ <ons-tab page="home.html" label="D" icon="ion-ios-home" style="background-color:#009688;"></ons-tab>
234
+
235
+ </ons-tabbar>
236
+
237
+
238
+
239
+ </ons-page>
240
+
241
+ </ons-template>
242
+
243
+
244
+
245
+ ```

6

コード追記

2017/05/11 03:50

投稿

seri
seri

スコア422

test CHANGED
File without changes
test CHANGED
@@ -63,3 +63,129 @@
63
63
 
64
64
 
65
65
  スクリプトの定義位置などを色々ためしてみてはいるのですが、ずっとこの状態です。
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+ ```ここに言語を入力
74
+
75
+ <!DOCTYPE HTML>
76
+
77
+ <html ng-app="myApp">
78
+
79
+ <meta charset="utf-8">
80
+
81
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
82
+
83
+ <meta http-equiv="Content-Security-Policy" content="default-src * data:; style-src * 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'">
84
+
85
+ <head>
86
+
87
+ <script src="components/loader.js"></script>
88
+
89
+ <script src="lib/angular/angular.min.js"></script>
90
+
91
+ <script src="lib/onsenui/js/onsenui.min.js"></script>
92
+
93
+ <script src="lib/onsenui/js/angular-onsenui.min.js"></script>
94
+
95
+ <script src="https://cdn.socket.io/socket.io-1.3.5.js"></script>
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+ <link rel="stylesheet" href="components/loader.css">
104
+
105
+ <link rel="stylesheet" href="lib/onsenui/css/onsenui.css">
106
+
107
+ <link rel="stylesheet" href="lib/onsenui/css/onsen-css-components.css">
108
+
109
+ <link rel="stylesheet" href="css/style.css">
110
+
111
+
112
+
113
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.3/react.js"></script>
114
+
115
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script>
116
+
117
+
118
+
119
+ <script>
120
+
121
+
122
+
123
+ document.addEventListener("backbutton", function(){ console.log("Back");pages.popPage();}, false);
124
+
125
+
126
+
127
+ var app = ons.bootstrap('myApp', []);
128
+
129
+
130
+
131
+ app.controller('DialogController', function($scope) {
132
+
133
+ $scope.dialogs = {};
134
+
135
+ $scope.show = function(dlg) {
136
+
137
+ if (!$scope.dialogs[dlg]) {
138
+
139
+ ons.createDialog(dlg).then(function(dialog) {
140
+
141
+ $scope.dialogs[dlg] = dialog;
142
+
143
+ dialog.show();
144
+
145
+ });
146
+
147
+ } else {
148
+
149
+ $scope.dialogs[dlg].show();
150
+
151
+ }
152
+
153
+ }
154
+
155
+ });
156
+
157
+
158
+
159
+ app.controller('beancrecre',function($scope){
160
+
161
+ $scope.Funcz=function(){
162
+
163
+ Func();
164
+
165
+ };
166
+
167
+ $scope.pop=function(url){
168
+
169
+ pages.popPage();
170
+
171
+ };
172
+
173
+ });
174
+
175
+ </script>
176
+
177
+ <script src="serv/A.js"></script>
178
+
179
+ <script src="serv/B.js"></script>
180
+
181
+ </head>
182
+
183
+ <body>
184
+
185
+ <ons-navigator page="./login.html" var ="pages"></ons-navigator>
186
+
187
+ </body>
188
+
189
+ </html>
190
+
191
+ ```

5

S

2017/05/11 03:18

投稿

seri
seri

スコア422

test CHANGED
File without changes
test CHANGED
@@ -24,9 +24,9 @@
24
24
 
25
25
 
26
26
 
27
- <script>function Func1(){pages.pushPage(Main.html);}<script>
27
+ <script>function Func1(){pages.pushPage(Main.html);}</script>
28
28
 
29
- <script>function Func2(){pages.popPage();} <script>
29
+ <script>function Func2(){pages.popPage();} </script>
30
30
 
31
31
 
32
32
 

4

S

2017/05/10 23:05

投稿

seri
seri

スコア422

test CHANGED
File without changes
test CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
 
26
26
 
27
- <script>function Func1(){pages.pushpage(Main.html);}<script>
27
+ <script>function Func1(){pages.pushPage(Main.html);}<script>
28
28
 
29
29
  <script>function Func2(){pages.popPage();} <script>
30
30
 

3

しゅうせい

2017/05/10 23:05

投稿

seri
seri

スコア422

test CHANGED
File without changes
test CHANGED
File without changes

2

修正

2017/05/10 23:04

投稿

seri
seri

スコア422

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
 
12
12
 
13
- 構造は以下のようなものでして
13
+ 構造は以下のようなものでして(meta等は割愛)
14
14
 
15
15
  ```ここに言語を入力
16
16
 

1

修正

2017/05/10 23:02

投稿

seri
seri

スコア422

test CHANGED
@@ -1 +1 @@
1
- OnsenUiとAngularJSでページ移動が出来ません
1
+ OnsenUiでページ移動が出来ません
test CHANGED
File without changes