2020-10-16 20:21:25 +08:00
|
|
|
(function() {
|
|
|
|
function init() {
|
|
|
|
$('.workflowimg-container').each(function() {
|
|
|
|
let container = $(this);
|
|
|
|
if (container.data('workflowimg-present') === false) {
|
|
|
|
let imgUrl = container.data('workflowimg-url');
|
|
|
|
container.find('.workflowimg-spinner').removeClass('hidden');
|
|
|
|
$.ajax({
|
|
|
|
url: imgUrl,
|
|
|
|
type: 'GET',
|
|
|
|
dataType: 'json',
|
|
|
|
success: function(data) {
|
|
|
|
container.html(data.workflowimg);
|
|
|
|
},
|
|
|
|
error: function() {
|
|
|
|
container.find('.workflowimg-spinner').addClass('hidden');
|
2016-08-19 22:38:34 +08:00
|
|
|
}
|
2020-10-16 20:21:25 +08:00
|
|
|
});
|
2016-08-19 21:36:12 +08:00
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2016-08-25 01:03:58 +08:00
|
|
|
|
2016-11-14 21:27:35 +08:00
|
|
|
init();
|
2020-10-16 20:21:25 +08:00
|
|
|
}());
|