Permalink
Browse files

daisy

  • Loading branch information...
1 parent 5fbef88 commit 4a79b86602f7e1f3cf36a299c7996c47b4bdedd2 YuhangGe committed Apr 1, 2012
Showing with 1,071 additions and 726 deletions.
  1. +12 −3 char_width.php
  2. BIN char_width_table.txt
  3. +0 −218 css/layout.css
  4. +1 −1 css/style.css
  5. BIN data/DataManager.exe
  6. +1 −0 data/Pull AsusSupernote.cmd
  7. 0 data/books/.nomedia
  8. BIN data/books/1325331787780/1325331787829/Doodle_Items
  9. BIN data/books/1325331787780/1325331787829/Items
  10. BIN data/books/1325331787780/1325331787829/SuperNoteGallery1329316297881.png
  11. BIN data/books/1325331787780/1325331787829/Thumb
  12. BIN data/books/1325331787780/1325331787990/Doodle_Items
  13. BIN data/books/1325331787780/1325331787990/Items
  14. BIN data/books/1325331787780/1325331787990/SuperNoteGallery1325330024033.png
  15. BIN data/books/1325331787780/1325331787990/SuperNoteGallery1329219143475.png
  16. BIN data/books/1325331787780/1325331787990/SuperNoteGallery1329219230230.png
  17. BIN data/books/1325331787780/1325331787990/SuperNoteGallery1329223656513.png
  18. BIN data/books/1325331787780/1325331787990/Thumb
  19. BIN data/books/1325331787780/1325331788144/Doodle_Items
  20. BIN data/books/1325331787780/1325331788144/Items
  21. BIN data/books/1325331787780/1325331788144/SuperNoteGallery1328622143186.jpg
  22. BIN data/books/1325331787780/1325331788144/SuperNoteGallery1328622165321.jpg
  23. BIN data/books/1325331787780/1325331788144/SuperNoteGallery1328622189785.jpg
  24. BIN data/books/1325331787780/1325331788144/SuperNoteGallery1328622210781.jpg
  25. BIN data/books/1325331787780/1325331788144/SuperNoteGallery1328623921834.jpg
  26. BIN data/books/1325331787780/1325331788144/SuperNoteGallery1329219450173.png
  27. BIN data/books/1325331787780/1325331788144/SuperNoteGallery1329219472493.png
  28. BIN data/books/1325331787780/1325331788144/SuperNoteGallery1329219493316.png
  29. BIN data/books/1325331787780/1325331788144/SuperNoteGallery1329219509317.png
  30. BIN data/books/1325331787780/1325331788144/SuperNoteGallery1329219533198.png
  31. BIN data/books/1325331787780/1325331788144/SuperNoteGallery1329219566638.png
  32. BIN data/books/1325331787780/1325331788144/Thumb
  33. BIN data/books/1325331787780/1325331788268/Doodle_Items
  34. BIN data/books/1325331787780/1325331788268/Items
  35. BIN data/books/1325331787780/1325331788268/SuperNoteGallery1329219658360.png
  36. BIN data/books/1325331787780/1325331788268/SuperNoteGallery1329710318453.png
  37. BIN data/books/1325331787780/1325331788268/SuperNoteGallery1329710571797.png
  38. BIN data/books/1325331787780/1325331788268/SuperNoteGallery1329710600731.png
  39. BIN data/books/1325331787780/1325331788268/Thumb
  40. BIN data/books/1325331787780/1325331788399/Doodle_Items
  41. BIN data/books/1325331787780/1325331788399/Items
  42. BIN data/books/1325331787780/1325331788399/SuperNoteGallery1329219744625.png
  43. BIN data/books/1325331787780/1325331788399/SuperNoteGallery1329219766512.png
  44. BIN data/books/1325331787780/1325331788399/SuperNoteGallery1329219784187.png
  45. BIN data/books/1325331787780/1325331788399/SuperNoteGallery1329219810839.png
  46. BIN data/books/1325331787780/1325331788399/SuperNoteGallery1329219831388.png
  47. BIN data/books/1325331787780/1325331788399/Thumb
  48. BIN data/books/1325331787780/1325331788494/Doodle_Items
  49. BIN data/books/1325331787780/1325331788494/Items
  50. BIN data/books/1325331787780/1325331788494/SuperNoteGallery1329794358241.png
  51. BIN data/books/1325331787780/1325331788494/SuperNoteGallery1329794400230.png
  52. BIN data/books/1325331787780/1325331788494/Thumb
  53. BIN data/books/1325331787780/1325331788568/Doodle_Items
  54. BIN data/books/1325331787780/1325331788568/Items
  55. BIN data/books/1325331787780/1325331788568/SuperNoteGallery1329220863109.png
  56. BIN data/books/1325331787780/1325331788568/SuperNoteGallery1329220877311.png
  57. BIN data/books/1325331787780/1325331788568/SuperNoteGallery1329220895890.png
  58. BIN data/books/1325331787780/1325331788568/SuperNoteGallery1329220922900.png
  59. BIN data/books/1325331787780/1325331788568/Thumb
  60. BIN data/books/1325331787780/1325331788663/Doodle_Items
  61. BIN data/books/1325331787780/1325331788663/Items
  62. BIN data/books/1325331787780/1325331788663/SuperNoteGallery1329221532044.png
  63. BIN data/books/1325331787780/1325331788663/SuperNoteGallery1329221588850.png
  64. BIN data/books/1325331787780/1325331788663/Thumb
  65. BIN data/books/1325331787780/1325331789555/Doodle_Items
  66. BIN data/books/1325331787780/1325331789555/Items
  67. BIN data/books/1325331787780/1325331789555/SuperNoteGallery1329221770335.png
  68. BIN data/books/1325331787780/1325331789555/SuperNoteGallery1329793208247.png
  69. BIN data/books/1325331787780/1325331789555/Thumb
  70. BIN data/books/1325331787780/1325331789658/Doodle_Items
  71. BIN data/books/1325331787780/1325331789658/Items
  72. BIN data/books/1325331787780/1325331789658/SuperNoteGallery1329221880617.png
  73. BIN data/books/1325331787780/1325331789658/SuperNoteGallery1329221899369.png
  74. BIN data/books/1325331787780/1325331789658/Thumb
  75. BIN data/books/1325331787780/1325331789768/Doodle_Items
  76. BIN data/books/1325331787780/1325331789768/Items
  77. BIN data/books/1325331787780/1325331789768/SuperNoteGallery1329295855121.png
  78. BIN data/books/1325331787780/1325331789768/Thumb
  79. BIN data/books/1325331787780/1333241018552/Doodle_Items
  80. BIN data/books/1325331787780/1333241018552/Thumb
  81. BIN data/books/1325331787780/1333241049986/Doodle_Items
  82. BIN data/books/1325331787780/1333241049986/Thumb
  83. BIN data/books/1333230142980/1333230142981/Items
  84. BIN data/books/1333230142980/1333230142981/Thumb
  85. BIN data/books/1333230142980/1333230191242/Doodle_Items
  86. BIN data/books/1333230142980/1333230191242/Items
  87. BIN data/books/1333230142980/1333230191242/SuperNoteGallery1333230225201.png
  88. BIN data/books/1333230142980/1333230191242/Thumb
  89. +35 −0 data/getallbook.php
  90. +15 −0 data/getbook.php
  91. +192 −0 data/load_doodle.php
  92. +174 −0 data/load_item.php
  93. +185 −0 data/openpage.php
  94. +1 −0 index.php
  95. +62 −30 js/editor/doodle.js
  96. +4 −1 js/editor/editor.js
  97. +136 −0 js/editor/element.js
  98. +1 −1 js/editor/handword.js
  99. +12 −2 js/editor/load_doodle.js
  100. +76 −52 js/editor/load_new.js
  101. +21 −94 js/editor/page.js
  102. +53 −14 js/editor/render.js
  103. +28 −1 js/editor/utility.js
  104. +27 −35 js/index.js
  105. +0 −252 js/utils.js
  106. +32 −19 load_doodle.php
  107. +3 −3 load_item.php
View
@@ -12,9 +12,18 @@ function uchr($code) {
$t_arr = explode("\n", $text);
echo count($t_arr);
$text_out = "";
-foreach($t_arr as $t){
- $text_out.= uchr((int)$t);
+$pre_t = (int)$t_arr[0];
+$c = 1;
+for($i=1;$i<count($t_arr);$i++){
+ $t=(int)$t_arr[$i];
+ if($t!=$pre_t){
+ $text_out.= uchr($c).uchr($pre_t);
+ $pre_t = $t;
+ $c = 1;
+ }else{
+ $c++;
+ }
}
-
+$text_out.= uchr($c).uchr($pre_t);
file_put_contents("char_width_table.txt", $text_out);
?>
View
Binary file not shown.
View
@@ -1,218 +0,0 @@
-body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
- margin:0;
- padding:0;
-}
-table {
- border-collapse:collapse;
- border-spacing:0;
-}
-fieldset,img {
- border:0;
-}
-address,caption,cite,code,dfn,em,strong,th,var {
- font-style:normal;
- font-weight:normal;
-}
-ol,ul {
- list-style:none;
-}
-caption,th {
- text-align:left;
-}
-h1,h2,h3,h4,h5,h6 {
- font-size:100%;
- font-weight:normal;
-}
-q:before,q:after {
- content:'';
-}
-abbr,acronym { border:0;
-}
-html, body {
- background-color: #fff;
- font-family: Arial, Helvetica, sans-serif;
- font-size: 12px;
- line-height: 18px;
- color: #52697E;
-}
-body {
- text-align: center;
- overflow: auto;
-}
-.wrapper {
- width: 700px;
- margin: 0 auto;
- text-align: left;
-}
-h1 {
- font-size: 21px;
- height: 47px;
- line-height: 47px;
- text-transform: uppercase;
-}
-.navigationTabs {
- height: 23px;
- line-height: 23px;
- border-bottom: 1px solid #ccc;
-}
-.navigationTabs li {
- float: left;
- height: 23px;
- line-height: 23px;
- padding-right: 3px;
-}
-.navigationTabs li a{
- float: left;
- dispaly: block;
- height: 23px;
- line-height: 23px;
- padding: 0 10px;
- overflow: hidden;
- color: #52697E;
- background-color: #eee;
- position: relative;
- text-decoration: none;
-}
-.navigationTabs li a:hover {
- background-color: #f0f0f0;
-}
-.navigationTabs li a.active {
- background-color: #fff;
- border: 1px solid #ccc;
- border-bottom: 0px solid;
-}
-.tabsContent {
- border: 1px solid #ccc;
- border-top: 0px solid;
- width: 698px;
- overflow: hidden;
-}
-.tab {
- padding: 16px;
- display: none;
-}
-.tab h2 {
- font-weight: bold;
- font-size: 16px;
-}
-.tab h3 {
- font-weight: bold;
- font-size: 14px;
- margin-top: 20px;
-}
-.tab p {
- margin-top: 16px;
- clear: both;
-}
-.tab ul {
- margin-top: 16px;
- list-style: disc;
-}
-.tab li {
- margin: 10px 0 0 35px;
-}
-.tab a {
- color: #8FB0CF;
-}
-.tab strong {
- font-weight: bold;
-}
-.tab pre {
- font-size: 11px;
- margin-top: 20px;
- width: 668px;
- overflow: auto;
- clear: both;
-}
-.tab table {
- width: 100%;
-}
-.tab table td {
- padding: 6px 10px 6px 0;
- vertical-align: top;
-}
-.tab dt {
- margin-top: 16px;
-}
-
-#colorSelector {
- position: relative;
- width: 36px;
- height: 36px;
- background: url(../images/select.png);
-}
-#colorSelector div {
- position: absolute;
- top: 3px;
- left: 3px;
- width: 30px;
- height: 30px;
- background: url(../images/select.png) center;
-}
-#colorSelector2 {
- position: absolute;
- top: 0;
- left: 0;
- width: 36px;
- height: 36px;
- background: url(../images/select2.png);
-}
-#colorSelector2 div {
- position: absolute;
- top: 4px;
- left: 4px;
- width: 28px;
- height: 28px;
- background: url(../images/select2.png) center;
-}
-#colorpickerHolder2 {
- top: 32px;
- left: 0;
- width: 356px;
- height: 0;
- overflow: hidden;
- position: absolute;
-}
-#colorpickerHolder2 .colorpicker {
- background-image: url(../images/custom_background.png);
- position: absolute;
- bottom: 0;
- left: 0;
-}
-#colorpickerHolder2 .colorpicker_hue div {
- background-image: url(../images/custom_indic.gif);
-}
-#colorpickerHolder2 .colorpicker_hex {
- background-image: url(../images/custom_hex.png);
-}
-#colorpickerHolder2 .colorpicker_rgb_r {
- background-image: url(../images/custom_rgb_r.png);
-}
-#colorpickerHolder2 .colorpicker_rgb_g {
- background-image: url(../images/custom_rgb_g.png);
-}
-#colorpickerHolder2 .colorpicker_rgb_b {
- background-image: url(../images/custom_rgb_b.png);
-}
-#colorpickerHolder2 .colorpicker_hsb_s {
- background-image: url(../images/custom_hsb_s.png);
- display: none;
-}
-#colorpickerHolder2 .colorpicker_hsb_h {
- background-image: url(../images/custom_hsb_h.png);
- display: none;
-}
-#colorpickerHolder2 .colorpicker_hsb_b {
- background-image: url(../images/custom_hsb_b.png);
- display: none;
-}
-#colorpickerHolder2 .colorpicker_submit {
- background-image: url(../images/custom_submit.png);
-}
-#colorpickerHolder2 .colorpicker input {
- color: #778398;
-}
-#customWidget {
- position: relative;
- height: 36px;
-}
View
@@ -106,7 +106,7 @@ a:hover{
background: #EBEBEB;
}
-#note-list{
+#page-list{
overflow-x : auto;
overflow-y: auto;
height: 300px;
View
Binary file not shown.
@@ -0,0 +1 @@
+adb pull /sdcard/asussupernote/data books
View
No changes.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
@@ -0,0 +1,35 @@
+<?php
+header("Content-Type: text/plain;charset=utf-8");
+
+$path = "books";
+
+$books = array();
+
+function getPages($book_id) {
+ global $path;
+ $b_path = $path . "/" . $book_id;
+ $handle = opendir($b_path);
+ $p_num = 0;
+ $pages = array();
+ while ($file = readdir($handle)) {
+ if ($file != '.' && $file != '..' && is_dir($b_path . '/' . $file)) {
+ $p_num++;
+ $pages[] = array('pageid' => $file, 'date' => '2012年4月1日');
+ }
+ }
+ return array('pagenum' => $p_num, 'pages' => $pages);
+}
+
+$handle = opendir($path);
+$i = 1;
+while ($file = readdir($handle)) {
+ if ($file != '.' && $file != '..' && is_dir($path . '/' . $file)) {
+ $b_p = getPages($file);
+ $b = array('bookid' => $file,'name'=>"笔记($i)", 'type' => 'pad', 'pagenum' => $b_p['pagenum'], 'pages' => $b_p['pages']);
+ $books[]=$b;
+ $i++;
+ }
+}
+
+echo json_encode(array('status'=>0,'books'=>$books));
+?>
View
@@ -0,0 +1,15 @@
+<?php
+$book_id = $_REQUEST['bookid'];
+$path = 'books';
+$b_path = $path . "/" . $book_id;
+$handle = opendir($b_path);
+
+$pages = array();
+while ($file = readdir($handle)) {
+ if ($file != '.' && $file != '..' && is_dir($b_path . '/' . $file)) {
+ $pages[] = array('pageid' => $file, 'date' => '2012年4月1日' ,'thumb'=> 'data/'.$b_path.'/'.$file.'/Thumb');
+ }
+}
+
+echo json_encode(array('status' => 0, 'pages' => $pages));
+?>
Oops, something went wrong.

0 comments on commit 4a79b86

Please sign in to comment.