This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
univcloud/univcloud/templates/apps/launcher.html

20 lines
754 B
HTML

<div id="{{app_id}}" class="app {% if app_domain %}app-{{app_domain}}{% endif %} {% if app_picto %}app-has-picto app-picto-{{app_picto}}{% endif %}">
<a href="#"><span>{{label}}</span></a>
</div>
<script>
$(function(){ //DOM Ready
$('#{{app_id}} a').click(function() {
var app_iframe = $('#iframes div#iframe-{{app_id}}');
if (app_iframe.length == 0) {
$('#iframes').append($('<div id="iframe-{{app_id}}" class="iframe"><iframe src="{{url}}"></iframe></div>'));
app_iframe = $('#iframes div#iframe-{{app_id}}');
}
$(app_iframe).css('height', $(window).height()-50).show();
$('#iframes').show();
$('div.gridster').hide('blind', {duration: 800});
$('#portal').show('fade');
return false;
});
});
</script>