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

  • JavaScript
  • CSS
  • HTML
  • Images
  • Input Data
  • ReadMe
  • forked:プリコネ4
  • 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
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. 
*/
 
//プリコネ本体
var tm = new Array();
var ac = new Array();
var im = new Array();
var counter = 1;
 
function yomiyomi(xxx){
    tm.length = 0;
    ac.length = 0;
    im.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%3 == 1){
                                (tm).push(objValue);
                                counter++;
                            }else if (counter%3 == 2){
                                (ac).push(objValue);
                                counter++;
                            }else {
                                (im).push(objValue);
                                counter++;
                            }
                        });
                    });
                });
                }
            });
        });
}
 
 
function kakikaki2(){
    var cou1 = 0;
    $("#result").remove();
    $("body").append("<div id='result'><div id='result2'></div></div>");
    $.each(tm, function(index, value){
        $("#result").append("<div onclick='btn("+cou1+")'>" + value + "</div>");
        cou1++;
    });
}
 
function btn(m){
    $("#result2").empty();
    $.each(ac, function(index, value){
        if(m == index){
            $("#result2").append(value);
        }
    });
    $.each(im, function(index, value){
        if(m == index){
            $("#result2").append("<img src= '"+value+"'>");
        }
    });
}
 
$(function(){
    $("li").click(function(){
        var id = $(this).attr("id");
        var n = "pricone_" + id;
        yomiyomi(n);
        kakikaki2();
        window_tm();
    });
});
 
//プリコネデザイン
/*
var window_name;
function openwindow(id_name){
    window_name = id_name;
    $("#background_layer").fadeIn(500, function() {
        $("#background_layer").show();
    });
    $(id_name).fadeIn(500, function() {
        $(id_name).show();
    });
}
*/
 
/*
function openbookwindow(fileUri,firstsentence){
    window_name = "#about_book";
    $("#background_layer").fadeIn(500, function() {
            $("#background_layer").show();
jquery-1.7.1.min.js
Playing...

jquery-1.7.1.min.js