【调度系统】广东民航医疗快线调度系统源代码
克樊道人
2024-12-02 61ce8cc6883e5f94e6470141df3484167caf31ed
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
var api = frameElement.api, W = api.opener;
$(document).ready(function(){
    loadPage();
});
 
function loadReadyPage() {
    if (typeof parent.lang == "undefined") {
        setTimeout(loadReadyPage, 50);
    } else {
        loadPage();
    }
}
// 实时         这个页面langChange
function loadPage(){
    $.dialog.setting.zIndex = W.$.dialog.setting.zIndex;
    var II=typeof parent.langChange;
    if(typeof parent.langChange == "function"){
        if (parent.langChange()) {//中文
            $('#stp-img1').attr('src', '../../images/flash_mic_1.jpg');
            $('#stp-img2').attr('src', '../../images/flash_mic_2.jpg');
        }else {
            $('#stp-img1').attr('src', '../../images/flash_mic_1_en.jpg');
            $('#stp-img2').attr('src', '../../images/flash_mic_2_en.jpg');
        }
    }else{
        if(typeof getObjectClass(parent.lang) == "langEn"){
            $('#stp-img1').attr('src', '../../images/flash_mic_1_en.jpg');
            $('#stp-img2').attr('src', '../../images/flash_mic_2_en.jpg');
        }else{
            $('#stp-img1').attr('src', '../../images/flash_mic_1.jpg');
            $('#stp-img2').attr('src', '../../images/flash_mic_2.jpg');
        }
    }
    $("#step1").html(parent.lang.talkback_flashMicStep1);
    $("#step2").html(parent.lang.talkback_flashMicStep2);
    $("#step3").html(parent.lang.talkback_flashMicStep3);
}
 
var getObjectClass = function (obj) {
    if (obj && obj.constructor && obj.constructor.toString()) {
         
            /*
             *  for browsers which have name property in the constructor
             *  of the object,such as chrome 
             */
            if(obj.constructor.name) {
                return obj.constructor.name;
            }
            var str = obj.constructor.toString();
            /*
             * executed if the return of object.constructor.toString() is 
             * "[object objectClass]"
             */
              
            if(str.charAt(0) == '[')
            {
                    var arr = str.match(/\[\w+\s*(\w+)\]/);
            } else {
                    /*
                     * executed if the return of object.constructor.toString() is 
                     * "function objectClass () {}"
                     * for IE Firefox
                     */
                    var arr = str.match(/function\s*(\w+)/);
            }
            if (arr && arr.length == 2) {
                        return arr[1];
                    }
      }
      return undefined; 
};