Changeset 20110

Show
Ignore:
Timestamp:
09/28/08 12:14:01 (5 years ago)
Author:
drry
Message:
  • removed a Thumbs.db.
  • fixed and added subversion properties.
  • fixed a regex.
  • et cetera.
Location:
lang/javascript/nohada
Files:
1 removed
9 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/nohada/css/default.css

    r19985 r20110  
    66    width: 200px; 
    77} 
    8 div.select{ /* キー上下で選択した場合のスタイル */ 
     8div.select { /* キー上下で選択した場合のスタイル */ 
    99    color: #FFFFFF; 
    1010    background-color: #3366FF; 
    1111} 
    12 div.over{ /* マウスオーバ時のスタイル */ 
     12div.over { /* マウスオーバ時のスタイル */ 
    1313    background-color: #99CCFE; 
    1414} 
     
    1717    position: absolute; 
    1818    font-size: 90%; 
    19     left: 10; 
    20     top: 30; 
     19    left: 10px; 
     20    top: 30px; 
    2121} 
    2222.main { 
    2323    position: absolute; 
    2424    font-size: 90%; 
    25     left: 150; 
    26     top: 30; 
    27          
     25    left: 150px; 
     26    top: 30px; 
    2827} 
    29 .view{ 
     28.view { 
    3029    position: absolute; 
    3130    font-size: 90%; 
    3231    left: 0; 
    33     top: 50; 
    34     width: 100; 
    35          
     32    top: 50px; 
     33    width: 100px; 
    3634} 
    3735.sprite { 
    3836    position: absolute; 
    39          left:0; 
    40          top:50; 
     37    left: 0px; 
     38    top: 50px; 
    4139} 
  • lang/javascript/nohada/game.html

    • Property svn:mime-type set to text/html
    r19985 r20110  
    1313<link rel="Stylesheet" type="text/css" href="css/default.css"> 
    1414</head> 
    15 <body id=body onload="main()"  
    16   onmousemove="move(event);"  
     15<body id=body onload="main()" 
     16  onmousemove="move(event);" 
    1717  onmousedown="down(event);" 
    1818  onmouseup="up(event);" > 
  • lang/javascript/nohada/img/obj.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • lang/javascript/nohada/img/system.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • lang/javascript/nohada/index.cgi

    • Property svn:executable set to *
    r19985 r20110  
    1010# Database 
    1111  db=>{ 
    12      type=>'mysql',   
    13      host=>'localhost',  
     12     type=>'mysql', 
     13     host=>'localhost', 
    1414     name=>'nohada', 
    1515     user=>'root', 
     
    2323#Application calling sequence 
    2424# GET  http://path/to/system/?<APPNAME>/<ARGS> 
    25 # GET  http://path/to/system/?/<ARGS>  
    26 #   equiv. to GET  http://path/to/system/?view/<ARGS>  
     25# GET  http://path/to/system/?/<ARGS> 
     26#   equiv. to GET  http://path/to/system/?view/<ARGS> 
    2727# POST http://path/to/system/ 
    2828#   with cmd=<ENCODED_JSON_SCRIPT> 
     
    4040if ($appName eq '') { 
    4141  if($ENV{REQUEST_METHOD} eq 'POST') {$appName="jsonScript";} 
    42   else {$appName="view";}   
    43 }  
     42  else {$appName="view";} 
     43} 
    4444my @apps=@{&NConfig::get("serverApps")}; 
    4545for (@apps) { 
    4646  if ($appName eq $_) { 
    47     $appName =~ s/[^\w\d]//g; 
    48         print STDERR "EXEC: $appName\n"; 
     47    $appName =~ s/\W+//g; 
     48    print STDERR "EXEC: $appName\n"; 
    4949    eval ("use $appName;"); 
    50         if ($@) {die($@);} 
    51         exit; 
     50    if ($@) {die($@);} 
     51    exit; 
    5252  } 
    5353} 
  • lang/javascript/nohada/jsonDB.html

    • Property svn:mime-type set to text/html
    r19985 r20110  
    99   //alert(cmd); 
    1010   new Ajax.Request("index.cgi", { 
    11                 method: "put", 
    12                 parameters: 'cmd='+encodeURIComponent(cmd) , 
    13                 onSuccess:function(httpObj){ 
    14                    //alert(httpObj); 
    15                    //alert(httpObj.responseText); 
    16                    $("res").value=httpObj.responseText; 
    17                    lastResult=httpObj.responseText.evalJSON(  ); 
    18                     
    19                 }, 
    20                 onFailure:function(httpObj) { 
    21                    $("res").value=httpObj.responseText; 
    22                 } 
     11      method: "put", 
     12      parameters: 'cmd='+encodeURIComponent(cmd) , 
     13      onSuccess:function(httpObj){ 
     14         //alert(httpObj); 
     15         //alert(httpObj.responseText); 
     16         $("res").value=httpObj.responseText; 
     17         lastResult=httpObj.responseText.evalJSON(  ); 
     18      }, 
     19      onFailure:function(httpObj) { 
     20         $("res").value=httpObj.responseText; 
     21      } 
    2322   }); 
    2423} 
     
    3332<textarea rows=10 cols=40 id=cmd> 
    3433["GET3",{ 
    35    "id":["*"],  
    36    "category":["*"],  
     34   "id":["*"], 
     35   "category":["*"], 
    3736   "content":["like","%る%"] 
    3837}] 
     
    6059] 
    6160["GET2",["content"], 
    62        {"content":["like","%る%"]} 
     61  {"content":["like","%る%"]} 
    6362] 
    6463["MAKEREL","りんご","色","赤"] 
    65 </textarea></br> 
     64</textarea><BR> 
    6665</body></html> 
  • lang/javascript/nohada/netacho.html

    • Property svn:mime-type set to text/html
    r19985 r20110  
    88<script src="js/tag.js"></script> 
    99<script src="js/gui.js"></script> 
    10 <script>  
     10<script> 
    1111except=function(e) { print("Error - ",e); }; 
    1212 
     
    3232     [rmHolder,holder] 
    3333  ]; 
    34   elem(holder,[   
     34  elem(holder,[ 
    3535       "span", 
    3636          " id= ", qo.id , 
  • lang/javascript/nohada/textEdit.html

    • Property svn:mime-type set to text/html
    r19985 r20110  
    1212<script src="js/objEdit.js"></script> 
    1313<link rel="Stylesheet" type="text/css" href="css/default.css"> 
    14 <script>  
     14<script> 
    1515var content=""; 
    1616var tagEditor; 
     
    2121   tagEditor.setRelationFilter(function (rel) { 
    2222       return rel.name!="content"; 
    23         
     23 
    2424   }); 
    2525} 
    2626function nagameru() { 
    27   progn( 
    28    [dbGet, {category:"memo", content:["*"]} ], 
    29    [setView, gv("_")] 
    30   ); 
     27   progn( 
     28      [dbGet, {category:"memo", content:["*"]} ], 
     29      [setView, gv("_")] 
     30   ); 
    3131} 
    3232function setView(r) { 
    3333   $("view").innerHTML=""; 
    34    elem($("view"),  
     34   elem($("view"), 
    3535      r.map(function (e) { 
    3636         return ["span", 
    3737            //[abutton,{onclick: [[yomu,e.id]]},"Edit"],["br"], 
    3838            ["a", { 
    39                href:"javascript:;",  
     39               href:"javascript:void 0;", 
    4040               onclick: function() {yomu(e.id);} 
    4141            }, e.id], 
     
    5252} 
    5353function yomu(id) { 
    54   progn( 
    55    [dbGet,{id: id, content:["*"]}], 
    56    [function (o) { 
    57       obj=o[0];  
    58       $("id").innerHTML=obj.id; 
    59       $("text").value=obj.content; 
    60       content=obj.content; 
    61       tagEditor.setObjectID(obj.id); 
    62    },gv("_")] 
    63   ); 
     54   progn( 
     55      [dbGet,{id: id, content:["*"]}], 
     56      [function (o) { 
     57         obj=o[0]; 
     58         $("id").innerHTML=obj.id; 
     59         $("text").value=obj.content; 
     60         content=obj.content; 
     61         tagEditor.setObjectID(obj.id); 
     62      },gv("_")] 
     63   ); 
    6464} 
    6565var obj; 
     
    6868} 
    6969function save(next) { 
    70   if (obj==null) { 
    71     obj={category:"memo"}; 
    72   } 
    73   if (next==null) next=NOP; 
    74   obj.content=$("text").value; 
    75   progn( 
    76     [dbPut, obj], 
    77     [print, "ほぞんしました: "], 
    78     function () {content=obj.content;}, 
    79     dispID, 
    80 //    [print, gv(obj,"id")],  // ちえんひょうか 
    81 //  [print, obj.id]  //これはしっぱい 
    82     next 
    83   ); 
     70   if (obj==null) { 
     71      obj={category:"memo"}; 
     72   } 
     73   if (next==null) next=NOP; 
     74   obj.content=$("text").value; 
     75   progn( 
     76      [dbPut, obj], 
     77      [print, "ほぞんしました: "], 
     78      function () {content=obj.content;}, 
     79      dispID, 
     80//      [print, gv(obj,"id")],  // ちえんひょうか 
     81//      [print, obj.id]  //これはしっぱい 
     82      next 
     83   ); 
    8484} 
    8585save.async=true; 
     
    9898   if (content!=$("text").value) { 
    9999      $("changed").innerHTML="へんこうあり"; 
    100           chgCnt++; 
    101           if (chgCnt>5) { 
    102              chgCnt=0; 
    103                 save(); 
    104           } 
     100      chgCnt++; 
     101      if (chgCnt>5) { 
     102         chgCnt=0; 
     103        save(); 
     104      } 
    105105   } else { 
    106106      $("changed").innerHTML=""; 
    107           chgCnt=0; 
     107      chgCnt=0; 
    108108   } 
    109109} 
  • lang/javascript/nohada/todoJS.html

    • Property svn:mime-type set to text/html
    r19985 r20110  
    1111<script src="js/gui.js"></script> 
    1212<link rel="Stylesheet" type="text/css" href="css/default.css"> 
    13 <script>  
     13<script> 
    1414// JavaScript 
    1515function findForm(form) { 
     
    1818function onLoad() { 
    1919   var _={$:_}; 
    20     
    21     
     20 
     21 
    2222   var fe=findForm({ 
    23         category: "Event",  
     23        category: "Event", 
    2424        content: bindSuggest($("event"),$("eventS")) 
    2525   }); 
     
    2828   }); 
    2929   var ftTmpl={ 
    30          category: "Todo",  
     30         category: "Todo", 
    3131         content: bindSuggest($("todo"),$("todoS")) 
    3232   }; 
     
    3434   fe.watch(function (res) { 
    3535     ftTmpl.id=["in",res]; 
    36      ft.refresh();      
     36     ft.refresh(); 
    3737   }); 
    3838   ft.watch(function (res) { 
    3939     setTodoRes(res); 
    4040   }); 
    41     
    4241 
    43     
     42 
     43 
    4444   /*progn( 
    4545    [get1, ], 
     
    4747    ["FINDVALUES", _ , "=>" ]}, 
    4848    [getMany, ], 
    49     ["setRes", _]  
     49    ["setRes", _] 
    5050  );*/ 
    5151}