2018-05-22 21:51:18 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="fr">
|
|
|
|
|
|
|
|
<head>
|
2018-06-23 21:45:31 +02:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2018-07-15 19:14:19 +02:00
|
|
|
|
2018-06-23 21:45:31 +02:00
|
|
|
<title>Free Telec</title>
|
|
|
|
|
|
|
|
<!-- Bootstrap -->
|
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
|
|
|
|
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.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]>
|
2018-05-22 21:51:18 +02:00
|
|
|
<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]-->
|
|
|
|
|
2018-06-23 21:45:31 +02:00
|
|
|
<style type="text/css">
|
2018-07-15 19:14:19 +02:00
|
|
|
header{
|
|
|
|
padding-left: 16px;
|
2018-06-23 21:45:31 +02:00
|
|
|
}
|
|
|
|
|
2018-07-15 19:14:19 +02:00
|
|
|
.btn-group .col-md-4, .btn-group .col-md-12 {
|
|
|
|
padding: 10px;
|
2018-06-23 21:45:31 +02:00
|
|
|
}
|
2018-08-26 11:09:21 +02:00
|
|
|
|
|
|
|
.clear {
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bs-callout {
|
|
|
|
padding: 20px;
|
|
|
|
margin: 36px 20px;
|
|
|
|
border: 1px solid #eee;
|
|
|
|
border-left-color: rgb(238, 238, 238);
|
|
|
|
border-left-width: 1px;
|
|
|
|
border-left-width: 5px;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bs-callout-info {
|
|
|
|
border-left-color: #2aabd2;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
height: 100px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 640px) {
|
|
|
|
ul {
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
}
|
2018-06-23 21:45:31 +02:00
|
|
|
</style>
|
2018-05-22 21:51:18 +02:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2018-06-23 21:45:31 +02:00
|
|
|
<header>
|
2018-07-15 19:14:19 +02:00
|
|
|
<h1>Free Telec <small>v0.2.2</small></h1>
|
2018-06-23 21:45:31 +02:00
|
|
|
</header>
|
|
|
|
<section>
|
|
|
|
<div class="row col-xs-12">
|
|
|
|
<div class="col-md-4 col-xs-12 btn-group">
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="1">1</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="2">2</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="3">3</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="4">4</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="5">5</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="6">6</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="7">7</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="8">8</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="9">9</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="tv">AV</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="0">0</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="power"><span class="fa fa-power-off" aria-hidden="true"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-12 btn-group">
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-danger btn-lg" data-key="red"><span class="fa fa-undo" aria-hidden="true"></span></div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="up"><span class="fa fa-chevron-up" aria-hidden="true"></span></div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-info btn-lg" data-key="blue"><span class="fa fa-search" aria-hidden="true"></span></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="left"><span class="fa fa-chevron-left" aria-hidden="true"></span></div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="ok">OK</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="right"><span class="fa fa-chevron-right" aria-hidden="true"></span></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-success btn-lg" data-key="green"><span class="fa fa-align-justify" aria-hidden="true"></span> M</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="down"><span class="fa fa-chevron-down" aria-hidden="true"></span></div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-warning btn-lg" data-key="yellow">I <span class="fa fa-align-justify" aria-hidden="true"></span></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-xs-12">
|
2018-07-15 19:14:19 +02:00
|
|
|
<div class="col-xs-12 btn btn-default btn-lg btn-free" data-key="home"><img src="img/free.png" /></div>
|
2018-06-23 21:45:31 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-12 btn-group">
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="vol_inc"><span class="fa fa-plus" aria-hidden="true"></span></div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="mute"><span class="glyphicon glyphicon-volume-off" aria-hidden="true"></span></div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="prgm_inc"><span class="fa fa-plus" aria-hidden="true"></span></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg">VOL</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4"></div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg">PROG</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="vol_dec"><span class="fa fa-minus" aria-hidden="true"></span></div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-danger btn-lg" data-key="rec"><span class="glyphicon glyphicon-record" aria-hidden="true"></span></div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="prgm_dec"><span class="fa fa-minus" aria-hidden="true"></span></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="bwd"><span class="fa fa-backward" aria-hidden="true"></span></div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="play"><span class="fa fa-play" aria-hidden="true"></span><span class="fa fa-pause" aria-hidden="true"></span></div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-xs-4">
|
|
|
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="fwd"><span class="fa fa-forward" aria-hidden="true"></span></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-08-26 11:09:21 +02:00
|
|
|
<div class="bs-callout bs-callout-info clear">
|
|
|
|
<h4>Raccourcis clavier</h4>
|
|
|
|
<p>
|
|
|
|
Certaines fonctionnalités de la télécommande peuvent être directement utilisée avec votre clavier.
|
|
|
|
<br />
|
|
|
|
En voici la liste :
|
|
|
|
</p>
|
|
|
|
<ul>
|
|
|
|
<li>Entrée : ok</li>
|
|
|
|
<li>Flèche haut: haut</li>
|
|
|
|
<li>Flèche bas: bas</li>
|
|
|
|
<li>Flèche droite: droite</li>
|
|
|
|
<li>Flèche gauche: gauche</li>
|
|
|
|
<li>Echap: retour (touche rouge)</li>
|
|
|
|
<li>f: Free</li>
|
|
|
|
<li>m: Menu (touche verte)</li>
|
|
|
|
<li>i: Info (touche jaune)</li>
|
|
|
|
<li>s: Recherche (touche bleue)</li>
|
|
|
|
<li>a: A/V</li>
|
|
|
|
<li>1-0: touche 1-0</li>
|
|
|
|
<li>+: Programme +</li>
|
|
|
|
<li>-: Programme -</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2018-06-23 21:45:31 +02:00
|
|
|
</section>
|
|
|
|
|
2018-08-26 11:09:21 +02:00
|
|
|
|
2018-06-23 21:45:31 +02:00
|
|
|
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
|
|
|
|
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
|
|
|
<script src="./conf.js" text="text/JavaScript"></script>
|
|
|
|
<script type="text/JavaScript">
|
2018-06-23 22:03:41 +02:00
|
|
|
let callApi = function(code)
|
|
|
|
{
|
|
|
|
$.get("http://hd1.freebox.fr/pub/remote_control?code="+codeTelec+"&key="+code);
|
|
|
|
};
|
|
|
|
|
|
|
|
$(function() {
|
|
|
|
$('.btn').on('click',function(){
|
|
|
|
callApi($(this).data('key'));
|
|
|
|
});
|
|
|
|
|
|
|
|
$('body').on('keypress', function(e){
|
2018-08-26 11:09:21 +02:00
|
|
|
console.log( e.keyCode , e.which);
|
2018-06-23 22:03:41 +02:00
|
|
|
const codes = {
|
|
|
|
13: 'ok',
|
|
|
|
38: 'up',
|
|
|
|
40: 'down',
|
|
|
|
37: 'left',
|
|
|
|
39: 'right',
|
2018-08-26 11:09:21 +02:00
|
|
|
27: 'red', //Esc/back
|
|
|
|
102: 'home', //Free
|
2018-06-23 22:03:41 +02:00
|
|
|
109: 'green', //m -> Menu
|
|
|
|
105: 'yellow', //i -> Info
|
|
|
|
115: 'blue', //s -> Search
|
|
|
|
97: 'tv', //a -> A/V
|
|
|
|
49: 1,
|
|
|
|
50: 2,
|
|
|
|
51: 3,
|
|
|
|
52: 4,
|
|
|
|
53: 5,
|
|
|
|
54: 6,
|
|
|
|
55: 7,
|
|
|
|
56: 8,
|
|
|
|
57: 9,
|
2018-08-26 11:09:21 +02:00
|
|
|
48: 0,
|
|
|
|
45: 'prgm_dec',
|
|
|
|
43: 'prgm_inc'
|
2018-06-23 22:03:41 +02:00
|
|
|
};
|
|
|
|
let code = (e.keyCode ? e.keyCode : e.which);
|
|
|
|
|
2018-08-26 11:09:21 +02:00
|
|
|
console.log('Code:', code, codes)
|
|
|
|
|
2018-06-23 22:03:41 +02:00
|
|
|
callApi(codes[code]);
|
|
|
|
});
|
|
|
|
});
|
2018-06-23 21:45:31 +02:00
|
|
|
</script>
|
2018-05-22 21:51:18 +02:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|