20 lines
754 B
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>
|