|
|
@@ -53,38 +53,6 @@ |
|
|
|
<script src="profilCard.js"></script> |
|
|
|
<script src="profilData.js"></script> |
|
|
|
|
|
|
|
<script type = "text/javascript" language = "javascript"> |
|
|
|
|
|
|
|
function get_insert_message (id) { |
|
|
|
$.get (id+".json" |
|
|
|
) .done (function (msg) { |
|
|
|
// _messages[id] = msg; |
|
|
|
Vue.set (_messages, id, msg); |
|
|
|
}) .fail (function (e,f,g) { |
|
|
|
console.log ("cannot load "+id+".json: "+e+f+g); |
|
|
|
}) |
|
|
|
} |
|
|
|
$(document).ready(function() { |
|
|
|
console.log("egal"); |
|
|
|
$.get('list.json' |
|
|
|
) .done (function (jd) { |
|
|
|
// _messagelist = jd; |
|
|
|
_messagelist.splice (0, _messagelist.length); |
|
|
|
_messagelist.push.apply (_messagelist, jd); |
|
|
|
console.log("egal2"); |
|
|
|
//$('#xxx').text(jd[0]); |
|
|
|
for (var e in jd) { |
|
|
|
if (! _messages[jd[e]]) { |
|
|
|
get_insert_message (jd[e]); |
|
|
|
} |
|
|
|
} |
|
|
|
}) .fail (function(e,f,g) { |
|
|
|
console.log("egal3: "+e+f+g ); |
|
|
|
}); |
|
|
|
}); |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<title>OMApp</title> |
|
|
|
</head> |
|
|
|
|
|
|
@@ -142,7 +110,7 @@ |
|
|
|
<!-- CDN_Bootstrap JS lib --> |
|
|
|
<script src="https://unpkg.com/bootstrap-material-design@4.1.1/dist/js/bootstrap-material-design.js" integrity="sha384-CauSuKpEqAFajSpkdjv3z9t8E7RlpJ1UP0lKM/+NdtSarroVKu069AlsRPKkFBz9" crossorigin="anonymous"></script> |
|
|
|
<!-- NOTE: Call main.js --> |
|
|
|
<xxxscript src="main.js"></script> |
|
|
|
<script src="main.js"></script> |
|
|
|
|
|
|
|
</body> |
|
|
|
|