Skip to content

Instantly share code, notes, and snippets.

@Pelirrojo
Last active August 29, 2015 14:13
Show Gist options
  • Save Pelirrojo/c537c30952573d3fd62c to your computer and use it in GitHub Desktop.
Save Pelirrojo/c537c30952573d3fd62c to your computer and use it in GitHub Desktop.
auto 30s single simple web with two iframes
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Web para actualizar la lista de infoJobs</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-8 col-md-offset-3">
<h1 id="title">Web para actualizar infoJobs</h1>
</div>
<div class="col-md-8 col-md-offset-2">
<div id="iframe1" class="well">
<iframe id="madrid" name="madrid" src="https://www.infojobs.net/ofertas-trabajo/madrid/motor" width ="100%" height="400px"></iframe>
</div>
</div>
<div class="col-md-8 col-md-offset-2">
<div id="iframe2" class="well">
<iframe id="valencia" name="valencia" src="https://www.infojobs.net/ofertas-trabajo/valencia/motor" width="100%" height="400px"></iframe>
</div>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script>
jQuery(document).ready(function () {
setTimeout(function(){ $('#madrid').attr( 'src', function ( i, val ) { return val; }); }, 30000);
setTimeout(function(){ $('#valencia').attr( 'src', function ( i, val ) { return val; }); }, 30000);
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment