• forked:燕市Wi-Fiアプリver1.1
Import an externally hosted application
Check style

  • JavaScript
  • CSS
  • HTML
  • Images
  • Input Data
  • ReadMe
  • forked:燕市Wi-Fiアプリver1.1
  • jquery-1.7.1.min.js  
  • https://maps.googleapis.com/maps/api/js?key=AIzaSyDAbLPQ3XiDZRWkVgQJg53ywpN__Z0WLLM&sensor=false&language=ja  
  •  
  • history

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
 
/*
This is a Example program to retrieve and display the data. 
Press the Run button on the right of the screen (described the behavior of the Example program below). 
Please create a new application rewrite this program work. 
*/
 
// Implement forEach for IE
// Production steps of ECMA-262, Edition 5, 15.4.4.18
// Reference: http://es5.github.io/#x15.4.4.18
if (!Array.prototype.forEach) {
 
  Array.prototype.forEach = function(callback/*, thisArg*/) {
 
    var T, k;
 
    if (this == null) {
      throw new TypeError('this is null or not defined');
    }
 
    // 1. Let O be the result of calling toObject() passing the
    // |this| value as the argument.
    var O = Object(this);
 
    // 2. Let lenValue be the result of calling the Get() internal
    // method of O with the argument "length".
    // 3. Let len be toUint32(lenValue).
    var len = O.length >>> 0;
 
    // 4. If isCallable(callback) is false, throw a TypeError exception. 
    // See: http://es5.github.com/#x9.11
    if (typeof callback !== 'function') {
      throw new TypeError(callback + ' is not a function');
    }
 
    // 5. If thisArg was supplied, let T be thisArg; else let
    // T be undefined.
    if (arguments.length > 1) {
      T = arguments[1];
    }
 
    // 6. Let k be 0.
    k = 0;
 
    // 7. Repeat while k < len.
    while (k < len) {
 
      var kValue;
 
      // a. Let Pk be ToString(k).
      //    This is implicit for LHS operands of the in operator.
      // b. Let kPresent be the result of calling the HasProperty
      //    internal method of O with argument Pk.
      //    This step can be combined with c.
      // c. If kPresent is true, then
      if (k in O) {
 
        // i. Let kValue be the result of calling the Get internal
        // method of O with argument Pk.
        kValue = O[k];
 
        // ii. Call the Call internal method of callback with T as
        // the this value and argument list containing kValue, k, and O.
        callback.call(T, kValue, k, O);
      }
      // d. Increase k by 1.
      k++;
    }
    // 8. return undefined.
  };
}
 
data_url = "http://linkdata.org/property/rdf1s7933i"
var all_data;        
function initialize(){
    all_data = new Array();
    // データをLinkDataから取得 
    tmp_a_data = new Array();
    $.each(LinkData.getWorks(), function(workKey, workValue) {
        $.each(LinkData.getFiles(workValue), function(fileKey, fileValue) {
            $.each(LinkData.getSubjects(workValue, fileValue), function(subjKey, subjValue) {
                var tmp_data = {}
                tmp_data["id"] = subjValue;
                $.each(LinkData.getProperties(workValue, fileValue), function(propKey, propValue) {
                    $.each(LinkData.getObjects(workValue, fileValue, subjValue, propValue), function(objKey, objValue) {
                        if(propValue == "http://imi.ipa.go.jp/ns/core/rdf#名称"){
                            tmp_data["name"] = objValue;
                        }else if(propValue == "http://www.w3.org/2003/01/geo/wgs84_pos#lat"){
                            tmp_data["lat"] = objValue;
                        }else if(propValue == "http://www.w3.org/2003/01/geo/wgs84_pos#long"){
                            tmp_data["lng"] = objValue;
                        }else if(propValue == "http://imi.ipa.go.jp/ns/core/rdf#住所"){
                            tmp_data["location"] = objValue;
                        }else if(propValue == data_url + "#" + encodeURIComponent("利用時間")){
                            tmp_data["genre"] = objValue;
                        }else if(propValue == data_url + "#" + encodeURIComponent("利用日")){
                            tmp_data["capacity"] = objValue;
                        }else if(propValue == data_url + "#" + encodeURIComponent("備考")){
                            tmp_data["area"] = objValue;
                        }else if(propValue == data_url + "#" + encodeURIComponent("種別")){
                            tmp_data["wifi_type"] = objValue;
jquery-1.7.1.min.js
https://maps.googleapis.com/maps/api/js?key=AIzaSyDAbLPQ3XiDZRWkVgQJg53ywpN__Z0WLLM&sensor=false&language=ja
Playing...

jquery-1.7.1.min.js
https://maps.googleapis.com/maps/api/js?key=AIzaSyDAbLPQ3XiDZRWkVgQJg53ywpN__Z0WLLM&sensor=false&language=ja