Changeset 20110
- Timestamp:
- 09/28/08 12:14:01 (5 years ago)
- Location:
- lang/javascript/nohada
- Files:
-
- 1 removed
- 9 modified
-
css/default.css (modified) (2 diffs)
-
game.html (modified) (1 diff, 1 prop)
-
img/Thumbs.db (deleted)
-
img/obj.png (modified) (1 prop) (previous)
-
img/system.png (modified) (1 prop) (previous)
-
index.cgi (modified) (3 diffs, 1 prop)
-
jsonDB.html (modified) (3 diffs, 1 prop)
-
netacho.html (modified) (2 diffs, 1 prop)
-
textEdit.html (modified) (5 diffs, 1 prop)
-
todoJS.html (modified) (5 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/nohada/css/default.css
r19985 r20110 6 6 width: 200px; 7 7 } 8 div.select { /* キー上下で選択した場合のスタイル */8 div.select { /* キー上下で選択した場合のスタイル */ 9 9 color: #FFFFFF; 10 10 background-color: #3366FF; 11 11 } 12 div.over { /* マウスオーバ時のスタイル */12 div.over { /* マウスオーバ時のスタイル */ 13 13 background-color: #99CCFE; 14 14 } … … 17 17 position: absolute; 18 18 font-size: 90%; 19 left: 10 ;20 top: 30 ;19 left: 10px; 20 top: 30px; 21 21 } 22 22 .main { 23 23 position: absolute; 24 24 font-size: 90%; 25 left: 150; 26 top: 30; 27 25 left: 150px; 26 top: 30px; 28 27 } 29 .view {28 .view { 30 29 position: absolute; 31 30 font-size: 90%; 32 31 left: 0; 33 top: 50; 34 width: 100; 35 32 top: 50px; 33 width: 100px; 36 34 } 37 35 .sprite { 38 36 position: absolute; 39 left:0;40 top:50;37 left: 0px; 38 top: 50px; 41 39 } -
lang/javascript/nohada/game.html
- Property svn:mime-type set to text/html
r19985 r20110 13 13 <link rel="Stylesheet" type="text/css" href="css/default.css"> 14 14 </head> 15 <body id=body onload="main()" 16 onmousemove="move(event);" 15 <body id=body onload="main()" 16 onmousemove="move(event);" 17 17 onmousedown="down(event);" 18 18 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 10 10 # Database 11 11 db=>{ 12 type=>'mysql', 13 host=>'localhost', 12 type=>'mysql', 13 host=>'localhost', 14 14 name=>'nohada', 15 15 user=>'root', … … 23 23 #Application calling sequence 24 24 # 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> 27 27 # POST http://path/to/system/ 28 28 # with cmd=<ENCODED_JSON_SCRIPT> … … 40 40 if ($appName eq '') { 41 41 if($ENV{REQUEST_METHOD} eq 'POST') {$appName="jsonScript";} 42 else {$appName="view";} 43 } 42 else {$appName="view";} 43 } 44 44 my @apps=@{&NConfig::get("serverApps")}; 45 45 for (@apps) { 46 46 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"; 49 49 eval ("use $appName;"); 50 if ($@) {die($@);}51 exit;50 if ($@) {die($@);} 51 exit; 52 52 } 53 53 } -
lang/javascript/nohada/jsonDB.html
- Property svn:mime-type set to text/html
r19985 r20110 9 9 //alert(cmd); 10 10 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 } 23 22 }); 24 23 } … … 33 32 <textarea rows=10 cols=40 id=cmd> 34 33 ["GET3",{ 35 "id":["*"], 36 "category":["*"], 34 "id":["*"], 35 "category":["*"], 37 36 "content":["like","%る%"] 38 37 }] … … 60 59 ] 61 60 ["GET2",["content"], 62 {"content":["like","%る%"]}61 {"content":["like","%る%"]} 63 62 ] 64 63 ["MAKEREL","りんご","色","赤"] 65 </textarea>< /br>64 </textarea><BR> 66 65 </body></html> -
lang/javascript/nohada/netacho.html
- Property svn:mime-type set to text/html
r19985 r20110 8 8 <script src="js/tag.js"></script> 9 9 <script src="js/gui.js"></script> 10 <script> 10 <script> 11 11 except=function(e) { print("Error - ",e); }; 12 12 … … 32 32 [rmHolder,holder] 33 33 ]; 34 elem(holder,[ 34 elem(holder,[ 35 35 "span", 36 36 " id= ", qo.id , -
lang/javascript/nohada/textEdit.html
- Property svn:mime-type set to text/html
r19985 r20110 12 12 <script src="js/objEdit.js"></script> 13 13 <link rel="Stylesheet" type="text/css" href="css/default.css"> 14 <script> 14 <script> 15 15 var content=""; 16 16 var tagEditor; … … 21 21 tagEditor.setRelationFilter(function (rel) { 22 22 return rel.name!="content"; 23 23 24 24 }); 25 25 } 26 26 function nagameru() { 27 progn(28 [dbGet, {category:"memo", content:["*"]} ],29 [setView, gv("_")]30 );27 progn( 28 [dbGet, {category:"memo", content:["*"]} ], 29 [setView, gv("_")] 30 ); 31 31 } 32 32 function setView(r) { 33 33 $("view").innerHTML=""; 34 elem($("view"), 34 elem($("view"), 35 35 r.map(function (e) { 36 36 return ["span", 37 37 //[abutton,{onclick: [[yomu,e.id]]},"Edit"],["br"], 38 38 ["a", { 39 href:"javascript: ;",39 href:"javascript:void 0;", 40 40 onclick: function() {yomu(e.id);} 41 41 }, e.id], … … 52 52 } 53 53 function 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 ); 64 64 } 65 65 var obj; … … 68 68 } 69 69 function 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 next83 );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 ); 84 84 } 85 85 save.async=true; … … 98 98 if (content!=$("text").value) { 99 99 $("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 } 105 105 } else { 106 106 $("changed").innerHTML=""; 107 chgCnt=0;107 chgCnt=0; 108 108 } 109 109 } -
lang/javascript/nohada/todoJS.html
- Property svn:mime-type set to text/html
r19985 r20110 11 11 <script src="js/gui.js"></script> 12 12 <link rel="Stylesheet" type="text/css" href="css/default.css"> 13 <script> 13 <script> 14 14 // JavaScript 15 15 function findForm(form) { … … 18 18 function onLoad() { 19 19 var _={$:_}; 20 21 20 21 22 22 var fe=findForm({ 23 category: "Event", 23 category: "Event", 24 24 content: bindSuggest($("event"),$("eventS")) 25 25 }); … … 28 28 }); 29 29 var ftTmpl={ 30 category: "Todo", 30 category: "Todo", 31 31 content: bindSuggest($("todo"),$("todoS")) 32 32 }; … … 34 34 fe.watch(function (res) { 35 35 ftTmpl.id=["in",res]; 36 ft.refresh(); 36 ft.refresh(); 37 37 }); 38 38 ft.watch(function (res) { 39 39 setTodoRes(res); 40 40 }); 41 42 41 43 42 43 44 44 /*progn( 45 45 [get1, ], … … 47 47 ["FINDVALUES", _ , "=>" ]}, 48 48 [getMany, ], 49 ["setRes", _] 49 ["setRes", _] 50 50 );*/ 51 51 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)