• forked:プリコネ3
Import an externally hosted application
Check style

  • JavaScript
  • CSS
  • HTML
  • Images
  • Input Data
  • ReadMe
  • forked:プリコネ3
  • jquery-1.7.1.min.js  
  •  
  • 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
 
/*
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. 
*/
 
 
var tm = new Array();
var ac = new Array();
var counter = 1;
 
function yomiyomi(xxx){
    tm.length = 0;
    ac.length = 0;
        var limit = 5;
        var count = 0;
        $.each(LinkData.getWorks(), function(workKey, workValue) {
            $.each(LinkData.getFiles(workValue), function(fileKey, fileValue) {
                if (fileValue == xxx){
                $.each(LinkData.getSubjects(workValue, fileValue), function(subjKey, subjValue) {
                    count = 0;
                    $.each(LinkData.getProperties(workValue, fileValue), function(propKey, propValue) {
                        if(count++ > limit) {
                            return false;
                        }
                        $.each(LinkData.getObjects(workValue, fileValue, subjValue, propValue), function(objKey, objValue) {
                            if (counter%2 == 1){
                                (tm).push(objValue);
                                counter++;
                            }else{
                                (ac).push(objValue);
                                counter++;
                            }
                        });
                    });
                });
                }
            });
        });
}
 
function kakikaki(){
    $("#result").remove();
    $("body").append("<div id='result'></div>");
    $.each(tm, function(index, value){
        $("#result").append(index + ":" + value).append('<br />');
    });
}
 
 
$(function(){
    $("li").click(function(){
        var id = $(this).attr("id");
        var n = "pricone_" + id + "2";
        yomiyomi(n);
        kakikaki();
    });
});
 
jquery-1.7.1.min.js
Playing...

jquery-1.7.1.min.js