Skip to content

Commit

Permalink
html,body setup for embedding and example
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpeixe committed Jul 9, 2012
1 parent 6c0a6b9 commit dceb1d1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
17 changes: 17 additions & 0 deletions embed-example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Exemplo de embed do infográfico</title>
<style>
html, body {
width: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<iframe width="960" height="1300" style="margin:0 auto;border:0;display:block;" src="http://dev.cardume.art.br/eduamazonia/"></iframe>
</body>
</html>
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<meta charset="utf-8" />
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<meta name='apple-mobile-web-app-status-bar-style' content='black' />
<meta name='apple-mobile-web-app-capable' content='yes' />
Expand Down
5 changes: 5 additions & 0 deletions js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
/* CAROUSEL */

$(document).ready(function() {

// overflow hidden if iframe loaded
if(window.location != window.parent.location)
$('html,body').css({'overflow':'hidden'})

$('#carousel').carousel({
slideSpeed: 700,
});
Expand Down

0 comments on commit dceb1d1

Please sign in to comment.