Language
Login
Language Setting
X
English
日本語 [Japanese]
about this App
ごみの分別
useful
0
Loading...
function submitStop(e){ if (!e) var e = window.event; if(e.keyCode == 13) return false; }; function bbb() { var f = 0; var cnt = 0; var ppp = document.js.gomi.value;; var ooo = ["","","",""]; var o_out = "ごみ品名の候補は以下の通りです。<br>"+"<br>ごみ品名/分別区分/出し方など/お問い合わせ先"; var keyword = getParameterFromURL("subject"); // obtain keyword from the URL "?subject=" // Work loop $.each(LinkData.getWorks(), function(workKey, workValue) { // File loop $.each(LinkData.getFiles(workValue), function(fileKey, fileValue) { // Subject loop $.each(LinkData.getSubjects(workValue, fileValue), function(subjKey, subjValue) { f = 0; $.each( LinkData.getTriplesBySubject(workValue, fileValue, subjValue), function( tripleKey, tripleValue ) { var prop = decodeURIComponent(tripleValue.property); prop = prop.split("#"); var obj = tripleValue.object; if ( prop[1] == "品名" ) { if ( obj.indexOf(ppp) != -1) { ooo[0] = obj; f = 1; //alert(obj); } } if ( prop[1] == "分別区分" ) { if ( f == 1) { //alert(obj); ooo[1] = obj; } } if ( prop[1] == "出し方など" ) { if ( f == 1) { ooo[2] = obj; } } if ( prop[1] == "廃棄物対策課Telへのリンク" ) { if ( f == 1) { ooo[3] = obj; } } if ( prop[1] == "Index" ) { if ( f == 1){ //alert(ooo); o_out = o_out + "<br>" + ooo[0] + "/" + ooo[1] + "/" + ooo[2] + "/" + ooo[3]; cnt++; } f = 0; ooo[0] = ""; ooo[1] = ""; ooo[2] = ""; ooo[3] = ""; } }); }); }); }); var elm = document.getElementById( 'gomi_box' ) ; if ( cnt == 0 ) { elm.innerHTML = "<br>見つかりません。品名を入力し直して下さい。"; } else { elm.innerHTML = o_out; } //alert("ok"); }; // Get a parameter value in URL (e.g. ?paramString=value ) function getParameterFromURL( paramString ) { var value = ""; var topWindow = top.window.location.search; if( topWindow ){ var q = decodeURIComponent(topWindow.substring(1,topWindow.length)).split("&"); for ( var i = 0; i < q.length; i++ ){ var r = q[i].split("="); if ( r[0] == paramString ) value = r[1]; } } return value; } // Highlight keyword in the string function highlight( string, keyword ) { if ( keyword.length > 0 ) { var ss = string.split(keyword); var len = ss.length; if ( len > 1 ) { string = ss[0]; for ( i = 1; i < len; i++ ) // string += "<font color=\"red\">"+keyword+"</font>"+ss[i]; string += "<span class=\"highlight\">"+keyword+"</span>"+ss[i]; } } return string; } // get the last name of the string separated with # and / function getLastName( string ) { string = decodeURIComponent(string); var sharp = string.split("#"); var slash = sharp[sharp.length-1].split("/"); var lastName = slash[slash.length-1]; return lastName; } // return a link to Google map search function addLinkToMap( latitude, longitude ) { var s = "<br><a target=\"_blank\" href=\"http://www.google.com/maps/?q=" + latitude + "," + longitude + "\">Show map</a>"; return s; } // shortening URL e.g. http://.../123.jpg function shortenURL( url ) { url = decodeURIComponent(url); var slash = url.split("/"); var lastName = slash[slash.length-1]; return url.split(":")[0]+"://.../"+lastName; }
span.highlight {color: red;} span.propertyName {color: gray;} span.subject { color: blue; } span.object{ color: black; } body { background: white; } a, a span { text-decoration: underline; } a:hover, a span:hover { text-decoration: none; }
<script type="text/javascript"> </script> <H2>ごみの分別</H2><br> <form name="js" onContextmenu="return false"> <font size="1">出したいごみの名称を入力して下さい。:<input id="gomi" type="textbox" value="新聞紙" size="40" onKeyPress="return submitStop(event);"> <font size="1"><input type="button" value="検索" onclick="bbb()"><br> <body> <p><font size="3"><span id="gomi_box"></span></p> </body>
Preview
Input Data
ReadMe
Snapshots
LinkData Work
Table Data
ごみ出しスケジュール
Contributor:石巻市, ICT総合推進課
Update:Dec 13, 2018
1107 Downloads, 3 Applications
平成28年度 収集日程 No Title Data Name 1.地区と収集地区の対応表・・・・・・・・・Collection_area 2.ごみ出しスケジュール(1月を除く) ・・・sch_without_Jan 3.ゴミ出しスケジュール(1月) ・・・・・・sch_Jan 4.例外・・・・・・・・・・・・・・・・・・Exception 5.分別の仕方・・・・・・・・・・・・・・・Classification 6.連絡先・・・・・・・・・・・・・・・・・Contact 2016/3/10 更新 ・ごみ出しスケジュール(1月を除く) ・ごみ出しスケジュール ・例外 ・分別の仕方 2016/09/07 更新 ・全ファイル
Classification
Classification_20160907
Collection_area
Collection_area_20160907
Contact
Contact_20160907
Exception
Exception_20160907
sch_Jan
sch_Jan_20160907
sch_without_Jan
sch_without_Jan_20160907
Add LinkData work(LinkData)
Link http://app.linkdata.org/run/app1s1371i?tab=readme
jquery-1.11.2.min.js
Work
Add
Clear
insert work id or work name.