2013-05-23 19:06:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
/* embed overlay code */
|
|
|
|
|
|
|
|
$('body').append($($embed_overlay));
|
|
|
|
|
|
|
|
$('.embed-button').click(function(evt){
|
|
|
|
if ($('#embed-overlay:visible').length === 0) {
|
|
|
|
$('#embed-overlay').fadeIn('fast');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
var $clickIn = false;
|
|
|
|
$('#embed-overlay').click(function(evt){
|
|
|
|
if (!$clickIn) {
|
|
|
|
$('#embed-overlay').fadeOut('fast');
|
|
|
|
}
|
|
|
|
$clickIn = false;
|
|
|
|
});
|
|
|
|
$('#embed-form').click(function(evt){
|
|
|
|
$clickIn = true;
|
|
|
|
});
|
|
|
|
|
|
|
|
/* embed code*/
|
|
|
|
if ($('#embed-form').length) {
|
|
|
|
var $f = $('#embed-form');
|
2013-05-23 20:20:40 +02:00
|
|
|
var $url = 'http://apps.opendatacity.de/relog/frame.html';
|
2013-05-23 19:06:11 +02:00
|
|
|
var embedCode = function(){
|
2013-05-23 21:20:09 +02:00
|
|
|
var $code = '<iframe src="'+$url+'" width="950" height="580" scrolling="no" frameborder="0" style="margin:0"><a href="'+$url+'">re:log - Besucherstromanalyse per re:publica W-LAN</a></iframe><br>';
|
|
|
|
$code += '<small>Zur <a href="http://apps.opendatacity.de/relog/">re:log-Website.</a> ';
|
|
|
|
$code += 'Realisiert von <a href="http://www.opendatacity.de/">OpenDataCity</a>. ';
|
|
|
|
$code += 'Unterstützt durch <a href="http://www.picocell.de">picocell</a> und <a href="http://newthinking.de">newthinking</a>. ';
|
|
|
|
$code += 'Anwendung steht unter <a rel="license" href="http://creativecommons.org/licenses/by/3.0/de/">CC-BY 3.0</a>.</small>';
|
2013-05-23 19:06:11 +02:00
|
|
|
$('#embed-code', $f).text($code);
|
|
|
|
};
|
|
|
|
embedCode();
|
|
|
|
$(":input", $f).change(function(){
|
|
|
|
embedCode();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|