forked from g0v/reporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plan.html
1734 lines (1205 loc) · 58 KB
/
plan.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html ng-app = "editApp">
<head>
<script src="javascripts/lib/jquery-1.10.2.js"></script>
<script src="javascripts/lib/jquery-ui.js"></script>
<script src="javascripts/lib/angular.min.js"></script>
<script src='https://cdn.firebase.com/v0/firebase.js'></script>
<script src='https://cdn.firebase.com/libs/angularfire/0.5.0/angularfire.min.js'></script>
<script src="javascripts/news.js"></script>
<meta charset=utf-8 />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://bestian.github.io/shackhand/plan.html" />
<meta property="og:title" content="自學2.0學習計畫小幫手" />
<meta property="og:image" content="http://bestian.github.io/shackhand/img/top01.jpg" />
<title>自學2.0學習計畫編輯器--自學,從為自己做計畫開始</title>
<link rel="stylesheet" href="stylesheets/editor.css" />
<!--<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/flick/jquery-ui.css"> -->
</head>
<body ng-controller = "Ctrl" ng-keydown = "maybeSave($event)" class = "{{root.data.c.theme}}">
<audio id ="easy" controls class = 'noPrint' >
<source src="voice/easy.mp3" type="audio/mpeg">
<source src="voice/easy.ogg" type="audio/ogg">
</audio>
<div id = "logo" class = "flashStart noPrint">
<a href = "http:/www.alearn.org.tw" target = "_blank">
<img src="img/top01.jpg"/>
</a>
</div>
<div id = "headInfos" class = "noPrint {{root.data.c.theme}}">
<div>
<!-- TOOL -->
<span id = 'updownload'>
<a id = "download" class ="d" ng-href="{{root | forDownload}} " download = "{{root.data.myName | forDownloadName }}" target = "_blank" ng-mouseover = "hintD = true" ng-mouseout = "hintD = false"
ng-click = "save('noAlert')"> 儲存檔案
<span ng-show = "hintD">
<br>
<span ng-bind = " '如出現一個很多字的頁面,請依下列指示:在空白處按「右鍵」→ 選「將網頁諸存為」→ 「'+ root.data.myName + '的學習計劃.plan.json」'">
</span>
</span>
</a>
<span>
<input style = "width:16px" name = "pub" type = "radio" ng-model = "root.data.public" value="2"/>公開
<!-- <input style = "width:16px" name = "pub" type = "radio" ng-model = "root.data.public" value="1"/>不公開 -->
<input style = "width:16px" name = "pub" type = "radio" ng-model = "root.data.public" value="0" />私人
<a id = "info" class = "msg-icon msg-icon-info"
ng-click = "askPublic()">
</a>
</span>
開啟舊檔
<input id ="upload" type="file" fileread = "root" filetype = "json" accept="application/json"/>
</span>
</div>
<!-- TOOL -->
<div ng-show = "tube">
<span id = 'status'>
<span id = 'lastTime' ng-bind = "'上次存檔: '+(root.data.time | localTime)"> </span>
<span id = 'remTime' ng-bind = "'___尚餘'+(root.data.time | countTime:delay:clock | showRemTime)">資料讀取中...</span>
</span>
<a id = "info" class = "msg-icon msg-icon-info"
onclick = "
if (confirm('非營利專案^_^\n\n免費版容量有限(所有用戶共100MB)\n\n請珍惜使用\n\n若放置不用將於期限後刪除\n\n每次存檔,即可延長期限^_^')) window.open('https://www.firebase.com/pricing.html')">
</a>
前往:<input ng-model = 'name' ng-focus = "name = (!currentUser && currentName) || root.data.c.supports[0] " ng-keypress = "mayBeChName($event, name)" placeholder ="輸入名字" />
<a id = 'go' ng-click = 'chName(name)'>拜訪</a>
<span id = "loginSpan" ng-hide = "currentUser">
或
<input ng-model = "password" type = "password" ng-keypress = "mayBeChName($event, name, password)" placeholder ="輸入密碼以登入"/>
<a id = 'login' ng-click = 'chName(name, password)'>登入</a>
</span>
</div>
<div id = "rightHead">
<div ng-show = "tube">
<a id = 'unlock' ng-click = 'save()' ng-show = 'lock && !sandbox'>已上鎖</a>
<a id = 'lock' ng-click = 'lock = true' ng-show = '!lock && !sandbox'>已解鎖</a>
<span id = 'status' ng-show = 'sandbox'>沙盒</span>
<span ng-bind = "currentUser || '訪客' ">讀取中...</span>
<a id = 'logut' ng-click = 'currentUser = false; lock = true;' ng-show = 'currentUser'>登出</a>
</div>
<select ng-model = "root.data.c.theme" class = "s">
<option ng-selected ="root.data.c.theme == '春'" value = "spring">春</option>
<option ng-selected ="root.data.c.theme == '夏'" value = "summer">夏</option>
<option ng-selected ="root.data.c.theme == '秋'" value = "fall">秋</option>
<option ng-selected ="root.data.c.theme == '冬'" value = "winter">冬</option>
<option ng-selected ="!root.data.c.theme" value = "">自訂主題</option>
</select>
</div>
</div>
<div id = "headPlans" class = "noPrint {{root.data.c.theme}}" ng-init = "editTitle = [false, false]">
<span ng-repeat = 'n in [0,1]' >
<a class = "{{$parent.root.data.c.planNow == n && 'focus'}}" ng-click = '$parent.root.data.c.planNow = n; quite();' ng-mouseover = "editTitle[n] = $parent.root.data.c.planNow == n" ng-mouseout = "editTitle[n] = false">
<span ng-bind = "root.data.t[n].title || n+1"
ng-hide = "editTitle[n]"></span>
<input
ng-model = "root.data.t[n].title"
placeholder = "自訂標題"
ng-show = "editTitle[n]" />
</a>
</span>
</div>
<div id = 'rightPages' class = "noPrint {{root.data.c.theme}}">
<ul>
<li ng-repeat = "k in ['自傳', '學習風格','學習主題與領域','一週節奏','進度與目標','學習支持與資源','希望支援','意見箱']" class = "{{$parent.root.data.c.pageNow == k && 'focus'}}" ng-mouseover = "$parent.root.data.c.pageNow = k;quite(); $parent.focusCol = onlyTrue(focusCol,'none')">
<img src="img/leaf-yellow.png" class = "leaf" ng-show = "root.data.c.pageNow == k"/>
<img src="img/leaf-shadow.png" class="leaf shadow"/>
<br/>
<span ng-bind = "(currentName || root.data.myName || '您') + '的' + k"></span>
</li>
</ul>
</div>
<!---->
<div id = 'leftSupports' class = 'noPrint {{root.data.c.theme}}'>
<br>
<h3 ng-bind = "root.data.c.pageNow">每頁都有不同的資源</h3>
<span>的參考資源:</span>
<audio id ="topic" controls ng-show = "root.data.c.pageNow == '學習主題與領域'" ng-init = "help['主題'] = false" ng-click = "help['主題'] = true">
<source src="voice/topic.mp3" type="audio/mpeg">
<source src="voice/topic.ogg" type="audio/ogg">
</audio>
<a id = "info" class = "msg-icon msg-icon-info" ng-click = "help['學習支持與資源'] = true" ng-show = "root.data.c.pageNow == '學習支持與資源'">
</a>
<a id = "info" class = "msg-icon msg-icon-info" ng-click = "help['希望支援'] = true" ng-show = "root.data.c.pageNow == '希望支援'">
</a>
<hr>
<ul>
<li ng-repeat = "sup in supports | has:root.data.c.pageNow | invis:root.data.c.pageNow " ng-click = "op(sup.split(' ')[1])" ng-mouseover = "$parent.supNow = sup; $parent.pop = true; $parent.popURL = sup.split(' ')[1]">
<img src="img/leaf-green.png" class="leaf" ng-show = "supNow == sup"/>
<img src="img/leaf-shadow.png" class="leaf shadow"/>
<br/>
<span ng-bind = "sup.split(' ')[0]"></span>
</ul>
</div>
<div id = 'main' class = "{{root.data.c.theme}}"
ng-dblclick = "focusCol = onlyTrue(focusCol,'none')"
>
<div id = "title" ng-show = "tube">
<span id = 'status' ng-show = 'updated'>所有更動已儲存</span>
<span id = 'status' ng-hide = 'updated'>等待儲存...按Ctrl+S儲存</span>
<span id = 'status' ng-show = 'justDeleted'>本頁已刪除</span>
<br>
</div>
<div id ='page1' ng-show = "root.data.c.pageNow == '自傳' && ( !tube || !lock || sandbox || root.data.c.share[root.data.c.pageNow])">
<span ng-mouseover = "editMyName = true" ng-mouseout = "editMyName = false">
<h2 ng-hide = "editMyName" ng-bind = "root.data.myName || '您'"></h2>
<h2 ng-show = "editMyName"> <input ng-model ="root.data.myName"></h2>
</span>
<div id = "photo" >
<img id = "x" class = "face" src = "{{root.data.t[root.data.c.planNow].mainImg}}" ng-show = "root.data.t[root.data.c.planNow].mainImg" ng-click = "root.data.t[root.data.c.planNow].mainImg = ''" />
<div id ="public" ng-show = "tube">
<input id = "mainImg" type="checkbox" ng-model="root.data.c.share[root.data.c.planNow]['自傳']">
<span ng-bind = "(root.data.c.share[root.data.c.planNow]['自傳'] && '公開分享自傳') || '不公開自傳'"></span>
<a id = "info" class = "msg-icon msg-icon-info"
onclick = "alert('個人檔案中的自傳,可選擇公開或不公開^_^')">
</a>
</div>
<br>
<span ng-hide = "root.data.t[root.data.c.planNow].mainImg">
貼一張照片(檔案大小:100KB以下)
<input class="hidden" type="file" fileread="root.data.t[root.data.c.planNow].mainImg" accept="image/*" capture="camera" id="file-upload" />
</span>
</div>
<div id = "timeline" class = "draw noSelect">
<div ng-repeat = "y in ys">
<div ng-repeat = "x in xs" class = "px" style = "
top : {{y*10}}px; left : {{x*10}}px;
background-color: {{
(root.data.t[root.data.c.planNow].timeline[x] == y && 'rgb(' + (50 + x*3) + ',' + (255 - y *10 - x*3) + ',50)' ) || '#cfc' }}
" ng-mouseover = "draw($event,y,x,root.data.c.planNow,colorNow)"
ng-dblclick = "resetDraw(root.data.c.planNow)"
>
</div>
</div>
</div>
<div style="text-align:right">
成長軸線:我今年<input type = "number" ng-model = "root.data.t[root.data.c.planNow].age" />歲
</div>
<hr>
<textarea rows= '22' cols = '52' ng-model = "root.data.t[root.data.c.planNow]['自傳']"
ng-focus = " root.data.t[root.data.c.planNow]['自傳'] = hintToNull(root.data.t[root.data.c.planNow]['自傳']) "
ng-blur = "root.data.t[root.data.c.planNow]['自傳'] = root.data.t[root.data.c.planNow]['自傳'] || hintData.t[root.data.c.planNow]['自傳'] "
>
</textarea>
</div>
<div id ='page2' ng-show = "root.data.c.pageNow == '學習風格' && (!tube || !lock || sandbox || root.data.c.share[root.data.c.pageNow])">
<textarea rows= '8' cols = '45'
ng-model = 'root.data.t[root.data.c.planNow]["學習風格"]'
ng-focus = " root.data.t[root.data.c.planNow]['學習風格'] = hintToNull(root.data.t[root.data.c.planNow]['學習風格']) "
ng-blur = "root.data.t[root.data.c.planNow]['學習風格'] = root.data.t[root.data.c.planNow]['學習風格'] || hintData.t[root.data.c.planNow]['學習風格'] "
> </textarea>
<span ng-show = "tube"
ng-bind = "(root.data.c.share[root.data.c.planNow]['學習風格'] && '公開分享學習風格') || '不公開學習風格'">
<a id = "info" class = "msg-icon msg-icon-info"
onclick = "alert('個人檔案中的學習風格,可選擇公開或不公開^_^')">
</a>
</span>
<ul>「視-聽-讀-作」參照
<li><input type = "checkbox" ng-model = "root.data.t[root.data.c.planNow].styleV" />視覺:我喜歡看圖象來學習<br/><br/>
<li><input type = "checkbox" ng-model = "root.data.t[root.data.c.planNow].styleA" />聽覺:我喜歡聽聲音來學習<br/><br/>
<li><input type = "checkbox" ng-model = "root.data.t[root.data.c.planNow].styleR" />閱讀:我喜歡閱讀文字來學習<br/><br/>
<li><input type = "checkbox" ng-model = "root.data.t[root.data.c.planNow].styleK" />動作:我喜歡實際操作來學習
</ul>
<hr>
<ul>「多元智能」
<li><input type = "checkbox" ng-model = "root.data.t[root.data.c.planNow].style01" />語文智能:我喜歡口頭語言以及運用文字書寫<br/><br/>
<li><input type = "checkbox" ng-model = "root.data.t[root.data.c.planNow].style02" />邏輯數學智能:我喜歡提出問題並執行實驗以尋求答案,尋找事物的規律及邏輯順序<br/><br/>
<li><input type = "checkbox" ng-model = "root.data.t[root.data.c.planNow].style03" />空間智能:我對色彩、線條、形狀、形式、空間及它們之間關係的敏感性很高<br/><br/>
<li><input type = "checkbox" ng-model = "root.data.t[root.data.c.planNow].style04" />肢體動覺智能:我善於運用整個身體來表達想法和感覺,以及運用雙手靈巧地生產或改造事物<br/><br/>
<li><input type = "checkbox" ng-model = "root.data.t[root.data.c.planNow].style05" />音樂智能:我能察覺、辨別、改變和表達音樂,對節奏、音調、旋律或音色很敏銳<br/><br/>
<li><input type = "checkbox" ng-model = "root.data.t[root.data.c.planNow].style06" />人際智能:我喜歡參與團體性質的活動,較願意找別人幫忙或教人如何做事,在人群中感到舒服自在<br/><br/>
<li><input type = "checkbox" ng-model = "root.data.t[root.data.c.planNow].style07" />內省智能:我能自我瞭解,意識到自己內在情緒、意向、動機、脾氣和欲求,以及自律、自知和自尊的能力<br/><br/>
<li><input type = "checkbox" ng-model = "root.data.t[root.data.c.planNow].style08" />自然觀察智能:我能認識植物、動物和其他自然環境,能在陌生的情境中自在探索。<br/><br/>
</ul>
<hr>
<ul>「整體-分析」
<li><input name = "whole" type = "radio" ng-model = "root.data.t[root.data.c.planNow].styleWhole" value="Whole"/>
整體學習:我喜歡一次瞭解一個整體的輪廊,再進入部份<br/><br/>
<li><input name = "whole" type = "radio" ng-model = "root.data.t[root.data.c.planNow].styleWhole" value="Part"/>
分析學習:我喜歡一次瞭解一個部份,再進入整體<br/><br/>
<li><input name = "whole" type = "radio" ng-model = "root.data.t[root.data.c.planNow].styleWhole" value="Both" />
綜合學習:先瞭解整體或部份,我都可以學得很好<br/><br/>
</ul>
</div>
<div id ='page3' ng-show = "root.data.c.pageNow == '學習主題與領域'">
<div class="noPrint">
<textarea id = "y" rows = "3" cols = "25"
ng-model = "addTopic" ng-keydown = "adTPC($event,'addTopic','主題');" placeholder = "寫上新主題,再按Enter新增"> </textarea>
<span ng-repeat = "t in root.data.t[root.data.c.planNow]['主題']"> <a id = "x" ng-click = "root.data.t[root.data.c.planNow]['主題'] = removeElem(root.data.t[root.data.c.planNow]['主題'], t)">{{t}}✘</a></span>
<br>
<span id = "x" ng-click = "help['主題'] = false" ng-show = "help['主題']">
<ul>
<li>您的學習主題可以自訂好幾項,範圍不限。
<li>例如修車、養昆蟲、寫程式、打籃球、繪畫...都可以。
<li>先想自己要做什麼,再去和課綱上的七大領域,對照打勾,看看是不是都有。
<li>如果同一個主題,和許多領域都有關,可以在一行中,打好幾個勾。</ul> </span>
<hr>
</div>
<table>
<tr>
<th style="line-height: 50px;">
<span style = "position:relative; top: 10px;">政府課綱</span>
<span style = "position:relative; top: 5px;">\</span> 自訂主題
</th>
<th ng-repeat = "t in root.data.t[root.data.c.planNow]['主題']"> {{t}}</th>
</tr>
<tr ng-repeat = "a in sevenFields" ng-show = "root.data.t[root.data.c.planNow].enable7F">
<th>{{a}}</th>
<td ng-repeat = "t in root.data.t[root.data.c.planNow]['主題']">
<!-- <input type = "checkbox" ng-model ="root.data.t[root.data.c.planNow].correlation[a+t]"> -->
<a id = "aCheckbox" class="{{root.data.t[root.data.c.planNow].correlation[a+t] || 'false noPrint' }}"
ng-click="root.data.t[root.data.c.planNow].correlation[a+t] = !root.data.t[root.data.c.planNow].correlation[a+t]">
{{(root.data.t[root.data.c.planNow].correlation[a+t] && '✓') || ' '}}
</a>
<!-- <span class= "clipOnly"> {{ root.data.t[root.data.c.planNow].correlation[a+t] && "✓" || ''}} </span> -->
</tr>
<tr ng-repeat = "f in root.data.t[root.data.c.planNow].fields">
<th>{{f}}</th>
<td ng-repeat = "t in root.data.t[root.data.c.planNow]['主題']">
<a id = "aCheckbox" class="{{root.data.t[root.data.c.planNow].correlation[f+t] || 'false noPrint' }}"
ng-click="root.data.t[root.data.c.planNow].correlation[f+t] = !root.data.t[root.data.c.planNow].correlation[f+t]">
{{(root.data.t[root.data.c.planNow].correlation[f+t] && '✓') || ' '}}
</a>
</tr>
</table>
<div ng-show = "root.data.t[root.data.c.planNow].enable7F">
<span id = "status" class = "noPrint" ng-show = "count(root.data.t[root.data.c.planNow].correlation, sevenFields, root.data.t[root.data.c.planNow]['主題']) > 0">尚餘{{count(root.data.t[root.data.c.planNow].correlation, sevenFields, root.data.t[root.data.c.planNow]['主題'])}}個領域 </span>
<span id = "status" class = "noPrint" ng-hide= "count(root.data.t[root.data.c.planNow].correlation, sevenFields, root.data.t[root.data.c.planNow]['主題']) > 0">都對到了!!</span>
</div>
<div class="noPrint">
<br/>
<br/>
<input type = "checkbox" ng-model = "root.data.t[root.data.c.planNow].enable7F" /> 七大領域
<br/>
<br/>
<textarea id = "y" rows = "3" cols = "25"
ng-model = "addField" ng-keydown = "adTPC($event, 'addField', 'fields');" placeholder = "寫上新領域,再按Enter新增"> </textarea>
<span ng-repeat = "f in root.data.t[root.data.c.planNow].fields"> <a id = "x" ng-click = "root.data.t[root.data.c.planNow].fields = removeElem(root.data.t[root.data.c.planNow].fields, f)">{{f}}✘</a></span>
</div>
</div>
<div id ='page4' ng-show = "root.data.c.pageNow == '一週節奏'">
<table ng-style=" root.data.c.fontDT| makeCss:'font-size':'%' " >
<tr>
<th></th>
<th></th>
<th ng-repeat = "d in ['日','一','二','三','四','五','六']">{{d}}</th>
</tr>
<tr ng-repeat = "j in root.data.c.goldTimes ">
<th
ng-mouseover = "onlyTrue(focusCol,'h')"
rowspan="{{j.fs}}"
style="display : {{j.fd}}"
>
{{ j.k | noDigit }}
</th>
<th
ng-mouseover = "onlyTrue(focusCol,'h')">
{{ j.t }}
</th>
<td ng-repeat = "d in ['日','一','二','三','四','五','六']"
ng-mouseover = "focusCol = onlyTrue(focusCol,d)"
rowspan="{{
(focusCol[d] && 1) ||
(d | countRowSpan:j.k:root.data.t[root.data.c.planNow].schedule:root.data.c.goldTimes)
}}" style = " display: {{
(focusCol[d] && true) ||
(d | countRowSpan:j.k:root.data.t[root.data.c.planNow].schedule:root.data.c.goldTimes) || 'none' }} ">
<span ng-bind = "root.data.c[root.data.t[root.data.c.planNow].schedule[d+j.k]] || root.data.t[root.data.c.planNow].schedule[d+j.k]"
ng-hide = "focusCol[d]"></span>
<select ng-model = "root.data.t[root.data.c.planNow].schedule[d+j.k]"
ng-show = "focusCol[d]"
value="{{root.data.t[root.data.c.planNow].schedule[d+j.k]}}">
<option value="" ng-selected=""></option>
<option ng-repeat = "tp in root.data.t[root.data.c.planNow]['主題']"
ng-selected="{{tp == root.data.t[root.data.c.planNow].schedule[d+j.k]}}"
value="{{tp}}">
{{root.data.c[tp] || tp}}
</option>
<option value="彈性">{{root.data.c['彈性'] || "彈性"}}</option>
<option value="休息">{{root.data.c['休息'] || "休息"}}</option>
</select>
</td>
</tr>
<!-- <tr ng-show = "focusCol['h']">
<th colspan="8">
<input id = "y" ng-model = "newJ" placeholder = "新增時段"
ng-keypress = "mayBePushDJ($event, newJ)"
/>
<a id = "y" ng-click = "root.data.c.dayTimes.push(newJ); newJ = ''">新增</a>
</th>
</tr> -->
</table>
<div class="noPrint">
<span style = "display:inline-block;">
字體大小 → <input type = "number" ng-model = "root.data.c.fontDT">%
</span><br/>
<span style = "display:inline-block;">
休息 → <input ng-model = "root.data.c['休息']" placeholder = "自訂記號">
</span><br/>
<span style = "display:inline-block;">
彈性 → <input ng-model = "root.data.c['彈性']" placeholder = "自訂記號">
</span><br/>
<span style = "display:inline-block;" ng-repeat = "tp in root.data.t[root.data.c.planNow]['主題']">
{{tp}} → <input ng-model = "root.data.c[tp]" placeholder = "自訂記號">
<!--
<input ng-model = ""
placeholder = "自訂背景色"> -->
</span>
<!--dayTime-->
<hr>
<span style = "display:inline-block;" ng-repeat = "j in root.data.c.dayTimes">
{{j}} → <input ng-model = "root.data.c[j]"
ng-keypress = "updateGold()"
placeholder = "可自訂時間">
</span><br/>
<button ng-click = "updateGold()">更新</button>
</div>
</div>
<div id ='page5' ng-show = "root.data.c.pageNow == '進度與目標'">
<div class ="noPrint">
<select ng-model = "timeT" ng-init = "timeT = 'm'">
<option value="m">月進度</option>
<!-- <option value="y">年進度</option> -->
<!-- <option value="w">週進度</option> -->
</select>
自<input type="number" ng-model = "root.data.t[root.data.c.planNow].shift"/>月起
<br/>
字體大小 → <input type = "number" ng-model = "root.data.c.fontTT">%
<input type = "checkbox" ng-model = "root.data.t[root.data.c.planNow].showFields" />
<input type = "checkbox" ng-model = "root.data.t[root.data.c.planNow].outCheck" />
</div>
<table ng-style=" root.data.c.fontDT| makeCss:'font-size':'%' " >
<tr>
<th></th>
<th ng-hide = "root.data.t[root.data.c.planNow].showFields" ng-repeat = "tp in root.data.t[root.data.c.planNow]['主題']">{{tp}}</th>
<th ng-show = "root.data.t[root.data.c.planNow].showFields" ng-repeat = "tp in root.data.t[root.data.c.planNow].fields">{{tp}}</th>
</tr>
<tr ng-show = "root.data.t[root.data.c.planNow].outCheck">
<th>自學評鑑項目</th>
<td ng-hide = "root.data.t[root.data.c.planNow].showFields" ng-repeat = "tp in root.data.t[root.data.c.planNow]['主題']">
<span ng-repeat = "m in ['口頭說明','學習檔案','教師評量','家長自評','考試檢定']">
<span id = "present" class = "{{root.data.t[root.data.c.planNow].checkGoal[tp+m] || 'false noPrint' }}">
{{m}}
<a id = "aCheckbox" class="{{root.data.t[root.data.c.planNow].checkGoal[tp+m] }}"
ng-click="root.data.t[root.data.c.planNow].checkGoal[tp+m] = !root.data.t[root.data.c.planNow].checkGoal[tp+m]">
{{(root.data.t[root.data.c.planNow].checkGoal[tp+m] && '✓') || ''}}
</a></span><br>
</span>
<span id = "present">
<textarea cols="4" rows="1" ng-model = "root.data.t[root.data.c.planNow].checkGoal[tp+'自訂評量']" ng-show = "root.data.t[root.data.c.planNow].checkGoal[tp+'自訂']">
</textarea>
<a id = "aCheckbox" class="{{root.data.t[root.data.c.planNow].checkGoal[tp+'自訂'] }}"
ng-click="root.data.t[root.data.c.planNow].checkGoal[tp+'自訂'] = !root.data.t[root.data.c.planNow].checkGoal[tp+'自訂']">
{{(root.data.t[root.data.c.planNow].checkGoal[tp+'自訂'] && '✓') || ''}}
</a>
</span>
</td>
<td ng-show = "root.data.t[root.data.c.planNow].showFields" ng-repeat = "tp in root.data.t[root.data.c.planNow].fields">
<!-- Dirty -->
<span ng-repeat = "m in ['口頭說明','學習檔案','教師評量','家長自評','考試檢定']">
<span id = "present" class = "{{root.data.t[root.data.c.planNow].checkGoal[tp+m] || 'false noPrint' }}">
{{m}}
<a id = "aCheckbox" class="{{root.data.t[root.data.c.planNow].checkGoal[tp+m] }}"
ng-click="root.data.t[root.data.c.planNow].checkGoal[tp+m] = !root.data.t[root.data.c.planNow].checkGoal[tp+m]">
{{(root.data.t[root.data.c.planNow].checkGoal[tp+m] && '✓') || ''}}
</a></span><br>
</span>
<span id = "present">
<textarea cols="4" rows="1" ng-model = "root.data.t[root.data.c.planNow].checkGoal[tp+'自訂評量']" ng-show = "root.data.t[root.data.c.planNow].checkGoal[tp+'自訂']">
</textarea>
<a id = "aCheckbox" class="{{root.data.t[root.data.c.planNow].checkGoal[tp+'自訂'] }}"
ng-click="root.data.t[root.data.c.planNow].checkGoal[tp+'自訂'] = !root.data.t[root.data.c.planNow].checkGoal[tp+'自訂']">
{{(root.data.t[root.data.c.planNow].checkGoal[tp+'自訂'] && '✓') || ''}}
</a>
</span>
<!-- Dirty -->
</td>
</tr>
<tr ng-repeat = "j in calanD[timeT] | shifted:root.data.t[root.data.c.planNow].shift">
<th>
{{j}}
</th>
<td ng-hide = "root.data.t[root.data.c.planNow].showFields" ng-repeat = "tp in root.data.t[root.data.c.planNow]['主題']"
ng-mouseover = "focusCol = onlyTrue(focusCol,tp)"
style = "width:150px"
>
<strong> {{tp + j}} </strong><hr>
<span ng-hide = "focusCol[tp]" ng-bind = "root.data.t[root.data.c.planNow].goal[tp + j]"></span>
<textarea ng-show = "focusCol[tp]" cols="4" rows="6"
ng-model = "root.data.t[root.data.c.planNow].goal[tp + j]"
onfocus="$(this).attr('cols', 6)" onblur="$(this).attr('cols', 4)" placeholder= "目標或記錄"></textarea>
<br>
<input type = "checkbox" ng-model = "root.data.t[root.data.c.planNow].checkGoal[tp+j]" ng-show = "root.data.t[root.data.c.planNow].goal[tp + j]"/>
<span class = "clipOnly"> {{ root.data.t[root.data.c.planNow].checkGoal[tp+j] && "✓" || ''}} </span>
<span ng-show = "root.data.t[root.data.c.planNow].checkGoal[tp+j]">成功</a>
</td>
<!--Dirty-->
<td ng-show = "root.data.t[root.data.c.planNow].showFields" ng-repeat = "tp in root.data.t[root.data.c.planNow].fields"
ng-mouseover = "focusCol = onlyTrue(focusCol,tp)"
style = "width:150px"
>
{{tp + j}} <br><br>
<span ng-hide = "focusCol[tp]" ng-bind = "root.data.t[root.data.c.planNow].goal[tp + j]"></span>
<textarea ng-show = "focusCol[tp]" cols="4" rows="6"
ng-model = "root.data.t[root.data.c.planNow].goal[tp + j]"
onfocus="$(this).attr('cols', 6)" onblur="$(this).attr('cols', 4)" placeholder= "目標"></textarea>
<br>
<input type = "checkbox" ng-model = "root.data.t[root.data.c.planNow].checkGoal[tp+j]" ng-show = "root.data.t[root.data.c.planNow].goal[tp + j]"/>
<span class = "clipOnly"> {{ root.data.t[root.data.c.planNow].checkGoal[tp+j] && "✓" || ''}} </span>
<span ng-show = "root.data.t[root.data.c.planNow].checkGoal[tp+j]">成功</a>
</td>
<!--Dirty-->
</tr>
</table>
</div>
<div id ='page6' ng-show = "root.data.c.pageNow == '學習支持與資源' ">
<span id = "x" ng-click = "help['學習支持與資源'] = false" ng-show = "help['學習支持與資源']">
<ul>
<li>你不一定要只在家裡或社區,自學生也可以規畫一部份時間,在學校上課。
<li>不僅可以規畫在原本的學校上課,也可以去任何一所公立大學旁聽。
<li>政府的政策是,所有公立大學都開放旁聽。
</ul>
</span>
<hr>
<table>
<tr><th></th><th>支持與資源</th></tr>
<tr ng-repeat = "tp in root.data.t[root.data.c.planNow]['主題']">
<th> {{tp}} </th>
<td>
<textarea cols="30" rows="8"
ng-model = "root.data.t[root.data.c.planNow].resources[tp]"
placeholder= "{{ hintSupports | tto:tp }}">
</textarea>
</td>
</tr>
</table>
</div>
<div id ='page7' ng-show = "root.data.c.pageNow == '希望支援' ">
<span id = "x" ng-click = "help['希望支援'] = false" ng-show = "help['希望支援']">
<ul>
<li>自學生也具有正式的學生身份。
<li>您可以部份時間到學校上課。
<li>您可以使用學校的設備。
<li>您可以使用政府公家單位的教育資源,例如圖書館和博物館。
<li>您可以到公立大學旁聽。
</ul>
</span>
<hr>
<textarea rows= '12' cols = '30'
ng-model = 'root.data.t[root.data.c.planNow].callHelp'
ng-focus = " root.data.t[root.data.c.planNow].callHelp = hintToNull(root.data.t[root.data.c.planNow].callHelp) "
ng-blur = "root.data.t[root.data.c.planNow].callHelp = root.data.t[root.data.c.planNow].callHelp || hintData.t[root.data.c.planNow].callHelp "> </textarea>
<!-- 糊糊地址 Join 自學2.0 -->
</div>
<div id ='feedback' ng-show = "root.data.c.pageNow == '意見箱' ">
〈自學2.0計畫編輯器〉的功能,我覺得:<br/>
<input name = "function" type = "radio" ng-model = "root.data.feedback.function" value="5"/>非常好
<input name = "function" type = "radio" ng-model = "root.data.feedback.function" value="4"/>好
<input name = "function" type = "radio" ng-model = "root.data.feedback.function" value="2"/>待改進
<input name = "function" type = "radio" ng-model = "root.data.feedback.function" value="1"/>非常待改進
<br>
<span ng-show = "root.data.feedback.function < 3">具體建議:
<textarea rows= '4' cols = '30' ng-model = "root.data.feedback.functionText" >
</textarea>
</span>
<hr>
〈自學2.0計畫編輯器〉的畫面,我覺得:<br/>
<input name = "style" type = "radio" ng-model = "root.data.feedback.style" value="5"/>非常好
<input name = "style" type = "radio" ng-model = "root.data.feedback.style" value="4"/>好
<input name = "style" type = "radio" ng-model = "root.data.feedback.style" value="2"/>待改進
<input name = "style" type = "radio" ng-model = "root.data.feedback.style" value="1"/>非常待改進
<br>
<span ng-show = "root.data.feedback.style < 3">具體建議:
<textarea rows= '4' cols = '30' ng-model = "root.data.feedback.styleText" >
</textarea>
</span>
<hr>
<textarea rows= '6' cols = '30'
ng-model = "root.data.feedback.text" placeholder = "其他您想說的話">
</textarea>
<hr>
<h3>邀約志願者</h3>
<p>自學2.0是一個非營利的「教育-學習」專案。</p>
<p>不為什麼,只為著手實現一個未來:</p>
<p>任何年段、任何家庭背景的人都可以適性學習,想學習的人都能尋得好的支持和資源。自學普及化。</p>
<p>邀請您參與共創。</p>
<h3>協力志願者邀約:</h3>
<ul>
<li>自學社群親師生
<br/>→具體經驗
<br/><br/>
<li>網路視覺設計志願者
<br/>→樣式設計
<br/><br/>
<li>網路後端設計志願者
<br/>→資料庫設計
<br/><br/>
<li>網路前端設計志願者
<br/>→使用者經驗設計
<br/><br/>
<li>行動應用設計志願者
<br/>→手機版App開發
</ul>
意者請洽:自學2.0專案發起人 唐宗浩 bestian@gmail.com
<br/>
*設計志願者,請附上您的的<a href = "https://github.com/" target="_blank">Github ID</a>,謝謝!
</div>
</div>
<div id='popup-content' popup='popURL' class = "{{pop}}" ng-mouseout = "pop = false">
<iframe id ="myframe" width = "100%" height = "100%">
</iframe>
</div>
</body>
<script type="text/javascript">
$(document).ready(function(){
$('.noSelect').disableSelection();
$('.flashStart').fadeOut(6000);
// $('.flashStart').css('z-index', 0);
});
var ctt = function(t,p,clock){
return t + p*1000*60*60*24 - clock;
}
var timeToDay = function(t) {
return Math.floor(t / (1000*60*60*24));
}
var editApp = new angular.module('editApp',["firebase"]);
editApp.config(['$compileProvider', function($compileProvider) { // fix unsafe bug
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|file|tel|data):/);
}]).filter('has',function(){
return function(list, x){
return list.filter(function(str){return (str.indexOf(x) > -1) || (str.indexOf('all') > -1) })
}
}).filter('makeCss',function(){
return function(a,k,o){
var ans = {};
ans[k] = a+o;
return ans;
}
}).filter('noDigit',function(){
return function(str){
return str.replace(/\d/g,'')
}
}).filter('invis',function(){
return function(list, x){
return list.map(function(str){return str.replace(x+',', '').replace('all,', '')});
}
}).filter('forDownload',function(){
return function(obj){
return "data:text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(obj))
} //的學習計劃.json
}).filter('forDownloadName',function(){
return function(str){
if (!str) {str = '' } else {str += '的'};
return str+'學習計劃.plan.json';
}
return function(list, x){
var ans = [];
var m = list.length;
for (var i = 0; i < m; i++) {
var k = (x+i-1) % m;
ans.push(list[k]);
};
return ans;
}
}).filter('countRowSpan',function(){
return function(d,j,schedule,rowObjs){
var inx;
for (var i = 0; i < rowObjs.length; i++) {
if (rowObjs[i].k == j) {
inx = i;
break;
}
};
var ans = (schedule[d + j] && 1) || 0;
if (inx ==0 || inx == rowObjs.length) ans = 1;
if (ans == 0 ) return;
for (var i = inx+1; i < rowObjs.length; i++) {
var jj = rowObjs[i].k;
if ( schedule[d + jj] ) { break } else { ans++; }
};
return ans;
}
}).filter('localTime',function(){
return function(t){
var d = new Date(t);
l = d.toLocaleString();
return t ? l.replace(/\[.*\]/,'') : "未創建";
}
}).filter('countTime',function(){
return ctt;
}).filter('showRemTime',function(){
return function(t){
return t ? timeToDay(t) +"天^_^" : "很多時間^_^";
}
}).filter('tto',function(){
return function(s,i){
return s.replace(/t/g,i);
}
}).filter('shifted',function(){
return function(list,num){
var ansList = new Array;
for (var i = num-1; i < list.length; i++) {
ansList.push(list[i % list.length]);
};
return ansList;
}
}).directive('popup', function() {